2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
359 # maybe with a smaller string...
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 # Oops. We lost completely, so just stick with echo.
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="src/common/cmd/read_invis.c"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
433 # include <sys/types.h>
436 # include <sys/stat.h>
447 # if !STDC_HEADERS && HAVE_MEMORY_H
453 # include <strings.h>
456 # include <inttypes.h>
466 ac_default_prefix=/usr/local/dmapi_tests
467 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS'
470 # Initialize some variables set by options.
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
482 program_transform_name=s,x,x,
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520 # Accept the important Cygnus configure options, so we can diagnose typos.
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
542 cache_file=config.cache ;;
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 datadir=$ac_optarg ;;
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 eval "enable_$ac_feature='$ac_optarg'" ;;
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
585 -help | --help | --hel | --he | -h)
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
609 -libdir | --libdir | --libdi | --libd)
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 # Obsolete; use --without-fp.
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 sbindir=$ac_optarg ;;
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 sharedstatedir=$ac_optarg ;;
713 -site | --site | --sit)
715 -site=* | --site=* | --sit=*)
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 -version | --version | --versio | --versi | --vers | -V)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 eval "with_$ac_package='$ac_optarg'" ;;
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
764 # Obsolete; use --with-x.
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
816 eval ac_val=$`echo $ac_var`
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857 test "$silent" = yes && exec 6>/dev/null
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
877 if test ! -r $srcdir/$ac_unique_file; then
881 ac_srcdir_defaulted=no
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
950 # Report the --help message.
952 if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
956 \`configure' configures this package to adapt to many kinds of systems.
958 Usage: $0 [OPTION]... [VAR=VALUE]...
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE. See below for descriptions of some of the useful variables.
963 Defaults for the options are specified in brackets.
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
979 Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
990 For better control, use the options below.
992 Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1010 --program-prefix=PREFIX prepend PREFIX to installed program names
1011 --program-suffix=SUFFIX append SUFFIX to installed program names
1012 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1015 --build=BUILD configure for building on BUILD [guessed]
1016 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1020 if test -n "$ac_init_help"; then
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1027 --disable-dependency-tracking speeds up one-time build
1028 --enable-dependency-tracking do not reject slow dependency extractors
1029 --enable-shared[=PKGS]
1030 build shared libraries [default=yes]
1031 --enable-static[=PKGS]
1032 build static libraries [default=yes]
1033 --enable-fast-install[=PKGS]
1034 optimize for fast installation [default=yes]
1035 --disable-libtool-lock avoid locking (might break parallel builds)
1038 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1039 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1040 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1041 --with-pic try to use only PIC/non-PIC objects [default=use
1044 include additional configurations [automatic]
1046 Some influential environment variables:
1047 CC C compiler command
1048 CFLAGS C compiler flags
1049 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1050 nonstandard directory <lib dir>
1051 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1052 headers in a nonstandard directory <include dir>
1054 CXX C++ compiler command
1055 CXXFLAGS C++ compiler flags
1056 CXXCPP C++ preprocessor
1057 F77 Fortran 77 compiler command
1058 FFLAGS Fortran 77 compiler flags
1060 Use these variables to override the choices made by `configure' or to help
1061 it to find libraries and programs with nonstandard names/locations.
1066 if test "$ac_init_help" = "recursive"; then
1067 # If there are subdirs, report their specific --help.
1069 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1070 test -d $ac_dir || continue
1073 if test "$ac_dir" != .; then
1074 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1075 # A "../" for each directory in $ac_dir_suffix.
1076 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1078 ac_dir_suffix= ac_top_builddir=
1082 .) # No --srcdir option. We are building in place.
1084 if test -z "$ac_top_builddir"; then
1087 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1089 [\\/]* | ?:[\\/]* ) # Absolute path.
1090 ac_srcdir=$srcdir$ac_dir_suffix;
1091 ac_top_srcdir=$srcdir ;;
1093 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1094 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1097 # Do not use `cd foo && pwd` to compute absolute paths, because
1098 # the directories may not exist.
1100 .) ac_abs_builddir="$ac_dir";;
1103 .) ac_abs_builddir=`pwd`;;
1104 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1105 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1108 case $ac_abs_builddir in
1109 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1111 case ${ac_top_builddir}. in
1112 .) ac_abs_top_builddir=$ac_abs_builddir;;
1113 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1114 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1117 case $ac_abs_builddir in
1118 .) ac_abs_srcdir=$ac_srcdir;;
1121 .) ac_abs_srcdir=$ac_abs_builddir;;
1122 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1123 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1126 case $ac_abs_builddir in
1127 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1129 case $ac_top_srcdir in
1130 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1132 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1137 # Check for guested configure; otherwise get Cygnus style configure.
1138 if test -f $ac_srcdir/configure.gnu; then
1140 $SHELL $ac_srcdir/configure.gnu --help=recursive
1141 elif test -f $ac_srcdir/configure; then
1143 $SHELL $ac_srcdir/configure --help=recursive
1144 elif test -f $ac_srcdir/configure.ac ||
1145 test -f $ac_srcdir/configure.in; then
1147 $ac_configure --help
1149 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1155 test -n "$ac_init_help" && exit 0
1156 if $ac_init_version; then
1159 Copyright (C) 2003 Free Software Foundation, Inc.
1160 This configure script is free software; the Free Software Foundation
1161 gives unlimited permission to copy, distribute and modify it.
1167 This file contains any messages produced by compilers while
1168 running configure, to aid debugging if configure makes a mistake.
1170 It was created by $as_me, which was
1171 generated by GNU Autoconf 2.59. Invocation command line was
1182 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1183 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1184 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1185 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1186 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1188 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1189 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1191 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1192 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1193 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1194 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1195 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1196 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1197 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1205 test -z "$as_dir" && as_dir=.
1206 echo "PATH: $as_dir"
1221 # Keep a trace of the command line.
1222 # Strip out --no-create and --no-recursion so they do not pile up.
1223 # Strip out --silent because we don't want to record it for future runs.
1224 # Also quote any args containing shell meta-characters.
1225 # Make two passes to allow for proper duplicate-argument suppression.
1230 ac_must_keep_next=false
1236 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1238 | -silent | --silent | --silen | --sile | --sil)
1240 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1244 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1246 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1247 if test $ac_must_keep_next = true; then
1248 ac_must_keep_next=false # Got value, back to normal.
1251 *=* | --config-cache | -C | -disable-* | --disable-* \
1252 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1253 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1254 | -with-* | --with-* | -without-* | --without-* | --x)
1255 case "$ac_configure_args0 " in
1256 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1259 -* ) ac_must_keep_next=true ;;
1262 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1263 # Get rid of the leading space.
1269 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1270 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1272 # When interrupted or exit'd, cleanup temporary files, and complete
1273 # config.log. We remove comments because anyway the quotes in there
1274 # would cause problems or look ugly.
1275 # WARNING: Be sure not to use single quotes in there, as some shells,
1276 # such as our DU 5.0 friend, will then `close' the trap.
1277 trap 'exit_status=$?
1278 # Save into config.log some information that might help in debugging.
1283 ## ---------------- ##
1284 ## Cache variables. ##
1285 ## ---------------- ##
1288 # The following way of writing the cache mishandles newlines in values,
1291 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1294 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1299 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1306 ## ----------------- ##
1307 ## Output variables. ##
1308 ## ----------------- ##
1311 for ac_var in $ac_subst_vars
1313 eval ac_val=$`echo $ac_var`
1314 echo "$ac_var='"'"'$ac_val'"'"'"
1318 if test -n "$ac_subst_files"; then
1325 for ac_var in $ac_subst_files
1327 eval ac_val=$`echo $ac_var`
1328 echo "$ac_var='"'"'$ac_val'"'"'"
1333 if test -s confdefs.h; then
1340 sed "/^$/d" confdefs.h | sort
1343 test "$ac_signal" != 0 &&
1344 echo "$as_me: caught signal $ac_signal"
1345 echo "$as_me: exit $exit_status"
1347 rm -f core *.core &&
1348 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1351 for ac_signal in 1 2 13 15; do
1352 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1356 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1357 rm -rf conftest* confdefs.h
1358 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1361 # Predefined preprocessor variables.
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_NAME "$PACKAGE_NAME"
1368 cat >>confdefs.h <<_ACEOF
1369 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_STRING "$PACKAGE_STRING"
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1388 # Let the site file select an alternate cache file if it wants to.
1389 # Prefer explicitly selected file to automatically selected ones.
1390 if test -z "$CONFIG_SITE"; then
1391 if test "x$prefix" != xNONE; then
1392 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1394 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1397 for ac_site_file in $CONFIG_SITE; do
1398 if test -r "$ac_site_file"; then
1399 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1400 echo "$as_me: loading site script $ac_site_file" >&6;}
1401 sed 's/^/| /' "$ac_site_file" >&5
1406 if test -r "$cache_file"; then
1407 # Some versions of bash will fail to source /dev/null (special
1408 # files actually), so we avoid doing that.
1409 if test -f "$cache_file"; then
1410 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1411 echo "$as_me: loading cache $cache_file" >&6;}
1413 [\\/]* | ?:[\\/]* ) . $cache_file;;
1414 *) . ./$cache_file;;
1418 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1419 echo "$as_me: creating cache $cache_file" >&6;}
1423 # Check that the precious variables saved in the cache have kept the same
1425 ac_cache_corrupted=false
1426 for ac_var in `(set) 2>&1 |
1427 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1428 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1429 eval ac_new_set=\$ac_env_${ac_var}_set
1430 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1431 eval ac_new_val="\$ac_env_${ac_var}_value"
1432 case $ac_old_set,$ac_new_set in
1434 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1435 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1436 ac_cache_corrupted=: ;;
1438 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1439 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1440 ac_cache_corrupted=: ;;
1443 if test "x$ac_old_val" != "x$ac_new_val"; then
1444 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1445 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1446 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1447 echo "$as_me: former value: $ac_old_val" >&2;}
1448 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1449 echo "$as_me: current value: $ac_new_val" >&2;}
1450 ac_cache_corrupted=:
1453 # Pass precious variables to config.status.
1454 if test "$ac_new_set" = set; then
1456 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1457 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1458 *) ac_arg=$ac_var=$ac_new_val ;;
1460 case " $ac_configure_args " in
1461 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1462 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1466 if $ac_cache_corrupted; then
1467 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1468 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1469 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1470 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1471 { (exit 1); exit 1; }; }
1475 ac_cpp='$CPP $CPPFLAGS'
1476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1499 am__api_version="1.9"
1501 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1502 if test -f $ac_dir/install-sh; then
1504 ac_install_sh="$ac_aux_dir/install-sh -c"
1506 elif test -f $ac_dir/install.sh; then
1508 ac_install_sh="$ac_aux_dir/install.sh -c"
1510 elif test -f $ac_dir/shtool; then
1512 ac_install_sh="$ac_aux_dir/shtool install -c"
1516 if test -z "$ac_aux_dir"; then
1517 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1518 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1519 { (exit 1); exit 1; }; }
1521 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1522 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1523 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1525 # Find a good install program. We prefer a C program (faster),
1526 # so one script is as good as another. But avoid the broken or
1527 # incompatible versions:
1528 # SysV /etc/install, /usr/sbin/install
1529 # SunOS /usr/etc/install
1530 # IRIX /sbin/install
1532 # AmigaOS /C/install, which installs bootblocks on floppy discs
1533 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1534 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1535 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1536 # OS/2's system install, which has a completely different semantic
1537 # ./install, which can be erroneously created by make from ./install.sh.
1538 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1539 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1540 if test -z "$INSTALL"; then
1541 if test "${ac_cv_path_install+set}" = set; then
1542 echo $ECHO_N "(cached) $ECHO_C" >&6
1544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548 test -z "$as_dir" && as_dir=.
1549 # Account for people who put trailing slashes in PATH elements.
1551 ./ | .// | /cC/* | \
1552 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1553 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1556 # OSF1 and SCO ODT 3.0 have their own names for install.
1557 # Don't use installbsd from OSF since it installs stuff as root
1559 for ac_prog in ginstall scoinst install; do
1560 for ac_exec_ext in '' $ac_executable_extensions; do
1561 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1562 if test $ac_prog = install &&
1563 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1564 # AIX install. It has an incompatible calling convention.
1566 elif test $ac_prog = install &&
1567 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1568 # program-specific install script used by HP pwplus--don't use.
1571 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1583 if test "${ac_cv_path_install+set}" = set; then
1584 INSTALL=$ac_cv_path_install
1586 # As a last resort, use the slow shell script. We don't cache a
1587 # path for INSTALL within a source directory, because that will
1588 # break other packages using the cache if that directory is
1589 # removed, or if the path is relative.
1590 INSTALL=$ac_install_sh
1593 echo "$as_me:$LINENO: result: $INSTALL" >&5
1594 echo "${ECHO_T}$INSTALL" >&6
1596 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1597 # It thinks the first close brace ends the variable substitution.
1598 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1600 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1602 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1604 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1605 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1608 echo timestamp > conftest.file
1609 # Do `set' in a subshell so we don't clobber the current shell's
1610 # arguments. Must try -L first in case configure is actually a
1611 # symlink; some systems play weird games with the mod time of symlinks
1612 # (eg FreeBSD returns the mod time of the symlink's containing
1615 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1616 if test "$*" = "X"; then
1618 set X `ls -t $srcdir/configure conftest.file`
1621 if test "$*" != "X $srcdir/configure conftest.file" \
1622 && test "$*" != "X conftest.file $srcdir/configure"; then
1624 # If neither matched, then we have a broken ls. This can happen
1625 # if, for instance, CONFIG_SHELL is bash and it inherits a
1626 # broken ls alias from the environment. This has actually
1627 # happened. Such a system could not be considered "sane".
1628 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1629 alias in your environment" >&5
1630 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1631 alias in your environment" >&2;}
1632 { (exit 1); exit 1; }; }
1635 test "$2" = conftest.file
1641 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1642 Check your system clock" >&5
1643 echo "$as_me: error: newly created file is older than distributed files!
1644 Check your system clock" >&2;}
1645 { (exit 1); exit 1; }; }
1647 echo "$as_me:$LINENO: result: yes" >&5
1648 echo "${ECHO_T}yes" >&6
1649 test "$program_prefix" != NONE &&
1650 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1651 # Use a double $ so make ignores it.
1652 test "$program_suffix" != NONE &&
1653 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1654 # Double any \ or $. echo might interpret backslashes.
1655 # By default was `s,x,x', remove it if useless.
1656 cat <<\_ACEOF >conftest.sed
1657 s/[\\$]/&&/g;s/;s,x,x,$//
1659 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1662 # expand $ac_aux_dir to an absolute path
1663 am_aux_dir=`cd $ac_aux_dir && pwd`
1665 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1666 # Use eval to expand $SHELL
1667 if eval "$MISSING --run true"; then
1668 am_missing_run="$MISSING --run "
1671 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1672 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1675 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1676 # We used to keeping the `.' as first argument, in order to
1677 # allow $(mkdir_p) to be used without argument. As in
1678 # $(mkdir_p) $(somedir)
1679 # where $(somedir) is conditionally defined. However this is wrong
1681 # 1. if the package is installed by a user who cannot write `.'
1682 # make install will fail,
1683 # 2. the above comment should most certainly read
1684 # $(mkdir_p) $(DESTDIR)$(somedir)
1685 # so it does not work when $(somedir) is undefined and
1686 # $(DESTDIR) is not.
1687 # To support the latter case, we have to write
1688 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1689 # so the `.' trick is pointless.
1690 mkdir_p='mkdir -p --'
1692 # On NextStep and OpenStep, the `mkdir' command does not
1693 # recognize any option. It will interpret all options as
1694 # directories to create, and then abort because `.' already
1696 for d in ./-p ./--version;
1698 test -d $d && rmdir $d
1700 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1701 if test -f "$ac_aux_dir/mkinstalldirs"; then
1702 mkdir_p='$(mkinstalldirs)'
1704 mkdir_p='$(install_sh) -d'
1708 for ac_prog in gawk mawk nawk awk
1710 # Extract the first word of "$ac_prog", so it can be a program name with args.
1711 set dummy $ac_prog; ac_word=$2
1712 echo "$as_me:$LINENO: checking for $ac_word" >&5
1713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1714 if test "${ac_cv_prog_AWK+set}" = set; then
1715 echo $ECHO_N "(cached) $ECHO_C" >&6
1717 if test -n "$AWK"; then
1718 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1724 test -z "$as_dir" && as_dir=.
1725 for ac_exec_ext in '' $ac_executable_extensions; do
1726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1727 ac_cv_prog_AWK="$ac_prog"
1728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1737 if test -n "$AWK"; then
1738 echo "$as_me:$LINENO: result: $AWK" >&5
1739 echo "${ECHO_T}$AWK" >&6
1741 echo "$as_me:$LINENO: result: no" >&5
1742 echo "${ECHO_T}no" >&6
1745 test -n "$AWK" && break
1748 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1749 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1750 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1751 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1754 cat >conftest.make <<\_ACEOF
1756 @echo 'ac_maketemp="$(MAKE)"'
1758 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1759 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1760 if test -n "$ac_maketemp"; then
1761 eval ac_cv_prog_make_${ac_make}_set=yes
1763 eval ac_cv_prog_make_${ac_make}_set=no
1767 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1768 echo "$as_me:$LINENO: result: yes" >&5
1769 echo "${ECHO_T}yes" >&6
1772 echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1774 SET_MAKE="MAKE=${MAKE-make}"
1777 rm -rf .tst 2>/dev/null
1778 mkdir .tst 2>/dev/null
1779 if test -d .tst; then
1784 rmdir .tst 2>/dev/null
1786 # test to see if srcdir already configured
1787 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1788 test -f $srcdir/config.status; then
1789 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1790 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1791 { (exit 1); exit 1; }; }
1794 # test whether we have cygpath
1795 if test -z "$CYGPATH_W"; then
1796 if (cygpath --version) >/dev/null 2>/dev/null; then
1797 CYGPATH_W='cygpath -w'
1804 # Define the identity of the package.
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE "$PACKAGE"
1814 cat >>confdefs.h <<_ACEOF
1815 #define VERSION "$VERSION"
1818 # Some tools Automake needs.
1820 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1823 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1826 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1829 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1832 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1834 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1836 # Installed binaries are usually stripped using `strip' when the user
1837 # run `make install-strip'. However `strip' might not be the right
1838 # tool to use in cross-compilation environments, therefore Automake
1839 # will honor the `STRIP' environment variable to overrule this program.
1840 if test "$cross_compiling" != no; then
1841 if test -n "$ac_tool_prefix"; then
1842 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1843 set dummy ${ac_tool_prefix}strip; ac_word=$2
1844 echo "$as_me:$LINENO: checking for $ac_word" >&5
1845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846 if test "${ac_cv_prog_STRIP+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1849 if test -n "$STRIP"; then
1850 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 test -z "$as_dir" && as_dir=.
1857 for ac_exec_ext in '' $ac_executable_extensions; do
1858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868 STRIP=$ac_cv_prog_STRIP
1869 if test -n "$STRIP"; then
1870 echo "$as_me:$LINENO: result: $STRIP" >&5
1871 echo "${ECHO_T}$STRIP" >&6
1873 echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6
1878 if test -z "$ac_cv_prog_STRIP"; then
1880 # Extract the first word of "strip", so it can be a program name with args.
1881 set dummy strip; ac_word=$2
1882 echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 if test -n "$ac_ct_STRIP"; then
1888 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 test -z "$as_dir" && as_dir=.
1895 for ac_exec_ext in '' $ac_executable_extensions; do
1896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897 ac_cv_prog_ac_ct_STRIP="strip"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1907 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1908 if test -n "$ac_ct_STRIP"; then
1909 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1910 echo "${ECHO_T}$ac_ct_STRIP" >&6
1912 echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1918 STRIP="$ac_cv_prog_STRIP"
1922 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1924 # We need awk for the "check" target. The system "awk" is bad on
1926 # Always define AMTAR for backward compatibility.
1928 AMTAR=${AMTAR-"${am_missing_run}tar"}
1930 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1938 ac_cpp='$CPP $CPPFLAGS'
1939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1942 if test -n "$ac_tool_prefix"; then
1943 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1944 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_CC+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 if test -n "$CC"; then
1951 ac_cv_prog_CC="$CC" # Let the user override the test.
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957 test -z "$as_dir" && as_dir=.
1958 for ac_exec_ext in '' $ac_executable_extensions; do
1959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1970 if test -n "$CC"; then
1971 echo "$as_me:$LINENO: result: $CC" >&5
1972 echo "${ECHO_T}$CC" >&6
1974 echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1979 if test -z "$ac_cv_prog_CC"; then
1981 # Extract the first word of "gcc", so it can be a program name with args.
1982 set dummy gcc; ac_word=$2
1983 echo "$as_me:$LINENO: checking for $ac_word" >&5
1984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1985 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1988 if test -n "$ac_ct_CC"; then
1989 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 test -z "$as_dir" && as_dir=.
1996 for ac_exec_ext in '' $ac_executable_extensions; do
1997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1998 ac_cv_prog_ac_ct_CC="gcc"
1999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2008 if test -n "$ac_ct_CC"; then
2009 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2010 echo "${ECHO_T}$ac_ct_CC" >&6
2012 echo "$as_me:$LINENO: result: no" >&5
2013 echo "${ECHO_T}no" >&6
2021 if test -z "$CC"; then
2022 if test -n "$ac_tool_prefix"; then
2023 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2024 set dummy ${ac_tool_prefix}cc; ac_word=$2
2025 echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2027 if test "${ac_cv_prog_CC+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 if test -n "$CC"; then
2031 ac_cv_prog_CC="$CC" # Let the user override the test.
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 test -z "$as_dir" && as_dir=.
2038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2040 ac_cv_prog_CC="${ac_tool_prefix}cc"
2041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050 if test -n "$CC"; then
2051 echo "$as_me:$LINENO: result: $CC" >&5
2052 echo "${ECHO_T}$CC" >&6
2054 echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6
2059 if test -z "$ac_cv_prog_CC"; then
2061 # Extract the first word of "cc", so it can be a program name with args.
2062 set dummy cc; ac_word=$2
2063 echo "$as_me:$LINENO: checking for $ac_word" >&5
2064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2065 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 if test -n "$ac_ct_CC"; then
2069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075 test -z "$as_dir" && as_dir=.
2076 for ac_exec_ext in '' $ac_executable_extensions; do
2077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2078 ac_cv_prog_ac_ct_CC="cc"
2079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2088 if test -n "$ac_ct_CC"; then
2089 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2090 echo "${ECHO_T}$ac_ct_CC" >&6
2092 echo "$as_me:$LINENO: result: no" >&5
2093 echo "${ECHO_T}no" >&6
2102 if test -z "$CC"; then
2103 # Extract the first word of "cc", so it can be a program name with args.
2104 set dummy cc; ac_word=$2
2105 echo "$as_me:$LINENO: checking for $ac_word" >&5
2106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2107 if test "${ac_cv_prog_CC+set}" = set; then
2108 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 if test -n "$CC"; then
2111 ac_cv_prog_CC="$CC" # Let the user override the test.
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118 test -z "$as_dir" && as_dir=.
2119 for ac_exec_ext in '' $ac_executable_extensions; do
2120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2121 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2122 ac_prog_rejected=yes
2126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2132 if test $ac_prog_rejected = yes; then
2133 # We found a bogon in the path, so make sure we never use it.
2134 set dummy $ac_cv_prog_CC
2136 if test $# != 0; then
2137 # We chose a different compiler from the bogus one.
2138 # However, it has the same basename, so the bogon will be chosen
2139 # first if we set CC to just the basename; use the full file name.
2141 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2147 if test -n "$CC"; then
2148 echo "$as_me:$LINENO: result: $CC" >&5
2149 echo "${ECHO_T}$CC" >&6
2151 echo "$as_me:$LINENO: result: no" >&5
2152 echo "${ECHO_T}no" >&6
2156 if test -z "$CC"; then
2157 if test -n "$ac_tool_prefix"; then
2160 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2161 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2162 echo "$as_me:$LINENO: checking for $ac_word" >&5
2163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2164 if test "${ac_cv_prog_CC+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 if test -n "$CC"; then
2168 ac_cv_prog_CC="$CC" # Let the user override the test.
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174 test -z "$as_dir" && as_dir=.
2175 for ac_exec_ext in '' $ac_executable_extensions; do
2176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2177 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187 if test -n "$CC"; then
2188 echo "$as_me:$LINENO: result: $CC" >&5
2189 echo "${ECHO_T}$CC" >&6
2191 echo "$as_me:$LINENO: result: no" >&5
2192 echo "${ECHO_T}no" >&6
2195 test -n "$CC" && break
2198 if test -z "$CC"; then
2202 # Extract the first word of "$ac_prog", so it can be a program name with args.
2203 set dummy $ac_prog; ac_word=$2
2204 echo "$as_me:$LINENO: checking for $ac_word" >&5
2205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2206 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2207 echo $ECHO_N "(cached) $ECHO_C" >&6
2209 if test -n "$ac_ct_CC"; then
2210 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 test -z "$as_dir" && as_dir=.
2217 for ac_exec_ext in '' $ac_executable_extensions; do
2218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2219 ac_cv_prog_ac_ct_CC="$ac_prog"
2220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2228 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2229 if test -n "$ac_ct_CC"; then
2230 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2231 echo "${ECHO_T}$ac_ct_CC" >&6
2233 echo "$as_me:$LINENO: result: no" >&5
2234 echo "${ECHO_T}no" >&6
2237 test -n "$ac_ct_CC" && break
2246 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2247 See \`config.log' for more details." >&5
2248 echo "$as_me: error: no acceptable C compiler found in \$PATH
2249 See \`config.log' for more details." >&2;}
2250 { (exit 1); exit 1; }; }
2252 # Provide some information about the compiler.
2253 echo "$as_me:$LINENO:" \
2254 "checking for C compiler version" >&5
2255 ac_compiler=`set X $ac_compile; echo $2`
2256 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2257 (eval $ac_compiler --version </dev/null >&5) 2>&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }
2261 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2262 (eval $ac_compiler -v </dev/null >&5) 2>&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }
2266 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2267 (eval $ac_compiler -V </dev/null >&5) 2>&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }
2272 cat >conftest.$ac_ext <<_ACEOF
2275 cat confdefs.h >>conftest.$ac_ext
2276 cat >>conftest.$ac_ext <<_ACEOF
2277 /* end confdefs.h. */
2287 ac_clean_files_save=$ac_clean_files
2288 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2289 # Try to create an executable without -o first, disregard a.out.
2290 # It will help us diagnose broken compilers, and finding out an intuition
2292 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2293 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2294 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2295 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2296 (eval $ac_link_default) 2>&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }; then
2300 # Find the output, starting from the most likely. This scheme is
2301 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2304 # Be careful to initialize this variable, since it used to be cached.
2305 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2307 # b.out is created by i960 compilers.
2308 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2310 test -f "$ac_file" || continue
2312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2315 # This is the source file.
2318 # We found the default executable, but exeext='' is most
2322 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2323 # FIXME: I believe we export ac_cv_exeext for Libtool,
2324 # but it would be cool to find out if it's true. Does anybody
2325 # maintain Libtool? --akim.
2333 echo "$as_me: failed program was:" >&5
2334 sed 's/^/| /' conftest.$ac_ext >&5
2336 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2337 See \`config.log' for more details." >&5
2338 echo "$as_me: error: C compiler cannot create executables
2339 See \`config.log' for more details." >&2;}
2340 { (exit 77); exit 77; }; }
2343 ac_exeext=$ac_cv_exeext
2344 echo "$as_me:$LINENO: result: $ac_file" >&5
2345 echo "${ECHO_T}$ac_file" >&6
2347 # Check the compiler produces executables we can run. If not, either
2348 # the compiler is broken, or we cross compile.
2349 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2350 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2351 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2352 # If not cross compiling, check that we can run a simple program.
2353 if test "$cross_compiling" != yes; then
2354 if { ac_try='./$ac_file'
2355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; }; then
2362 if test "$cross_compiling" = maybe; then
2365 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2366 If you meant to cross compile, use \`--host'.
2367 See \`config.log' for more details." >&5
2368 echo "$as_me: error: cannot run C compiled programs.
2369 If you meant to cross compile, use \`--host'.
2370 See \`config.log' for more details." >&2;}
2371 { (exit 1); exit 1; }; }
2375 echo "$as_me:$LINENO: result: yes" >&5
2376 echo "${ECHO_T}yes" >&6
2378 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2379 ac_clean_files=$ac_clean_files_save
2380 # Check the compiler produces executables we can run. If not, either
2381 # the compiler is broken, or we cross compile.
2382 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2383 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2384 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2385 echo "${ECHO_T}$cross_compiling" >&6
2387 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2388 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2390 (eval $ac_link) 2>&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; then
2394 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2395 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2396 # work properly (i.e., refer to `conftest.exe'), while it won't with
2398 for ac_file in conftest.exe conftest conftest.*; do
2399 test -f "$ac_file" || continue
2401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2402 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2409 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2410 See \`config.log' for more details." >&5
2411 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2412 See \`config.log' for more details." >&2;}
2413 { (exit 1); exit 1; }; }
2416 rm -f conftest$ac_cv_exeext
2417 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2418 echo "${ECHO_T}$ac_cv_exeext" >&6
2420 rm -f conftest.$ac_ext
2421 EXEEXT=$ac_cv_exeext
2423 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2424 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2425 if test "${ac_cv_objext+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2428 cat >conftest.$ac_ext <<_ACEOF
2431 cat confdefs.h >>conftest.$ac_ext
2432 cat >>conftest.$ac_ext <<_ACEOF
2433 /* end confdefs.h. */
2443 rm -f conftest.o conftest.obj
2444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2445 (eval $ac_compile) 2>&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; then
2449 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2452 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2457 echo "$as_me: failed program was:" >&5
2458 sed 's/^/| /' conftest.$ac_ext >&5
2460 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2461 See \`config.log' for more details." >&5
2462 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2463 See \`config.log' for more details." >&2;}
2464 { (exit 1); exit 1; }; }
2467 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2469 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2470 echo "${ECHO_T}$ac_cv_objext" >&6
2471 OBJEXT=$ac_cv_objext
2473 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2474 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2475 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 cat >conftest.$ac_ext <<_ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2496 rm -f conftest.$ac_objext
2497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2498 (eval $ac_compile) 2>conftest.er1
2500 grep -v '^ *+' conftest.er1 >conftest.err
2502 cat conftest.err >&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); } &&
2505 { ac_try='test -z "$ac_c_werror_flag"
2506 || test ! -s conftest.err'
2507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; } &&
2512 { ac_try='test -s conftest.$ac_objext'
2513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; }; then
2520 echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2526 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2529 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2530 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2531 GCC=`test $ac_compiler_gnu = yes && echo yes`
2532 ac_test_CFLAGS=${CFLAGS+set}
2533 ac_save_CFLAGS=$CFLAGS
2535 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2536 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2537 if test "${ac_cv_prog_cc_g+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 cat >conftest.$ac_ext <<_ACEOF
2543 cat confdefs.h >>conftest.$ac_ext
2544 cat >>conftest.$ac_ext <<_ACEOF
2545 /* end confdefs.h. */
2555 rm -f conftest.$ac_objext
2556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557 (eval $ac_compile) 2>conftest.er1
2559 grep -v '^ *+' conftest.er1 >conftest.err
2561 cat conftest.err >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); } &&
2564 { ac_try='test -z "$ac_c_werror_flag"
2565 || test ! -s conftest.err'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; } &&
2571 { ac_try='test -s conftest.$ac_objext'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; }; then
2579 echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2586 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2587 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2588 if test "$ac_test_CFLAGS" = set; then
2589 CFLAGS=$ac_save_CFLAGS
2590 elif test $ac_cv_prog_cc_g = yes; then
2591 if test "$GCC" = yes; then
2597 if test "$GCC" = yes; then
2603 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2604 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2605 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2608 ac_cv_prog_cc_stdc=no
2610 cat >conftest.$ac_ext <<_ACEOF
2613 cat confdefs.h >>conftest.$ac_ext
2614 cat >>conftest.$ac_ext <<_ACEOF
2615 /* end confdefs.h. */
2618 #include <sys/types.h>
2619 #include <sys/stat.h>
2620 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2621 struct buf { int x; };
2622 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2623 static char *e (p, i)
2629 static char *f (char * (*g) (char **, int), char **p, ...)
2634 s = g (p, va_arg (v,int));
2639 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2640 function prototypes and stuff, but not '\xHH' hex character constants.
2641 These don't provoke an error unfortunately, instead are silently treated
2642 as 'x'. The following induces an error, until -std1 is added to get
2643 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2644 array size at least. It's necessary to write '\x00'==0 to get something
2645 that's true only with -std1. */
2646 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2648 int test (int i, double x);
2649 struct s1 {int (*f) (int a);};
2650 struct s2 {int (*f) (double a);};
2651 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2657 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2662 # Don't try gcc -ansi; that turns off useful extensions and
2663 # breaks some systems' header files.
2664 # AIX -qlanglvl=ansi
2665 # Ultrix and OSF/1 -std1
2666 # HP-UX 10.20 and later -Ae
2667 # HP-UX older versions -Aa -D_HPUX_SOURCE
2668 # SVR4 -Xc -D__EXTENSIONS__
2669 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2671 CC="$ac_save_CC $ac_arg"
2672 rm -f conftest.$ac_objext
2673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674 (eval $ac_compile) 2>conftest.er1
2676 grep -v '^ *+' conftest.er1 >conftest.err
2678 cat conftest.err >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } &&
2681 { ac_try='test -z "$ac_c_werror_flag"
2682 || test ! -s conftest.err'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; } &&
2688 { ac_try='test -s conftest.$ac_objext'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2694 ac_cv_prog_cc_stdc=$ac_arg
2697 echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2701 rm -f conftest.err conftest.$ac_objext
2703 rm -f conftest.$ac_ext conftest.$ac_objext
2708 case "x$ac_cv_prog_cc_stdc" in
2710 echo "$as_me:$LINENO: result: none needed" >&5
2711 echo "${ECHO_T}none needed" >&6 ;;
2713 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2714 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2715 CC="$CC $ac_cv_prog_cc_stdc" ;;
2718 # Some people use a C++ compiler to compile C. Since we use `exit',
2719 # in C++ we need to declare it. In case someone uses the same compiler
2720 # for both compiling C and C++ we need to have the C++ compiler decide
2721 # the declaration of exit, since it's the most demanding environment.
2722 cat >conftest.$ac_ext <<_ACEOF
2727 rm -f conftest.$ac_objext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729 (eval $ac_compile) 2>conftest.er1
2731 grep -v '^ *+' conftest.er1 >conftest.err
2733 cat conftest.err >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
2736 { ac_try='test -z "$ac_c_werror_flag"
2737 || test ! -s conftest.err'
2738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; } &&
2743 { ac_try='test -s conftest.$ac_objext'
2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; }; then
2749 for ac_declaration in \
2751 'extern "C" void std::exit (int) throw (); using std::exit;' \
2752 'extern "C" void std::exit (int); using std::exit;' \
2753 'extern "C" void exit (int) throw ();' \
2754 'extern "C" void exit (int);' \
2757 cat >conftest.$ac_ext <<_ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2773 rm -f conftest.$ac_objext
2774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2775 (eval $ac_compile) 2>conftest.er1
2777 grep -v '^ *+' conftest.er1 >conftest.err
2779 cat conftest.err >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); } &&
2782 { ac_try='test -z "$ac_c_werror_flag"
2783 || test ! -s conftest.err'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; } &&
2789 { ac_try='test -s conftest.$ac_objext'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; }; then
2797 echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2803 cat >conftest.$ac_ext <<_ACEOF
2806 cat confdefs.h >>conftest.$ac_ext
2807 cat >>conftest.$ac_ext <<_ACEOF
2808 /* end confdefs.h. */
2818 rm -f conftest.$ac_objext
2819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2820 (eval $ac_compile) 2>conftest.er1
2822 grep -v '^ *+' conftest.er1 >conftest.err
2824 cat conftest.err >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); } &&
2827 { ac_try='test -z "$ac_c_werror_flag"
2828 || test ! -s conftest.err'
2829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; } &&
2834 { ac_try='test -s conftest.$ac_objext'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2849 if test -n "$ac_declaration"; then
2850 echo '#ifdef __cplusplus' >>confdefs.h
2851 echo $ac_declaration >>confdefs.h
2852 echo '#endif' >>confdefs.h
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2862 ac_cpp='$CPP $CPPFLAGS'
2863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2866 DEPDIR="${am__leading_dot}deps"
2868 ac_config_commands="$ac_config_commands depfiles"
2871 am_make=${MAKE-make}
2872 cat > confinc << 'END'
2877 # If we don't find an include directive, just comment out the code.
2878 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2879 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2883 # First try GNU make style include.
2884 echo "include confinc" > confmf
2885 # We grep out `Entering directory' and `Leaving directory'
2886 # messages which can occur if `w' ends up in MAKEFLAGS.
2887 # In particular we don't look at `^make:' because GNU make might
2888 # be invoked under some other name (usually "gmake"), in which
2889 # case it prints its new name instead of `make'.
2890 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2895 # Now try BSD make style include.
2896 if test "$am__include" = "#"; then
2897 echo '.include "confinc"' > confmf
2898 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2899 am__include=.include
2906 echo "$as_me:$LINENO: result: $_am_result" >&5
2907 echo "${ECHO_T}$_am_result" >&6
2908 rm -f confinc confmf
2910 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2911 if test "${enable_dependency_tracking+set}" = set; then
2912 enableval="$enable_dependency_tracking"
2915 if test "x$enable_dependency_tracking" != xno; then
2916 am_depcomp="$ac_aux_dir/depcomp"
2921 if test "x$enable_dependency_tracking" != xno; then
2932 depcc="$CC" am_compiler_list=
2934 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2935 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2936 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2940 # We make a subdir and do the tests there. Otherwise we can end up
2941 # making bogus files that we don't know about and never remove. For
2942 # instance it was reported that on HP-UX the gcc test will end up
2943 # making a dummy file named `D' -- because `-MD' means `put the output
2946 # Copy depcomp to subdir because otherwise we won't find it if we're
2947 # using a relative directory.
2948 cp "$am_depcomp" conftest.dir
2950 # We will build objects and dependencies in a subdirectory because
2951 # it helps to detect inapplicable dependency modes. For instance
2952 # both Tru64's cc and ICC support -MD to output dependencies as a
2953 # side effect of compilation, but ICC will put the dependencies in
2954 # the current directory while Tru64 will put them in the object
2958 am_cv_CC_dependencies_compiler_type=none
2959 if test "$am_compiler_list" = ""; then
2960 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2962 for depmode in $am_compiler_list; do
2963 # Setup a source with many dependencies, because some compilers
2964 # like to wrap large dependency lists on column 80 (with \), and
2965 # we should not choose a depcomp mode which is confused by this.
2967 # We need to recreate these files for each test, as the compiler may
2968 # overwrite some of them when testing with obscure command lines.
2969 # This happens at least with the AIX C compiler.
2971 for i in 1 2 3 4 5 6; do
2972 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2973 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2974 # Solaris 8's {/usr,}/bin/sh.
2975 touch sub/conftst$i.h
2977 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2981 # after this tag, mechanisms are not by side-effect, so they'll
2982 # only be used when explicitly requested
2983 if test "x$enable_dependency_tracking" = xyes; then
2991 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2992 # mode. It turns out that the SunPro C++ compiler does not properly
2993 # handle `-M -o', and we need to detect this.
2994 if depmode=$depmode \
2995 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2996 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2997 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2998 >/dev/null 2>conftest.err &&
2999 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3000 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3001 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3002 # icc doesn't choke on unknown options, it will just issue warnings
3003 # or remarks (even with -Werror). So we grep stderr for any message
3004 # that says an option was ignored or not supported.
3005 # When given -MP, icc 7.0 and 7.1 complain thusly:
3006 # icc: Command line warning: ignoring option '-M'; no argument required
3007 # The diagnosis changed in icc 8.0:
3008 # icc: Command line remark: option '-MP' not supported
3009 if (grep 'ignoring option' conftest.err ||
3010 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3011 am_cv_CC_dependencies_compiler_type=$depmode
3020 am_cv_CC_dependencies_compiler_type=none
3024 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3025 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3026 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3031 test "x$enable_dependency_tracking" != xno \
3032 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3034 am__fastdepCC_FALSE='#'
3036 am__fastdepCC_TRUE='#'
3037 am__fastdepCC_FALSE=
3042 # Check whether --enable-shared or --disable-shared was given.
3043 if test "${enable_shared+set}" = set; then
3044 enableval="$enable_shared"
3045 p=${PACKAGE-default}
3047 yes) enable_shared=yes ;;
3048 no) enable_shared=no ;;
3051 # Look at the argument we got. We use all the common list separators.
3052 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3053 for pkg in $enableval; do
3055 if test "X$pkg" = "X$p"; then
3066 # Check whether --enable-static or --disable-static was given.
3067 if test "${enable_static+set}" = set; then
3068 enableval="$enable_static"
3069 p=${PACKAGE-default}
3071 yes) enable_static=yes ;;
3072 no) enable_static=no ;;
3075 # Look at the argument we got. We use all the common list separators.
3076 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3077 for pkg in $enableval; do
3079 if test "X$pkg" = "X$p"; then
3090 # Check whether --enable-fast-install or --disable-fast-install was given.
3091 if test "${enable_fast_install+set}" = set; then
3092 enableval="$enable_fast_install"
3093 p=${PACKAGE-default}
3095 yes) enable_fast_install=yes ;;
3096 no) enable_fast_install=no ;;
3098 enable_fast_install=no
3099 # Look at the argument we got. We use all the common list separators.
3100 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3101 for pkg in $enableval; do
3103 if test "X$pkg" = "X$p"; then
3104 enable_fast_install=yes
3111 enable_fast_install=yes
3114 # Make sure we can run config.sub.
3115 $ac_config_sub sun4 >/dev/null 2>&1 ||
3116 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3117 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3118 { (exit 1); exit 1; }; }
3120 echo "$as_me:$LINENO: checking build system type" >&5
3121 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3122 if test "${ac_cv_build+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3125 ac_cv_build_alias=$build_alias
3126 test -z "$ac_cv_build_alias" &&
3127 ac_cv_build_alias=`$ac_config_guess`
3128 test -z "$ac_cv_build_alias" &&
3129 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3130 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3131 { (exit 1); exit 1; }; }
3132 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3133 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3134 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3135 { (exit 1); exit 1; }; }
3138 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3139 echo "${ECHO_T}$ac_cv_build" >&6
3141 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3142 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3143 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3146 echo "$as_me:$LINENO: checking host system type" >&5
3147 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3148 if test "${ac_cv_host+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 ac_cv_host_alias=$host_alias
3152 test -z "$ac_cv_host_alias" &&
3153 ac_cv_host_alias=$ac_cv_build_alias
3154 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3155 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3156 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3157 { (exit 1); exit 1; }; }
3160 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3161 echo "${ECHO_T}$ac_cv_host" >&6
3163 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3164 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3165 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3168 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3169 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3170 if test "${lt_cv_path_SED+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 # Loop through the user's path and test for sed and gsed.
3174 # Then use that list of sed's as ones to test for truncation.
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 test -z "$as_dir" && as_dir=.
3180 for lt_ac_prog in sed gsed; do
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3183 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3190 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3191 # along with /bin/sed that truncates output.
3192 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3193 test ! -f $lt_ac_sed && break
3194 cat /dev/null > conftest.in
3196 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3197 # Check for GNU sed and select it if it is found.
3198 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3199 lt_cv_path_SED=$lt_ac_sed
3203 cat conftest.in conftest.in >conftest.tmp
3204 mv conftest.tmp conftest.in
3205 cp conftest.in conftest.nl
3207 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3208 cmp -s conftest.out conftest.nl || break
3209 # 10000 chars as input seems more than enough
3210 test $lt_ac_count -gt 10 && break
3211 lt_ac_count=`expr $lt_ac_count + 1`
3212 if test $lt_ac_count -gt $lt_ac_max; then
3213 lt_ac_max=$lt_ac_count
3214 lt_cv_path_SED=$lt_ac_sed
3222 echo "$as_me:$LINENO: result: $SED" >&5
3223 echo "${ECHO_T}$SED" >&6
3225 echo "$as_me:$LINENO: checking for egrep" >&5
3226 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3227 if test "${ac_cv_prog_egrep+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3231 then ac_cv_prog_egrep='grep -E'
3232 else ac_cv_prog_egrep='egrep'
3235 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3236 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3237 EGREP=$ac_cv_prog_egrep
3241 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3242 if test "${with_gnu_ld+set}" = set; then
3243 withval="$with_gnu_ld"
3244 test "$withval" = no || with_gnu_ld=yes
3249 if test "$GCC" = yes; then
3250 # Check if gcc -print-prog-name=ld gives a path.
3251 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3252 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3255 # gcc leaves a trailing carriage return which upsets mingw
3256 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3258 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3261 # Accept absolute paths.
3263 re_direlt='/[^/][^/]*/\.\./'
3264 # Canonicalize the pathname of ld
3265 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3266 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3267 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3269 test -z "$LD" && LD="$ac_prog"
3272 # If it fails, then pretend we aren't using GCC.
3276 # If it is relative, then search for the first ld in PATH.
3280 elif test "$with_gnu_ld" = yes; then
3281 echo "$as_me:$LINENO: checking for GNU ld" >&5
3282 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3284 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3285 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3287 if test "${lt_cv_path_LD+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 if test -z "$LD"; then
3291 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3292 for ac_dir in $PATH; do
3294 test -z "$ac_dir" && ac_dir=.
3295 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3296 lt_cv_path_LD="$ac_dir/$ac_prog"
3297 # Check to see if the program is GNU ld. I'd rather use --version,
3298 # but apparently some GNU ld's only accept -v.
3299 # Break only if it was the GNU/non-GNU ld that we prefer.
3300 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3301 *GNU* | *'with BFD'*)
3302 test "$with_gnu_ld" != no && break
3305 test "$with_gnu_ld" != yes && break
3312 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3317 if test -n "$LD"; then
3318 echo "$as_me:$LINENO: result: $LD" >&5
3319 echo "${ECHO_T}$LD" >&6
3321 echo "$as_me:$LINENO: result: no" >&5
3322 echo "${ECHO_T}no" >&6
3324 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3325 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3326 { (exit 1); exit 1; }; }
3327 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3328 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3329 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3333 case `$LD -v 2>&1 </dev/null` in
3334 *GNU* | *'with BFD'*)
3335 lt_cv_prog_gnu_ld=yes
3338 lt_cv_prog_gnu_ld=no
3342 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3343 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3344 with_gnu_ld=$lt_cv_prog_gnu_ld
3347 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3348 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3349 if test "${lt_cv_ld_reload_flag+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 lt_cv_ld_reload_flag='-r'
3354 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3355 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3356 reload_flag=$lt_cv_ld_reload_flag
3357 case $reload_flag in
3359 *) reload_flag=" $reload_flag" ;;
3361 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3364 if test "$GCC" = yes; then
3365 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3367 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3372 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3373 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3374 if test "${lt_cv_path_NM+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 if test -n "$NM"; then
3378 # Let the user override the test.
3381 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3382 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3384 test -z "$ac_dir" && ac_dir=.
3385 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3386 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3387 # Check to see if the nm accepts a BSD-compat flag.
3388 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3389 # nm: unknown option "B" ignored
3390 # Tru64's nm complains that /dev/null is an invalid object file
3391 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3392 */dev/null* | *'Invalid file or object type'*)
3393 lt_cv_path_NM="$tmp_nm -B"
3397 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3399 lt_cv_path_NM="$tmp_nm -p"
3403 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3404 continue # so that we can try to find one that supports BSD flags
3411 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3414 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3415 echo "${ECHO_T}$lt_cv_path_NM" >&6
3418 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3419 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3421 if test "$LN_S" = "ln -s"; then
3422 echo "$as_me:$LINENO: result: yes" >&5
3423 echo "${ECHO_T}yes" >&6
3425 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3426 echo "${ECHO_T}no, using $LN_S" >&6
3429 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3430 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3431 if test "${lt_cv_deplibs_check_method+set}" = set; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 lt_cv_file_magic_cmd='$MAGIC_CMD'
3435 lt_cv_file_magic_test_file=
3436 lt_cv_deplibs_check_method='unknown'
3437 # Need to set the preceding variable on all platforms that support
3438 # interlibrary dependencies.
3439 # 'none' -- dependencies not supported.
3440 # `unknown' -- same as none, but documents that we really don't know.
3441 # 'pass_all' -- all dependencies passed with no checks.
3442 # 'test_compile' -- check by making test program.
3443 # 'file_magic [[regex]]' -- check by looking for files in library path
3444 # which responds to the $file_magic_cmd with a given extended regex.
3445 # If you have `file' or equivalent on your system and you're not sure
3446 # whether `pass_all' will *always* work, you probably want this one.
3450 lt_cv_deplibs_check_method=pass_all
3454 lt_cv_deplibs_check_method=pass_all
3458 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3459 lt_cv_file_magic_cmd='/usr/bin/file -L'
3460 lt_cv_file_magic_test_file=/shlib/libc.so
3464 # func_win32_libid is a shell function defined in ltmain.sh
3465 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3466 lt_cv_file_magic_cmd='func_win32_libid'
3470 # Base MSYS/MinGW do not provide the 'file' command needed by
3471 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3472 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3473 lt_cv_file_magic_cmd='$OBJDUMP -f'
3476 darwin* | rhapsody*)
3477 lt_cv_deplibs_check_method=pass_all
3480 freebsd* | kfreebsd*-gnu)
3481 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3484 # Not sure whether the presence of OpenBSD here was a mistake.
3485 # Let's accept both of them until this is cleared up.
3486 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3487 lt_cv_file_magic_cmd=/usr/bin/file
3488 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3492 lt_cv_deplibs_check_method=pass_all
3497 lt_cv_deplibs_check_method=pass_all
3500 hpux10.20* | hpux11*)
3501 lt_cv_file_magic_cmd=/usr/bin/file
3504 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3505 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3508 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]'
3509 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3512 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3513 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3518 irix5* | irix6* | nonstopux*)
3520 *-32|*"-32 ") libmagic=32-bit;;
3521 *-n32|*"-n32 ") libmagic=N32;;
3522 *-64|*"-64 ") libmagic=64-bit;;
3523 *) libmagic=never-match;;
3525 lt_cv_deplibs_check_method=pass_all
3528 # This must be Linux ELF.
3531 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64)
3532 lt_cv_deplibs_check_method=pass_all ;;
3534 # glibc up to 2.1.1 does not perform some relocations on ARM
3535 # this will be overridden with pass_all, but let us keep it just in case
3536 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3538 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3539 lt_cv_deplibs_check_method=pass_all
3543 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3544 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3546 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3551 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3552 lt_cv_file_magic_cmd=/usr/bin/file
3553 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3557 lt_cv_deplibs_check_method=unknown
3561 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3564 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3568 osf3* | osf4* | osf5*)
3569 lt_cv_deplibs_check_method=pass_all
3573 lt_cv_deplibs_check_method=pass_all
3577 lt_cv_deplibs_check_method=pass_all
3580 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3581 case $host_vendor in
3583 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]'
3584 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3587 lt_cv_deplibs_check_method=pass_all
3590 lt_cv_file_magic_cmd='/bin/file'
3591 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3594 lt_cv_file_magic_cmd='/bin/file'
3595 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3596 lt_cv_file_magic_test_file=/lib/libc.so
3599 lt_cv_deplibs_check_method=pass_all
3604 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3605 lt_cv_deplibs_check_method=pass_all
3610 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3611 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3612 file_magic_cmd=$lt_cv_file_magic_cmd
3613 deplibs_check_method=$lt_cv_deplibs_check_method
3614 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3619 # If no C compiler was specified, use CC.
3622 # Allow CC to be a program name with arguments.
3626 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3627 if test "${enable_libtool_lock+set}" = set; then
3628 enableval="$enable_libtool_lock"
3631 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3633 # Some flags need to be propagated to the compiler or linker for good
3637 # Find out which ABI we are using.
3638 echo 'int i;' > conftest.$ac_ext
3639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3640 (eval $ac_compile) 2>&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; then
3644 case `/usr/bin/file conftest.$ac_objext` in
3656 # Find out which ABI we are using.
3657 echo '#line 3657 "configure"' > conftest.$ac_ext
3658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659 (eval $ac_compile) 2>&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; then
3663 if test "$lt_cv_prog_gnu_ld" = yes; then
3664 case `/usr/bin/file conftest.$ac_objext` in
3666 LD="${LD-ld} -melf32bsmip"
3669 LD="${LD-ld} -melf32bmipn32"
3672 LD="${LD-ld} -melf64bmip"
3676 case `/usr/bin/file conftest.$ac_objext` in
3692 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3693 # Find out which ABI we are using.
3694 echo 'int i;' > conftest.$ac_ext
3695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3696 (eval $ac_compile) 2>&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; then
3700 case "`/usr/bin/file conftest.o`" in
3704 LD="${LD-ld} -m elf_i386"
3706 ppc64-*linux*|powerpc64-*linux*)
3707 LD="${LD-ld} -m elf32ppclinux"
3710 LD="${LD-ld} -m elf_s390"
3713 LD="${LD-ld} -m elf32_sparc"
3720 LD="${LD-ld} -m elf_x86_64"
3722 ppc*-*linux*|powerpc*-*linux*)
3723 LD="${LD-ld} -m elf64ppc"
3726 LD="${LD-ld} -m elf64_s390"
3729 LD="${LD-ld} -m elf64_sparc"
3739 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3740 SAVE_CFLAGS="$CFLAGS"
3741 CFLAGS="$CFLAGS -belf"
3742 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3743 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3744 if test "${lt_cv_cc_needs_belf+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3748 ac_cpp='$CPP $CPPFLAGS'
3749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753 cat >conftest.$ac_ext <<_ACEOF
3756 cat confdefs.h >>conftest.$ac_ext
3757 cat >>conftest.$ac_ext <<_ACEOF
3758 /* end confdefs.h. */
3768 rm -f conftest.$ac_objext conftest$ac_exeext
3769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3770 (eval $ac_link) 2>conftest.er1
3772 grep -v '^ *+' conftest.er1 >conftest.err
3774 cat conftest.err >&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); } &&
3777 { ac_try='test -z "$ac_c_werror_flag"
3778 || test ! -s conftest.err'
3779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); }; } &&
3784 { ac_try='test -s conftest$ac_exeext'
3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); }; }; then
3790 lt_cv_cc_needs_belf=yes
3792 echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3795 lt_cv_cc_needs_belf=no
3797 rm -f conftest.err conftest.$ac_objext \
3798 conftest$ac_exeext conftest.$ac_ext
3800 ac_cpp='$CPP $CPPFLAGS'
3801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3806 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3807 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3808 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3809 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3810 CFLAGS="$SAVE_CFLAGS"
3816 need_locks="$enable_libtool_lock"
3820 ac_cpp='$CPP $CPPFLAGS'
3821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3824 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3825 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3826 # On Suns, sometimes $CPP names a directory.
3827 if test -n "$CPP" && test -d "$CPP"; then
3830 if test -z "$CPP"; then
3831 if test "${ac_cv_prog_CPP+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 # Double quotes because CPP needs to be expanded
3835 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3838 for ac_c_preproc_warn_flag in '' yes
3840 # Use a header file that comes with gcc, so configuring glibc
3841 # with a fresh cross-compiler works.
3842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3843 # <limits.h> exists even on freestanding compilers.
3844 # On the NeXT, cc -E runs the code through the compiler's parser,
3845 # not just through cpp. "Syntax error" is here to catch this case.
3846 cat >conftest.$ac_ext <<_ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h. */
3853 # include <limits.h>
3855 # include <assert.h>
3859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3862 grep -v '^ *+' conftest.er1 >conftest.err
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } >/dev/null; then
3867 if test -s conftest.err; then
3868 ac_cpp_err=$ac_c_preproc_warn_flag
3869 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3876 if test -z "$ac_cpp_err"; then
3879 echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3882 # Broken: fails on valid input.
3885 rm -f conftest.err conftest.$ac_ext
3887 # OK, works on sane cases. Now check whether non-existent headers
3888 # can be detected and how.
3889 cat >conftest.$ac_ext <<_ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3895 #include <ac_nonexistent.h>
3897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3900 grep -v '^ *+' conftest.er1 >conftest.err
3902 cat conftest.err >&5
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); } >/dev/null; then
3905 if test -s conftest.err; then
3906 ac_cpp_err=$ac_c_preproc_warn_flag
3907 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3914 if test -z "$ac_cpp_err"; then
3915 # Broken: success on invalid input.
3918 echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3921 # Passes both tests.
3925 rm -f conftest.err conftest.$ac_ext
3928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3929 rm -f conftest.err conftest.$ac_ext
3930 if $ac_preproc_ok; then
3942 echo "$as_me:$LINENO: result: $CPP" >&5
3943 echo "${ECHO_T}$CPP" >&6
3945 for ac_c_preproc_warn_flag in '' yes
3947 # Use a header file that comes with gcc, so configuring glibc
3948 # with a fresh cross-compiler works.
3949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3950 # <limits.h> exists even on freestanding compilers.
3951 # On the NeXT, cc -E runs the code through the compiler's parser,
3952 # not just through cpp. "Syntax error" is here to catch this case.
3953 cat >conftest.$ac_ext <<_ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h. */
3960 # include <limits.h>
3962 # include <assert.h>
3966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3969 grep -v '^ *+' conftest.er1 >conftest.err
3971 cat conftest.err >&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); } >/dev/null; then
3974 if test -s conftest.err; then
3975 ac_cpp_err=$ac_c_preproc_warn_flag
3976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3983 if test -z "$ac_cpp_err"; then
3986 echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3989 # Broken: fails on valid input.
3992 rm -f conftest.err conftest.$ac_ext
3994 # OK, works on sane cases. Now check whether non-existent headers
3995 # can be detected and how.
3996 cat >conftest.$ac_ext <<_ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h. */
4002 #include <ac_nonexistent.h>
4004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4007 grep -v '^ *+' conftest.er1 >conftest.err
4009 cat conftest.err >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } >/dev/null; then
4012 if test -s conftest.err; then
4013 ac_cpp_err=$ac_c_preproc_warn_flag
4014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4021 if test -z "$ac_cpp_err"; then
4022 # Broken: success on invalid input.
4025 echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4028 # Passes both tests.
4032 rm -f conftest.err conftest.$ac_ext
4035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4036 rm -f conftest.err conftest.$ac_ext
4037 if $ac_preproc_ok; then
4040 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4041 See \`config.log' for more details." >&5
4042 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4043 See \`config.log' for more details." >&2;}
4044 { (exit 1); exit 1; }; }
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4054 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4055 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4056 if test "${ac_cv_header_stdc+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 cat >conftest.$ac_ext <<_ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h. */
4078 rm -f conftest.$ac_objext
4079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4080 (eval $ac_compile) 2>conftest.er1
4082 grep -v '^ *+' conftest.er1 >conftest.err
4084 cat conftest.err >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } &&
4087 { ac_try='test -z "$ac_c_werror_flag"
4088 || test ! -s conftest.err'
4089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); }; } &&
4094 { ac_try='test -s conftest.$ac_objext'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; }; then
4100 ac_cv_header_stdc=yes
4102 echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4105 ac_cv_header_stdc=no
4107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4109 if test $ac_cv_header_stdc = yes; then
4110 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4111 cat >conftest.$ac_ext <<_ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h. */
4120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4121 $EGREP "memchr" >/dev/null 2>&1; then
4124 ac_cv_header_stdc=no
4130 if test $ac_cv_header_stdc = yes; then
4131 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4132 cat >conftest.$ac_ext <<_ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4142 $EGREP "free" >/dev/null 2>&1; then
4145 ac_cv_header_stdc=no
4151 if test $ac_cv_header_stdc = yes; then
4152 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4153 if test "$cross_compiling" = yes; then
4156 cat >conftest.$ac_ext <<_ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4163 #if ((' ' & 0x0FF) == 0x020)
4164 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4165 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4167 # define ISLOWER(c) \
4168 (('a' <= (c) && (c) <= 'i') \
4169 || ('j' <= (c) && (c) <= 'r') \
4170 || ('s' <= (c) && (c) <= 'z'))
4171 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4174 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4179 for (i = 0; i < 256; i++)
4180 if (XOR (islower (i), ISLOWER (i))
4181 || toupper (i) != TOUPPER (i))
4186 rm -f conftest$ac_exeext
4187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4188 (eval $ac_link) 2>&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }; }; then
4199 echo "$as_me: program exited with status $ac_status" >&5
4200 echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4204 ac_cv_header_stdc=no
4206 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4210 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4211 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4212 if test $ac_cv_header_stdc = yes; then
4214 cat >>confdefs.h <<\_ACEOF
4215 #define STDC_HEADERS 1
4220 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4230 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4231 inttypes.h stdint.h unistd.h
4233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4234 echo "$as_me:$LINENO: checking for $ac_header" >&5
4235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4239 cat >conftest.$ac_ext <<_ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h. */
4245 $ac_includes_default
4247 #include <$ac_header>
4249 rm -f conftest.$ac_objext
4250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4251 (eval $ac_compile) 2>conftest.er1
4253 grep -v '^ *+' conftest.er1 >conftest.err
4255 cat conftest.err >&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } &&
4258 { ac_try='test -z "$ac_c_werror_flag"
4259 || test ! -s conftest.err'
4260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); }; } &&
4265 { ac_try='test -s conftest.$ac_objext'
4266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
4271 eval "$as_ac_Header=yes"
4273 echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4276 eval "$as_ac_Header=no"
4278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4283 cat >>confdefs.h <<_ACEOF
4284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4293 for ac_header in dlfcn.h
4295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4297 echo "$as_me:$LINENO: checking for $ac_header" >&5
4298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4305 # Is the header compilable?
4306 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4308 cat >conftest.$ac_ext <<_ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h. */
4314 $ac_includes_default
4315 #include <$ac_header>
4317 rm -f conftest.$ac_objext
4318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4319 (eval $ac_compile) 2>conftest.er1
4321 grep -v '^ *+' conftest.er1 >conftest.err
4323 cat conftest.err >&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } &&
4326 { ac_try='test -z "$ac_c_werror_flag"
4327 || test ! -s conftest.err'
4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; } &&
4333 { ac_try='test -s conftest.$ac_objext'
4334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; }; then
4339 ac_header_compiler=yes
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4344 ac_header_compiler=no
4346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4348 echo "${ECHO_T}$ac_header_compiler" >&6
4350 # Is the header present?
4351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4353 cat >conftest.$ac_ext <<_ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4359 #include <$ac_header>
4361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4364 grep -v '^ *+' conftest.er1 >conftest.err
4366 cat conftest.err >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } >/dev/null; then
4369 if test -s conftest.err; then
4370 ac_cpp_err=$ac_c_preproc_warn_flag
4371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4378 if test -z "$ac_cpp_err"; then
4379 ac_header_preproc=yes
4381 echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4384 ac_header_preproc=no
4386 rm -f conftest.err conftest.$ac_ext
4387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4388 echo "${ECHO_T}$ac_header_preproc" >&6
4390 # So? What about this header?
4391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4397 ac_header_preproc=yes
4400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4414 ## ------------------------------------------ ##
4415 ## Report this to the AC_PACKAGE_NAME lists. ##
4416 ## ------------------------------------------ ##
4419 sed "s/^/$as_me: WARNING: /" >&2
4422 echo "$as_me:$LINENO: checking for $ac_header" >&5
4423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 eval "$as_ac_Header=\$ac_header_preproc"
4429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4434 cat >>confdefs.h <<_ACEOF
4435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4443 ac_cpp='$CXXCPP $CPPFLAGS'
4444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4447 if test -n "$ac_tool_prefix"; then
4448 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4450 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4451 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4452 echo "$as_me:$LINENO: checking for $ac_word" >&5
4453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4454 if test "${ac_cv_prog_CXX+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 if test -n "$CXX"; then
4458 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 test -z "$as_dir" && as_dir=.
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4467 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 if test -n "$CXX"; then
4478 echo "$as_me:$LINENO: result: $CXX" >&5
4479 echo "${ECHO_T}$CXX" >&6
4481 echo "$as_me:$LINENO: result: no" >&5
4482 echo "${ECHO_T}no" >&6
4485 test -n "$CXX" && break
4488 if test -z "$CXX"; then
4490 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4492 # Extract the first word of "$ac_prog", so it can be a program name with args.
4493 set dummy $ac_prog; ac_word=$2
4494 echo "$as_me:$LINENO: checking for $ac_word" >&5
4495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4496 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 if test -n "$ac_ct_CXX"; then
4500 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 test -z "$as_dir" && as_dir=.
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4509 ac_cv_prog_ac_ct_CXX="$ac_prog"
4510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4519 if test -n "$ac_ct_CXX"; then
4520 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4521 echo "${ECHO_T}$ac_ct_CXX" >&6
4523 echo "$as_me:$LINENO: result: no" >&5
4524 echo "${ECHO_T}no" >&6
4527 test -n "$ac_ct_CXX" && break
4529 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4535 # Provide some information about the compiler.
4536 echo "$as_me:$LINENO:" \
4537 "checking for C++ compiler version" >&5
4538 ac_compiler=`set X $ac_compile; echo $2`
4539 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4540 (eval $ac_compiler --version </dev/null >&5) 2>&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }
4544 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4545 (eval $ac_compiler -v </dev/null >&5) 2>&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }
4549 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4550 (eval $ac_compiler -V </dev/null >&5) 2>&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }
4555 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4556 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4557 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 cat >conftest.$ac_ext <<_ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4578 rm -f conftest.$ac_objext
4579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4580 (eval $ac_compile) 2>conftest.er1
4582 grep -v '^ *+' conftest.er1 >conftest.err
4584 cat conftest.err >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } &&
4587 { ac_try='test -z "$ac_cxx_werror_flag"
4588 || test ! -s conftest.err'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; } &&
4594 { ac_try='test -s conftest.$ac_objext'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; }; then
4602 echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4608 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4611 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4612 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4613 GXX=`test $ac_compiler_gnu = yes && echo yes`
4614 ac_test_CXXFLAGS=${CXXFLAGS+set}
4615 ac_save_CXXFLAGS=$CXXFLAGS
4617 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4618 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4619 if test "${ac_cv_prog_cxx_g+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 cat >conftest.$ac_ext <<_ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h. */
4637 rm -f conftest.$ac_objext
4638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4639 (eval $ac_compile) 2>conftest.er1
4641 grep -v '^ *+' conftest.er1 >conftest.err
4643 cat conftest.err >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } &&
4646 { ac_try='test -z "$ac_cxx_werror_flag"
4647 || test ! -s conftest.err'
4648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; } &&
4653 { ac_try='test -s conftest.$ac_objext'
4654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; }; then
4659 ac_cv_prog_cxx_g=yes
4661 echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4668 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4669 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4670 if test "$ac_test_CXXFLAGS" = set; then
4671 CXXFLAGS=$ac_save_CXXFLAGS
4672 elif test $ac_cv_prog_cxx_g = yes; then
4673 if test "$GXX" = yes; then
4679 if test "$GXX" = yes; then
4685 for ac_declaration in \
4687 'extern "C" void std::exit (int) throw (); using std::exit;' \
4688 'extern "C" void std::exit (int); using std::exit;' \
4689 'extern "C" void exit (int) throw ();' \
4690 'extern "C" void exit (int);' \
4693 cat >conftest.$ac_ext <<_ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h. */
4709 rm -f conftest.$ac_objext
4710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4711 (eval $ac_compile) 2>conftest.er1
4713 grep -v '^ *+' conftest.er1 >conftest.err
4715 cat conftest.err >&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } &&
4718 { ac_try='test -z "$ac_cxx_werror_flag"
4719 || test ! -s conftest.err'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; } &&
4725 { ac_try='test -s conftest.$ac_objext'
4726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }; }; then
4733 echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4739 cat >conftest.$ac_ext <<_ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h. */
4754 rm -f conftest.$ac_objext
4755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4756 (eval $ac_compile) 2>conftest.er1
4758 grep -v '^ *+' conftest.er1 >conftest.err
4760 cat conftest.err >&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } &&
4763 { ac_try='test -z "$ac_cxx_werror_flag"
4764 || test ! -s conftest.err'
4765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); }; } &&
4770 { ac_try='test -s conftest.$ac_objext'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; }; then
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4785 if test -n "$ac_declaration"; then
4786 echo '#ifdef __cplusplus' >>confdefs.h
4787 echo $ac_declaration >>confdefs.h
4788 echo '#endif' >>confdefs.h
4792 ac_cpp='$CXXCPP $CPPFLAGS'
4793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4797 depcc="$CXX" am_compiler_list=
4799 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4800 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4801 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4805 # We make a subdir and do the tests there. Otherwise we can end up
4806 # making bogus files that we don't know about and never remove. For
4807 # instance it was reported that on HP-UX the gcc test will end up
4808 # making a dummy file named `D' -- because `-MD' means `put the output
4811 # Copy depcomp to subdir because otherwise we won't find it if we're
4812 # using a relative directory.
4813 cp "$am_depcomp" conftest.dir
4815 # We will build objects and dependencies in a subdirectory because
4816 # it helps to detect inapplicable dependency modes. For instance
4817 # both Tru64's cc and ICC support -MD to output dependencies as a
4818 # side effect of compilation, but ICC will put the dependencies in
4819 # the current directory while Tru64 will put them in the object
4823 am_cv_CXX_dependencies_compiler_type=none
4824 if test "$am_compiler_list" = ""; then
4825 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4827 for depmode in $am_compiler_list; do
4828 # Setup a source with many dependencies, because some compilers
4829 # like to wrap large dependency lists on column 80 (with \), and
4830 # we should not choose a depcomp mode which is confused by this.
4832 # We need to recreate these files for each test, as the compiler may
4833 # overwrite some of them when testing with obscure command lines.
4834 # This happens at least with the AIX C compiler.
4836 for i in 1 2 3 4 5 6; do
4837 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4838 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4839 # Solaris 8's {/usr,}/bin/sh.
4840 touch sub/conftst$i.h
4842 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4846 # after this tag, mechanisms are not by side-effect, so they'll
4847 # only be used when explicitly requested
4848 if test "x$enable_dependency_tracking" = xyes; then
4856 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4857 # mode. It turns out that the SunPro C++ compiler does not properly
4858 # handle `-M -o', and we need to detect this.
4859 if depmode=$depmode \
4860 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4861 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4862 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4863 >/dev/null 2>conftest.err &&
4864 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4865 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4866 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4867 # icc doesn't choke on unknown options, it will just issue warnings
4868 # or remarks (even with -Werror). So we grep stderr for any message
4869 # that says an option was ignored or not supported.
4870 # When given -MP, icc 7.0 and 7.1 complain thusly:
4871 # icc: Command line warning: ignoring option '-M'; no argument required
4872 # The diagnosis changed in icc 8.0:
4873 # icc: Command line remark: option '-MP' not supported
4874 if (grep 'ignoring option' conftest.err ||
4875 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4876 am_cv_CXX_dependencies_compiler_type=$depmode
4885 am_cv_CXX_dependencies_compiler_type=none
4889 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4890 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4891 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4896 test "x$enable_dependency_tracking" != xno \
4897 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4898 am__fastdepCXX_TRUE=
4899 am__fastdepCXX_FALSE='#'
4901 am__fastdepCXX_TRUE='#'
4902 am__fastdepCXX_FALSE=
4907 ac_cpp='$CXXCPP $CPPFLAGS'
4908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4911 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4912 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4913 if test -z "$CXXCPP"; then
4914 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4917 # Double quotes because CXXCPP needs to be expanded
4918 for CXXCPP in "$CXX -E" "/lib/cpp"
4921 for ac_cxx_preproc_warn_flag in '' yes
4923 # Use a header file that comes with gcc, so configuring glibc
4924 # with a fresh cross-compiler works.
4925 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4926 # <limits.h> exists even on freestanding compilers.
4927 # On the NeXT, cc -E runs the code through the compiler's parser,
4928 # not just through cpp. "Syntax error" is here to catch this case.
4929 cat >conftest.$ac_ext <<_ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h. */
4936 # include <limits.h>
4938 # include <assert.h>
4942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4945 grep -v '^ *+' conftest.er1 >conftest.err
4947 cat conftest.err >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); } >/dev/null; then
4950 if test -s conftest.err; then
4951 ac_cpp_err=$ac_cxx_preproc_warn_flag
4952 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4959 if test -z "$ac_cpp_err"; then
4962 echo "$as_me: failed program was:" >&5
4963 sed 's/^/| /' conftest.$ac_ext >&5
4965 # Broken: fails on valid input.
4968 rm -f conftest.err conftest.$ac_ext
4970 # OK, works on sane cases. Now check whether non-existent headers
4971 # can be detected and how.
4972 cat >conftest.$ac_ext <<_ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h. */
4978 #include <ac_nonexistent.h>
4980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4983 grep -v '^ *+' conftest.er1 >conftest.err
4985 cat conftest.err >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } >/dev/null; then
4988 if test -s conftest.err; then
4989 ac_cpp_err=$ac_cxx_preproc_warn_flag
4990 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4997 if test -z "$ac_cpp_err"; then
4998 # Broken: success on invalid input.
5001 echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.$ac_ext >&5
5004 # Passes both tests.
5008 rm -f conftest.err conftest.$ac_ext
5011 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5012 rm -f conftest.err conftest.$ac_ext
5013 if $ac_preproc_ok; then
5018 ac_cv_prog_CXXCPP=$CXXCPP
5021 CXXCPP=$ac_cv_prog_CXXCPP
5023 ac_cv_prog_CXXCPP=$CXXCPP
5025 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5026 echo "${ECHO_T}$CXXCPP" >&6
5028 for ac_cxx_preproc_warn_flag in '' yes
5030 # Use a header file that comes with gcc, so configuring glibc
5031 # with a fresh cross-compiler works.
5032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5033 # <limits.h> exists even on freestanding compilers.
5034 # On the NeXT, cc -E runs the code through the compiler's parser,
5035 # not just through cpp. "Syntax error" is here to catch this case.
5036 cat >conftest.$ac_ext <<_ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5043 # include <limits.h>
5045 # include <assert.h>
5049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5052 grep -v '^ *+' conftest.er1 >conftest.err
5054 cat conftest.err >&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } >/dev/null; then
5057 if test -s conftest.err; then
5058 ac_cpp_err=$ac_cxx_preproc_warn_flag
5059 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5066 if test -z "$ac_cpp_err"; then
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5072 # Broken: fails on valid input.
5075 rm -f conftest.err conftest.$ac_ext
5077 # OK, works on sane cases. Now check whether non-existent headers
5078 # can be detected and how.
5079 cat >conftest.$ac_ext <<_ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5085 #include <ac_nonexistent.h>
5087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5090 grep -v '^ *+' conftest.er1 >conftest.err
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } >/dev/null; then
5095 if test -s conftest.err; then
5096 ac_cpp_err=$ac_cxx_preproc_warn_flag
5097 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5104 if test -z "$ac_cpp_err"; then
5105 # Broken: success on invalid input.
5108 echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5111 # Passes both tests.
5115 rm -f conftest.err conftest.$ac_ext
5118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5119 rm -f conftest.err conftest.$ac_ext
5120 if $ac_preproc_ok; then
5123 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5124 See \`config.log' for more details." >&5
5125 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5126 See \`config.log' for more details." >&2;}
5127 { (exit 1); exit 1; }; }
5131 ac_cpp='$CXXCPP $CPPFLAGS'
5132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5138 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5139 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5140 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5141 if test -n "$ac_tool_prefix"; then
5142 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5144 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5145 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5146 echo "$as_me:$LINENO: checking for $ac_word" >&5
5147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5148 if test "${ac_cv_prog_F77+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5151 if test -n "$F77"; then
5152 ac_cv_prog_F77="$F77" # Let the user override the test.
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 if test -n "$F77"; then
5172 echo "$as_me:$LINENO: result: $F77" >&5
5173 echo "${ECHO_T}$F77" >&6
5175 echo "$as_me:$LINENO: result: no" >&5
5176 echo "${ECHO_T}no" >&6
5179 test -n "$F77" && break
5182 if test -z "$F77"; then
5184 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5186 # Extract the first word of "$ac_prog", so it can be a program name with args.
5187 set dummy $ac_prog; ac_word=$2
5188 echo "$as_me:$LINENO: checking for $ac_word" >&5
5189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5190 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 if test -n "$ac_ct_F77"; then
5194 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203 ac_cv_prog_ac_ct_F77="$ac_prog"
5204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5213 if test -n "$ac_ct_F77"; then
5214 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5215 echo "${ECHO_T}$ac_ct_F77" >&6
5217 echo "$as_me:$LINENO: result: no" >&5
5218 echo "${ECHO_T}no" >&6
5221 test -n "$ac_ct_F77" && break
5228 # Provide some information about the compiler.
5229 echo "$as_me:5229:" \
5230 "checking for Fortran 77 compiler version" >&5
5231 ac_compiler=`set X $ac_compile; echo $2`
5232 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5233 (eval $ac_compiler --version </dev/null >&5) 2>&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); }
5237 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5238 (eval $ac_compiler -v </dev/null >&5) 2>&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }
5242 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5243 (eval $ac_compiler -V </dev/null >&5) 2>&5
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }
5249 # If we don't use `.F' as extension, the preprocessor is not run on the
5250 # input file. (Note that this only needs to work for GNU compilers.)
5253 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5254 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5255 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 cat >conftest.$ac_ext <<_ACEOF
5266 rm -f conftest.$ac_objext
5267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5268 (eval $ac_compile) 2>conftest.er1
5270 grep -v '^ *+' conftest.er1 >conftest.err
5272 cat conftest.err >&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } &&
5275 { ac_try='test -z "$ac_f77_werror_flag"
5276 || test ! -s conftest.err'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; } &&
5282 { ac_try='test -s conftest.$ac_objext'
5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; }; then
5290 echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5296 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5299 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5300 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5302 ac_test_FFLAGS=${FFLAGS+set}
5303 ac_save_FFLAGS=$FFLAGS
5305 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5306 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5307 if test "${ac_cv_prog_f77_g+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 cat >conftest.$ac_ext <<_ACEOF
5316 rm -f conftest.$ac_objext
5317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5318 (eval $ac_compile) 2>conftest.er1
5320 grep -v '^ *+' conftest.er1 >conftest.err
5322 cat conftest.err >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } &&
5325 { ac_try='test -z "$ac_f77_werror_flag"
5326 || test ! -s conftest.err'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; } &&
5332 { ac_try='test -s conftest.$ac_objext'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; }; then
5338 ac_cv_prog_f77_g=yes
5340 echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5348 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5349 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5350 if test "$ac_test_FFLAGS" = set; then
5351 FFLAGS=$ac_save_FFLAGS
5352 elif test $ac_cv_prog_f77_g = yes; then
5353 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5359 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5366 G77=`test $ac_compiler_gnu = yes && echo yes`
5368 ac_cpp='$CPP $CPPFLAGS'
5369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5375 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5377 # find the maximum length of command line arguments
5378 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5379 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5380 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 # On DJGPP, this test can blow up pretty badly due to problems in libc
5389 # (any single argument exceeding 2000 bytes causes a buffer overrun
5390 # during glob expansion). Even if it were fixed, the result of this
5391 # check would be larger than it should be.
5392 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5396 # Under GNU Hurd, this test is not required because there is
5397 # no limit to the length of command line arguments.
5398 # Libtool will interpret -1 as no limit whatsoever
5399 lt_cv_sys_max_cmd_len=-1;
5403 # On Win9x/ME, this test blows up -- it succeeds, but takes
5404 # about 5 minutes as the teststring grows exponentially.
5405 # Worse, since 9x/ME are not pre-emptively multitasking,
5406 # you end up with a "frozen" computer, even though with patience
5407 # the test eventually succeeds (with a max line length of 256k).
5408 # Instead, let's just punt: use the minimum linelength reported by
5409 # all of the supported platforms: 8192 (on NT/2K/XP).
5410 lt_cv_sys_max_cmd_len=8192;
5414 # On AmigaOS with pdksh, this test takes hours, literally.
5415 # So we just punt and use a minimum line length of 8192.
5416 lt_cv_sys_max_cmd_len=8192;
5419 netbsd* | freebsd* | openbsd* | darwin* )
5420 # This has been around since 386BSD, at least. Likely further.
5421 if test -x /sbin/sysctl; then
5422 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5423 elif test -x /usr/sbin/sysctl; then
5424 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5426 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5428 # And add a safety zone
5429 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5433 # If test is not a shell built-in, we'll probably end up computing a
5434 # maximum length that is only half of the actual maximum length, but
5436 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5437 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5438 = "XX$teststring") >/dev/null 2>&1 &&
5439 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5440 lt_cv_sys_max_cmd_len=$new_result &&
5441 test $i != 17 # 1/2 MB should be enough
5444 teststring=$teststring$teststring
5447 # Add a significant safety factor because C++ compilers can tack on massive
5448 # amounts of additional arguments before passing them to the linker.
5449 # It appears as though 1/2 is a usable value.
5450 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5456 if test -n $lt_cv_sys_max_cmd_len ; then
5457 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5458 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5460 echo "$as_me:$LINENO: result: none" >&5
5461 echo "${ECHO_T}none" >&6
5467 # Check for command to grab the raw symbol name followed by C symbol from nm.
5468 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5469 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5470 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 # These are sane defaults that work on at least a few old systems.
5475 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5477 # Character class describing NM global symbol codes.
5478 symcode='[BCDEGRST]'
5480 # Regexp to match symbols that can be accessed directly from C.
5481 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5483 # Transform the above into a raw symbol and a C symbol.
5484 symxfrm='\1 \2\3 \3'
5486 # Transform an extracted symbol line into a proper C declaration
5487 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5489 # Transform an extracted symbol line into symbol name and symbol address
5490 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'"
5492 # Define system-specific variables.
5497 cygwin* | mingw* | pw32*)
5498 symcode='[ABCDGISTW]'
5500 hpux*) # Its linker distinguishes data from code symbols
5501 if test "$host_cpu" = ia64; then
5502 symcode='[ABCDEGRST]'
5504 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5505 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'"
5508 symcode='[BCDEGRST]'
5511 symcode='[BCDEGQRST]'
5521 # Handle CRLF in mingw tool chain
5525 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5529 # If we're using GNU nm, then use its standard symbol codes.
5530 case `$NM -V 2>&1` in
5531 *GNU* | *'with BFD'*)
5532 symcode='[ABCDGIRSTW]' ;;
5535 # Try without a prefix undercore, then with it.
5536 for ac_symprfx in "" "_"; do
5538 # Write the raw and C identifiers.
5539 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5541 # Check to see that the pipe works correctly.
5545 cat > conftest.$ac_ext <<EOF
5550 void nm_test_func(){}
5554 int main(){nm_test_var='a';nm_test_func();return(0);}
5557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558 (eval $ac_compile) 2>&5
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }; then
5562 # Now try to grab the symbols.
5564 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5565 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } && test -s "$nlist"; then
5569 # Try sorting and uniquifying the output.
5570 if sort "$nlist" | uniq > "$nlist"T; then
5571 mv -f "$nlist"T "$nlist"
5576 # Make sure that we snagged all the symbols we need.
5577 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5578 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5579 cat <<EOF > conftest.$ac_ext
5585 # Now generate the symbol file.
5586 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5588 cat <<EOF >> conftest.$ac_ext
5589 #if defined (__STDC__) && __STDC__
5590 # define lt_ptr_t void *
5592 # define lt_ptr_t char *
5596 /* The mapping between symbol names and symbols. */
5601 lt_preloaded_symbols[] =
5604 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5605 cat <<\EOF >> conftest.$ac_ext
5613 # Now try linking the two files.
5614 mv conftest.$ac_objext conftstm.$ac_objext
5615 lt_save_LIBS="$LIBS"
5616 lt_save_CFLAGS="$CFLAGS"
5617 LIBS="conftstm.$ac_objext"
5618 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5620 (eval $ac_link) 2>&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5626 LIBS="$lt_save_LIBS"
5627 CFLAGS="$lt_save_CFLAGS"
5629 echo "cannot find nm_test_func in $nlist" >&5
5632 echo "cannot find nm_test_var in $nlist" >&5
5635 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5638 echo "$progname: failed program was:" >&5
5639 cat conftest.$ac_ext >&5
5641 rm -f conftest* conftst*
5643 # Do not use the global_symbol_pipe unless it works.
5644 if test "$pipe_works" = yes; then
5647 lt_cv_sys_global_symbol_pipe=
5653 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5654 lt_cv_sys_global_symbol_to_cdecl=
5656 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5657 echo "$as_me:$LINENO: result: failed" >&5
5658 echo "${ECHO_T}failed" >&6
5660 echo "$as_me:$LINENO: result: ok" >&5
5661 echo "${ECHO_T}ok" >&6
5664 echo "$as_me:$LINENO: checking for objdir" >&5
5665 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5666 if test "${lt_cv_objdir+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 rm -f .libs 2>/dev/null
5670 mkdir .libs 2>/dev/null
5671 if test -d .libs; then
5674 # MS-DOS does not allow filenames that begin with a dot.
5677 rmdir .libs 2>/dev/null
5679 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5680 echo "${ECHO_T}$lt_cv_objdir" >&6
5681 objdir=$lt_cv_objdir
5689 # AIX sometimes has problems with the GCC collect2 program. For some
5690 # reason, if we set the COLLECT_NAMES environment variable, the problems
5691 # vanish in a puff of smoke.
5692 if test "X${COLLECT_NAMES+set}" != Xset; then
5694 export COLLECT_NAMES
5699 # Sed substitution that helps us do robust quoting. It backslashifies
5700 # metacharacters that are still active within double-quoted strings.
5701 Xsed='sed -e s/^X//'
5702 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5704 # Same as above, but do not quote variable references.
5705 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5707 # Sed substitution to delay expansion of an escaped shell variable in a
5708 # double_quote_subst'ed string.
5709 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5711 # Sed substitution to avoid accidental globbing in evaled expressions
5712 no_glob_subst='s/\*/\\\*/g'
5718 default_ofile=libtool
5719 can_build_shared=yes
5721 # All known linkers require a `.a' archive for static linking (except M$VC,
5722 # which needs '.lib').
5724 ltmain="$ac_aux_dir/ltmain.sh"
5725 ofile="$default_ofile"
5726 with_gnu_ld="$lt_cv_prog_gnu_ld"
5728 if test -n "$ac_tool_prefix"; then
5729 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5730 set dummy ${ac_tool_prefix}ar; ac_word=$2
5731 echo "$as_me:$LINENO: checking for $ac_word" >&5
5732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5733 if test "${ac_cv_prog_AR+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 if test -n "$AR"; then
5737 ac_cv_prog_AR="$AR" # Let the user override the test.
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 test -z "$as_dir" && as_dir=.
5744 for ac_exec_ext in '' $ac_executable_extensions; do
5745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5746 ac_cv_prog_AR="${ac_tool_prefix}ar"
5747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5756 if test -n "$AR"; then
5757 echo "$as_me:$LINENO: result: $AR" >&5
5758 echo "${ECHO_T}$AR" >&6
5760 echo "$as_me:$LINENO: result: no" >&5
5761 echo "${ECHO_T}no" >&6
5765 if test -z "$ac_cv_prog_AR"; then
5767 # Extract the first word of "ar", so it can be a program name with args.
5768 set dummy ar; ac_word=$2
5769 echo "$as_me:$LINENO: checking for $ac_word" >&5
5770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5771 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 if test -n "$ac_ct_AR"; then
5775 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 test -z "$as_dir" && as_dir=.
5782 for ac_exec_ext in '' $ac_executable_extensions; do
5783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5784 ac_cv_prog_ac_ct_AR="ar"
5785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5791 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5794 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5795 if test -n "$ac_ct_AR"; then
5796 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5797 echo "${ECHO_T}$ac_ct_AR" >&6
5799 echo "$as_me:$LINENO: result: no" >&5
5800 echo "${ECHO_T}no" >&6
5808 if test -n "$ac_tool_prefix"; then
5809 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5810 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5811 echo "$as_me:$LINENO: checking for $ac_word" >&5
5812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5813 if test "${ac_cv_prog_RANLIB+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 if test -n "$RANLIB"; then
5817 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5826 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5835 RANLIB=$ac_cv_prog_RANLIB
5836 if test -n "$RANLIB"; then
5837 echo "$as_me:$LINENO: result: $RANLIB" >&5
5838 echo "${ECHO_T}$RANLIB" >&6
5840 echo "$as_me:$LINENO: result: no" >&5
5841 echo "${ECHO_T}no" >&6
5845 if test -z "$ac_cv_prog_RANLIB"; then
5846 ac_ct_RANLIB=$RANLIB
5847 # Extract the first word of "ranlib", so it can be a program name with args.
5848 set dummy ranlib; ac_word=$2
5849 echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5851 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 if test -n "$ac_ct_RANLIB"; then
5855 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864 ac_cv_prog_ac_ct_RANLIB="ranlib"
5865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5871 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5874 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5875 if test -n "$ac_ct_RANLIB"; then
5876 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5877 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5879 echo "$as_me:$LINENO: result: no" >&5
5880 echo "${ECHO_T}no" >&6
5883 RANLIB=$ac_ct_RANLIB
5885 RANLIB="$ac_cv_prog_RANLIB"
5888 if test -n "$ac_tool_prefix"; then
5889 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5890 set dummy ${ac_tool_prefix}strip; ac_word=$2
5891 echo "$as_me:$LINENO: checking for $ac_word" >&5
5892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5893 if test "${ac_cv_prog_STRIP+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 if test -n "$STRIP"; then
5897 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 test -z "$as_dir" && as_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5906 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5915 STRIP=$ac_cv_prog_STRIP
5916 if test -n "$STRIP"; then
5917 echo "$as_me:$LINENO: result: $STRIP" >&5
5918 echo "${ECHO_T}$STRIP" >&6
5920 echo "$as_me:$LINENO: result: no" >&5
5921 echo "${ECHO_T}no" >&6
5925 if test -z "$ac_cv_prog_STRIP"; then
5927 # Extract the first word of "strip", so it can be a program name with args.
5928 set dummy strip; ac_word=$2
5929 echo "$as_me:$LINENO: checking for $ac_word" >&5
5930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5931 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 if test -n "$ac_ct_STRIP"; then
5935 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944 ac_cv_prog_ac_ct_STRIP="strip"
5945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5954 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5955 if test -n "$ac_ct_STRIP"; then
5956 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5957 echo "${ECHO_T}$ac_ct_STRIP" >&6
5959 echo "$as_me:$LINENO: result: no" >&5
5960 echo "${ECHO_T}no" >&6
5965 STRIP="$ac_cv_prog_STRIP"
5970 old_CFLAGS="$CFLAGS"
5972 # Set sane defaults for various variables
5973 test -z "$AR" && AR=ar
5974 test -z "$AR_FLAGS" && AR_FLAGS=cru
5975 test -z "$AS" && AS=as
5976 test -z "$CC" && CC=cc
5977 test -z "$LTCC" && LTCC=$CC
5978 test -z "$DLLTOOL" && DLLTOOL=dlltool
5979 test -z "$LD" && LD=ld
5980 test -z "$LN_S" && LN_S="ln -s"
5981 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5982 test -z "$NM" && NM=nm
5983 test -z "$SED" && SED=sed
5984 test -z "$OBJDUMP" && OBJDUMP=objdump
5985 test -z "$RANLIB" && RANLIB=:
5986 test -z "$STRIP" && STRIP=:
5987 test -z "$ac_objext" && ac_objext=o
5989 # Determine commands to create old-style static archives.
5990 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5991 old_postinstall_cmds='chmod 644 $oldlib'
5992 old_postuninstall_cmds=
5994 if test -n "$RANLIB"; then
5997 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6000 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6003 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6006 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6008 # Only perform the check for file, if the check method requires it
6009 case $deplibs_check_method in
6011 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6012 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6013 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6014 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6022 lt_save_MAGIC_CMD="$MAGIC_CMD"
6023 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6024 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6025 for ac_dir in $ac_dummy; do
6027 test -z "$ac_dir" && ac_dir=.
6028 if test -f $ac_dir/${ac_tool_prefix}file; then
6029 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6030 if test -n "$file_magic_test_file"; then
6031 case $deplibs_check_method in
6033 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6034 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6035 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6036 $EGREP "$file_magic_regex" > /dev/null; then
6041 *** Warning: the command libtool uses to detect shared libraries,
6042 *** $file_magic_cmd, produces output that libtool cannot recognize.
6043 *** The result is that libtool may fail to recognize shared libraries
6044 *** as such. This will affect the creation of libtool libraries that
6045 *** depend on shared libraries, but programs linked with such libtool
6046 *** libraries will work regardless of this problem. Nevertheless, you
6047 *** may want to report the problem to your system manager and/or to
6048 *** bug-libtool@gnu.org
6058 MAGIC_CMD="$lt_save_MAGIC_CMD"
6063 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6064 if test -n "$MAGIC_CMD"; then
6065 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6066 echo "${ECHO_T}$MAGIC_CMD" >&6
6068 echo "$as_me:$LINENO: result: no" >&5
6069 echo "${ECHO_T}no" >&6
6072 if test -z "$lt_cv_path_MAGIC_CMD"; then
6073 if test -n "$ac_tool_prefix"; then
6074 echo "$as_me:$LINENO: checking for file" >&5
6075 echo $ECHO_N "checking for file... $ECHO_C" >&6
6076 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6084 lt_save_MAGIC_CMD="$MAGIC_CMD"
6085 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6086 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6087 for ac_dir in $ac_dummy; do
6089 test -z "$ac_dir" && ac_dir=.
6090 if test -f $ac_dir/file; then
6091 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6092 if test -n "$file_magic_test_file"; then
6093 case $deplibs_check_method in
6095 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6096 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6097 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6098 $EGREP "$file_magic_regex" > /dev/null; then
6103 *** Warning: the command libtool uses to detect shared libraries,
6104 *** $file_magic_cmd, produces output that libtool cannot recognize.
6105 *** The result is that libtool may fail to recognize shared libraries
6106 *** as such. This will affect the creation of libtool libraries that
6107 *** depend on shared libraries, but programs linked with such libtool
6108 *** libraries will work regardless of this problem. Nevertheless, you
6109 *** may want to report the problem to your system manager and/or to
6110 *** bug-libtool@gnu.org
6120 MAGIC_CMD="$lt_save_MAGIC_CMD"
6125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6126 if test -n "$MAGIC_CMD"; then
6127 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6128 echo "${ECHO_T}$MAGIC_CMD" >&6
6130 echo "$as_me:$LINENO: result: no" >&5
6131 echo "${ECHO_T}no" >&6
6146 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6147 if test "${enable_libtool_lock+set}" = set; then
6148 enableval="$enable_libtool_lock"
6151 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6154 # Check whether --with-pic or --without-pic was given.
6155 if test "${with_pic+set}" = set; then
6161 test -z "$pic_mode" && pic_mode=default
6163 # Use C for the default configuration in the libtool script
6167 ac_cpp='$CPP $CPPFLAGS'
6168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6173 # Source file extension for C test sources.
6176 # Object file extension for compiled C test sources.
6180 # Code to be used in simple compile tests
6181 lt_simple_compile_test_code="int some_variable = 0;\n"
6183 # Code to be used in simple link tests
6184 lt_simple_link_test_code='int main(){return(0);}\n'
6187 # If no C compiler was specified, use CC.
6190 # Allow CC to be a program name with arguments.
6195 # Check for any special shared library compilation flags.
6198 if test "$GCC" = no; then
6201 lt_prog_cc_shlib='-belf'
6205 if test -n "$lt_prog_cc_shlib"; then
6206 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6207 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6208 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6210 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6211 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6212 lt_cv_prog_cc_can_build_shared=no
6218 # Check to make sure the static flag actually works.
6220 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6221 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6222 if test "${lt_prog_compiler_static_works+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 lt_prog_compiler_static_works=no
6226 save_LDFLAGS="$LDFLAGS"
6227 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6228 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6229 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6230 # The compiler can only warn and ignore the option if not recognized
6231 # So say no if there are warnings
6232 if test -s conftest.err; then
6233 # Append any errors to the config.log.
6234 cat conftest.err 1>&5
6236 lt_prog_compiler_static_works=yes
6240 LDFLAGS="$save_LDFLAGS"
6243 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6244 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6246 if test x"$lt_prog_compiler_static_works" = xyes; then
6249 lt_prog_compiler_static=
6255 lt_prog_compiler_no_builtin_flag=
6257 if test "$GCC" = yes; then
6258 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6261 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6262 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6263 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 lt_cv_prog_compiler_rtti_exceptions=no
6267 ac_outfile=conftest.$ac_objext
6268 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6269 lt_compiler_flag="-fno-rtti -fno-exceptions"
6270 # Insert the option either (1) after the last *FLAGS variable, or
6271 # (2) before a word containing "conftest.", or (3) at the end.
6272 # Note that $ac_compile itself does not contain backslashes and begins
6273 # with a dollar sign (not a hyphen), so the echo should work correctly.
6274 # The option is referenced via a variable to avoid confusing sed.
6275 lt_compile=`echo "$ac_compile" | $SED \
6276 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6278 -e 's:$: $lt_compiler_flag:'`
6279 (eval echo "\"\$as_me:6279: $lt_compile\"" >&5)
6280 (eval "$lt_compile" 2>conftest.err)
6282 cat conftest.err >&5
6283 echo "$as_me:6283: \$? = $ac_status" >&5
6284 if (exit $ac_status) && test -s "$ac_outfile"; then
6285 # The compiler can only warn and ignore the option if not recognized
6286 # So say no if there are warnings
6287 if test ! -s conftest.err; then
6288 lt_cv_prog_compiler_rtti_exceptions=yes
6294 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6295 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6297 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6298 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6305 lt_prog_compiler_wl=
6306 lt_prog_compiler_pic=
6307 lt_prog_compiler_static=
6309 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6310 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6312 if test "$GCC" = yes; then
6313 lt_prog_compiler_wl='-Wl,'
6314 lt_prog_compiler_static='-static'
6318 # All AIX code is PIC.
6319 if test "$host_cpu" = ia64; then
6320 # AIX 5 now supports IA64 processor
6321 lt_prog_compiler_static='-Bstatic'
6326 # FIXME: we need at least 68020 code to build shared libraries, but
6327 # adding the `-m68020' flag to GCC prevents building anything better,
6329 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6332 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6333 # PIC is the default for these OSes.
6336 mingw* | pw32* | os2*)
6337 # This hack is so that the source file can tell whether it is being
6338 # built for inclusion in a dll (and should export symbols for example).
6339 lt_prog_compiler_pic='-DDLL_EXPORT'
6342 darwin* | rhapsody*)
6343 # PIC is the default on this platform
6344 # Common symbols not allowed in MH_DYLIB files
6345 lt_prog_compiler_pic='-fno-common'
6349 # Just because we use GCC doesn't mean we suddenly get shared libraries
6350 # on systems that don't support them.
6351 lt_prog_compiler_can_build_shared=no
6356 if test -d /usr/nec; then
6357 lt_prog_compiler_pic=-Kconform_pic
6362 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6369 lt_prog_compiler_pic='-fPIC'
6375 lt_prog_compiler_pic='-fPIC'
6379 # PORTME Check for flag to pass linker flags through the system compiler.
6382 lt_prog_compiler_wl='-Wl,'
6383 if test "$host_cpu" = ia64; then
6384 # AIX 5 now supports IA64 processor
6385 lt_prog_compiler_static='-Bstatic'
6387 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6391 # PIC is the default on this platform
6392 # Common symbols not allowed in MH_DYLIB files
6393 case "$cc_basename" in
6395 lt_prog_compiler_pic='-qnocommon'
6396 lt_prog_compiler_wl='-Wl,'
6401 mingw* | pw32* | os2*)
6402 # This hack is so that the source file can tell whether it is being
6403 # built for inclusion in a dll (and should export symbols for example).
6404 lt_prog_compiler_pic='-DDLL_EXPORT'
6407 hpux9* | hpux10* | hpux11*)
6408 lt_prog_compiler_wl='-Wl,'
6409 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6416 lt_prog_compiler_pic='+Z'
6419 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6420 lt_prog_compiler_static='${wl}-a ${wl}archive'
6423 irix5* | irix6* | nonstopux*)
6424 lt_prog_compiler_wl='-Wl,'
6425 # PIC (with -KPIC) is the default.
6426 lt_prog_compiler_static='-non_shared'
6430 lt_prog_compiler_pic='-KPIC'
6431 lt_prog_compiler_static='-Bstatic'
6437 lt_prog_compiler_wl='-Wl,'
6438 lt_prog_compiler_pic='-KPIC'
6439 lt_prog_compiler_static='-static'
6442 lt_prog_compiler_wl='-Wl,'
6443 # All Alpha code is PIC.
6444 lt_prog_compiler_static='-non_shared'
6449 osf3* | osf4* | osf5*)
6450 lt_prog_compiler_wl='-Wl,'
6451 # All OSF/1 code is PIC.
6452 lt_prog_compiler_static='-non_shared'
6456 lt_prog_compiler_pic='-Kpic'
6457 lt_prog_compiler_static='-dn'
6461 lt_prog_compiler_wl='-Wl,'
6462 lt_prog_compiler_pic='-KPIC'
6463 lt_prog_compiler_static='-Bstatic'
6467 lt_prog_compiler_wl='-Qoption ld '
6468 lt_prog_compiler_pic='-PIC'
6469 lt_prog_compiler_static='-Bstatic'
6472 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6473 lt_prog_compiler_wl='-Wl,'
6474 lt_prog_compiler_pic='-KPIC'
6475 lt_prog_compiler_static='-Bstatic'
6479 if test -d /usr/nec ;then
6480 lt_prog_compiler_pic='-Kconform_pic'
6481 lt_prog_compiler_static='-Bstatic'
6486 lt_prog_compiler_pic='-pic'
6487 lt_prog_compiler_static='-Bstatic'
6491 lt_prog_compiler_can_build_shared=no
6496 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6497 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6500 # Check to make sure the PIC flag actually works.
6502 if test -n "$lt_prog_compiler_pic"; then
6504 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6505 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6506 if test "${lt_prog_compiler_pic_works+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 lt_prog_compiler_pic_works=no
6510 ac_outfile=conftest.$ac_objext
6511 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6512 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6513 # Insert the option either (1) after the last *FLAGS variable, or
6514 # (2) before a word containing "conftest.", or (3) at the end.
6515 # Note that $ac_compile itself does not contain backslashes and begins
6516 # with a dollar sign (not a hyphen), so the echo should work correctly.
6517 # The option is referenced via a variable to avoid confusing sed.
6518 lt_compile=`echo "$ac_compile" | $SED \
6519 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6521 -e 's:$: $lt_compiler_flag:'`
6522 (eval echo "\"\$as_me:6522: $lt_compile\"" >&5)
6523 (eval "$lt_compile" 2>conftest.err)
6525 cat conftest.err >&5
6526 echo "$as_me:6526: \$? = $ac_status" >&5
6527 if (exit $ac_status) && test -s "$ac_outfile"; then
6528 # The compiler can only warn and ignore the option if not recognized
6529 # So say no if there are warnings
6530 if test ! -s conftest.err; then
6531 lt_prog_compiler_pic_works=yes
6537 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6538 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6540 if test x"$lt_prog_compiler_pic_works" = xyes; then
6541 case $lt_prog_compiler_pic in
6543 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6546 lt_prog_compiler_pic=
6547 lt_prog_compiler_can_build_shared=no
6552 # For platforms which do not support PIC, -DPIC is meaningless:
6554 lt_prog_compiler_pic=
6557 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6561 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6562 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6563 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 lt_cv_prog_compiler_c_o=no
6567 $rm -r conftest 2>/dev/null
6571 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6573 lt_compiler_flag="-o out/conftest2.$ac_objext"
6574 # Insert the option either (1) after the last *FLAGS variable, or
6575 # (2) before a word containing "conftest.", or (3) at the end.
6576 # Note that $ac_compile itself does not contain backslashes and begins
6577 # with a dollar sign (not a hyphen), so the echo should work correctly.
6578 lt_compile=`echo "$ac_compile" | $SED \
6579 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6580 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6581 -e 's:$: $lt_compiler_flag:'`
6582 (eval echo "\"\$as_me:6582: $lt_compile\"" >&5)
6583 (eval "$lt_compile" 2>out/conftest.err)
6585 cat out/conftest.err >&5
6586 echo "$as_me:6586: \$? = $ac_status" >&5
6587 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6589 # The compiler can only warn and ignore the option if not recognized
6590 # So say no if there are warnings
6591 if test ! -s out/conftest.err; then
6592 lt_cv_prog_compiler_c_o=yes
6597 # SGI C++ compiler will create directory out/ii_files/ for
6598 # template instantiation
6599 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6600 $rm out/* && rmdir out
6606 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6607 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6610 hard_links="nottested"
6611 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6612 # do not overwrite the value of need_locks provided by the user
6613 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6614 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6617 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6619 ln conftest.a conftest.b 2>&5 || hard_links=no
6620 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6621 echo "$as_me:$LINENO: result: $hard_links" >&5
6622 echo "${ECHO_T}$hard_links" >&6
6623 if test "$hard_links" = no; then
6624 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6625 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6632 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6633 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6636 allow_undefined_flag=
6637 enable_shared_with_static_runtimes=no
6639 archive_expsym_cmds=
6640 old_archive_From_new_cmds=
6641 old_archive_from_expsyms_cmds=
6642 export_dynamic_flag_spec=
6643 whole_archive_flag_spec=
6644 thread_safe_flag_spec=
6645 hardcode_libdir_flag_spec=
6646 hardcode_libdir_flag_spec_ld=
6647 hardcode_libdir_separator=
6650 hardcode_shlibpath_var=unsupported
6651 link_all_deplibs=unknown
6652 hardcode_automatic=no
6655 always_export_symbols=no
6656 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6657 # include_expsyms should be a list of space-separated symbols to be *always*
6658 # included in the symbol list
6660 # exclude_expsyms can be an extended regexp of symbols to exclude
6661 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6662 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6663 # as well as any symbol that contains `d'.
6664 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6665 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6666 # platforms (ab)use it in PIC code, but their linkers get confused if
6667 # the symbol is explicitly referenced. Since portable code cannot
6668 # rely on this symbol name, it's probably fine to never include it in
6669 # preloaded symbol tables.
6670 extract_expsyms_cmds=
6673 cygwin* | mingw* | pw32*)
6674 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6675 # When not using gcc, we currently assume that we are using
6676 # Microsoft Visual C++.
6677 if test "$GCC" != yes; then
6687 if test "$with_gnu_ld" = yes; then
6688 # If archive_cmds runs LD, not CC, wlarc should be empty
6691 # See if GNU ld supports shared libraries.
6693 aix3* | aix4* | aix5*)
6694 # On AIX/PPC, the GNU linker is very broken
6695 if test "$host_cpu" != ia64; then
6699 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6700 *** to be unable to reliably create shared libraries on AIX.
6701 *** Therefore, libtool is disabling shared libraries support. If you
6702 *** really care for shared libraries, you may want to modify your PATH
6703 *** so that a non-GNU linker is found, and then restart.
6710 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)'
6711 hardcode_libdir_flag_spec='-L$libdir'
6712 hardcode_minus_L=yes
6714 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6715 # that the semantics of dynamic libraries on AmigaOS, at least up
6716 # to version 4, is to share data among multiple programs linked
6717 # with the same dynamic library. Since this doesn't match the
6718 # behavior of shared libraries on other platforms, we can't use
6724 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6725 allow_undefined_flag=unsupported
6726 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6727 # support --undefined. This deserves some investigation. FIXME
6728 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6734 cygwin* | mingw* | pw32*)
6735 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6736 # as there is no search path for DLLs.
6737 hardcode_libdir_flag_spec='-L$libdir'
6738 allow_undefined_flag=unsupported
6739 always_export_symbols=no
6740 enable_shared_with_static_runtimes=yes
6741 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6743 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6744 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6745 # If the export-symbols file already is a .def file (1st line
6746 # is EXPORTS), use it as is; otherwise, prepend...
6747 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6748 cp $export_symbols $output_objdir/$soname.def;
6750 echo EXPORTS > $output_objdir/$soname.def;
6751 cat $export_symbols >> $output_objdir/$soname.def;
6753 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6760 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6761 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6765 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6770 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6774 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6775 *** create shared libraries on Solaris systems. Therefore, libtool
6776 *** is disabling shared libraries support. We urge you to upgrade GNU
6777 *** binutils to release 2.9.1 or newer. Another option is to modify
6778 *** your PATH or compiler configuration so that the native linker is
6779 *** used, and then restart.
6782 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6784 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6791 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6794 hardcode_shlibpath_var=no
6798 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6799 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6800 archive_cmds="$tmp_archive_cmds"
6801 supports_anon_versioning=no
6802 case `$LD -v 2>/dev/null` in
6803 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6804 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6805 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6806 *\ 2.11.*) ;; # other 2.11 versions
6807 *) supports_anon_versioning=yes ;;
6809 if test $supports_anon_versioning = yes; then
6810 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6811 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6812 $echo "local: *; };" >> $output_objdir/$libname.ver~
6813 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6815 archive_expsym_cmds="$tmp_archive_cmds"
6823 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6824 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6825 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6832 if test "$ld_shlibs" = yes; then
6833 runpath_var=LD_RUN_PATH
6834 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6835 export_dynamic_flag_spec='${wl}--export-dynamic'
6836 # ancient GNU ld didn't support --whole-archive et. al.
6837 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6838 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6840 whole_archive_flag_spec=
6844 # PORTME fill in a description of your system's linker (not GNU ld)
6847 allow_undefined_flag=unsupported
6848 always_export_symbols=yes
6849 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'
6850 # Note: this linker hardcodes the directories in LIBPATH if there
6851 # are no directories specified by -L.
6852 hardcode_minus_L=yes
6853 if test "$GCC" = yes && test -z "$link_static_flag"; then
6854 # Neither direct hardcoding nor static linking is supported with a
6856 hardcode_direct=unsupported
6861 if test "$host_cpu" = ia64; then
6862 # On IA64, the linker does run time linking by default, so we don't
6863 # have to do anything special.
6864 aix_use_runtimelinking=no
6865 exp_sym_flag='-Bexport'
6868 # If we're using GNU nm, then we don't want the "-C" option.
6869 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6870 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6871 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'
6873 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'
6875 aix_use_runtimelinking=no
6877 # Test if we are trying to use run time linking or normal
6878 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6879 # need to do runtime linking.
6880 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6881 for ld_flag in $LDFLAGS; do
6882 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6883 aix_use_runtimelinking=yes
6889 exp_sym_flag='-bexport'
6890 no_entry_flag='-bnoentry'
6893 # When large executables or shared objects are built, AIX ld can
6894 # have problems creating the table of contents. If linking a library
6895 # or program results in "error TOC overflow" add -mminimal-toc to
6896 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6897 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6901 hardcode_libdir_separator=':'
6902 link_all_deplibs=yes
6904 if test "$GCC" = yes; then
6905 case $host_os in aix4.012|aix4.012.*)
6906 # We only want to do this on AIX 4.2 and lower, the check
6907 # below for broken collect2 doesn't work under 4.3+
6908 collect2name=`${CC} -print-prog-name=collect2`
6909 if test -f "$collect2name" && \
6910 strings "$collect2name" | grep resolve_lib_name >/dev/null
6912 # We have reworked collect2
6915 # We have old collect2
6916 hardcode_direct=unsupported
6917 # It fails to find uninstalled libraries when the uninstalled
6918 # path is not listed in the libpath. Setting hardcode_minus_L
6919 # to unsupported forces relinking
6920 hardcode_minus_L=yes
6921 hardcode_libdir_flag_spec='-L$libdir'
6922 hardcode_libdir_separator=
6925 shared_flag='-shared'
6928 if test "$host_cpu" = ia64; then
6929 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6930 # chokes on -Wl,-G. The following line is correct:
6933 if test "$aix_use_runtimelinking" = yes; then
6934 shared_flag='${wl}-G'
6936 shared_flag='${wl}-bM:SRE'
6941 # It seems that -bexpall does not export symbols beginning with
6942 # underscore (_), so it is better to generate a list of symbols to export.
6943 always_export_symbols=yes
6944 if test "$aix_use_runtimelinking" = yes; then
6945 # Warning - without using the other runtime loading flags (-brtl),
6946 # -berok will link without error, but may produce a broken library.
6947 allow_undefined_flag='-berok'
6948 # Determine the default libpath from the value encoded in an empty executable.
6949 cat >conftest.$ac_ext <<_ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6964 rm -f conftest.$ac_objext conftest$ac_exeext
6965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6966 (eval $ac_link) 2>conftest.er1
6968 grep -v '^ *+' conftest.er1 >conftest.err
6970 cat conftest.err >&5
6971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972 (exit $ac_status); } &&
6973 { ac_try='test -z "$ac_c_werror_flag"
6974 || test ! -s conftest.err'
6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; } &&
6980 { ac_try='test -s conftest$ac_exeext'
6981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); }; }; then
6987 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6989 # Check for a 64-bit object if we didn't find anything.
6990 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; }
6993 echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6997 rm -f conftest.err conftest.$ac_objext \
6998 conftest$ac_exeext conftest.$ac_ext
6999 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7001 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7002 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"
7004 if test "$host_cpu" = ia64; then
7005 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7006 allow_undefined_flag="-z nodefs"
7007 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"
7009 # Determine the default libpath from the value encoded in an empty executable.
7010 cat >conftest.$ac_ext <<_ACEOF
7013 cat confdefs.h >>conftest.$ac_ext
7014 cat >>conftest.$ac_ext <<_ACEOF
7015 /* end confdefs.h. */
7025 rm -f conftest.$ac_objext conftest$ac_exeext
7026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7027 (eval $ac_link) 2>conftest.er1
7029 grep -v '^ *+' conftest.er1 >conftest.err
7031 cat conftest.err >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } &&
7034 { ac_try='test -z "$ac_c_werror_flag"
7035 || test ! -s conftest.err'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; } &&
7041 { ac_try='test -s conftest$ac_exeext'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
7048 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7050 # Check for a 64-bit object if we didn't find anything.
7051 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; }
7054 echo "$as_me: failed program was:" >&5
7055 sed 's/^/| /' conftest.$ac_ext >&5
7058 rm -f conftest.err conftest.$ac_objext \
7059 conftest$ac_exeext conftest.$ac_ext
7060 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7062 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7063 # Warning - without using the other run time loading flags,
7064 # -berok will link without error, but may produce a broken library.
7065 no_undefined_flag=' ${wl}-bernotok'
7066 allow_undefined_flag=' ${wl}-berok'
7067 # -bexpall does not export symbols beginning with underscore (_)
7068 always_export_symbols=yes
7069 # Exported symbols can be pulled into shared objects from archives
7070 whole_archive_flag_spec=' '
7071 archive_cmds_need_lc=yes
7072 # This is similar to how AIX traditionally builds it's shared libraries.
7073 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'
7079 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)'
7080 hardcode_libdir_flag_spec='-L$libdir'
7081 hardcode_minus_L=yes
7082 # see comment about different semantics on the GNU ld section
7087 export_dynamic_flag_spec=-rdynamic
7090 cygwin* | mingw* | pw32*)
7091 # When not using gcc, we currently assume that we are using
7092 # Microsoft Visual C++.
7093 # hardcode_libdir_flag_spec is actually meaningless, as there is
7094 # no search path for DLLs.
7095 hardcode_libdir_flag_spec=' '
7096 allow_undefined_flag=unsupported
7097 # Tell ltmain to make .lib files, not .a files.
7099 # Tell ltmain to make .dll files, not .so files.
7101 # FIXME: Setting linknames here is a bad hack.
7102 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7103 # The linker will automatically build a .lib file if we build a DLL.
7104 old_archive_From_new_cmds='true'
7105 # FIXME: Should let the user specify the lib program.
7106 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7107 fix_srcfile_path='`cygpath -w "$srcfile"`'
7108 enable_shared_with_static_runtimes=yes
7111 darwin* | rhapsody*)
7113 rhapsody* | darwin1.[012])
7114 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7117 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7118 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7120 case ${MACOSX_DEPLOYMENT_TARGET} in
7122 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7125 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7131 archive_cmds_need_lc=no
7133 hardcode_automatic=yes
7134 hardcode_shlibpath_var=unsupported
7135 whole_archive_flag_spec=''
7136 link_all_deplibs=yes
7137 if test "$GCC" = yes ; then
7138 output_verbose_link_cmd='echo'
7139 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7140 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7141 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7142 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}'
7143 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7145 case "$cc_basename" in
7147 output_verbose_link_cmd='echo'
7148 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7149 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7150 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7151 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7152 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7162 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7163 hardcode_libdir_flag_spec='-L$libdir'
7164 hardcode_shlibpath_var=no
7171 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7172 # support. Future versions do this automatically, but an explicit c++rt0.o
7173 # does not break anything, and helps significantly (at the cost of a little
7176 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7177 hardcode_libdir_flag_spec='-R$libdir'
7179 hardcode_shlibpath_var=no
7182 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7184 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7186 hardcode_minus_L=yes
7187 hardcode_shlibpath_var=no
7190 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7191 freebsd* | kfreebsd*-gnu)
7192 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7193 hardcode_libdir_flag_spec='-R$libdir'
7195 hardcode_shlibpath_var=no
7199 if test "$GCC" = yes; then
7200 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'
7202 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'
7204 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7205 hardcode_libdir_separator=:
7208 # hardcode_minus_L: Not really in the search PATH,
7209 # but as the default location of the library.
7210 hardcode_minus_L=yes
7211 export_dynamic_flag_spec='${wl}-E'
7215 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7218 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7221 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7227 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7230 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7234 if test "$with_gnu_ld" = no; then
7237 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7238 hardcode_libdir_flag_spec_ld='+b $libdir'
7239 hardcode_libdir_separator=:
7241 hardcode_shlibpath_var=no
7244 hardcode_libdir_flag_spec='-L$libdir'
7246 hardcode_shlibpath_var=no
7248 # hardcode_minus_L: Not really in the search PATH,
7249 # but as the default location of the library.
7250 hardcode_minus_L=yes
7253 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7254 hardcode_libdir_separator=:
7256 export_dynamic_flag_spec='${wl}-E'
7258 # hardcode_minus_L: Not really in the search PATH,
7259 # but as the default location of the library.
7260 hardcode_minus_L=yes
7266 irix5* | irix6* | nonstopux*)
7267 if test "$GCC" = yes; then
7268 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'
7270 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'
7271 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7273 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7274 hardcode_libdir_separator=:
7275 link_all_deplibs=yes
7279 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7280 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7282 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7284 hardcode_libdir_flag_spec='-R$libdir'
7286 hardcode_shlibpath_var=no
7290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7293 hardcode_libdir_separator=:
7294 hardcode_shlibpath_var=no
7299 hardcode_shlibpath_var=no
7300 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7301 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7302 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7303 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7304 export_dynamic_flag_spec='${wl}-E'
7307 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7308 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7309 hardcode_libdir_flag_spec='-R$libdir'
7312 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7313 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7320 hardcode_libdir_flag_spec='-L$libdir'
7321 hardcode_minus_L=yes
7322 allow_undefined_flag=unsupported
7323 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'
7324 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7328 if test "$GCC" = yes; then
7329 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7330 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'
7332 allow_undefined_flag=' -expect_unresolved \*'
7333 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'
7335 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7336 hardcode_libdir_separator=:
7339 osf4* | osf5*) # as osf3* with the addition of -msym flag
7340 if test "$GCC" = yes; then
7341 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7342 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'
7343 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7345 allow_undefined_flag=' -expect_unresolved \*'
7346 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'
7347 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7348 $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'
7350 # Both c and cxx compiler support -rpath directly
7351 hardcode_libdir_flag_spec='-rpath $libdir'
7353 hardcode_libdir_separator=:
7357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7358 hardcode_shlibpath_var=no
7359 export_dynamic_flag_spec='${wl}-Bexport'
7360 runpath_var=LD_RUN_PATH
7361 hardcode_runpath_var=yes
7365 no_undefined_flag=' -z text'
7366 if test "$GCC" = yes; then
7367 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7368 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7369 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7371 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7372 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7373 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7375 hardcode_libdir_flag_spec='-R$libdir'
7376 hardcode_shlibpath_var=no
7378 solaris2.[0-5] | solaris2.[0-5].*) ;;
7379 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7380 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7382 link_all_deplibs=yes
7386 if test "x$host_vendor" = xsequent; then
7387 # Use $CC to link under sequent, because it throws in some extra .o
7388 # files that make .init and .fini sections work.
7389 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7391 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7393 hardcode_libdir_flag_spec='-L$libdir'
7395 hardcode_minus_L=yes
7396 hardcode_shlibpath_var=no
7400 case $host_vendor in
7402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7403 hardcode_direct=yes # is this really true???
7406 ## LD is ld it makes a PLAMLIB
7407 ## CC just makes a GrossModule.
7408 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7409 reload_cmds='$CC -r -o $output$reload_objs'
7413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7414 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7417 runpath_var='LD_RUN_PATH'
7418 hardcode_shlibpath_var=no
7422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7423 hardcode_shlibpath_var=no
7424 export_dynamic_flag_spec='-Bexport'
7428 if test -d /usr/nec; then
7429 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7430 hardcode_shlibpath_var=no
7431 runpath_var=LD_RUN_PATH
7432 hardcode_runpath_var=yes
7438 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7441 hardcode_shlibpath_var=no
7442 hardcode_runpath_var=yes
7443 runpath_var=LD_RUN_PATH
7446 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7447 no_undefined_flag='${wl}-z ${wl}text'
7448 if test "$GCC" = yes; then
7449 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7451 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7453 runpath_var='LD_RUN_PATH'
7454 hardcode_shlibpath_var=no
7458 no_undefined_flag=' -z text'
7459 # $CC -shared without GNU ld will not create a library from C++
7460 # object files and a static libstdc++, better avoid it by now
7461 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7462 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7463 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7464 hardcode_libdir_flag_spec=
7465 hardcode_shlibpath_var=no
7466 runpath_var='LD_RUN_PATH'
7470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7471 hardcode_libdir_flag_spec='-L$libdir'
7472 hardcode_shlibpath_var=no
7481 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7482 echo "${ECHO_T}$ld_shlibs" >&6
7483 test "$ld_shlibs" = no && can_build_shared=no
7485 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7486 if test "$GCC" = yes; then
7487 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7491 # Do we need to explicitly link libc?
7493 case "x$archive_cmds_need_lc" in
7495 # Assume -lc should be added
7496 archive_cmds_need_lc=yes
7498 if test "$enable_shared" = yes && test "$GCC" = yes; then
7499 case $archive_cmds in
7501 # FIXME: we may have to deal with multi-command sequences.
7504 # Test whether the compiler implicitly links with -lc since on some
7505 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7506 # to ld, don't add -lc before -lgcc.
7507 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7508 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7510 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7513 (eval $ac_compile) 2>&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } 2>conftest.err; then
7519 libobjs=conftest.$ac_objext
7521 wl=$lt_prog_compiler_wl
7527 lt_save_allow_undefined_flag=$allow_undefined_flag
7528 allow_undefined_flag=
7529 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7530 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); }
7535 archive_cmds_need_lc=no
7537 archive_cmds_need_lc=yes
7539 allow_undefined_flag=$lt_save_allow_undefined_flag
7541 cat conftest.err 1>&5
7544 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7545 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7552 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7553 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7555 libname_spec='lib$name'
7563 shlibpath_overrides_runpath=unknown
7565 dynamic_linker="$host_os ld.so"
7566 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7567 if test "$GCC" = yes; then
7568 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7569 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7570 # if the path contains ";" then we assume it to be the separator
7571 # otherwise default to the standard path separator (i.e. ":") - it is
7572 # assumed that no part of a normal pathname contains ";" but that should
7573 # okay in the real world where ";" in dirpaths is itself problematic.
7574 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7576 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7579 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7581 need_lib_prefix=unknown
7582 hardcode_into_libs=no
7584 # when you set need_version to no, make sure it does not cause -set_version
7585 # flags to be left without arguments
7586 need_version=unknown
7591 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7592 shlibpath_var=LIBPATH
7594 # AIX 3 has no versioning support, so we append a major version to the name.
7595 soname_spec='${libname}${release}${shared_ext}$major'
7602 hardcode_into_libs=yes
7603 if test "$host_cpu" = ia64; then
7604 # AIX 5 supports IA64
7605 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7606 shlibpath_var=LD_LIBRARY_PATH
7608 # With GCC up to 2.95.x, collect2 would create an import file
7609 # for dependence libraries. The import file would start with
7610 # the line `#! .'. This would cause the generated library to
7611 # depend on `.', always an invalid library. This was fixed in
7612 # development snapshots of GCC prior to 3.0.
7614 aix4 | aix4.[01] | aix4.[01].*)
7615 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7617 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7624 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7625 # soname into executable. Probably we can add versioning support to
7626 # collect2, so additional links can be useful in future.
7627 if test "$aix_use_runtimelinking" = yes; then
7628 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7629 # instead of lib<name>.a to let people know that these are not
7630 # typical AIX shared libraries.
7631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7633 # We preserve .a as extension for shared libraries through AIX4.2
7634 # and later when we are not doing run time linking.
7635 library_names_spec='${libname}${release}.a $libname.a'
7636 soname_spec='${libname}${release}${shared_ext}$major'
7638 shlibpath_var=LIBPATH
7643 library_names_spec='$libname.ixlibrary $libname.a'
7644 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7645 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'
7649 library_names_spec='${libname}${shared_ext}'
7650 dynamic_linker="$host_os ld.so"
7651 shlibpath_var=LIBRARY_PATH
7657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7658 soname_spec='${libname}${release}${shared_ext}$major'
7659 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7660 shlibpath_var=LD_LIBRARY_PATH
7661 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7662 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7663 # the default ld.so.conf also contains /usr/contrib/lib and
7664 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7665 # libtool to hard-code these into programs
7668 cygwin* | mingw* | pw32*)
7669 version_type=windows
7674 case $GCC,$host_os in
7675 yes,cygwin* | yes,mingw* | yes,pw32*)
7676 library_names_spec='$libname.dll.a'
7677 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7678 postinstall_cmds='base_file=`basename \${file}`~
7679 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7680 dldir=$destdir/`dirname \$dlpath`~
7681 test -d \$dldir || mkdir -p \$dldir~
7682 $install_prog $dir/$dlname \$dldir/$dlname'
7683 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7684 dlpath=$dir/\$dldll~
7686 shlibpath_overrides_runpath=yes
7690 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7691 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7692 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7695 # MinGW DLLs use traditional 'lib' prefix
7696 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7697 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7698 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7699 # It is most probably a Windows format PATH printed by
7700 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7701 # path with ; separators, and with drive letters. We can handle the
7702 # drive letters (cygwin fileutils understands them), so leave them,
7703 # especially as we might pass files found there to a mingw objdump,
7704 # which wouldn't understand a cygwinified path. Ahh.
7705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7707 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7711 # pw32 DLLs use 'pw' prefix rather than 'lib'
7712 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7718 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7721 dynamic_linker='Win32 ld.exe'
7722 # FIXME: first we should search . and the directory the executable is in
7726 darwin* | rhapsody*)
7727 dynamic_linker="$host_os dyld"
7731 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7732 soname_spec='${libname}${release}${major}$shared_ext'
7733 shlibpath_overrides_runpath=yes
7734 shlibpath_var=DYLD_LIBRARY_PATH
7735 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7736 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7737 if test "$GCC" = yes; then
7738 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"`
7740 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7742 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7750 soname_spec='${libname}${release}${shared_ext}$major'
7751 shlibpath_var=LD_LIBRARY_PATH
7762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7763 soname_spec='${libname}${release}${shared_ext}$major'
7764 shlibpath_var=LD_LIBRARY_PATH
7765 shlibpath_overrides_runpath=no
7766 hardcode_into_libs=yes
7767 dynamic_linker='GNU ld.so'
7771 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7772 version_type=freebsd-$objformat
7773 case $version_type in
7775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7780 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7784 shlibpath_var=LD_LIBRARY_PATH
7787 shlibpath_overrides_runpath=yes
7789 freebsd3.01* | freebsdelf3.01*)
7790 shlibpath_overrides_runpath=yes
7791 hardcode_into_libs=yes
7794 shlibpath_overrides_runpath=no
7795 hardcode_into_libs=yes
7804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7805 soname_spec='${libname}${release}${shared_ext}$major'
7806 shlibpath_var=LD_LIBRARY_PATH
7807 hardcode_into_libs=yes
7810 hpux9* | hpux10* | hpux11*)
7811 # Give a soname corresponding to the major version so that dld.sl refuses to
7812 # link against other versions.
7819 hardcode_into_libs=yes
7820 dynamic_linker="$host_os dld.so"
7821 shlibpath_var=LD_LIBRARY_PATH
7822 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7824 soname_spec='${libname}${release}${shared_ext}$major'
7825 if test "X$HPUX_IA64_MODE" = X32; then
7826 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7828 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7830 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7834 hardcode_into_libs=yes
7835 dynamic_linker="$host_os dld.sl"
7836 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7837 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7839 soname_spec='${libname}${release}${shared_ext}$major'
7840 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7841 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7845 dynamic_linker="$host_os dld.sl"
7846 shlibpath_var=SHLIB_PATH
7847 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7849 soname_spec='${libname}${release}${shared_ext}$major'
7852 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7853 postinstall_cmds='chmod 555 $lib'
7856 irix5* | irix6* | nonstopux*)
7858 nonstopux*) version_type=nonstopux ;;
7860 if test "$lt_cv_prog_gnu_ld" = yes; then
7868 soname_spec='${libname}${release}${shared_ext}$major'
7869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7871 irix5* | nonstopux*)
7875 case $LD in # libtool.m4 will add one of these switches to LD
7876 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7877 libsuff= shlibsuff= libmagic=32-bit;;
7878 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7879 libsuff=32 shlibsuff=N32 libmagic=N32;;
7880 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7881 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7882 *) libsuff= shlibsuff= libmagic=never-match;;
7886 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7887 shlibpath_overrides_runpath=no
7888 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7889 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7890 hardcode_into_libs=yes
7893 # No shared lib support for Linux oldld, aout, or coff.
7894 linux*oldld* | linux*aout* | linux*coff*)
7898 # This must be Linux ELF.
7903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7904 soname_spec='${libname}${release}${shared_ext}$major'
7905 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7906 shlibpath_var=LD_LIBRARY_PATH
7907 shlibpath_overrides_runpath=no
7908 # This implies no fast_install, which is unacceptable.
7909 # Some rework will be needed to allow for fast_install
7910 # before this can be enabled.
7911 hardcode_into_libs=yes
7913 # Append ld.so.conf contents to the search path
7914 if test -f /etc/ld.so.conf; then
7915 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7916 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7919 # We used to test for /lib/ld.so.1 and disable shared libraries on
7920 # powerpc, because MkLinux only supported shared libraries with the
7921 # GNU dynamic linker. Since this was broken with cross compilers,
7922 # most powerpc-linux boxes support dynamic linking these days and
7923 # people can always --disable-shared, the test was removed, and we
7924 # assume the GNU/Linux dynamic linker is in use.
7925 dynamic_linker='GNU/Linux ld.so'
7932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7933 soname_spec='${libname}${release}${shared_ext}$major'
7934 shlibpath_var=LD_LIBRARY_PATH
7935 shlibpath_overrides_runpath=no
7936 hardcode_into_libs=yes
7937 dynamic_linker='GNU ld.so'
7944 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7947 dynamic_linker='NetBSD (a.out) ld.so'
7949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7950 soname_spec='${libname}${release}${shared_ext}$major'
7951 dynamic_linker='NetBSD ld.elf_so'
7953 shlibpath_var=LD_LIBRARY_PATH
7954 shlibpath_overrides_runpath=yes
7955 hardcode_into_libs=yes
7960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7961 shlibpath_var=LD_LIBRARY_PATH
7962 shlibpath_overrides_runpath=yes
7969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7970 soname_spec='${libname}${release}${shared_ext}$major'
7971 shlibpath_var=LD_LIBRARY_PATH
7972 shlibpath_overrides_runpath=yes
7979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7981 shlibpath_var=LD_LIBRARY_PATH
7982 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7984 openbsd2.[89] | openbsd2.[89].*)
7985 shlibpath_overrides_runpath=no
7988 shlibpath_overrides_runpath=yes
7992 shlibpath_overrides_runpath=yes
7997 libname_spec='$name'
8000 library_names_spec='$libname${shared_ext} $libname.a'
8001 dynamic_linker='OS/2 ld.exe'
8002 shlibpath_var=LIBPATH
8005 osf3* | osf4* | osf5*)
8009 soname_spec='${libname}${release}${shared_ext}$major'
8010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8011 shlibpath_var=LD_LIBRARY_PATH
8012 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8013 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8018 soname_spec='${libname}${release}${shared_ext}$major'
8019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8020 shlibpath_var=LD_LIBRARY_PATH
8027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8028 soname_spec='${libname}${release}${shared_ext}$major'
8029 shlibpath_var=LD_LIBRARY_PATH
8030 shlibpath_overrides_runpath=yes
8031 hardcode_into_libs=yes
8032 # ldd complains unless libraries are executable
8033 postinstall_cmds='chmod +x $lib'
8038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8039 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8040 shlibpath_var=LD_LIBRARY_PATH
8041 shlibpath_overrides_runpath=yes
8042 if test "$with_gnu_ld" = yes; then
8048 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8051 soname_spec='${libname}${release}${shared_ext}$major'
8052 shlibpath_var=LD_LIBRARY_PATH
8053 case $host_vendor in
8055 shlibpath_overrides_runpath=no
8057 export_dynamic_flag_spec='${wl}-Blargedynsym'
8058 runpath_var=LD_RUN_PATH
8066 shlibpath_overrides_runpath=no
8067 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8073 if test -d /usr/nec ;then
8075 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8076 soname_spec='$libname${shared_ext}.$major'
8077 shlibpath_var=LD_LIBRARY_PATH
8083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8084 soname_spec='${libname}${release}${shared_ext}$major'
8085 shlibpath_var=LD_LIBRARY_PATH
8092 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8093 echo "${ECHO_T}$dynamic_linker" >&6
8094 test "$dynamic_linker" = no && can_build_shared=no
8096 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8097 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8099 if test -n "$hardcode_libdir_flag_spec" || \
8100 test -n "$runpath_var" || \
8101 test "X$hardcode_automatic" = "Xyes" ; then
8103 # We can hardcode non-existant directories.
8104 if test "$hardcode_direct" != no &&
8105 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8106 # have to relink, otherwise we might link with an installed library
8107 # when we should be linking with a yet-to-be-installed one
8108 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8109 test "$hardcode_minus_L" != no; then
8110 # Linking always hardcodes the temporary library directory.
8111 hardcode_action=relink
8113 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8114 hardcode_action=immediate
8117 # We cannot hardcode anything, or else we can only hardcode existing
8119 hardcode_action=unsupported
8121 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8122 echo "${ECHO_T}$hardcode_action" >&6
8124 if test "$hardcode_action" = relink; then
8125 # Fast installation is not supported
8126 enable_fast_install=no
8127 elif test "$shlibpath_overrides_runpath" = yes ||
8128 test "$enable_shared" = no; then
8129 # Fast installation is not necessary
8130 enable_fast_install=needless
8135 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8136 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8137 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8138 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8139 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8140 echo "$as_me:$LINENO: result: yes" >&5
8141 echo "${ECHO_T}yes" >&6
8143 # FIXME - insert some real tests, host_os isn't really good enough
8146 if test -n "$STRIP" ; then
8147 striplib="$STRIP -x"
8148 echo "$as_me:$LINENO: result: yes" >&5
8149 echo "${ECHO_T}yes" >&6
8151 echo "$as_me:$LINENO: result: no" >&5
8152 echo "${ECHO_T}no" >&6
8156 echo "$as_me:$LINENO: result: no" >&5
8157 echo "${ECHO_T}no" >&6
8162 if test "x$enable_dlopen" != xyes; then
8163 enable_dlopen=unknown
8164 enable_dlopen_self=unknown
8165 enable_dlopen_self_static=unknown
8172 lt_cv_dlopen="load_add_on"
8174 lt_cv_dlopen_self=yes
8178 lt_cv_dlopen="LoadLibrary"
8183 lt_cv_dlopen="dlopen"
8188 # if libdl is installed we need to link against it
8189 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8190 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8191 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8194 ac_check_lib_save_LIBS=$LIBS
8196 cat >conftest.$ac_ext <<_ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h. */
8203 /* Override any gcc2 internal prototype to avoid an error. */
8207 /* We use char because int might match the return type of a gcc2
8208 builtin and then its argument prototype would still apply. */
8218 rm -f conftest.$ac_objext conftest$ac_exeext
8219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8220 (eval $ac_link) 2>conftest.er1
8222 grep -v '^ *+' conftest.er1 >conftest.err
8224 cat conftest.err >&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); } &&
8227 { ac_try='test -z "$ac_c_werror_flag"
8228 || test ! -s conftest.err'
8229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; } &&
8234 { ac_try='test -s conftest$ac_exeext'
8235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; }; then
8240 ac_cv_lib_dl_dlopen=yes
8242 echo "$as_me: failed program was:" >&5
8243 sed 's/^/| /' conftest.$ac_ext >&5
8245 ac_cv_lib_dl_dlopen=no
8247 rm -f conftest.err conftest.$ac_objext \
8248 conftest$ac_exeext conftest.$ac_ext
8249 LIBS=$ac_check_lib_save_LIBS
8251 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8252 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8253 if test $ac_cv_lib_dl_dlopen = yes; then
8254 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8259 lt_cv_dlopen_self=yes
8266 echo "$as_me:$LINENO: checking for shl_load" >&5
8267 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8268 if test "${ac_cv_func_shl_load+set}" = set; then
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
8271 cat >conftest.$ac_ext <<_ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8277 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8279 #define shl_load innocuous_shl_load
8281 /* System header to define __stub macros and hopefully few prototypes,
8282 which can conflict with char shl_load (); below.
8283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8284 <limits.h> exists even on freestanding compilers. */
8287 # include <limits.h>
8289 # include <assert.h>
8294 /* Override any gcc2 internal prototype to avoid an error. */
8299 /* We use char because int might match the return type of a gcc2
8300 builtin and then its argument prototype would still apply. */
8302 /* The GNU C library defines this for functions which it implements
8303 to always fail with ENOSYS. Some functions are actually named
8304 something starting with __ and the normal name is an alias. */
8305 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8308 char (*f) () = shl_load;
8317 return f != shl_load;
8322 rm -f conftest.$ac_objext conftest$ac_exeext
8323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8324 (eval $ac_link) 2>conftest.er1
8326 grep -v '^ *+' conftest.er1 >conftest.err
8328 cat conftest.err >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); } &&
8331 { ac_try='test -z "$ac_c_werror_flag"
8332 || test ! -s conftest.err'
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; } &&
8338 { ac_try='test -s conftest$ac_exeext'
8339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; }; then
8344 ac_cv_func_shl_load=yes
8346 echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8349 ac_cv_func_shl_load=no
8351 rm -f conftest.err conftest.$ac_objext \
8352 conftest$ac_exeext conftest.$ac_ext
8354 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8355 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8356 if test $ac_cv_func_shl_load = yes; then
8357 lt_cv_dlopen="shl_load"
8359 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8360 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8361 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
8364 ac_check_lib_save_LIBS=$LIBS
8366 cat >conftest.$ac_ext <<_ACEOF
8369 cat confdefs.h >>conftest.$ac_ext
8370 cat >>conftest.$ac_ext <<_ACEOF
8371 /* end confdefs.h. */
8373 /* Override any gcc2 internal prototype to avoid an error. */
8377 /* We use char because int might match the return type of a gcc2
8378 builtin and then its argument prototype would still apply. */
8388 rm -f conftest.$ac_objext conftest$ac_exeext
8389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8390 (eval $ac_link) 2>conftest.er1
8392 grep -v '^ *+' conftest.er1 >conftest.err
8394 cat conftest.err >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } &&
8397 { ac_try='test -z "$ac_c_werror_flag"
8398 || test ! -s conftest.err'
8399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; } &&
8404 { ac_try='test -s conftest$ac_exeext'
8405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; }; then
8410 ac_cv_lib_dld_shl_load=yes
8412 echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8415 ac_cv_lib_dld_shl_load=no
8417 rm -f conftest.err conftest.$ac_objext \
8418 conftest$ac_exeext conftest.$ac_ext
8419 LIBS=$ac_check_lib_save_LIBS
8421 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8422 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8423 if test $ac_cv_lib_dld_shl_load = yes; then
8424 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8426 echo "$as_me:$LINENO: checking for dlopen" >&5
8427 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8428 if test "${ac_cv_func_dlopen+set}" = set; then
8429 echo $ECHO_N "(cached) $ECHO_C" >&6
8431 cat >conftest.$ac_ext <<_ACEOF
8434 cat confdefs.h >>conftest.$ac_ext
8435 cat >>conftest.$ac_ext <<_ACEOF
8436 /* end confdefs.h. */
8437 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8439 #define dlopen innocuous_dlopen
8441 /* System header to define __stub macros and hopefully few prototypes,
8442 which can conflict with char dlopen (); below.
8443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8444 <limits.h> exists even on freestanding compilers. */
8447 # include <limits.h>
8449 # include <assert.h>
8454 /* Override any gcc2 internal prototype to avoid an error. */
8459 /* We use char because int might match the return type of a gcc2
8460 builtin and then its argument prototype would still apply. */
8462 /* The GNU C library defines this for functions which it implements
8463 to always fail with ENOSYS. Some functions are actually named
8464 something starting with __ and the normal name is an alias. */
8465 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8468 char (*f) () = dlopen;
8482 rm -f conftest.$ac_objext conftest$ac_exeext
8483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8484 (eval $ac_link) 2>conftest.er1
8486 grep -v '^ *+' conftest.er1 >conftest.err
8488 cat conftest.err >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } &&
8491 { ac_try='test -z "$ac_c_werror_flag"
8492 || test ! -s conftest.err'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; } &&
8498 { ac_try='test -s conftest$ac_exeext'
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; }; then
8504 ac_cv_func_dlopen=yes
8506 echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8509 ac_cv_func_dlopen=no
8511 rm -f conftest.err conftest.$ac_objext \
8512 conftest$ac_exeext conftest.$ac_ext
8514 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8515 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8516 if test $ac_cv_func_dlopen = yes; then
8517 lt_cv_dlopen="dlopen"
8519 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8520 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8521 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8524 ac_check_lib_save_LIBS=$LIBS
8526 cat >conftest.$ac_ext <<_ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8533 /* Override any gcc2 internal prototype to avoid an error. */
8537 /* We use char because int might match the return type of a gcc2
8538 builtin and then its argument prototype would still apply. */
8548 rm -f conftest.$ac_objext conftest$ac_exeext
8549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8550 (eval $ac_link) 2>conftest.er1
8552 grep -v '^ *+' conftest.er1 >conftest.err
8554 cat conftest.err >&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } &&
8557 { ac_try='test -z "$ac_c_werror_flag"
8558 || test ! -s conftest.err'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; } &&
8564 { ac_try='test -s conftest$ac_exeext'
8565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); }; }; then
8570 ac_cv_lib_dl_dlopen=yes
8572 echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8575 ac_cv_lib_dl_dlopen=no
8577 rm -f conftest.err conftest.$ac_objext \
8578 conftest$ac_exeext conftest.$ac_ext
8579 LIBS=$ac_check_lib_save_LIBS
8581 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8582 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8583 if test $ac_cv_lib_dl_dlopen = yes; then
8584 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8586 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8587 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8588 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8591 ac_check_lib_save_LIBS=$LIBS
8593 cat >conftest.$ac_ext <<_ACEOF
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h. */
8600 /* Override any gcc2 internal prototype to avoid an error. */
8604 /* We use char because int might match the return type of a gcc2
8605 builtin and then its argument prototype would still apply. */
8615 rm -f conftest.$ac_objext conftest$ac_exeext
8616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8617 (eval $ac_link) 2>conftest.er1
8619 grep -v '^ *+' conftest.er1 >conftest.err
8621 cat conftest.err >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } &&
8624 { ac_try='test -z "$ac_c_werror_flag"
8625 || test ! -s conftest.err'
8626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; } &&
8631 { ac_try='test -s conftest$ac_exeext'
8632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; }; then
8637 ac_cv_lib_svld_dlopen=yes
8639 echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.$ac_ext >&5
8642 ac_cv_lib_svld_dlopen=no
8644 rm -f conftest.err conftest.$ac_objext \
8645 conftest$ac_exeext conftest.$ac_ext
8646 LIBS=$ac_check_lib_save_LIBS
8648 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8649 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8650 if test $ac_cv_lib_svld_dlopen = yes; then
8651 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8653 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8654 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8655 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8656 echo $ECHO_N "(cached) $ECHO_C" >&6
8658 ac_check_lib_save_LIBS=$LIBS
8660 cat >conftest.$ac_ext <<_ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h. */
8667 /* Override any gcc2 internal prototype to avoid an error. */
8671 /* We use char because int might match the return type of a gcc2
8672 builtin and then its argument prototype would still apply. */
8682 rm -f conftest.$ac_objext conftest$ac_exeext
8683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8684 (eval $ac_link) 2>conftest.er1
8686 grep -v '^ *+' conftest.er1 >conftest.err
8688 cat conftest.err >&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); } &&
8691 { ac_try='test -z "$ac_c_werror_flag"
8692 || test ! -s conftest.err'
8693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); }; } &&
8698 { ac_try='test -s conftest$ac_exeext'
8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; }; then
8704 ac_cv_lib_dld_dld_link=yes
8706 echo "$as_me: failed program was:" >&5
8707 sed 's/^/| /' conftest.$ac_ext >&5
8709 ac_cv_lib_dld_dld_link=no
8711 rm -f conftest.err conftest.$ac_objext \
8712 conftest$ac_exeext conftest.$ac_ext
8713 LIBS=$ac_check_lib_save_LIBS
8715 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8716 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8717 if test $ac_cv_lib_dld_dld_link = yes; then
8718 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8739 if test "x$lt_cv_dlopen" != xno; then
8745 case $lt_cv_dlopen in
8747 save_CPPFLAGS="$CPPFLAGS"
8748 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8750 save_LDFLAGS="$LDFLAGS"
8751 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8754 LIBS="$lt_cv_dlopen_libs $LIBS"
8756 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8757 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8758 if test "${lt_cv_dlopen_self+set}" = set; then
8759 echo $ECHO_N "(cached) $ECHO_C" >&6
8761 if test "$cross_compiling" = yes; then :
8762 lt_cv_dlopen_self=cross
8764 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8765 lt_status=$lt_dlunknown
8766 cat > conftest.$ac_ext <<EOF
8767 #line 8767 "configure"
8768 #include "confdefs.h"
8777 # define LT_DLGLOBAL RTLD_GLOBAL
8780 # define LT_DLGLOBAL DL_GLOBAL
8782 # define LT_DLGLOBAL 0
8786 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8787 find out it does not work in some platform. */
8788 #ifndef LT_DLLAZY_OR_NOW
8790 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8793 # define LT_DLLAZY_OR_NOW DL_LAZY
8796 # define LT_DLLAZY_OR_NOW RTLD_NOW
8799 # define LT_DLLAZY_OR_NOW DL_NOW
8801 # define LT_DLLAZY_OR_NOW 0
8809 extern "C" void exit (int);
8812 void fnord() { int i=42;}
8815 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8816 int status = $lt_dlunknown;
8820 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8821 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8822 /* dlclose (self); */
8828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8829 (eval $ac_link) 2>&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8833 (./conftest; exit; ) 2>/dev/null
8836 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8837 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8838 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8841 # compilation failed
8842 lt_cv_dlopen_self=no
8849 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8850 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8852 if test "x$lt_cv_dlopen_self" = xyes; then
8853 LDFLAGS="$LDFLAGS $link_static_flag"
8854 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8855 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8856 if test "${lt_cv_dlopen_self_static+set}" = set; then
8857 echo $ECHO_N "(cached) $ECHO_C" >&6
8859 if test "$cross_compiling" = yes; then :
8860 lt_cv_dlopen_self_static=cross
8862 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8863 lt_status=$lt_dlunknown
8864 cat > conftest.$ac_ext <<EOF
8865 #line 8865 "configure"
8866 #include "confdefs.h"
8875 # define LT_DLGLOBAL RTLD_GLOBAL
8878 # define LT_DLGLOBAL DL_GLOBAL
8880 # define LT_DLGLOBAL 0
8884 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8885 find out it does not work in some platform. */
8886 #ifndef LT_DLLAZY_OR_NOW
8888 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8891 # define LT_DLLAZY_OR_NOW DL_LAZY
8894 # define LT_DLLAZY_OR_NOW RTLD_NOW
8897 # define LT_DLLAZY_OR_NOW DL_NOW
8899 # define LT_DLLAZY_OR_NOW 0
8907 extern "C" void exit (int);
8910 void fnord() { int i=42;}
8913 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8914 int status = $lt_dlunknown;
8918 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8919 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8920 /* dlclose (self); */
8926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8927 (eval $ac_link) 2>&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8931 (./conftest; exit; ) 2>/dev/null
8934 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8935 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8936 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8939 # compilation failed
8940 lt_cv_dlopen_self_static=no
8947 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8948 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8951 CPPFLAGS="$save_CPPFLAGS"
8952 LDFLAGS="$save_LDFLAGS"
8957 case $lt_cv_dlopen_self in
8958 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8959 *) enable_dlopen_self=unknown ;;
8962 case $lt_cv_dlopen_self_static in
8963 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8964 *) enable_dlopen_self_static=unknown ;;
8969 # Report which librarie types wil actually be built
8970 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8971 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8972 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8973 echo "${ECHO_T}$can_build_shared" >&6
8975 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8976 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8977 test "$can_build_shared" = "no" && enable_shared=no
8979 # On AIX, shared libraries and static libraries use the same namespace, and
8980 # are all built from PIC.
8983 test "$enable_shared" = yes && enable_static=no
8984 if test -n "$RANLIB"; then
8985 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8986 postinstall_cmds='$RANLIB $lib'
8991 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8992 test "$enable_shared" = yes && enable_static=no
8996 echo "$as_me:$LINENO: result: $enable_shared" >&5
8997 echo "${ECHO_T}$enable_shared" >&6
8999 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9000 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9001 # Make sure either enable_shared or enable_static is yes.
9002 test "$enable_shared" = yes || enable_static=yes
9003 echo "$as_me:$LINENO: result: $enable_static" >&5
9004 echo "${ECHO_T}$enable_static" >&6
9006 # The else clause should only fire when bootstrapping the
9007 # libtool distribution, otherwise you forgot to ship ltmain.sh
9008 # with your package, and you will get complaints that there are
9009 # no rules to generate ltmain.sh.
9010 if test -f "$ltmain"; then
9011 # See if we are running on zsh, and set the options which allow our commands through
9012 # without removal of \ escapes.
9013 if test -n "${ZSH_VERSION+set}" ; then
9014 setopt NO_GLOB_SUBST
9016 # Now quote all the things that may contain metacharacters while being
9017 # careful not to overquote the AC_SUBSTed values. We take copies of the
9018 # variables and quote the copies for generation of the libtool script.
9019 for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
9021 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9022 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9023 deplibs_check_method reload_flag reload_cmds need_locks \
9024 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9025 lt_cv_sys_global_symbol_to_c_name_address \
9026 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9027 old_postinstall_cmds old_postuninstall_cmds \
9031 lt_prog_compiler_wl \
9032 lt_prog_compiler_pic \
9033 lt_prog_compiler_static \
9034 lt_prog_compiler_no_builtin_flag \
9035 export_dynamic_flag_spec \
9036 thread_safe_flag_spec \
9037 whole_archive_flag_spec \
9038 enable_shared_with_static_runtimes \
9040 old_archive_from_new_cmds \
9045 compiler_lib_search_path \
9047 archive_expsym_cmds \
9049 postuninstall_cmds \
9050 old_archive_from_expsyms_cmds \
9051 allow_undefined_flag \
9053 export_symbols_cmds \
9054 hardcode_libdir_flag_spec \
9055 hardcode_libdir_flag_spec_ld \
9056 hardcode_libdir_separator \
9057 hardcode_automatic \
9059 module_expsym_cmds \
9060 lt_cv_prog_compiler_c_o \
9065 old_archive_cmds | \
9066 old_archive_from_new_cmds | \
9068 archive_expsym_cmds | \
9070 module_expsym_cmds | \
9071 old_archive_from_expsyms_cmds | \
9072 export_symbols_cmds | \
9073 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9074 postinstall_cmds | postuninstall_cmds | \
9075 old_postinstall_cmds | old_postuninstall_cmds | \
9076 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9077 # Double-quote double-evaled strings.
9078 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9081 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9087 *'\$0 --fallback-echo"')
9088 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9093 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9095 { echo "$as_me:$LINENO: creating $ofile" >&5
9096 echo "$as_me: creating $ofile" >&6;}
9098 cat <<__EOF__ >> "$cfgfile"
9101 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9102 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9103 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9105 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9106 # Free Software Foundation, Inc.
9108 # This file is part of GNU Libtool:
9109 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9111 # This program is free software; you can redistribute it and/or modify
9112 # it under the terms of the GNU General Public License as published by
9113 # the Free Software Foundation; either version 2 of the License, or
9114 # (at your option) any later version.
9116 # This program is distributed in the hope that it will be useful, but
9117 # WITHOUT ANY WARRANTY; without even the implied warranty of
9118 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9119 # General Public License for more details.
9121 # You should have received a copy of the GNU General Public License
9122 # along with this program; if not, write to the Free Software
9123 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9125 # As a special exception to the GNU General Public License, if you
9126 # distribute this file as part of a program that contains a
9127 # configuration script generated by Autoconf, you may include it under
9128 # the same distribution terms that you use for the rest of that program.
9130 # A sed program that does not truncate output.
9133 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9134 Xsed="$SED -e s/^X//"
9136 # The HP-UX ksh and POSIX shell print the target directory to stdout
9138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9140 # The names of the tagged configurations supported by this script.
9143 # ### BEGIN LIBTOOL CONFIG
9145 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9147 # Shell to use when invoking shell scripts.
9150 # Whether or not to build shared libraries.
9151 build_libtool_libs=$enable_shared
9153 # Whether or not to build static libraries.
9154 build_old_libs=$enable_static
9156 # Whether or not to add -lc for building shared libraries.
9157 build_libtool_need_lc=$archive_cmds_need_lc
9159 # Whether or not to disallow shared libs when runtime libs are static
9160 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9162 # Whether or not to optimize for fast installation.
9163 fast_install=$enable_fast_install
9166 host_alias=$host_alias
9169 # An echo program that does not interpret backslashes.
9174 AR_FLAGS=$lt_AR_FLAGS
9179 # A language-specific compiler.
9182 # Is the compiler the GNU C compiler?
9188 # The linker used to build libraries.
9191 # Whether we need hard or soft links.
9194 # A BSD-compatible nm program.
9197 # A symbol stripping program
9200 # Used to examine libraries when file_magic_cmd begins "file"
9201 MAGIC_CMD=$MAGIC_CMD
9203 # Used on cygwin: DLL creation program.
9206 # Used on cygwin: object dumper.
9209 # Used on cygwin: assembler.
9212 # The name of the directory that contains temporary libtool files.
9215 # How to create reloadable object files.
9216 reload_flag=$lt_reload_flag
9217 reload_cmds=$lt_reload_cmds
9219 # How to pass a linker flag through the compiler.
9220 wl=$lt_lt_prog_compiler_wl
9222 # Object file suffix (normally "o").
9225 # Old archive suffix (normally "a").
9228 # Shared library suffix (normally ".so").
9229 shrext_cmds='$shrext_cmds'
9231 # Executable file suffix (normally "").
9234 # Additional compiler flags for building library objects.
9235 pic_flag=$lt_lt_prog_compiler_pic
9238 # What is the maximum length of a command?
9239 max_cmd_len=$lt_cv_sys_max_cmd_len
9241 # Does compiler simultaneously support -c and -o options?
9242 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9244 # Must we lock files when doing compilation ?
9245 need_locks=$lt_need_locks
9247 # Do we need the lib prefix for modules?
9248 need_lib_prefix=$need_lib_prefix
9250 # Do we need a version for libraries?
9251 need_version=$need_version
9253 # Whether dlopen is supported.
9254 dlopen_support=$enable_dlopen
9256 # Whether dlopen of programs is supported.
9257 dlopen_self=$enable_dlopen_self
9259 # Whether dlopen of statically linked programs is supported.
9260 dlopen_self_static=$enable_dlopen_self_static
9262 # Compiler flag to prevent dynamic linking.
9263 link_static_flag=$lt_lt_prog_compiler_static
9265 # Compiler flag to turn off builtin functions.
9266 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9268 # Compiler flag to allow reflexive dlopens.
9269 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9271 # Compiler flag to generate shared objects directly from archives.
9272 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9274 # Compiler flag to generate thread-safe objects.
9275 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9277 # Library versioning type.
9278 version_type=$version_type
9280 # Format of library name prefix.
9281 libname_spec=$lt_libname_spec
9283 # List of archive names. First name is the real one, the rest are links.
9284 # The last name is the one that the linker finds with -lNAME.
9285 library_names_spec=$lt_library_names_spec
9287 # The coded name of the library, if different from the real name.
9288 soname_spec=$lt_soname_spec
9290 # Commands used to build and install an old-style archive.
9292 old_archive_cmds=$lt_old_archive_cmds
9293 old_postinstall_cmds=$lt_old_postinstall_cmds
9294 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9296 # Create an old-style archive from a shared archive.
9297 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9299 # Create a temporary old-style archive to link instead of a shared archive.
9300 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9302 # Commands used to build and install a shared archive.
9303 archive_cmds=$lt_archive_cmds
9304 archive_expsym_cmds=$lt_archive_expsym_cmds
9305 postinstall_cmds=$lt_postinstall_cmds
9306 postuninstall_cmds=$lt_postuninstall_cmds
9308 # Commands used to build a loadable module (assumed same as above if empty)
9309 module_cmds=$lt_module_cmds
9310 module_expsym_cmds=$lt_module_expsym_cmds
9312 # Commands to strip libraries.
9313 old_striplib=$lt_old_striplib
9314 striplib=$lt_striplib
9316 # Dependencies to place before the objects being linked to create a
9318 predep_objects=$lt_predep_objects
9320 # Dependencies to place after the objects being linked to create a
9322 postdep_objects=$lt_postdep_objects
9324 # Dependencies to place before the objects being linked to create a
9328 # Dependencies to place after the objects being linked to create a
9330 postdeps=$lt_postdeps
9332 # The library search path used internally by the compiler when linking
9334 compiler_lib_search_path=$lt_compiler_lib_search_path
9336 # Method to check whether dependent libraries are shared objects.
9337 deplibs_check_method=$lt_deplibs_check_method
9339 # Command to use when deplibs_check_method == file_magic.
9340 file_magic_cmd=$lt_file_magic_cmd
9342 # Flag that allows shared libraries with undefined symbols to be built.
9343 allow_undefined_flag=$lt_allow_undefined_flag
9345 # Flag that forces no undefined symbols.
9346 no_undefined_flag=$lt_no_undefined_flag
9348 # Commands used to finish a libtool library installation in a directory.
9349 finish_cmds=$lt_finish_cmds
9351 # Same as above, but a single script fragment to be evaled but not shown.
9352 finish_eval=$lt_finish_eval
9354 # Take the output of nm and produce a listing of raw symbols and C names.
9355 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9357 # Transform the output of nm in a proper C declaration
9358 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9360 # Transform the output of nm in a C name address pair
9361 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9363 # This is the shared library runtime path variable.
9364 runpath_var=$runpath_var
9366 # This is the shared library path variable.
9367 shlibpath_var=$shlibpath_var
9369 # Is shlibpath searched before the hard-coded library search path?
9370 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9372 # How to hardcode a shared library path into an executable.
9373 hardcode_action=$hardcode_action
9375 # Whether we should hardcode library paths into libraries.
9376 hardcode_into_libs=$hardcode_into_libs
9378 # Flag to hardcode \$libdir into a binary during linking.
9379 # This must work even if \$libdir does not exist.
9380 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9382 # If ld is used when linking, flag to hardcode \$libdir into
9383 # a binary during linking. This must work even if \$libdir does
9385 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9387 # Whether we need a single -rpath flag with a separated argument.
9388 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9390 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9392 hardcode_direct=$hardcode_direct
9394 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9396 hardcode_minus_L=$hardcode_minus_L
9398 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9399 # the resulting binary.
9400 hardcode_shlibpath_var=$hardcode_shlibpath_var
9402 # Set to yes if building a shared library automatically hardcodes DIR into the library
9403 # and all subsequent libraries and executables linked against it.
9404 hardcode_automatic=$hardcode_automatic
9406 # Variables whose values should be saved in libtool wrapper scripts and
9407 # restored at relink time.
9408 variables_saved_for_relink="$variables_saved_for_relink"
9410 # Whether libtool must link a program against all its dependency libraries.
9411 link_all_deplibs=$link_all_deplibs
9413 # Compile-time system search path for libraries
9414 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9416 # Run-time system search path for libraries
9417 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9419 # Fix the shell variable \$srcfile for the compiler.
9420 fix_srcfile_path="$fix_srcfile_path"
9422 # Set to yes if exported symbols are required.
9423 always_export_symbols=$always_export_symbols
9425 # The commands to list exported symbols.
9426 export_symbols_cmds=$lt_export_symbols_cmds
9428 # The commands to extract the exported symbol list from a shared archive.
9429 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9431 # Symbols that should not be listed in the preloaded symbols.
9432 exclude_expsyms=$lt_exclude_expsyms
9434 # Symbols that must always be exported.
9435 include_expsyms=$lt_include_expsyms
9437 # ### END LIBTOOL CONFIG
9444 cat <<\EOF >> "$cfgfile"
9446 # AIX sometimes has problems with the GCC collect2 program. For some
9447 # reason, if we set the COLLECT_NAMES environment variable, the problems
9448 # vanish in a puff of smoke.
9449 if test "X${COLLECT_NAMES+set}" != Xset; then
9451 export COLLECT_NAMES
9457 # We use sed instead of cat because bash on DJGPP gets confused if
9458 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9459 # text mode, it properly converts lines to CR/LF. This bash problem
9460 # is reportedly fixed, but why not run on old versions too?
9461 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9463 mv -f "$cfgfile" "$ofile" || \
9464 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9468 # If there is no Makefile yet, we rely on a make rule to execute
9469 # `config.status --recheck' to rerun these tests and create the
9470 # libtool script then.
9471 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9472 if test -f "$ltmain_in"; then
9473 test -f Makefile && make "$ltmain"
9479 ac_cpp='$CPP $CPPFLAGS'
9480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9487 # Check whether --with-tags or --without-tags was given.
9488 if test "${with_tags+set}" = set; then
9489 withval="$with_tags"
9493 if test -f "$ltmain" && test -n "$tagnames"; then
9494 if test ! -f "${ofile}"; then
9495 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9496 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9499 if test -z "$LTCC"; then
9500 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9501 if test -z "$LTCC"; then
9502 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9503 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9505 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9506 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9510 # Extract list of available tagged configurations in $ofile.
9511 # Note that this assumes the entire list is on one line.
9512 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9514 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9515 for tagname in $tagnames; do
9517 # Check whether tagname contains only valid characters
9518 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9520 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9521 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9522 { (exit 1); exit 1; }; }
9526 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9528 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9529 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9530 { (exit 1); exit 1; }; }
9533 # Update the list of available tags.
9534 if test -n "$tagname"; then
9535 echo appending configuration tag \"$tagname\" to $ofile
9539 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9541 ac_cpp='$CXXCPP $CPPFLAGS'
9542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9549 archive_cmds_need_lc_CXX=no
9550 allow_undefined_flag_CXX=
9551 always_export_symbols_CXX=no
9552 archive_expsym_cmds_CXX=
9553 export_dynamic_flag_spec_CXX=
9554 hardcode_direct_CXX=no
9555 hardcode_libdir_flag_spec_CXX=
9556 hardcode_libdir_flag_spec_ld_CXX=
9557 hardcode_libdir_separator_CXX=
9558 hardcode_minus_L_CXX=no
9559 hardcode_automatic_CXX=no
9561 module_expsym_cmds_CXX=
9562 link_all_deplibs_CXX=unknown
9563 old_archive_cmds_CXX=$old_archive_cmds
9564 no_undefined_flag_CXX=
9565 whole_archive_flag_spec_CXX=
9566 enable_shared_with_static_runtimes_CXX=no
9568 # Dependencies to place before and after the object being linked:
9570 postdep_objects_CXX=
9573 compiler_lib_search_path_CXX=
9575 # Source file extension for C++ test sources.
9578 # Object file extension for compiled C++ test sources.
9582 # Code to be used in simple compile tests
9583 lt_simple_compile_test_code="int some_variable = 0;\n"
9585 # Code to be used in simple link tests
9586 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9588 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9590 # If no C compiler was specified, use CC.
9593 # Allow CC to be a program name with arguments.
9597 # Allow CC to be a program name with arguments.
9602 lt_save_with_gnu_ld=$with_gnu_ld
9603 lt_save_path_LD=$lt_cv_path_LD
9604 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9605 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9607 unset lt_cv_prog_gnu_ld
9609 if test -n "${lt_cv_path_LDCXX+set}"; then
9610 lt_cv_path_LD=$lt_cv_path_LDCXX
9614 test -z "${LDCXX+set}" || LD=$LDCXX
9618 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9620 # We don't want -fno-exception wen compiling C++ code, so set the
9621 # no_builtin_flag separately
9622 if test "$GXX" = yes; then
9623 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9625 lt_prog_compiler_no_builtin_flag_CXX=
9628 if test "$GXX" = yes; then
9629 # Set up default GNU C++ configuration
9632 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9633 if test "${with_gnu_ld+set}" = set; then
9634 withval="$with_gnu_ld"
9635 test "$withval" = no || with_gnu_ld=yes
9640 if test "$GCC" = yes; then
9641 # Check if gcc -print-prog-name=ld gives a path.
9642 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9643 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9646 # gcc leaves a trailing carriage return which upsets mingw
9647 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9649 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9652 # Accept absolute paths.
9654 re_direlt='/[^/][^/]*/\.\./'
9655 # Canonicalize the pathname of ld
9656 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9657 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9658 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9660 test -z "$LD" && LD="$ac_prog"
9663 # If it fails, then pretend we aren't using GCC.
9667 # If it is relative, then search for the first ld in PATH.
9671 elif test "$with_gnu_ld" = yes; then
9672 echo "$as_me:$LINENO: checking for GNU ld" >&5
9673 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9675 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9676 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9678 if test "${lt_cv_path_LD+set}" = set; then
9679 echo $ECHO_N "(cached) $ECHO_C" >&6
9681 if test -z "$LD"; then
9682 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9683 for ac_dir in $PATH; do
9685 test -z "$ac_dir" && ac_dir=.
9686 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9687 lt_cv_path_LD="$ac_dir/$ac_prog"
9688 # Check to see if the program is GNU ld. I'd rather use --version,
9689 # but apparently some GNU ld's only accept -v.
9690 # Break only if it was the GNU/non-GNU ld that we prefer.
9691 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9692 *GNU* | *'with BFD'*)
9693 test "$with_gnu_ld" != no && break
9696 test "$with_gnu_ld" != yes && break
9703 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9708 if test -n "$LD"; then
9709 echo "$as_me:$LINENO: result: $LD" >&5
9710 echo "${ECHO_T}$LD" >&6
9712 echo "$as_me:$LINENO: result: no" >&5
9713 echo "${ECHO_T}no" >&6
9715 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9716 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9717 { (exit 1); exit 1; }; }
9718 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9719 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9720 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9724 case `$LD -v 2>&1 </dev/null` in
9725 *GNU* | *'with BFD'*)
9726 lt_cv_prog_gnu_ld=yes
9729 lt_cv_prog_gnu_ld=no
9733 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9734 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9735 with_gnu_ld=$lt_cv_prog_gnu_ld
9739 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9740 # archiving commands below assume that GNU ld is being used.
9741 if test "$with_gnu_ld" = yes; then
9742 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9743 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'
9745 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9746 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9748 # If archive_cmds runs LD, not CC, wlarc should be empty
9749 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9750 # investigate it a little bit more. (MM)
9753 # ancient GNU ld didn't support --whole-archive et. al.
9754 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9755 grep 'no-whole-archive' > /dev/null; then
9756 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9758 whole_archive_flag_spec_CXX=
9764 # A generic and very simple default shared library creation
9765 # command for GNU C++ for the case where it uses the native
9766 # linker, instead of GNU ld. If possible, this setting should
9767 # overridden to take advantage of the native linker features on
9768 # the platform it is being used on.
9769 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9772 # Commands to make compiler produce verbose output that lists
9773 # what "hidden" libraries, object files and flags are used when
9774 # linking a shared library.
9775 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9783 # PORTME: fill in a description of your system's C++ link characteristics
9784 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9785 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9789 # FIXME: insert proper C++ library support
9793 if test "$host_cpu" = ia64; then
9794 # On IA64, the linker does run time linking by default, so we don't
9795 # have to do anything special.
9796 aix_use_runtimelinking=no
9797 exp_sym_flag='-Bexport'
9800 aix_use_runtimelinking=no
9802 # Test if we are trying to use run time linking or normal
9803 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9804 # need to do runtime linking.
9805 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9806 for ld_flag in $LDFLAGS; do
9809 aix_use_runtimelinking=yes
9816 exp_sym_flag='-bexport'
9817 no_entry_flag='-bnoentry'
9820 # When large executables or shared objects are built, AIX ld can
9821 # have problems creating the table of contents. If linking a library
9822 # or program results in "error TOC overflow" add -mminimal-toc to
9823 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9824 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9827 hardcode_direct_CXX=yes
9828 hardcode_libdir_separator_CXX=':'
9829 link_all_deplibs_CXX=yes
9831 if test "$GXX" = yes; then
9832 case $host_os in aix4.012|aix4.012.*)
9833 # We only want to do this on AIX 4.2 and lower, the check
9834 # below for broken collect2 doesn't work under 4.3+
9835 collect2name=`${CC} -print-prog-name=collect2`
9836 if test -f "$collect2name" && \
9837 strings "$collect2name" | grep resolve_lib_name >/dev/null
9839 # We have reworked collect2
9840 hardcode_direct_CXX=yes
9842 # We have old collect2
9843 hardcode_direct_CXX=unsupported
9844 # It fails to find uninstalled libraries when the uninstalled
9845 # path is not listed in the libpath. Setting hardcode_minus_L
9846 # to unsupported forces relinking
9847 hardcode_minus_L_CXX=yes
9848 hardcode_libdir_flag_spec_CXX='-L$libdir'
9849 hardcode_libdir_separator_CXX=
9852 shared_flag='-shared'
9855 if test "$host_cpu" = ia64; then
9856 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9857 # chokes on -Wl,-G. The following line is correct:
9860 if test "$aix_use_runtimelinking" = yes; then
9861 shared_flag='${wl}-G'
9863 shared_flag='${wl}-bM:SRE'
9868 # It seems that -bexpall does not export symbols beginning with
9869 # underscore (_), so it is better to generate a list of symbols to export.
9870 always_export_symbols_CXX=yes
9871 if test "$aix_use_runtimelinking" = yes; then
9872 # Warning - without using the other runtime loading flags (-brtl),
9873 # -berok will link without error, but may produce a broken library.
9874 allow_undefined_flag_CXX='-berok'
9875 # Determine the default libpath from the value encoded in an empty executable.
9876 cat >conftest.$ac_ext <<_ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h. */
9891 rm -f conftest.$ac_objext conftest$ac_exeext
9892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9893 (eval $ac_link) 2>conftest.er1
9895 grep -v '^ *+' conftest.er1 >conftest.err
9897 cat conftest.err >&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } &&
9900 { ac_try='test -z "$ac_cxx_werror_flag"
9901 || test ! -s conftest.err'
9902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; } &&
9907 { ac_try='test -s conftest$ac_exeext'
9908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); }; }; then
9914 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9916 # Check for a 64-bit object if we didn't find anything.
9917 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; }
9920 echo "$as_me: failed program was:" >&5
9921 sed 's/^/| /' conftest.$ac_ext >&5
9924 rm -f conftest.err conftest.$ac_objext \
9925 conftest$ac_exeext conftest.$ac_ext
9926 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9928 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9930 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"
9932 if test "$host_cpu" = ia64; then
9933 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9934 allow_undefined_flag_CXX="-z nodefs"
9935 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"
9937 # Determine the default libpath from the value encoded in an empty executable.
9938 cat >conftest.$ac_ext <<_ACEOF
9941 cat confdefs.h >>conftest.$ac_ext
9942 cat >>conftest.$ac_ext <<_ACEOF
9943 /* end confdefs.h. */
9953 rm -f conftest.$ac_objext conftest$ac_exeext
9954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9955 (eval $ac_link) 2>conftest.er1
9957 grep -v '^ *+' conftest.er1 >conftest.err
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } &&
9962 { ac_try='test -z "$ac_cxx_werror_flag"
9963 || test ! -s conftest.err'
9964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }; } &&
9969 { ac_try='test -s conftest$ac_exeext'
9970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; }; then
9976 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9978 # Check for a 64-bit object if we didn't find anything.
9979 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; }
9982 echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9986 rm -f conftest.err conftest.$ac_objext \
9987 conftest$ac_exeext conftest.$ac_ext
9988 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9990 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9991 # Warning - without using the other run time loading flags,
9992 # -berok will link without error, but may produce a broken library.
9993 no_undefined_flag_CXX=' ${wl}-bernotok'
9994 allow_undefined_flag_CXX=' ${wl}-berok'
9995 # -bexpall does not export symbols beginning with underscore (_)
9996 always_export_symbols_CXX=yes
9997 # Exported symbols can be pulled into shared objects from archives
9998 whole_archive_flag_spec_CXX=' '
9999 archive_cmds_need_lc_CXX=yes
10000 # This is similar to how AIX traditionally builds it's shared libraries.
10001 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'
10006 case $cc_basename in
10008 # FIXME: insert proper C++ library support
10015 cygwin* | mingw* | pw32*)
10016 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10017 # as there is no search path for DLLs.
10018 hardcode_libdir_flag_spec_CXX='-L$libdir'
10019 allow_undefined_flag_CXX=unsupported
10020 always_export_symbols_CXX=no
10021 enable_shared_with_static_runtimes_CXX=yes
10023 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10024 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'
10025 # If the export-symbols file already is a .def file (1st line
10026 # is EXPORTS), use it as is; otherwise, prepend...
10027 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10028 cp $export_symbols $output_objdir/$soname.def;
10030 echo EXPORTS > $output_objdir/$soname.def;
10031 cat $export_symbols >> $output_objdir/$soname.def;
10033 $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'
10038 darwin* | rhapsody*)
10040 rhapsody* | darwin1.[012])
10041 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10044 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10045 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10047 case ${MACOSX_DEPLOYMENT_TARGET} in
10049 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10052 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10058 archive_cmds_need_lc_CXX=no
10059 hardcode_direct_CXX=no
10060 hardcode_automatic_CXX=yes
10061 hardcode_shlibpath_var_CXX=unsupported
10062 whole_archive_flag_spec_CXX=''
10063 link_all_deplibs_CXX=yes
10065 if test "$GXX" = yes ; then
10066 lt_int_apple_cc_single_mod=no
10067 output_verbose_link_cmd='echo'
10068 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10069 lt_int_apple_cc_single_mod=yes
10071 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10072 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10074 archive_cmds_CXX='$CC -r -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'
10076 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10077 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10078 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10079 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}'
10081 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
10083 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10085 case "$cc_basename" in
10087 output_verbose_link_cmd='echo'
10088 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10089 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10090 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10091 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10092 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10102 case $cc_basename in
10104 # FIXME: insert proper C++ library support
10108 # Green Hills C++ Compiler
10109 # FIXME: insert proper C++ library support
10113 # FIXME: insert proper C++ library support
10119 # C++ shared libraries reported to be fairly broken before switch to ELF
10123 archive_cmds_need_lc_CXX=no
10125 freebsd* | kfreebsd*-gnu)
10126 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10133 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10134 hardcode_libdir_separator_CXX=:
10135 export_dynamic_flag_spec_CXX='${wl}-E'
10136 hardcode_direct_CXX=yes
10137 hardcode_minus_L_CXX=yes # Not in the search PATH,
10138 # but as the default
10139 # location of the library.
10141 case $cc_basename in
10143 # FIXME: insert proper C++ library support
10147 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'
10148 # Commands to make compiler produce verbose output that lists
10149 # what "hidden" libraries, object files and flags are used when
10150 # linking a shared library.
10152 # There doesn't appear to be a way to prevent this compiler from
10153 # explicitly linking system object files so we need to strip them
10154 # from the output so that they don't get included in the library
10156 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'
10159 if test "$GXX" = yes; then
10160 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'
10162 # FIXME: insert proper C++ library support
10169 if test $with_gnu_ld = no; then
10170 case "$host_cpu" in
10172 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10173 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10174 hardcode_libdir_separator_CXX=:
10177 hardcode_libdir_flag_spec_CXX='-L$libdir'
10180 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10181 hardcode_libdir_separator_CXX=:
10182 export_dynamic_flag_spec_CXX='${wl}-E'
10186 case "$host_cpu" in
10188 hardcode_direct_CXX=no
10189 hardcode_shlibpath_var_CXX=no
10192 hardcode_direct_CXX=no
10193 hardcode_shlibpath_var_CXX=no
10194 hardcode_minus_L_CXX=yes # Not in the search PATH,
10195 # but as the default
10196 # location of the library.
10199 hardcode_direct_CXX=yes
10200 hardcode_minus_L_CXX=yes # Not in the search PATH,
10201 # but as the default
10202 # location of the library.
10206 case $cc_basename in
10208 # FIXME: insert proper C++ library support
10212 case "$host_cpu" in
10214 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10217 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10220 # Commands to make compiler produce verbose output that lists
10221 # what "hidden" libraries, object files and flags are used when
10222 # linking a shared library.
10224 # There doesn't appear to be a way to prevent this compiler from
10225 # explicitly linking system object files so we need to strip them
10226 # from the output so that they don't get included in the library
10228 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'
10231 if test "$GXX" = yes; then
10232 if test $with_gnu_ld = no; then
10233 case "$host_cpu" in
10235 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10238 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'
10243 # FIXME: insert proper C++ library support
10250 case $cc_basename in
10253 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'
10255 # Archives containing C++ object files must be created using
10256 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10257 # necessary to make sure instantiated templates are included
10259 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10262 if test "$GXX" = yes; then
10263 if test "$with_gnu_ld" = no; then
10264 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'
10266 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'
10269 link_all_deplibs_CXX=yes
10272 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10273 hardcode_libdir_separator_CXX=:
10276 case $cc_basename in
10278 # Kuck and Associates, Inc. (KAI) C++ Compiler
10280 # KCC will only create a shared library if the output file
10281 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10282 # to its proper name (with version) after linking.
10283 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'
10284 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'
10285 # Commands to make compiler produce verbose output that lists
10286 # what "hidden" libraries, object files and flags are used when
10287 # linking a shared library.
10289 # There doesn't appear to be a way to prevent this compiler from
10290 # explicitly linking system object files so we need to strip them
10291 # from the output so that they don't get included in the library
10293 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'
10295 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10296 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10298 # Archives containing C++ object files must be created using
10299 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10300 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10305 # version 8.0 and above of icpc choke on multiply defined symbols
10306 # if we add $predep_objects and $postdep_objects, however 7.1 and
10307 # earlier do not add the objects themselves.
10308 case `$CC -V 2>&1` in
10310 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10311 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'
10313 *) # Version 8.0 or newer
10314 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10315 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10318 archive_cmds_need_lc_CXX=no
10319 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10320 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10321 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10325 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10326 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'
10328 runpath_var=LD_RUN_PATH
10329 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10330 hardcode_libdir_separator_CXX=:
10332 # Commands to make compiler produce verbose output that lists
10333 # what "hidden" libraries, object files and flags are used when
10334 # linking a shared library.
10336 # There doesn't appear to be a way to prevent this compiler from
10337 # explicitly linking system object files so we need to strip them
10338 # from the output so that they don't get included in the library
10340 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'
10345 # FIXME: insert proper C++ library support
10349 # FIXME: insert proper C++ library support
10353 case $cc_basename in
10355 # FIXME: insert proper C++ library support
10359 # FIXME: insert proper C++ library support
10365 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10366 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10368 hardcode_libdir_flag_spec_CXX='-R$libdir'
10369 hardcode_direct_CXX=yes
10370 hardcode_shlibpath_var_CXX=no
10372 # Workaround some broken pre-1.5 toolchains
10373 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10376 # C++ shared libraries are fairly broken
10380 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10381 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10382 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10383 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10384 export_dynamic_flag_spec_CXX='${wl}-E'
10385 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10387 output_verbose_link_cmd='echo'
10390 case $cc_basename in
10392 # Kuck and Associates, Inc. (KAI) C++ Compiler
10394 # KCC will only create a shared library if the output file
10395 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10396 # to its proper name (with version) after linking.
10397 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'
10399 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10400 hardcode_libdir_separator_CXX=:
10402 # Archives containing C++ object files must be created using
10403 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10404 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10408 # Rational C++ 2.4.1
10409 # FIXME: insert proper C++ library support
10413 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10414 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'
10416 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10417 hardcode_libdir_separator_CXX=:
10419 # Commands to make compiler produce verbose output that lists
10420 # what "hidden" libraries, object files and flags are used when
10421 # linking a shared library.
10423 # There doesn't appear to be a way to prevent this compiler from
10424 # explicitly linking system object files so we need to strip them
10425 # from the output so that they don't get included in the library
10427 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'
10430 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10431 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10432 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'
10434 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10435 hardcode_libdir_separator_CXX=:
10437 # Commands to make compiler produce verbose output that lists
10438 # what "hidden" libraries, object files and flags are used when
10439 # linking a shared library.
10440 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10443 # FIXME: insert proper C++ library support
10450 case $cc_basename in
10452 # Kuck and Associates, Inc. (KAI) C++ Compiler
10454 # KCC will only create a shared library if the output file
10455 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10456 # to its proper name (with version) after linking.
10457 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'
10459 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10460 hardcode_libdir_separator_CXX=:
10462 # Archives containing C++ object files must be created using
10463 # the KAI C++ compiler.
10464 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10467 # Rational C++ 2.4.1
10468 # FIXME: insert proper C++ library support
10472 allow_undefined_flag_CXX=' -expect_unresolved \*'
10473 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'
10474 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10475 echo "-hidden">> $lib.exp~
10476 $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~
10479 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10480 hardcode_libdir_separator_CXX=:
10482 # Commands to make compiler produce verbose output that lists
10483 # what "hidden" libraries, object files and flags are used when
10484 # linking a shared library.
10486 # There doesn't appear to be a way to prevent this compiler from
10487 # explicitly linking system object files so we need to strip them
10488 # from the output so that they don't get included in the library
10490 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'
10493 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10494 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10495 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'
10497 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10498 hardcode_libdir_separator_CXX=:
10500 # Commands to make compiler produce verbose output that lists
10501 # what "hidden" libraries, object files and flags are used when
10502 # linking a shared library.
10503 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10506 # FIXME: insert proper C++ library support
10513 # FIXME: insert proper C++ library support
10517 archive_cmds_need_lc_CXX=no
10518 case $cc_basename in
10520 # FIXME: insert proper C++ library support
10524 # FIXME: insert proper C++ library support
10530 case $cc_basename in
10533 # FIXME: insert proper C++ library support
10538 # FIXME: insert proper C++ library support
10542 # FIXME: insert proper C++ library support
10548 case $cc_basename in
10550 # Sun C++ 4.2, 5.x and Centerline C++
10551 no_undefined_flag_CXX=' -zdefs'
10552 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10553 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10554 $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'
10556 hardcode_libdir_flag_spec_CXX='-R$libdir'
10557 hardcode_shlibpath_var_CXX=no
10559 solaris2.0-5 | solaris2.0-5.*) ;;
10561 # The C++ compiler is used as linker so we must use $wl
10562 # flag to pass the commands to the underlying system
10564 # Supported since Solaris 2.6 (maybe 2.5.1?)
10565 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10568 link_all_deplibs_CXX=yes
10570 # Commands to make compiler produce verbose output that lists
10571 # what "hidden" libraries, object files and flags are used when
10572 # linking a shared library.
10574 # There doesn't appear to be a way to prevent this compiler from
10575 # explicitly linking system object files so we need to strip them
10576 # from the output so that they don't get included in the library
10578 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'
10580 # Archives containing C++ object files must be created using
10581 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10582 # necessary to make sure instantiated templates are included
10584 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10587 # Green Hills C++ Compiler
10588 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10590 # The C++ compiler must be used to create the archive.
10591 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10594 # GNU C++ compiler with Solaris linker
10595 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10596 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10597 if $CC --version | grep -v '^2\.7' > /dev/null; then
10598 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10599 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10600 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10602 # Commands to make compiler produce verbose output that lists
10603 # what "hidden" libraries, object files and flags are used when
10604 # linking a shared library.
10605 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10607 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10609 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10610 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10611 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10613 # Commands to make compiler produce verbose output that lists
10614 # what "hidden" libraries, object files and flags are used when
10615 # linking a shared library.
10616 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10619 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10624 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10625 archive_cmds_need_lc_CXX=no
10628 case $cc_basename in
10630 # NonStop-UX NCC 3.20
10631 # FIXME: insert proper C++ library support
10635 # FIXME: insert proper C++ library support
10641 # FIXME: insert proper C++ library support
10645 # FIXME: insert proper C++ library support
10649 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10650 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10651 test "$ld_shlibs_CXX" = no && can_build_shared=no
10657 cat > conftest.$ac_ext <<EOF
10661 Foo (void) { a = 0; }
10667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10668 (eval $ac_compile) 2>&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); }; then
10672 # Parse the compiler output and extract the necessary
10673 # objects, libraries and library flags.
10675 # Sentinel used to keep track of whether or not we are before
10676 # the conftest object file.
10677 pre_test_object_deps_done=no
10679 # The `*' in the case matches for architectures that use `case' in
10680 # $output_verbose_cmd can trigger glob expansion during the loop
10681 # eval without this substitution.
10682 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10684 for p in `eval $output_verbose_link_cmd`; do
10688 # Some compilers place space between "-{L,R}" and the path.
10689 # Remove the space.
10690 if test $p = "-L" \
10691 || test $p = "-R"; then
10698 if test "$pre_test_object_deps_done" = no; then
10701 # Internal compiler library paths should come after those
10702 # provided the user. The postdeps already come after the
10703 # user supplied libs so there is no need to process them.
10704 if test -z "$compiler_lib_search_path_CXX"; then
10705 compiler_lib_search_path_CXX="${prev}${p}"
10707 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10710 # The "-l" case would never come before the object being
10711 # linked, so don't bother handling this case.
10714 if test -z "$postdeps_CXX"; then
10715 postdeps_CXX="${prev}${p}"
10717 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10723 # This assumes that the test object file only shows up
10724 # once in the compiler output.
10725 if test "$p" = "conftest.$objext"; then
10726 pre_test_object_deps_done=yes
10730 if test "$pre_test_object_deps_done" = no; then
10731 if test -z "$predep_objects_CXX"; then
10732 predep_objects_CXX="$p"
10734 predep_objects_CXX="$predep_objects_CXX $p"
10737 if test -z "$postdep_objects_CXX"; then
10738 postdep_objects_CXX="$p"
10740 postdep_objects_CXX="$postdep_objects_CXX $p"
10745 *) ;; # Ignore the rest.
10753 echo "libtool.m4: error: problem compiling CXX test program"
10756 $rm -f confest.$objext
10758 case " $postdeps_CXX " in
10759 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10762 lt_prog_compiler_wl_CXX=
10763 lt_prog_compiler_pic_CXX=
10764 lt_prog_compiler_static_CXX=
10766 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10767 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10769 # C++ specific cases for pic, static, wl, etc.
10770 if test "$GXX" = yes; then
10771 lt_prog_compiler_wl_CXX='-Wl,'
10772 lt_prog_compiler_static_CXX='-static'
10776 # All AIX code is PIC.
10777 if test "$host_cpu" = ia64; then
10778 # AIX 5 now supports IA64 processor
10779 lt_prog_compiler_static_CXX='-Bstatic'
10783 # FIXME: we need at least 68020 code to build shared libraries, but
10784 # adding the `-m68020' flag to GCC prevents building anything better,
10786 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10788 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10789 # PIC is the default for these OSes.
10791 mingw* | os2* | pw32*)
10792 # This hack is so that the source file can tell whether it is being
10793 # built for inclusion in a dll (and should export symbols for example).
10794 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10796 darwin* | rhapsody*)
10797 # PIC is the default on this platform
10798 # Common symbols not allowed in MH_DYLIB files
10799 lt_prog_compiler_pic_CXX='-fno-common'
10802 # DJGPP does not support shared libraries at all
10803 lt_prog_compiler_pic_CXX=
10806 if test -d /usr/nec; then
10807 lt_prog_compiler_pic_CXX=-Kconform_pic
10811 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10812 # not for PA HP-UX.
10813 case "$host_cpu" in
10817 lt_prog_compiler_pic_CXX='-fPIC'
10822 lt_prog_compiler_pic_CXX='-fPIC'
10828 # All AIX code is PIC.
10829 if test "$host_cpu" = ia64; then
10830 # AIX 5 now supports IA64 processor
10831 lt_prog_compiler_static_CXX='-Bstatic'
10833 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10837 case $cc_basename in
10839 # Green Hills C++ Compiler
10840 # _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"
10845 # PIC is the default on this platform
10846 # Common symbols not allowed in MH_DYLIB files
10847 case "$cc_basename" in
10849 lt_prog_compiler_pic_CXX='-qnocommon'
10850 lt_prog_compiler_wl_CXX='-Wl,'
10855 case $cc_basename in
10857 lt_prog_compiler_pic_CXX='-KPIC'
10860 # Green Hills C++ Compiler
10861 lt_prog_compiler_pic_CXX='-pic'
10867 freebsd* | kfreebsd*-gnu)
10868 # FreeBSD uses GNU C++
10870 hpux9* | hpux10* | hpux11*)
10871 case $cc_basename in
10873 lt_prog_compiler_wl_CXX='-Wl,'
10874 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10875 if test "$host_cpu" != ia64; then
10876 lt_prog_compiler_pic_CXX='+Z'
10880 lt_prog_compiler_wl_CXX='-Wl,'
10881 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10882 case "$host_cpu" in
10887 lt_prog_compiler_pic_CXX='+Z'
10895 irix5* | irix6* | nonstopux*)
10896 case $cc_basename in
10898 lt_prog_compiler_wl_CXX='-Wl,'
10899 lt_prog_compiler_static_CXX='-non_shared'
10900 # CC pic flag -KPIC is the default.
10907 case $cc_basename in
10910 lt_prog_compiler_wl_CXX='--backend -Wl,'
10911 lt_prog_compiler_pic_CXX='-fPIC'
10915 lt_prog_compiler_wl_CXX='-Wl,'
10916 lt_prog_compiler_pic_CXX='-KPIC'
10917 lt_prog_compiler_static_CXX='-static'
10921 # Make sure the PIC flag is empty. It appears that all Alpha
10922 # Linux and Compaq Tru64 Unix objects are PIC.
10923 lt_prog_compiler_pic_CXX=
10924 lt_prog_compiler_static_CXX='-non_shared'
10935 case $cc_basename in
10937 lt_prog_compiler_pic_CXX='-W c,exportall'
10945 osf3* | osf4* | osf5*)
10946 case $cc_basename in
10948 lt_prog_compiler_wl_CXX='--backend -Wl,'
10951 # Rational C++ 2.4.1
10952 lt_prog_compiler_pic_CXX='-pic'
10955 # Digital/Compaq C++
10956 lt_prog_compiler_wl_CXX='-Wl,'
10957 # Make sure the PIC flag is empty. It appears that all Alpha
10958 # Linux and Compaq Tru64 Unix objects are PIC.
10959 lt_prog_compiler_pic_CXX=
10960 lt_prog_compiler_static_CXX='-non_shared'
10969 case $cc_basename in
10971 lt_prog_compiler_pic_CXX='-fPIC'
10978 case $cc_basename in
10980 # Sun C++ 4.2, 5.x and Centerline C++
10981 lt_prog_compiler_pic_CXX='-KPIC'
10982 lt_prog_compiler_static_CXX='-Bstatic'
10983 lt_prog_compiler_wl_CXX='-Qoption ld '
10986 # Green Hills C++ Compiler
10987 lt_prog_compiler_pic_CXX='-PIC'
10994 case $cc_basename in
10997 lt_prog_compiler_pic_CXX='-pic'
10998 lt_prog_compiler_static_CXX='-Bstatic'
11002 lt_prog_compiler_pic_CXX='-pic'
11009 case $cc_basename in
11011 # NonStop-UX NCC 3.20
11012 lt_prog_compiler_pic_CXX='-KPIC'
11023 lt_prog_compiler_can_build_shared_CXX=no
11028 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11029 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11032 # Check to make sure the PIC flag actually works.
11034 if test -n "$lt_prog_compiler_pic_CXX"; then
11036 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11037 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11038 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11039 echo $ECHO_N "(cached) $ECHO_C" >&6
11041 lt_prog_compiler_pic_works_CXX=no
11042 ac_outfile=conftest.$ac_objext
11043 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11044 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11045 # Insert the option either (1) after the last *FLAGS variable, or
11046 # (2) before a word containing "conftest.", or (3) at the end.
11047 # Note that $ac_compile itself does not contain backslashes and begins
11048 # with a dollar sign (not a hyphen), so the echo should work correctly.
11049 # The option is referenced via a variable to avoid confusing sed.
11050 lt_compile=`echo "$ac_compile" | $SED \
11051 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11053 -e 's:$: $lt_compiler_flag:'`
11054 (eval echo "\"\$as_me:11054: $lt_compile\"" >&5)
11055 (eval "$lt_compile" 2>conftest.err)
11057 cat conftest.err >&5
11058 echo "$as_me:11058: \$? = $ac_status" >&5
11059 if (exit $ac_status) && test -s "$ac_outfile"; then
11060 # The compiler can only warn and ignore the option if not recognized
11061 # So say no if there are warnings
11062 if test ! -s conftest.err; then
11063 lt_prog_compiler_pic_works_CXX=yes
11069 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11070 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11072 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11073 case $lt_prog_compiler_pic_CXX in
11075 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11078 lt_prog_compiler_pic_CXX=
11079 lt_prog_compiler_can_build_shared_CXX=no
11084 # For platforms which do not support PIC, -DPIC is meaningless:
11086 lt_prog_compiler_pic_CXX=
11089 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11093 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11094 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11095 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11098 lt_cv_prog_compiler_c_o_CXX=no
11099 $rm -r conftest 2>/dev/null
11103 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11105 lt_compiler_flag="-o out/conftest2.$ac_objext"
11106 # Insert the option either (1) after the last *FLAGS variable, or
11107 # (2) before a word containing "conftest.", or (3) at the end.
11108 # Note that $ac_compile itself does not contain backslashes and begins
11109 # with a dollar sign (not a hyphen), so the echo should work correctly.
11110 lt_compile=`echo "$ac_compile" | $SED \
11111 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11112 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11113 -e 's:$: $lt_compiler_flag:'`
11114 (eval echo "\"\$as_me:11114: $lt_compile\"" >&5)
11115 (eval "$lt_compile" 2>out/conftest.err)
11117 cat out/conftest.err >&5
11118 echo "$as_me:11118: \$? = $ac_status" >&5
11119 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11121 # The compiler can only warn and ignore the option if not recognized
11122 # So say no if there are warnings
11123 if test ! -s out/conftest.err; then
11124 lt_cv_prog_compiler_c_o_CXX=yes
11129 # SGI C++ compiler will create directory out/ii_files/ for
11130 # template instantiation
11131 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11132 $rm out/* && rmdir out
11138 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11139 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11142 hard_links="nottested"
11143 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11144 # do not overwrite the value of need_locks provided by the user
11145 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11146 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11149 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11151 ln conftest.a conftest.b 2>&5 || hard_links=no
11152 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11153 echo "$as_me:$LINENO: result: $hard_links" >&5
11154 echo "${ECHO_T}$hard_links" >&6
11155 if test "$hard_links" = no; then
11156 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11157 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11164 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11165 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11167 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11170 # If we're using GNU nm, then we don't want the "-C" option.
11171 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11172 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11173 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'
11175 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'
11179 export_symbols_cmds_CXX="$ltdll_cmds"
11182 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11185 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11189 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11190 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11191 test "$ld_shlibs_CXX" = no && can_build_shared=no
11193 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11194 if test "$GCC" = yes; then
11195 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11199 # Do we need to explicitly link libc?
11201 case "x$archive_cmds_need_lc_CXX" in
11203 # Assume -lc should be added
11204 archive_cmds_need_lc_CXX=yes
11206 if test "$enable_shared" = yes && test "$GCC" = yes; then
11207 case $archive_cmds_CXX in
11209 # FIXME: we may have to deal with multi-command sequences.
11212 # Test whether the compiler implicitly links with -lc since on some
11213 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11214 # to ld, don't add -lc before -lgcc.
11215 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11216 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11218 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11221 (eval $ac_compile) 2>&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } 2>conftest.err; then
11227 libobjs=conftest.$ac_objext
11229 wl=$lt_prog_compiler_wl_CXX
11235 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11236 allow_undefined_flag_CXX=
11237 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11238 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); }
11243 archive_cmds_need_lc_CXX=no
11245 archive_cmds_need_lc_CXX=yes
11247 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11249 cat conftest.err 1>&5
11252 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11253 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11260 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11261 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11262 library_names_spec=
11263 libname_spec='lib$name'
11267 postuninstall_cmds=
11271 shlibpath_overrides_runpath=unknown
11273 dynamic_linker="$host_os ld.so"
11274 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11275 if test "$GCC" = yes; then
11276 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11277 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11278 # if the path contains ";" then we assume it to be the separator
11279 # otherwise default to the standard path separator (i.e. ":") - it is
11280 # assumed that no part of a normal pathname contains ";" but that should
11281 # okay in the real world where ";" in dirpaths is itself problematic.
11282 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11284 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11287 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11289 need_lib_prefix=unknown
11290 hardcode_into_libs=no
11292 # when you set need_version to no, make sure it does not cause -set_version
11293 # flags to be left without arguments
11294 need_version=unknown
11299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11300 shlibpath_var=LIBPATH
11302 # AIX 3 has no versioning support, so we append a major version to the name.
11303 soname_spec='${libname}${release}${shared_ext}$major'
11310 hardcode_into_libs=yes
11311 if test "$host_cpu" = ia64; then
11312 # AIX 5 supports IA64
11313 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11314 shlibpath_var=LD_LIBRARY_PATH
11316 # With GCC up to 2.95.x, collect2 would create an import file
11317 # for dependence libraries. The import file would start with
11318 # the line `#! .'. This would cause the generated library to
11319 # depend on `.', always an invalid library. This was fixed in
11320 # development snapshots of GCC prior to 3.0.
11322 aix4 | aix4.[01] | aix4.[01].*)
11323 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11325 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11328 can_build_shared=no
11332 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11333 # soname into executable. Probably we can add versioning support to
11334 # collect2, so additional links can be useful in future.
11335 if test "$aix_use_runtimelinking" = yes; then
11336 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11337 # instead of lib<name>.a to let people know that these are not
11338 # typical AIX shared libraries.
11339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11341 # We preserve .a as extension for shared libraries through AIX4.2
11342 # and later when we are not doing run time linking.
11343 library_names_spec='${libname}${release}.a $libname.a'
11344 soname_spec='${libname}${release}${shared_ext}$major'
11346 shlibpath_var=LIBPATH
11351 library_names_spec='$libname.ixlibrary $libname.a'
11352 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11353 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'
11357 library_names_spec='${libname}${shared_ext}'
11358 dynamic_linker="$host_os ld.so"
11359 shlibpath_var=LIBRARY_PATH
11365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11366 soname_spec='${libname}${release}${shared_ext}$major'
11367 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11368 shlibpath_var=LD_LIBRARY_PATH
11369 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11370 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11371 # the default ld.so.conf also contains /usr/contrib/lib and
11372 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11373 # libtool to hard-code these into programs
11376 cygwin* | mingw* | pw32*)
11377 version_type=windows
11382 case $GCC,$host_os in
11383 yes,cygwin* | yes,mingw* | yes,pw32*)
11384 library_names_spec='$libname.dll.a'
11385 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11386 postinstall_cmds='base_file=`basename \${file}`~
11387 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11388 dldir=$destdir/`dirname \$dlpath`~
11389 test -d \$dldir || mkdir -p \$dldir~
11390 $install_prog $dir/$dlname \$dldir/$dlname'
11391 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11392 dlpath=$dir/\$dldll~
11394 shlibpath_overrides_runpath=yes
11398 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11399 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11400 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11403 # MinGW DLLs use traditional 'lib' prefix
11404 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11405 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11406 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11407 # It is most probably a Windows format PATH printed by
11408 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11409 # path with ; separators, and with drive letters. We can handle the
11410 # drive letters (cygwin fileutils understands them), so leave them,
11411 # especially as we might pass files found there to a mingw objdump,
11412 # which wouldn't understand a cygwinified path. Ahh.
11413 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11415 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11419 # pw32 DLLs use 'pw' prefix rather than 'lib'
11420 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11426 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11429 dynamic_linker='Win32 ld.exe'
11430 # FIXME: first we should search . and the directory the executable is in
11434 darwin* | rhapsody*)
11435 dynamic_linker="$host_os dyld"
11436 version_type=darwin
11439 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11440 soname_spec='${libname}${release}${major}$shared_ext'
11441 shlibpath_overrides_runpath=yes
11442 shlibpath_var=DYLD_LIBRARY_PATH
11443 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11444 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11445 if test "$GCC" = yes; then
11446 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"`
11448 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11450 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11458 soname_spec='${libname}${release}${shared_ext}$major'
11459 shlibpath_var=LD_LIBRARY_PATH
11470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11471 soname_spec='${libname}${release}${shared_ext}$major'
11472 shlibpath_var=LD_LIBRARY_PATH
11473 shlibpath_overrides_runpath=no
11474 hardcode_into_libs=yes
11475 dynamic_linker='GNU ld.so'
11479 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11480 version_type=freebsd-$objformat
11481 case $version_type in
11483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11488 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11492 shlibpath_var=LD_LIBRARY_PATH
11495 shlibpath_overrides_runpath=yes
11497 freebsd3.01* | freebsdelf3.01*)
11498 shlibpath_overrides_runpath=yes
11499 hardcode_into_libs=yes
11502 shlibpath_overrides_runpath=no
11503 hardcode_into_libs=yes
11512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11513 soname_spec='${libname}${release}${shared_ext}$major'
11514 shlibpath_var=LD_LIBRARY_PATH
11515 hardcode_into_libs=yes
11518 hpux9* | hpux10* | hpux11*)
11519 # Give a soname corresponding to the major version so that dld.sl refuses to
11520 # link against other versions.
11524 case "$host_cpu" in
11527 hardcode_into_libs=yes
11528 dynamic_linker="$host_os dld.so"
11529 shlibpath_var=LD_LIBRARY_PATH
11530 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11532 soname_spec='${libname}${release}${shared_ext}$major'
11533 if test "X$HPUX_IA64_MODE" = X32; then
11534 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11536 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11538 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11542 hardcode_into_libs=yes
11543 dynamic_linker="$host_os dld.sl"
11544 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11545 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11547 soname_spec='${libname}${release}${shared_ext}$major'
11548 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11549 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11553 dynamic_linker="$host_os dld.sl"
11554 shlibpath_var=SHLIB_PATH
11555 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11557 soname_spec='${libname}${release}${shared_ext}$major'
11560 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11561 postinstall_cmds='chmod 555 $lib'
11564 irix5* | irix6* | nonstopux*)
11566 nonstopux*) version_type=nonstopux ;;
11568 if test "$lt_cv_prog_gnu_ld" = yes; then
11576 soname_spec='${libname}${release}${shared_ext}$major'
11577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11579 irix5* | nonstopux*)
11580 libsuff= shlibsuff=
11583 case $LD in # libtool.m4 will add one of these switches to LD
11584 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11585 libsuff= shlibsuff= libmagic=32-bit;;
11586 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11587 libsuff=32 shlibsuff=N32 libmagic=N32;;
11588 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11589 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11590 *) libsuff= shlibsuff= libmagic=never-match;;
11594 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11595 shlibpath_overrides_runpath=no
11596 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11597 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11598 hardcode_into_libs=yes
11601 # No shared lib support for Linux oldld, aout, or coff.
11602 linux*oldld* | linux*aout* | linux*coff*)
11606 # This must be Linux ELF.
11611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11612 soname_spec='${libname}${release}${shared_ext}$major'
11613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11614 shlibpath_var=LD_LIBRARY_PATH
11615 shlibpath_overrides_runpath=no
11616 # This implies no fast_install, which is unacceptable.
11617 # Some rework will be needed to allow for fast_install
11618 # before this can be enabled.
11619 hardcode_into_libs=yes
11621 # Append ld.so.conf contents to the search path
11622 if test -f /etc/ld.so.conf; then
11623 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11624 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11627 # We used to test for /lib/ld.so.1 and disable shared libraries on
11628 # powerpc, because MkLinux only supported shared libraries with the
11629 # GNU dynamic linker. Since this was broken with cross compilers,
11630 # most powerpc-linux boxes support dynamic linking these days and
11631 # people can always --disable-shared, the test was removed, and we
11632 # assume the GNU/Linux dynamic linker is in use.
11633 dynamic_linker='GNU/Linux ld.so'
11640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11641 soname_spec='${libname}${release}${shared_ext}$major'
11642 shlibpath_var=LD_LIBRARY_PATH
11643 shlibpath_overrides_runpath=no
11644 hardcode_into_libs=yes
11645 dynamic_linker='GNU ld.so'
11652 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11655 dynamic_linker='NetBSD (a.out) ld.so'
11657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11658 soname_spec='${libname}${release}${shared_ext}$major'
11659 dynamic_linker='NetBSD ld.elf_so'
11661 shlibpath_var=LD_LIBRARY_PATH
11662 shlibpath_overrides_runpath=yes
11663 hardcode_into_libs=yes
11668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11669 shlibpath_var=LD_LIBRARY_PATH
11670 shlibpath_overrides_runpath=yes
11677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11678 soname_spec='${libname}${release}${shared_ext}$major'
11679 shlibpath_var=LD_LIBRARY_PATH
11680 shlibpath_overrides_runpath=yes
11687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11689 shlibpath_var=LD_LIBRARY_PATH
11690 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11692 openbsd2.[89] | openbsd2.[89].*)
11693 shlibpath_overrides_runpath=no
11696 shlibpath_overrides_runpath=yes
11700 shlibpath_overrides_runpath=yes
11705 libname_spec='$name'
11708 library_names_spec='$libname${shared_ext} $libname.a'
11709 dynamic_linker='OS/2 ld.exe'
11710 shlibpath_var=LIBPATH
11713 osf3* | osf4* | osf5*)
11717 soname_spec='${libname}${release}${shared_ext}$major'
11718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11719 shlibpath_var=LD_LIBRARY_PATH
11720 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11721 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11726 soname_spec='${libname}${release}${shared_ext}$major'
11727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11728 shlibpath_var=LD_LIBRARY_PATH
11735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11736 soname_spec='${libname}${release}${shared_ext}$major'
11737 shlibpath_var=LD_LIBRARY_PATH
11738 shlibpath_overrides_runpath=yes
11739 hardcode_into_libs=yes
11740 # ldd complains unless libraries are executable
11741 postinstall_cmds='chmod +x $lib'
11746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11747 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11748 shlibpath_var=LD_LIBRARY_PATH
11749 shlibpath_overrides_runpath=yes
11750 if test "$with_gnu_ld" = yes; then
11756 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11759 soname_spec='${libname}${release}${shared_ext}$major'
11760 shlibpath_var=LD_LIBRARY_PATH
11761 case $host_vendor in
11763 shlibpath_overrides_runpath=no
11765 export_dynamic_flag_spec='${wl}-Blargedynsym'
11766 runpath_var=LD_RUN_PATH
11774 shlibpath_overrides_runpath=no
11775 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11781 if test -d /usr/nec ;then
11783 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11784 soname_spec='$libname${shared_ext}.$major'
11785 shlibpath_var=LD_LIBRARY_PATH
11791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11792 soname_spec='${libname}${release}${shared_ext}$major'
11793 shlibpath_var=LD_LIBRARY_PATH
11800 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11801 echo "${ECHO_T}$dynamic_linker" >&6
11802 test "$dynamic_linker" = no && can_build_shared=no
11804 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11805 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11806 hardcode_action_CXX=
11807 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11808 test -n "$runpath_var_CXX" || \
11809 test "X$hardcode_automatic_CXX" = "Xyes" ; then
11811 # We can hardcode non-existant directories.
11812 if test "$hardcode_direct_CXX" != no &&
11813 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11814 # have to relink, otherwise we might link with an installed library
11815 # when we should be linking with a yet-to-be-installed one
11816 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11817 test "$hardcode_minus_L_CXX" != no; then
11818 # Linking always hardcodes the temporary library directory.
11819 hardcode_action_CXX=relink
11821 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11822 hardcode_action_CXX=immediate
11825 # We cannot hardcode anything, or else we can only hardcode existing
11827 hardcode_action_CXX=unsupported
11829 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11830 echo "${ECHO_T}$hardcode_action_CXX" >&6
11832 if test "$hardcode_action_CXX" = relink; then
11833 # Fast installation is not supported
11834 enable_fast_install=no
11835 elif test "$shlibpath_overrides_runpath" = yes ||
11836 test "$enable_shared" = no; then
11837 # Fast installation is not necessary
11838 enable_fast_install=needless
11843 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11844 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11845 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11846 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11847 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11848 echo "$as_me:$LINENO: result: yes" >&5
11849 echo "${ECHO_T}yes" >&6
11851 # FIXME - insert some real tests, host_os isn't really good enough
11854 if test -n "$STRIP" ; then
11855 striplib="$STRIP -x"
11856 echo "$as_me:$LINENO: result: yes" >&5
11857 echo "${ECHO_T}yes" >&6
11859 echo "$as_me:$LINENO: result: no" >&5
11860 echo "${ECHO_T}no" >&6
11864 echo "$as_me:$LINENO: result: no" >&5
11865 echo "${ECHO_T}no" >&6
11870 if test "x$enable_dlopen" != xyes; then
11871 enable_dlopen=unknown
11872 enable_dlopen_self=unknown
11873 enable_dlopen_self_static=unknown
11880 lt_cv_dlopen="load_add_on"
11882 lt_cv_dlopen_self=yes
11886 lt_cv_dlopen="LoadLibrary"
11891 lt_cv_dlopen="dlopen"
11896 # if libdl is installed we need to link against it
11897 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11898 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11899 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11900 echo $ECHO_N "(cached) $ECHO_C" >&6
11902 ac_check_lib_save_LIBS=$LIBS
11904 cat >conftest.$ac_ext <<_ACEOF
11907 cat confdefs.h >>conftest.$ac_ext
11908 cat >>conftest.$ac_ext <<_ACEOF
11909 /* end confdefs.h. */
11911 /* Override any gcc2 internal prototype to avoid an error. */
11915 /* We use char because int might match the return type of a gcc2
11916 builtin and then its argument prototype would still apply. */
11926 rm -f conftest.$ac_objext conftest$ac_exeext
11927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11928 (eval $ac_link) 2>conftest.er1
11930 grep -v '^ *+' conftest.er1 >conftest.err
11932 cat conftest.err >&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); } &&
11935 { ac_try='test -z "$ac_cxx_werror_flag"
11936 || test ! -s conftest.err'
11937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938 (eval $ac_try) 2>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; } &&
11942 { ac_try='test -s conftest$ac_exeext'
11943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944 (eval $ac_try) 2>&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; }; then
11948 ac_cv_lib_dl_dlopen=yes
11950 echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11953 ac_cv_lib_dl_dlopen=no
11955 rm -f conftest.err conftest.$ac_objext \
11956 conftest$ac_exeext conftest.$ac_ext
11957 LIBS=$ac_check_lib_save_LIBS
11959 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11960 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11961 if test $ac_cv_lib_dl_dlopen = yes; then
11962 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11965 lt_cv_dlopen="dyld"
11967 lt_cv_dlopen_self=yes
11974 echo "$as_me:$LINENO: checking for shl_load" >&5
11975 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11976 if test "${ac_cv_func_shl_load+set}" = set; then
11977 echo $ECHO_N "(cached) $ECHO_C" >&6
11979 cat >conftest.$ac_ext <<_ACEOF
11982 cat confdefs.h >>conftest.$ac_ext
11983 cat >>conftest.$ac_ext <<_ACEOF
11984 /* end confdefs.h. */
11985 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11987 #define shl_load innocuous_shl_load
11989 /* System header to define __stub macros and hopefully few prototypes,
11990 which can conflict with char shl_load (); below.
11991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11992 <limits.h> exists even on freestanding compilers. */
11995 # include <limits.h>
11997 # include <assert.h>
12002 /* Override any gcc2 internal prototype to avoid an error. */
12007 /* We use char because int might match the return type of a gcc2
12008 builtin and then its argument prototype would still apply. */
12010 /* The GNU C library defines this for functions which it implements
12011 to always fail with ENOSYS. Some functions are actually named
12012 something starting with __ and the normal name is an alias. */
12013 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12016 char (*f) () = shl_load;
12025 return f != shl_load;
12030 rm -f conftest.$ac_objext conftest$ac_exeext
12031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12032 (eval $ac_link) 2>conftest.er1
12034 grep -v '^ *+' conftest.er1 >conftest.err
12036 cat conftest.err >&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); } &&
12039 { ac_try='test -z "$ac_cxx_werror_flag"
12040 || test ! -s conftest.err'
12041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12042 (eval $ac_try) 2>&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; } &&
12046 { ac_try='test -s conftest$ac_exeext'
12047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12048 (eval $ac_try) 2>&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); }; }; then
12052 ac_cv_func_shl_load=yes
12054 echo "$as_me: failed program was:" >&5
12055 sed 's/^/| /' conftest.$ac_ext >&5
12057 ac_cv_func_shl_load=no
12059 rm -f conftest.err conftest.$ac_objext \
12060 conftest$ac_exeext conftest.$ac_ext
12062 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12063 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12064 if test $ac_cv_func_shl_load = yes; then
12065 lt_cv_dlopen="shl_load"
12067 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12068 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12069 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12070 echo $ECHO_N "(cached) $ECHO_C" >&6
12072 ac_check_lib_save_LIBS=$LIBS
12074 cat >conftest.$ac_ext <<_ACEOF
12077 cat confdefs.h >>conftest.$ac_ext
12078 cat >>conftest.$ac_ext <<_ACEOF
12079 /* end confdefs.h. */
12081 /* Override any gcc2 internal prototype to avoid an error. */
12085 /* We use char because int might match the return type of a gcc2
12086 builtin and then its argument prototype would still apply. */
12096 rm -f conftest.$ac_objext conftest$ac_exeext
12097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12098 (eval $ac_link) 2>conftest.er1
12100 grep -v '^ *+' conftest.er1 >conftest.err
12102 cat conftest.err >&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } &&
12105 { ac_try='test -z "$ac_cxx_werror_flag"
12106 || test ! -s conftest.err'
12107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108 (eval $ac_try) 2>&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; } &&
12112 { ac_try='test -s conftest$ac_exeext'
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; }; then
12118 ac_cv_lib_dld_shl_load=yes
12120 echo "$as_me: failed program was:" >&5
12121 sed 's/^/| /' conftest.$ac_ext >&5
12123 ac_cv_lib_dld_shl_load=no
12125 rm -f conftest.err conftest.$ac_objext \
12126 conftest$ac_exeext conftest.$ac_ext
12127 LIBS=$ac_check_lib_save_LIBS
12129 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12130 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12131 if test $ac_cv_lib_dld_shl_load = yes; then
12132 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12134 echo "$as_me:$LINENO: checking for dlopen" >&5
12135 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12136 if test "${ac_cv_func_dlopen+set}" = set; then
12137 echo $ECHO_N "(cached) $ECHO_C" >&6
12139 cat >conftest.$ac_ext <<_ACEOF
12142 cat confdefs.h >>conftest.$ac_ext
12143 cat >>conftest.$ac_ext <<_ACEOF
12144 /* end confdefs.h. */
12145 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12147 #define dlopen innocuous_dlopen
12149 /* System header to define __stub macros and hopefully few prototypes,
12150 which can conflict with char dlopen (); below.
12151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12152 <limits.h> exists even on freestanding compilers. */
12155 # include <limits.h>
12157 # include <assert.h>
12162 /* Override any gcc2 internal prototype to avoid an error. */
12167 /* We use char because int might match the return type of a gcc2
12168 builtin and then its argument prototype would still apply. */
12170 /* The GNU C library defines this for functions which it implements
12171 to always fail with ENOSYS. Some functions are actually named
12172 something starting with __ and the normal name is an alias. */
12173 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12176 char (*f) () = dlopen;
12185 return f != dlopen;
12190 rm -f conftest.$ac_objext conftest$ac_exeext
12191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12192 (eval $ac_link) 2>conftest.er1
12194 grep -v '^ *+' conftest.er1 >conftest.err
12196 cat conftest.err >&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } &&
12199 { ac_try='test -z "$ac_cxx_werror_flag"
12200 || test ! -s conftest.err'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; } &&
12206 { ac_try='test -s conftest$ac_exeext'
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; }; then
12212 ac_cv_func_dlopen=yes
12214 echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12217 ac_cv_func_dlopen=no
12219 rm -f conftest.err conftest.$ac_objext \
12220 conftest$ac_exeext conftest.$ac_ext
12222 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12223 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12224 if test $ac_cv_func_dlopen = yes; then
12225 lt_cv_dlopen="dlopen"
12227 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12228 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12229 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 ac_check_lib_save_LIBS=$LIBS
12234 cat >conftest.$ac_ext <<_ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h. */
12241 /* Override any gcc2 internal prototype to avoid an error. */
12245 /* We use char because int might match the return type of a gcc2
12246 builtin and then its argument prototype would still apply. */
12256 rm -f conftest.$ac_objext conftest$ac_exeext
12257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12258 (eval $ac_link) 2>conftest.er1
12260 grep -v '^ *+' conftest.er1 >conftest.err
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } &&
12265 { ac_try='test -z "$ac_cxx_werror_flag"
12266 || test ! -s conftest.err'
12267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12268 (eval $ac_try) 2>&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); }; } &&
12272 { ac_try='test -s conftest$ac_exeext'
12273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; }; then
12278 ac_cv_lib_dl_dlopen=yes
12280 echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.$ac_ext >&5
12283 ac_cv_lib_dl_dlopen=no
12285 rm -f conftest.err conftest.$ac_objext \
12286 conftest$ac_exeext conftest.$ac_ext
12287 LIBS=$ac_check_lib_save_LIBS
12289 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12290 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12291 if test $ac_cv_lib_dl_dlopen = yes; then
12292 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12294 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12295 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12296 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12297 echo $ECHO_N "(cached) $ECHO_C" >&6
12299 ac_check_lib_save_LIBS=$LIBS
12300 LIBS="-lsvld $LIBS"
12301 cat >conftest.$ac_ext <<_ACEOF
12304 cat confdefs.h >>conftest.$ac_ext
12305 cat >>conftest.$ac_ext <<_ACEOF
12306 /* end confdefs.h. */
12308 /* Override any gcc2 internal prototype to avoid an error. */
12312 /* We use char because int might match the return type of a gcc2
12313 builtin and then its argument prototype would still apply. */
12323 rm -f conftest.$ac_objext conftest$ac_exeext
12324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12325 (eval $ac_link) 2>conftest.er1
12327 grep -v '^ *+' conftest.er1 >conftest.err
12329 cat conftest.err >&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); } &&
12332 { ac_try='test -z "$ac_cxx_werror_flag"
12333 || test ! -s conftest.err'
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; } &&
12339 { ac_try='test -s conftest$ac_exeext'
12340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341 (eval $ac_try) 2>&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; }; then
12345 ac_cv_lib_svld_dlopen=yes
12347 echo "$as_me: failed program was:" >&5
12348 sed 's/^/| /' conftest.$ac_ext >&5
12350 ac_cv_lib_svld_dlopen=no
12352 rm -f conftest.err conftest.$ac_objext \
12353 conftest$ac_exeext conftest.$ac_ext
12354 LIBS=$ac_check_lib_save_LIBS
12356 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12357 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12358 if test $ac_cv_lib_svld_dlopen = yes; then
12359 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12361 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12362 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12363 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12364 echo $ECHO_N "(cached) $ECHO_C" >&6
12366 ac_check_lib_save_LIBS=$LIBS
12368 cat >conftest.$ac_ext <<_ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12375 /* Override any gcc2 internal prototype to avoid an error. */
12379 /* We use char because int might match the return type of a gcc2
12380 builtin and then its argument prototype would still apply. */
12390 rm -f conftest.$ac_objext conftest$ac_exeext
12391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12392 (eval $ac_link) 2>conftest.er1
12394 grep -v '^ *+' conftest.er1 >conftest.err
12396 cat conftest.err >&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); } &&
12399 { ac_try='test -z "$ac_cxx_werror_flag"
12400 || test ! -s conftest.err'
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; } &&
12406 { ac_try='test -s conftest$ac_exeext'
12407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12408 (eval $ac_try) 2>&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); }; }; then
12412 ac_cv_lib_dld_dld_link=yes
12414 echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.$ac_ext >&5
12417 ac_cv_lib_dld_dld_link=no
12419 rm -f conftest.err conftest.$ac_objext \
12420 conftest$ac_exeext conftest.$ac_ext
12421 LIBS=$ac_check_lib_save_LIBS
12423 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12424 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12425 if test $ac_cv_lib_dld_dld_link = yes; then
12426 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12447 if test "x$lt_cv_dlopen" != xno; then
12453 case $lt_cv_dlopen in
12455 save_CPPFLAGS="$CPPFLAGS"
12456 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12458 save_LDFLAGS="$LDFLAGS"
12459 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12462 LIBS="$lt_cv_dlopen_libs $LIBS"
12464 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12465 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12466 if test "${lt_cv_dlopen_self+set}" = set; then
12467 echo $ECHO_N "(cached) $ECHO_C" >&6
12469 if test "$cross_compiling" = yes; then :
12470 lt_cv_dlopen_self=cross
12472 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12473 lt_status=$lt_dlunknown
12474 cat > conftest.$ac_ext <<EOF
12475 #line 12475 "configure"
12476 #include "confdefs.h"
12485 # define LT_DLGLOBAL RTLD_GLOBAL
12488 # define LT_DLGLOBAL DL_GLOBAL
12490 # define LT_DLGLOBAL 0
12494 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12495 find out it does not work in some platform. */
12496 #ifndef LT_DLLAZY_OR_NOW
12498 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12501 # define LT_DLLAZY_OR_NOW DL_LAZY
12504 # define LT_DLLAZY_OR_NOW RTLD_NOW
12507 # define LT_DLLAZY_OR_NOW DL_NOW
12509 # define LT_DLLAZY_OR_NOW 0
12517 extern "C" void exit (int);
12520 void fnord() { int i=42;}
12523 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12524 int status = $lt_dlunknown;
12528 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12529 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12530 /* dlclose (self); */
12536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12537 (eval $ac_link) 2>&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12541 (./conftest; exit; ) 2>/dev/null
12543 case x$lt_status in
12544 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12545 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12546 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12549 # compilation failed
12550 lt_cv_dlopen_self=no
12557 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12558 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12560 if test "x$lt_cv_dlopen_self" = xyes; then
12561 LDFLAGS="$LDFLAGS $link_static_flag"
12562 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12563 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12564 if test "${lt_cv_dlopen_self_static+set}" = set; then
12565 echo $ECHO_N "(cached) $ECHO_C" >&6
12567 if test "$cross_compiling" = yes; then :
12568 lt_cv_dlopen_self_static=cross
12570 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12571 lt_status=$lt_dlunknown
12572 cat > conftest.$ac_ext <<EOF
12573 #line 12573 "configure"
12574 #include "confdefs.h"
12583 # define LT_DLGLOBAL RTLD_GLOBAL
12586 # define LT_DLGLOBAL DL_GLOBAL
12588 # define LT_DLGLOBAL 0
12592 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12593 find out it does not work in some platform. */
12594 #ifndef LT_DLLAZY_OR_NOW
12596 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12599 # define LT_DLLAZY_OR_NOW DL_LAZY
12602 # define LT_DLLAZY_OR_NOW RTLD_NOW
12605 # define LT_DLLAZY_OR_NOW DL_NOW
12607 # define LT_DLLAZY_OR_NOW 0
12615 extern "C" void exit (int);
12618 void fnord() { int i=42;}
12621 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12622 int status = $lt_dlunknown;
12626 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12627 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12628 /* dlclose (self); */
12634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12635 (eval $ac_link) 2>&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12639 (./conftest; exit; ) 2>/dev/null
12641 case x$lt_status in
12642 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12643 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12644 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12647 # compilation failed
12648 lt_cv_dlopen_self_static=no
12655 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12656 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12659 CPPFLAGS="$save_CPPFLAGS"
12660 LDFLAGS="$save_LDFLAGS"
12665 case $lt_cv_dlopen_self in
12666 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12667 *) enable_dlopen_self=unknown ;;
12670 case $lt_cv_dlopen_self_static in
12671 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12672 *) enable_dlopen_self_static=unknown ;;
12677 # The else clause should only fire when bootstrapping the
12678 # libtool distribution, otherwise you forgot to ship ltmain.sh
12679 # with your package, and you will get complaints that there are
12680 # no rules to generate ltmain.sh.
12681 if test -f "$ltmain"; then
12682 # See if we are running on zsh, and set the options which allow our commands through
12683 # without removal of \ escapes.
12684 if test -n "${ZSH_VERSION+set}" ; then
12685 setopt NO_GLOB_SUBST
12687 # Now quote all the things that may contain metacharacters while being
12688 # careful not to overquote the AC_SUBSTed values. We take copies of the
12689 # variables and quote the copies for generation of the libtool script.
12690 for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
12692 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12693 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12694 deplibs_check_method reload_flag reload_cmds need_locks \
12695 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12696 lt_cv_sys_global_symbol_to_c_name_address \
12697 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12698 old_postinstall_cmds old_postuninstall_cmds \
12702 lt_prog_compiler_wl_CXX \
12703 lt_prog_compiler_pic_CXX \
12704 lt_prog_compiler_static_CXX \
12705 lt_prog_compiler_no_builtin_flag_CXX \
12706 export_dynamic_flag_spec_CXX \
12707 thread_safe_flag_spec_CXX \
12708 whole_archive_flag_spec_CXX \
12709 enable_shared_with_static_runtimes_CXX \
12710 old_archive_cmds_CXX \
12711 old_archive_from_new_cmds_CXX \
12712 predep_objects_CXX \
12713 postdep_objects_CXX \
12716 compiler_lib_search_path_CXX \
12718 archive_expsym_cmds_CXX \
12719 postinstall_cmds_CXX \
12720 postuninstall_cmds_CXX \
12721 old_archive_from_expsyms_cmds_CXX \
12722 allow_undefined_flag_CXX \
12723 no_undefined_flag_CXX \
12724 export_symbols_cmds_CXX \
12725 hardcode_libdir_flag_spec_CXX \
12726 hardcode_libdir_flag_spec_ld_CXX \
12727 hardcode_libdir_separator_CXX \
12728 hardcode_automatic_CXX \
12730 module_expsym_cmds_CXX \
12731 lt_cv_prog_compiler_c_o_CXX \
12732 exclude_expsyms_CXX \
12733 include_expsyms_CXX; do
12736 old_archive_cmds_CXX | \
12737 old_archive_from_new_cmds_CXX | \
12738 archive_cmds_CXX | \
12739 archive_expsym_cmds_CXX | \
12740 module_cmds_CXX | \
12741 module_expsym_cmds_CXX | \
12742 old_archive_from_expsyms_cmds_CXX | \
12743 export_symbols_cmds_CXX | \
12744 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12745 postinstall_cmds | postuninstall_cmds | \
12746 old_postinstall_cmds | old_postuninstall_cmds | \
12747 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12748 # Double-quote double-evaled strings.
12749 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12752 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12758 *'\$0 --fallback-echo"')
12759 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12765 cat <<__EOF__ >> "$cfgfile"
12766 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12768 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12770 # Shell to use when invoking shell scripts.
12773 # Whether or not to build shared libraries.
12774 build_libtool_libs=$enable_shared
12776 # Whether or not to build static libraries.
12777 build_old_libs=$enable_static
12779 # Whether or not to add -lc for building shared libraries.
12780 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12782 # Whether or not to disallow shared libs when runtime libs are static
12783 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12785 # Whether or not to optimize for fast installation.
12786 fast_install=$enable_fast_install
12789 host_alias=$host_alias
12792 # An echo program that does not interpret backslashes.
12797 AR_FLAGS=$lt_AR_FLAGS
12802 # A language-specific compiler.
12803 CC=$lt_compiler_CXX
12805 # Is the compiler the GNU C compiler?
12811 # The linker used to build libraries.
12814 # Whether we need hard or soft links.
12817 # A BSD-compatible nm program.
12820 # A symbol stripping program
12823 # Used to examine libraries when file_magic_cmd begins "file"
12824 MAGIC_CMD=$MAGIC_CMD
12826 # Used on cygwin: DLL creation program.
12829 # Used on cygwin: object dumper.
12832 # Used on cygwin: assembler.
12835 # The name of the directory that contains temporary libtool files.
12838 # How to create reloadable object files.
12839 reload_flag=$lt_reload_flag
12840 reload_cmds=$lt_reload_cmds
12842 # How to pass a linker flag through the compiler.
12843 wl=$lt_lt_prog_compiler_wl_CXX
12845 # Object file suffix (normally "o").
12846 objext="$ac_objext"
12848 # Old archive suffix (normally "a").
12851 # Shared library suffix (normally ".so").
12852 shrext_cmds='$shrext_cmds'
12854 # Executable file suffix (normally "").
12857 # Additional compiler flags for building library objects.
12858 pic_flag=$lt_lt_prog_compiler_pic_CXX
12861 # What is the maximum length of a command?
12862 max_cmd_len=$lt_cv_sys_max_cmd_len
12864 # Does compiler simultaneously support -c and -o options?
12865 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12867 # Must we lock files when doing compilation ?
12868 need_locks=$lt_need_locks
12870 # Do we need the lib prefix for modules?
12871 need_lib_prefix=$need_lib_prefix
12873 # Do we need a version for libraries?
12874 need_version=$need_version
12876 # Whether dlopen is supported.
12877 dlopen_support=$enable_dlopen
12879 # Whether dlopen of programs is supported.
12880 dlopen_self=$enable_dlopen_self
12882 # Whether dlopen of statically linked programs is supported.
12883 dlopen_self_static=$enable_dlopen_self_static
12885 # Compiler flag to prevent dynamic linking.
12886 link_static_flag=$lt_lt_prog_compiler_static_CXX
12888 # Compiler flag to turn off builtin functions.
12889 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12891 # Compiler flag to allow reflexive dlopens.
12892 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12894 # Compiler flag to generate shared objects directly from archives.
12895 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12897 # Compiler flag to generate thread-safe objects.
12898 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12900 # Library versioning type.
12901 version_type=$version_type
12903 # Format of library name prefix.
12904 libname_spec=$lt_libname_spec
12906 # List of archive names. First name is the real one, the rest are links.
12907 # The last name is the one that the linker finds with -lNAME.
12908 library_names_spec=$lt_library_names_spec
12910 # The coded name of the library, if different from the real name.
12911 soname_spec=$lt_soname_spec
12913 # Commands used to build and install an old-style archive.
12915 old_archive_cmds=$lt_old_archive_cmds_CXX
12916 old_postinstall_cmds=$lt_old_postinstall_cmds
12917 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12919 # Create an old-style archive from a shared archive.
12920 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12922 # Create a temporary old-style archive to link instead of a shared archive.
12923 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12925 # Commands used to build and install a shared archive.
12926 archive_cmds=$lt_archive_cmds_CXX
12927 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12928 postinstall_cmds=$lt_postinstall_cmds
12929 postuninstall_cmds=$lt_postuninstall_cmds
12931 # Commands used to build a loadable module (assumed same as above if empty)
12932 module_cmds=$lt_module_cmds_CXX
12933 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12935 # Commands to strip libraries.
12936 old_striplib=$lt_old_striplib
12937 striplib=$lt_striplib
12939 # Dependencies to place before the objects being linked to create a
12941 predep_objects=$lt_predep_objects_CXX
12943 # Dependencies to place after the objects being linked to create a
12945 postdep_objects=$lt_postdep_objects_CXX
12947 # Dependencies to place before the objects being linked to create a
12949 predeps=$lt_predeps_CXX
12951 # Dependencies to place after the objects being linked to create a
12953 postdeps=$lt_postdeps_CXX
12955 # The library search path used internally by the compiler when linking
12956 # a shared library.
12957 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12959 # Method to check whether dependent libraries are shared objects.
12960 deplibs_check_method=$lt_deplibs_check_method
12962 # Command to use when deplibs_check_method == file_magic.
12963 file_magic_cmd=$lt_file_magic_cmd
12965 # Flag that allows shared libraries with undefined symbols to be built.
12966 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12968 # Flag that forces no undefined symbols.
12969 no_undefined_flag=$lt_no_undefined_flag_CXX
12971 # Commands used to finish a libtool library installation in a directory.
12972 finish_cmds=$lt_finish_cmds
12974 # Same as above, but a single script fragment to be evaled but not shown.
12975 finish_eval=$lt_finish_eval
12977 # Take the output of nm and produce a listing of raw symbols and C names.
12978 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12980 # Transform the output of nm in a proper C declaration
12981 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12983 # Transform the output of nm in a C name address pair
12984 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12986 # This is the shared library runtime path variable.
12987 runpath_var=$runpath_var
12989 # This is the shared library path variable.
12990 shlibpath_var=$shlibpath_var
12992 # Is shlibpath searched before the hard-coded library search path?
12993 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12995 # How to hardcode a shared library path into an executable.
12996 hardcode_action=$hardcode_action_CXX
12998 # Whether we should hardcode library paths into libraries.
12999 hardcode_into_libs=$hardcode_into_libs
13001 # Flag to hardcode \$libdir into a binary during linking.
13002 # This must work even if \$libdir does not exist.
13003 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13005 # If ld is used when linking, flag to hardcode \$libdir into
13006 # a binary during linking. This must work even if \$libdir does
13008 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13010 # Whether we need a single -rpath flag with a separated argument.
13011 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13013 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13014 # resulting binary.
13015 hardcode_direct=$hardcode_direct_CXX
13017 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13018 # resulting binary.
13019 hardcode_minus_L=$hardcode_minus_L_CXX
13021 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13022 # the resulting binary.
13023 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13025 # Set to yes if building a shared library automatically hardcodes DIR into the library
13026 # and all subsequent libraries and executables linked against it.
13027 hardcode_automatic=$hardcode_automatic_CXX
13029 # Variables whose values should be saved in libtool wrapper scripts and
13030 # restored at relink time.
13031 variables_saved_for_relink="$variables_saved_for_relink"
13033 # Whether libtool must link a program against all its dependency libraries.
13034 link_all_deplibs=$link_all_deplibs_CXX
13036 # Compile-time system search path for libraries
13037 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13039 # Run-time system search path for libraries
13040 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13042 # Fix the shell variable \$srcfile for the compiler.
13043 fix_srcfile_path="$fix_srcfile_path_CXX"
13045 # Set to yes if exported symbols are required.
13046 always_export_symbols=$always_export_symbols_CXX
13048 # The commands to list exported symbols.
13049 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13051 # The commands to extract the exported symbol list from a shared archive.
13052 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13054 # Symbols that should not be listed in the preloaded symbols.
13055 exclude_expsyms=$lt_exclude_expsyms_CXX
13057 # Symbols that must always be exported.
13058 include_expsyms=$lt_include_expsyms_CXX
13060 # ### END LIBTOOL TAG CONFIG: $tagname
13066 # If there is no Makefile yet, we rely on a make rule to execute
13067 # `config.status --recheck' to rerun these tests and create the
13068 # libtool script then.
13069 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13070 if test -f "$ltmain_in"; then
13071 test -f Makefile && make "$ltmain"
13077 ac_cpp='$CPP $CPPFLAGS'
13078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13086 with_gnu_ldcxx=$with_gnu_ld
13087 with_gnu_ld=$lt_save_with_gnu_ld
13088 lt_cv_path_LDCXX=$lt_cv_path_LD
13089 lt_cv_path_LD=$lt_save_path_LD
13090 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13091 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13099 if test -n "$F77" && test "X$F77" != "Xno"; then
13102 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13103 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13104 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13107 archive_cmds_need_lc_F77=no
13108 allow_undefined_flag_F77=
13109 always_export_symbols_F77=no
13110 archive_expsym_cmds_F77=
13111 export_dynamic_flag_spec_F77=
13112 hardcode_direct_F77=no
13113 hardcode_libdir_flag_spec_F77=
13114 hardcode_libdir_flag_spec_ld_F77=
13115 hardcode_libdir_separator_F77=
13116 hardcode_minus_L_F77=no
13117 hardcode_automatic_F77=no
13119 module_expsym_cmds_F77=
13120 link_all_deplibs_F77=unknown
13121 old_archive_cmds_F77=$old_archive_cmds
13122 no_undefined_flag_F77=
13123 whole_archive_flag_spec_F77=
13124 enable_shared_with_static_runtimes_F77=no
13126 # Source file extension for f77 test sources.
13129 # Object file extension for compiled f77 test sources.
13133 # Code to be used in simple compile tests
13134 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13136 # Code to be used in simple link tests
13137 lt_simple_link_test_code=" program t\n end\n"
13139 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13141 # If no C compiler was specified, use CC.
13144 # Allow CC to be a program name with arguments.
13148 # Allow CC to be a program name with arguments.
13153 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13155 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13156 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13157 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13158 echo "${ECHO_T}$can_build_shared" >&6
13160 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13161 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13162 test "$can_build_shared" = "no" && enable_shared=no
13164 # On AIX, shared libraries and static libraries use the same namespace, and
13165 # are all built from PIC.
13168 test "$enable_shared" = yes && enable_static=no
13169 if test -n "$RANLIB"; then
13170 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13171 postinstall_cmds='$RANLIB $lib'
13175 test "$enable_shared" = yes && enable_static=no
13178 echo "$as_me:$LINENO: result: $enable_shared" >&5
13179 echo "${ECHO_T}$enable_shared" >&6
13181 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13182 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13183 # Make sure either enable_shared or enable_static is yes.
13184 test "$enable_shared" = yes || enable_static=yes
13185 echo "$as_me:$LINENO: result: $enable_static" >&5
13186 echo "${ECHO_T}$enable_static" >&6
13188 test "$ld_shlibs_F77" = no && can_build_shared=no
13193 lt_prog_compiler_wl_F77=
13194 lt_prog_compiler_pic_F77=
13195 lt_prog_compiler_static_F77=
13197 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13198 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13200 if test "$GCC" = yes; then
13201 lt_prog_compiler_wl_F77='-Wl,'
13202 lt_prog_compiler_static_F77='-static'
13206 # All AIX code is PIC.
13207 if test "$host_cpu" = ia64; then
13208 # AIX 5 now supports IA64 processor
13209 lt_prog_compiler_static_F77='-Bstatic'
13214 # FIXME: we need at least 68020 code to build shared libraries, but
13215 # adding the `-m68020' flag to GCC prevents building anything better,
13217 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13220 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13221 # PIC is the default for these OSes.
13224 mingw* | pw32* | os2*)
13225 # This hack is so that the source file can tell whether it is being
13226 # built for inclusion in a dll (and should export symbols for example).
13227 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13230 darwin* | rhapsody*)
13231 # PIC is the default on this platform
13232 # Common symbols not allowed in MH_DYLIB files
13233 lt_prog_compiler_pic_F77='-fno-common'
13237 # Just because we use GCC doesn't mean we suddenly get shared libraries
13238 # on systems that don't support them.
13239 lt_prog_compiler_can_build_shared_F77=no
13244 if test -d /usr/nec; then
13245 lt_prog_compiler_pic_F77=-Kconform_pic
13250 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13251 # not for PA HP-UX.
13252 case "$host_cpu" in
13257 lt_prog_compiler_pic_F77='-fPIC'
13263 lt_prog_compiler_pic_F77='-fPIC'
13267 # PORTME Check for flag to pass linker flags through the system compiler.
13270 lt_prog_compiler_wl_F77='-Wl,'
13271 if test "$host_cpu" = ia64; then
13272 # AIX 5 now supports IA64 processor
13273 lt_prog_compiler_static_F77='-Bstatic'
13275 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13279 # PIC is the default on this platform
13280 # Common symbols not allowed in MH_DYLIB files
13281 case "$cc_basename" in
13283 lt_prog_compiler_pic_F77='-qnocommon'
13284 lt_prog_compiler_wl_F77='-Wl,'
13289 mingw* | pw32* | os2*)
13290 # This hack is so that the source file can tell whether it is being
13291 # built for inclusion in a dll (and should export symbols for example).
13292 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13295 hpux9* | hpux10* | hpux11*)
13296 lt_prog_compiler_wl_F77='-Wl,'
13297 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13298 # not for PA HP-UX.
13299 case "$host_cpu" in
13304 lt_prog_compiler_pic_F77='+Z'
13307 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13308 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13311 irix5* | irix6* | nonstopux*)
13312 lt_prog_compiler_wl_F77='-Wl,'
13313 # PIC (with -KPIC) is the default.
13314 lt_prog_compiler_static_F77='-non_shared'
13318 lt_prog_compiler_pic_F77='-KPIC'
13319 lt_prog_compiler_static_F77='-Bstatic'
13325 lt_prog_compiler_wl_F77='-Wl,'
13326 lt_prog_compiler_pic_F77='-KPIC'
13327 lt_prog_compiler_static_F77='-static'
13330 lt_prog_compiler_wl_F77='-Wl,'
13331 # All Alpha code is PIC.
13332 lt_prog_compiler_static_F77='-non_shared'
13337 osf3* | osf4* | osf5*)
13338 lt_prog_compiler_wl_F77='-Wl,'
13339 # All OSF/1 code is PIC.
13340 lt_prog_compiler_static_F77='-non_shared'
13344 lt_prog_compiler_pic_F77='-Kpic'
13345 lt_prog_compiler_static_F77='-dn'
13349 lt_prog_compiler_wl_F77='-Wl,'
13350 lt_prog_compiler_pic_F77='-KPIC'
13351 lt_prog_compiler_static_F77='-Bstatic'
13355 lt_prog_compiler_wl_F77='-Qoption ld '
13356 lt_prog_compiler_pic_F77='-PIC'
13357 lt_prog_compiler_static_F77='-Bstatic'
13360 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13361 lt_prog_compiler_wl_F77='-Wl,'
13362 lt_prog_compiler_pic_F77='-KPIC'
13363 lt_prog_compiler_static_F77='-Bstatic'
13367 if test -d /usr/nec ;then
13368 lt_prog_compiler_pic_F77='-Kconform_pic'
13369 lt_prog_compiler_static_F77='-Bstatic'
13374 lt_prog_compiler_pic_F77='-pic'
13375 lt_prog_compiler_static_F77='-Bstatic'
13379 lt_prog_compiler_can_build_shared_F77=no
13384 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13385 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13388 # Check to make sure the PIC flag actually works.
13390 if test -n "$lt_prog_compiler_pic_F77"; then
13392 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13393 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13394 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13395 echo $ECHO_N "(cached) $ECHO_C" >&6
13397 lt_prog_compiler_pic_works_F77=no
13398 ac_outfile=conftest.$ac_objext
13399 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13400 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13401 # Insert the option either (1) after the last *FLAGS variable, or
13402 # (2) before a word containing "conftest.", or (3) at the end.
13403 # Note that $ac_compile itself does not contain backslashes and begins
13404 # with a dollar sign (not a hyphen), so the echo should work correctly.
13405 # The option is referenced via a variable to avoid confusing sed.
13406 lt_compile=`echo "$ac_compile" | $SED \
13407 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13409 -e 's:$: $lt_compiler_flag:'`
13410 (eval echo "\"\$as_me:13410: $lt_compile\"" >&5)
13411 (eval "$lt_compile" 2>conftest.err)
13413 cat conftest.err >&5
13414 echo "$as_me:13414: \$? = $ac_status" >&5
13415 if (exit $ac_status) && test -s "$ac_outfile"; then
13416 # The compiler can only warn and ignore the option if not recognized
13417 # So say no if there are warnings
13418 if test ! -s conftest.err; then
13419 lt_prog_compiler_pic_works_F77=yes
13425 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13426 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13428 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13429 case $lt_prog_compiler_pic_F77 in
13431 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13434 lt_prog_compiler_pic_F77=
13435 lt_prog_compiler_can_build_shared_F77=no
13440 # For platforms which do not support PIC, -DPIC is meaningless:
13442 lt_prog_compiler_pic_F77=
13445 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13449 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13450 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13451 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13454 lt_cv_prog_compiler_c_o_F77=no
13455 $rm -r conftest 2>/dev/null
13459 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13461 lt_compiler_flag="-o out/conftest2.$ac_objext"
13462 # Insert the option either (1) after the last *FLAGS variable, or
13463 # (2) before a word containing "conftest.", or (3) at the end.
13464 # Note that $ac_compile itself does not contain backslashes and begins
13465 # with a dollar sign (not a hyphen), so the echo should work correctly.
13466 lt_compile=`echo "$ac_compile" | $SED \
13467 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13468 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13469 -e 's:$: $lt_compiler_flag:'`
13470 (eval echo "\"\$as_me:13470: $lt_compile\"" >&5)
13471 (eval "$lt_compile" 2>out/conftest.err)
13473 cat out/conftest.err >&5
13474 echo "$as_me:13474: \$? = $ac_status" >&5
13475 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13477 # The compiler can only warn and ignore the option if not recognized
13478 # So say no if there are warnings
13479 if test ! -s out/conftest.err; then
13480 lt_cv_prog_compiler_c_o_F77=yes
13485 # SGI C++ compiler will create directory out/ii_files/ for
13486 # template instantiation
13487 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13488 $rm out/* && rmdir out
13494 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13495 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13498 hard_links="nottested"
13499 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13500 # do not overwrite the value of need_locks provided by the user
13501 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13502 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13505 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13507 ln conftest.a conftest.b 2>&5 || hard_links=no
13508 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13509 echo "$as_me:$LINENO: result: $hard_links" >&5
13510 echo "${ECHO_T}$hard_links" >&6
13511 if test "$hard_links" = no; then
13512 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13513 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13520 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13521 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13524 allow_undefined_flag_F77=
13525 enable_shared_with_static_runtimes_F77=no
13527 archive_expsym_cmds_F77=
13528 old_archive_From_new_cmds_F77=
13529 old_archive_from_expsyms_cmds_F77=
13530 export_dynamic_flag_spec_F77=
13531 whole_archive_flag_spec_F77=
13532 thread_safe_flag_spec_F77=
13533 hardcode_libdir_flag_spec_F77=
13534 hardcode_libdir_flag_spec_ld_F77=
13535 hardcode_libdir_separator_F77=
13536 hardcode_direct_F77=no
13537 hardcode_minus_L_F77=no
13538 hardcode_shlibpath_var_F77=unsupported
13539 link_all_deplibs_F77=unknown
13540 hardcode_automatic_F77=no
13542 module_expsym_cmds_F77=
13543 always_export_symbols_F77=no
13544 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13545 # include_expsyms should be a list of space-separated symbols to be *always*
13546 # included in the symbol list
13547 include_expsyms_F77=
13548 # exclude_expsyms can be an extended regexp of symbols to exclude
13549 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13550 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13551 # as well as any symbol that contains `d'.
13552 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13553 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13554 # platforms (ab)use it in PIC code, but their linkers get confused if
13555 # the symbol is explicitly referenced. Since portable code cannot
13556 # rely on this symbol name, it's probably fine to never include it in
13557 # preloaded symbol tables.
13558 extract_expsyms_cmds=
13561 cygwin* | mingw* | pw32*)
13562 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13563 # When not using gcc, we currently assume that we are using
13564 # Microsoft Visual C++.
13565 if test "$GCC" != yes; then
13575 if test "$with_gnu_ld" = yes; then
13576 # If archive_cmds runs LD, not CC, wlarc should be empty
13579 # See if GNU ld supports shared libraries.
13581 aix3* | aix4* | aix5*)
13582 # On AIX/PPC, the GNU linker is very broken
13583 if test "$host_cpu" != ia64; then
13587 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13588 *** to be unable to reliably create shared libraries on AIX.
13589 *** Therefore, libtool is disabling shared libraries support. If you
13590 *** really care for shared libraries, you may want to modify your PATH
13591 *** so that a non-GNU linker is found, and then restart.
13598 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)'
13599 hardcode_libdir_flag_spec_F77='-L$libdir'
13600 hardcode_minus_L_F77=yes
13602 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13603 # that the semantics of dynamic libraries on AmigaOS, at least up
13604 # to version 4, is to share data among multiple programs linked
13605 # with the same dynamic library. Since this doesn't match the
13606 # behavior of shared libraries on other platforms, we can't use
13612 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13613 allow_undefined_flag_F77=unsupported
13614 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13615 # support --undefined. This deserves some investigation. FIXME
13616 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13622 cygwin* | mingw* | pw32*)
13623 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13624 # as there is no search path for DLLs.
13625 hardcode_libdir_flag_spec_F77='-L$libdir'
13626 allow_undefined_flag_F77=unsupported
13627 always_export_symbols_F77=no
13628 enable_shared_with_static_runtimes_F77=yes
13629 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13631 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13632 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13633 # If the export-symbols file already is a .def file (1st line
13634 # is EXPORTS), use it as is; otherwise, prepend...
13635 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13636 cp $export_symbols $output_objdir/$soname.def;
13638 echo EXPORTS > $output_objdir/$soname.def;
13639 cat $export_symbols >> $output_objdir/$soname.def;
13641 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13648 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13649 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13652 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13653 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13658 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13662 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13663 *** create shared libraries on Solaris systems. Therefore, libtool
13664 *** is disabling shared libraries support. We urge you to upgrade GNU
13665 *** binutils to release 2.9.1 or newer. Another option is to modify
13666 *** your PATH or compiler configuration so that the native linker is
13667 *** used, and then restart.
13670 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13671 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13672 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13679 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13681 hardcode_direct_F77=yes
13682 hardcode_shlibpath_var_F77=no
13686 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13687 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13688 archive_cmds_F77="$tmp_archive_cmds"
13689 supports_anon_versioning=no
13690 case `$LD -v 2>/dev/null` in
13691 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13692 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13693 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13694 *\ 2.11.*) ;; # other 2.11 versions
13695 *) supports_anon_versioning=yes ;;
13697 if test $supports_anon_versioning = yes; then
13698 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13699 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13700 $echo "local: *; };" >> $output_objdir/$libname.ver~
13701 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13703 archive_expsym_cmds_F77="$tmp_archive_cmds"
13711 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13712 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13713 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13720 if test "$ld_shlibs_F77" = yes; then
13721 runpath_var=LD_RUN_PATH
13722 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13723 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13724 # ancient GNU ld didn't support --whole-archive et. al.
13725 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13726 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13728 whole_archive_flag_spec_F77=
13732 # PORTME fill in a description of your system's linker (not GNU ld)
13735 allow_undefined_flag_F77=unsupported
13736 always_export_symbols_F77=yes
13737 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'
13738 # Note: this linker hardcodes the directories in LIBPATH if there
13739 # are no directories specified by -L.
13740 hardcode_minus_L_F77=yes
13741 if test "$GCC" = yes && test -z "$link_static_flag"; then
13742 # Neither direct hardcoding nor static linking is supported with a
13744 hardcode_direct_F77=unsupported
13749 if test "$host_cpu" = ia64; then
13750 # On IA64, the linker does run time linking by default, so we don't
13751 # have to do anything special.
13752 aix_use_runtimelinking=no
13753 exp_sym_flag='-Bexport'
13756 # If we're using GNU nm, then we don't want the "-C" option.
13757 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13758 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13759 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'
13761 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'
13763 aix_use_runtimelinking=no
13765 # Test if we are trying to use run time linking or normal
13766 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13767 # need to do runtime linking.
13768 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13769 for ld_flag in $LDFLAGS; do
13770 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13771 aix_use_runtimelinking=yes
13777 exp_sym_flag='-bexport'
13778 no_entry_flag='-bnoentry'
13781 # When large executables or shared objects are built, AIX ld can
13782 # have problems creating the table of contents. If linking a library
13783 # or program results in "error TOC overflow" add -mminimal-toc to
13784 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13785 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13787 archive_cmds_F77=''
13788 hardcode_direct_F77=yes
13789 hardcode_libdir_separator_F77=':'
13790 link_all_deplibs_F77=yes
13792 if test "$GCC" = yes; then
13793 case $host_os in aix4.012|aix4.012.*)
13794 # We only want to do this on AIX 4.2 and lower, the check
13795 # below for broken collect2 doesn't work under 4.3+
13796 collect2name=`${CC} -print-prog-name=collect2`
13797 if test -f "$collect2name" && \
13798 strings "$collect2name" | grep resolve_lib_name >/dev/null
13800 # We have reworked collect2
13801 hardcode_direct_F77=yes
13803 # We have old collect2
13804 hardcode_direct_F77=unsupported
13805 # It fails to find uninstalled libraries when the uninstalled
13806 # path is not listed in the libpath. Setting hardcode_minus_L
13807 # to unsupported forces relinking
13808 hardcode_minus_L_F77=yes
13809 hardcode_libdir_flag_spec_F77='-L$libdir'
13810 hardcode_libdir_separator_F77=
13813 shared_flag='-shared'
13816 if test "$host_cpu" = ia64; then
13817 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13818 # chokes on -Wl,-G. The following line is correct:
13821 if test "$aix_use_runtimelinking" = yes; then
13822 shared_flag='${wl}-G'
13824 shared_flag='${wl}-bM:SRE'
13829 # It seems that -bexpall does not export symbols beginning with
13830 # underscore (_), so it is better to generate a list of symbols to export.
13831 always_export_symbols_F77=yes
13832 if test "$aix_use_runtimelinking" = yes; then
13833 # Warning - without using the other runtime loading flags (-brtl),
13834 # -berok will link without error, but may produce a broken library.
13835 allow_undefined_flag_F77='-berok'
13836 # Determine the default libpath from the value encoded in an empty executable.
13837 cat >conftest.$ac_ext <<_ACEOF
13842 rm -f conftest.$ac_objext conftest$ac_exeext
13843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13844 (eval $ac_link) 2>conftest.er1
13846 grep -v '^ *+' conftest.er1 >conftest.err
13848 cat conftest.err >&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); } &&
13851 { ac_try='test -z "$ac_f77_werror_flag"
13852 || test ! -s conftest.err'
13853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854 (eval $ac_try) 2>&5
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); }; } &&
13858 { ac_try='test -s conftest$ac_exeext'
13859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860 (eval $ac_try) 2>&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; }; then
13865 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13867 # Check for a 64-bit object if we didn't find anything.
13868 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; }
13871 echo "$as_me: failed program was:" >&5
13872 sed 's/^/| /' conftest.$ac_ext >&5
13875 rm -f conftest.err conftest.$ac_objext \
13876 conftest$ac_exeext conftest.$ac_ext
13877 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13879 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13880 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"
13882 if test "$host_cpu" = ia64; then
13883 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13884 allow_undefined_flag_F77="-z nodefs"
13885 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"
13887 # Determine the default libpath from the value encoded in an empty executable.
13888 cat >conftest.$ac_ext <<_ACEOF
13893 rm -f conftest.$ac_objext conftest$ac_exeext
13894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13895 (eval $ac_link) 2>conftest.er1
13897 grep -v '^ *+' conftest.er1 >conftest.err
13899 cat conftest.err >&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } &&
13902 { ac_try='test -z "$ac_f77_werror_flag"
13903 || test ! -s conftest.err'
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; } &&
13909 { ac_try='test -s conftest$ac_exeext'
13910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13911 (eval $ac_try) 2>&5
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; }; then
13916 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13918 # Check for a 64-bit object if we didn't find anything.
13919 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; }
13922 echo "$as_me: failed program was:" >&5
13923 sed 's/^/| /' conftest.$ac_ext >&5
13926 rm -f conftest.err conftest.$ac_objext \
13927 conftest$ac_exeext conftest.$ac_ext
13928 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13930 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13931 # Warning - without using the other run time loading flags,
13932 # -berok will link without error, but may produce a broken library.
13933 no_undefined_flag_F77=' ${wl}-bernotok'
13934 allow_undefined_flag_F77=' ${wl}-berok'
13935 # -bexpall does not export symbols beginning with underscore (_)
13936 always_export_symbols_F77=yes
13937 # Exported symbols can be pulled into shared objects from archives
13938 whole_archive_flag_spec_F77=' '
13939 archive_cmds_need_lc_F77=yes
13940 # This is similar to how AIX traditionally builds it's shared libraries.
13941 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'
13947 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)'
13948 hardcode_libdir_flag_spec_F77='-L$libdir'
13949 hardcode_minus_L_F77=yes
13950 # see comment about different semantics on the GNU ld section
13955 export_dynamic_flag_spec_F77=-rdynamic
13958 cygwin* | mingw* | pw32*)
13959 # When not using gcc, we currently assume that we are using
13960 # Microsoft Visual C++.
13961 # hardcode_libdir_flag_spec is actually meaningless, as there is
13962 # no search path for DLLs.
13963 hardcode_libdir_flag_spec_F77=' '
13964 allow_undefined_flag_F77=unsupported
13965 # Tell ltmain to make .lib files, not .a files.
13967 # Tell ltmain to make .dll files, not .so files.
13969 # FIXME: Setting linknames here is a bad hack.
13970 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13971 # The linker will automatically build a .lib file if we build a DLL.
13972 old_archive_From_new_cmds_F77='true'
13973 # FIXME: Should let the user specify the lib program.
13974 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13975 fix_srcfile_path='`cygpath -w "$srcfile"`'
13976 enable_shared_with_static_runtimes_F77=yes
13979 darwin* | rhapsody*)
13981 rhapsody* | darwin1.[012])
13982 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13985 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13986 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13988 case ${MACOSX_DEPLOYMENT_TARGET} in
13990 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13993 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13999 archive_cmds_need_lc_F77=no
14000 hardcode_direct_F77=no
14001 hardcode_automatic_F77=yes
14002 hardcode_shlibpath_var_F77=unsupported
14003 whole_archive_flag_spec_F77=''
14004 link_all_deplibs_F77=yes
14005 if test "$GCC" = yes ; then
14006 output_verbose_link_cmd='echo'
14007 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14008 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14009 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14010 archive_expsym_cmds_F77='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}'
14011 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14013 case "$cc_basename" in
14015 output_verbose_link_cmd='echo'
14016 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14017 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14018 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14019 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14020 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14030 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14031 hardcode_libdir_flag_spec_F77='-L$libdir'
14032 hardcode_shlibpath_var_F77=no
14039 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14040 # support. Future versions do this automatically, but an explicit c++rt0.o
14041 # does not break anything, and helps significantly (at the cost of a little
14044 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14045 hardcode_libdir_flag_spec_F77='-R$libdir'
14046 hardcode_direct_F77=yes
14047 hardcode_shlibpath_var_F77=no
14050 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14052 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14053 hardcode_direct_F77=yes
14054 hardcode_minus_L_F77=yes
14055 hardcode_shlibpath_var_F77=no
14058 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14059 freebsd* | kfreebsd*-gnu)
14060 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14061 hardcode_libdir_flag_spec_F77='-R$libdir'
14062 hardcode_direct_F77=yes
14063 hardcode_shlibpath_var_F77=no
14067 if test "$GCC" = yes; then
14068 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'
14070 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'
14072 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14073 hardcode_libdir_separator_F77=:
14074 hardcode_direct_F77=yes
14076 # hardcode_minus_L: Not really in the search PATH,
14077 # but as the default location of the library.
14078 hardcode_minus_L_F77=yes
14079 export_dynamic_flag_spec_F77='${wl}-E'
14083 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14084 case "$host_cpu" in
14086 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14089 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14093 case "$host_cpu" in
14095 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14098 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14102 if test "$with_gnu_ld" = no; then
14103 case "$host_cpu" in
14105 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14106 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14107 hardcode_libdir_separator_F77=:
14108 hardcode_direct_F77=no
14109 hardcode_shlibpath_var_F77=no
14112 hardcode_libdir_flag_spec_F77='-L$libdir'
14113 hardcode_direct_F77=no
14114 hardcode_shlibpath_var_F77=no
14116 # hardcode_minus_L: Not really in the search PATH,
14117 # but as the default location of the library.
14118 hardcode_minus_L_F77=yes
14121 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14122 hardcode_libdir_separator_F77=:
14123 hardcode_direct_F77=yes
14124 export_dynamic_flag_spec_F77='${wl}-E'
14126 # hardcode_minus_L: Not really in the search PATH,
14127 # but as the default location of the library.
14128 hardcode_minus_L_F77=yes
14134 irix5* | irix6* | nonstopux*)
14135 if test "$GCC" = yes; then
14136 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'
14138 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'
14139 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14141 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14142 hardcode_libdir_separator_F77=:
14143 link_all_deplibs_F77=yes
14147 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14148 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14150 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14152 hardcode_libdir_flag_spec_F77='-R$libdir'
14153 hardcode_direct_F77=yes
14154 hardcode_shlibpath_var_F77=no
14158 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14159 hardcode_direct_F77=yes
14160 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14161 hardcode_libdir_separator_F77=:
14162 hardcode_shlibpath_var_F77=no
14166 hardcode_direct_F77=yes
14167 hardcode_shlibpath_var_F77=no
14168 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14169 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14170 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14171 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14172 export_dynamic_flag_spec_F77='${wl}-E'
14175 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14176 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14177 hardcode_libdir_flag_spec_F77='-R$libdir'
14180 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14181 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14188 hardcode_libdir_flag_spec_F77='-L$libdir'
14189 hardcode_minus_L_F77=yes
14190 allow_undefined_flag_F77=unsupported
14191 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'
14192 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14196 if test "$GCC" = yes; then
14197 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14198 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'
14200 allow_undefined_flag_F77=' -expect_unresolved \*'
14201 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'
14203 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14204 hardcode_libdir_separator_F77=:
14207 osf4* | osf5*) # as osf3* with the addition of -msym flag
14208 if test "$GCC" = yes; then
14209 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14210 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'
14211 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14213 allow_undefined_flag_F77=' -expect_unresolved \*'
14214 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'
14215 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~
14216 $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'
14218 # Both c and cxx compiler support -rpath directly
14219 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14221 hardcode_libdir_separator_F77=:
14225 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14226 hardcode_shlibpath_var_F77=no
14227 export_dynamic_flag_spec_F77='${wl}-Bexport'
14228 runpath_var=LD_RUN_PATH
14229 hardcode_runpath_var=yes
14233 no_undefined_flag_F77=' -z text'
14234 if test "$GCC" = yes; then
14235 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14236 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14237 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14239 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14240 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14241 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14243 hardcode_libdir_flag_spec_F77='-R$libdir'
14244 hardcode_shlibpath_var_F77=no
14246 solaris2.[0-5] | solaris2.[0-5].*) ;;
14247 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14248 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14250 link_all_deplibs_F77=yes
14254 if test "x$host_vendor" = xsequent; then
14255 # Use $CC to link under sequent, because it throws in some extra .o
14256 # files that make .init and .fini sections work.
14257 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14259 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14261 hardcode_libdir_flag_spec_F77='-L$libdir'
14262 hardcode_direct_F77=yes
14263 hardcode_minus_L_F77=yes
14264 hardcode_shlibpath_var_F77=no
14268 case $host_vendor in
14270 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14271 hardcode_direct_F77=yes # is this really true???
14274 ## LD is ld it makes a PLAMLIB
14275 ## CC just makes a GrossModule.
14276 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14277 reload_cmds_F77='$CC -r -o $output$reload_objs'
14278 hardcode_direct_F77=no
14281 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14282 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14285 runpath_var='LD_RUN_PATH'
14286 hardcode_shlibpath_var_F77=no
14290 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14291 hardcode_shlibpath_var_F77=no
14292 export_dynamic_flag_spec_F77='-Bexport'
14296 if test -d /usr/nec; then
14297 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14298 hardcode_shlibpath_var_F77=no
14299 runpath_var=LD_RUN_PATH
14300 hardcode_runpath_var=yes
14306 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14307 hardcode_direct_F77=yes
14308 hardcode_minus_L_F77=no
14309 hardcode_shlibpath_var_F77=no
14310 hardcode_runpath_var=yes
14311 runpath_var=LD_RUN_PATH
14314 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14315 no_undefined_flag_F77='${wl}-z ${wl}text'
14316 if test "$GCC" = yes; then
14317 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14319 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14321 runpath_var='LD_RUN_PATH'
14322 hardcode_shlibpath_var_F77=no
14326 no_undefined_flag_F77=' -z text'
14327 # $CC -shared without GNU ld will not create a library from C++
14328 # object files and a static libstdc++, better avoid it by now
14329 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14330 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14331 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14332 hardcode_libdir_flag_spec_F77=
14333 hardcode_shlibpath_var_F77=no
14334 runpath_var='LD_RUN_PATH'
14338 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14339 hardcode_libdir_flag_spec_F77='-L$libdir'
14340 hardcode_shlibpath_var_F77=no
14349 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14350 echo "${ECHO_T}$ld_shlibs_F77" >&6
14351 test "$ld_shlibs_F77" = no && can_build_shared=no
14353 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14354 if test "$GCC" = yes; then
14355 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14359 # Do we need to explicitly link libc?
14361 case "x$archive_cmds_need_lc_F77" in
14363 # Assume -lc should be added
14364 archive_cmds_need_lc_F77=yes
14366 if test "$enable_shared" = yes && test "$GCC" = yes; then
14367 case $archive_cmds_F77 in
14369 # FIXME: we may have to deal with multi-command sequences.
14372 # Test whether the compiler implicitly links with -lc since on some
14373 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14374 # to ld, don't add -lc before -lgcc.
14375 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14376 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14378 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14381 (eval $ac_compile) 2>&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } 2>conftest.err; then
14387 libobjs=conftest.$ac_objext
14389 wl=$lt_prog_compiler_wl_F77
14395 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14396 allow_undefined_flag_F77=
14397 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14398 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }
14403 archive_cmds_need_lc_F77=no
14405 archive_cmds_need_lc_F77=yes
14407 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14409 cat conftest.err 1>&5
14412 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14413 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14420 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14421 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14422 library_names_spec=
14423 libname_spec='lib$name'
14427 postuninstall_cmds=
14431 shlibpath_overrides_runpath=unknown
14433 dynamic_linker="$host_os ld.so"
14434 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14435 if test "$GCC" = yes; then
14436 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14437 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14438 # if the path contains ";" then we assume it to be the separator
14439 # otherwise default to the standard path separator (i.e. ":") - it is
14440 # assumed that no part of a normal pathname contains ";" but that should
14441 # okay in the real world where ";" in dirpaths is itself problematic.
14442 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14444 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14447 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14449 need_lib_prefix=unknown
14450 hardcode_into_libs=no
14452 # when you set need_version to no, make sure it does not cause -set_version
14453 # flags to be left without arguments
14454 need_version=unknown
14459 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14460 shlibpath_var=LIBPATH
14462 # AIX 3 has no versioning support, so we append a major version to the name.
14463 soname_spec='${libname}${release}${shared_ext}$major'
14470 hardcode_into_libs=yes
14471 if test "$host_cpu" = ia64; then
14472 # AIX 5 supports IA64
14473 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14474 shlibpath_var=LD_LIBRARY_PATH
14476 # With GCC up to 2.95.x, collect2 would create an import file
14477 # for dependence libraries. The import file would start with
14478 # the line `#! .'. This would cause the generated library to
14479 # depend on `.', always an invalid library. This was fixed in
14480 # development snapshots of GCC prior to 3.0.
14482 aix4 | aix4.[01] | aix4.[01].*)
14483 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14485 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14488 can_build_shared=no
14492 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14493 # soname into executable. Probably we can add versioning support to
14494 # collect2, so additional links can be useful in future.
14495 if test "$aix_use_runtimelinking" = yes; then
14496 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14497 # instead of lib<name>.a to let people know that these are not
14498 # typical AIX shared libraries.
14499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14501 # We preserve .a as extension for shared libraries through AIX4.2
14502 # and later when we are not doing run time linking.
14503 library_names_spec='${libname}${release}.a $libname.a'
14504 soname_spec='${libname}${release}${shared_ext}$major'
14506 shlibpath_var=LIBPATH
14511 library_names_spec='$libname.ixlibrary $libname.a'
14512 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14513 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'
14517 library_names_spec='${libname}${shared_ext}'
14518 dynamic_linker="$host_os ld.so"
14519 shlibpath_var=LIBRARY_PATH
14525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14526 soname_spec='${libname}${release}${shared_ext}$major'
14527 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14528 shlibpath_var=LD_LIBRARY_PATH
14529 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14530 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14531 # the default ld.so.conf also contains /usr/contrib/lib and
14532 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14533 # libtool to hard-code these into programs
14536 cygwin* | mingw* | pw32*)
14537 version_type=windows
14542 case $GCC,$host_os in
14543 yes,cygwin* | yes,mingw* | yes,pw32*)
14544 library_names_spec='$libname.dll.a'
14545 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14546 postinstall_cmds='base_file=`basename \${file}`~
14547 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14548 dldir=$destdir/`dirname \$dlpath`~
14549 test -d \$dldir || mkdir -p \$dldir~
14550 $install_prog $dir/$dlname \$dldir/$dlname'
14551 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14552 dlpath=$dir/\$dldll~
14554 shlibpath_overrides_runpath=yes
14558 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14559 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14560 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14563 # MinGW DLLs use traditional 'lib' prefix
14564 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14565 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14566 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14567 # It is most probably a Windows format PATH printed by
14568 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14569 # path with ; separators, and with drive letters. We can handle the
14570 # drive letters (cygwin fileutils understands them), so leave them,
14571 # especially as we might pass files found there to a mingw objdump,
14572 # which wouldn't understand a cygwinified path. Ahh.
14573 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14575 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14579 # pw32 DLLs use 'pw' prefix rather than 'lib'
14580 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14586 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14589 dynamic_linker='Win32 ld.exe'
14590 # FIXME: first we should search . and the directory the executable is in
14594 darwin* | rhapsody*)
14595 dynamic_linker="$host_os dyld"
14596 version_type=darwin
14599 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14600 soname_spec='${libname}${release}${major}$shared_ext'
14601 shlibpath_overrides_runpath=yes
14602 shlibpath_var=DYLD_LIBRARY_PATH
14603 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14604 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14605 if test "$GCC" = yes; then
14606 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"`
14608 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14610 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14618 soname_spec='${libname}${release}${shared_ext}$major'
14619 shlibpath_var=LD_LIBRARY_PATH
14630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14631 soname_spec='${libname}${release}${shared_ext}$major'
14632 shlibpath_var=LD_LIBRARY_PATH
14633 shlibpath_overrides_runpath=no
14634 hardcode_into_libs=yes
14635 dynamic_linker='GNU ld.so'
14639 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14640 version_type=freebsd-$objformat
14641 case $version_type in
14643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14648 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14652 shlibpath_var=LD_LIBRARY_PATH
14655 shlibpath_overrides_runpath=yes
14657 freebsd3.01* | freebsdelf3.01*)
14658 shlibpath_overrides_runpath=yes
14659 hardcode_into_libs=yes
14662 shlibpath_overrides_runpath=no
14663 hardcode_into_libs=yes
14672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14673 soname_spec='${libname}${release}${shared_ext}$major'
14674 shlibpath_var=LD_LIBRARY_PATH
14675 hardcode_into_libs=yes
14678 hpux9* | hpux10* | hpux11*)
14679 # Give a soname corresponding to the major version so that dld.sl refuses to
14680 # link against other versions.
14684 case "$host_cpu" in
14687 hardcode_into_libs=yes
14688 dynamic_linker="$host_os dld.so"
14689 shlibpath_var=LD_LIBRARY_PATH
14690 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14692 soname_spec='${libname}${release}${shared_ext}$major'
14693 if test "X$HPUX_IA64_MODE" = X32; then
14694 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14696 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14702 hardcode_into_libs=yes
14703 dynamic_linker="$host_os dld.sl"
14704 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14705 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14707 soname_spec='${libname}${release}${shared_ext}$major'
14708 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14709 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14713 dynamic_linker="$host_os dld.sl"
14714 shlibpath_var=SHLIB_PATH
14715 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14717 soname_spec='${libname}${release}${shared_ext}$major'
14720 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14721 postinstall_cmds='chmod 555 $lib'
14724 irix5* | irix6* | nonstopux*)
14726 nonstopux*) version_type=nonstopux ;;
14728 if test "$lt_cv_prog_gnu_ld" = yes; then
14736 soname_spec='${libname}${release}${shared_ext}$major'
14737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14739 irix5* | nonstopux*)
14740 libsuff= shlibsuff=
14743 case $LD in # libtool.m4 will add one of these switches to LD
14744 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14745 libsuff= shlibsuff= libmagic=32-bit;;
14746 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14747 libsuff=32 shlibsuff=N32 libmagic=N32;;
14748 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14749 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14750 *) libsuff= shlibsuff= libmagic=never-match;;
14754 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14755 shlibpath_overrides_runpath=no
14756 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14757 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14758 hardcode_into_libs=yes
14761 # No shared lib support for Linux oldld, aout, or coff.
14762 linux*oldld* | linux*aout* | linux*coff*)
14766 # This must be Linux ELF.
14771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14772 soname_spec='${libname}${release}${shared_ext}$major'
14773 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14774 shlibpath_var=LD_LIBRARY_PATH
14775 shlibpath_overrides_runpath=no
14776 # This implies no fast_install, which is unacceptable.
14777 # Some rework will be needed to allow for fast_install
14778 # before this can be enabled.
14779 hardcode_into_libs=yes
14781 # Append ld.so.conf contents to the search path
14782 if test -f /etc/ld.so.conf; then
14783 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14784 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14787 # We used to test for /lib/ld.so.1 and disable shared libraries on
14788 # powerpc, because MkLinux only supported shared libraries with the
14789 # GNU dynamic linker. Since this was broken with cross compilers,
14790 # most powerpc-linux boxes support dynamic linking these days and
14791 # people can always --disable-shared, the test was removed, and we
14792 # assume the GNU/Linux dynamic linker is in use.
14793 dynamic_linker='GNU/Linux ld.so'
14800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14801 soname_spec='${libname}${release}${shared_ext}$major'
14802 shlibpath_var=LD_LIBRARY_PATH
14803 shlibpath_overrides_runpath=no
14804 hardcode_into_libs=yes
14805 dynamic_linker='GNU ld.so'
14812 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14815 dynamic_linker='NetBSD (a.out) ld.so'
14817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14818 soname_spec='${libname}${release}${shared_ext}$major'
14819 dynamic_linker='NetBSD ld.elf_so'
14821 shlibpath_var=LD_LIBRARY_PATH
14822 shlibpath_overrides_runpath=yes
14823 hardcode_into_libs=yes
14828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14829 shlibpath_var=LD_LIBRARY_PATH
14830 shlibpath_overrides_runpath=yes
14837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14838 soname_spec='${libname}${release}${shared_ext}$major'
14839 shlibpath_var=LD_LIBRARY_PATH
14840 shlibpath_overrides_runpath=yes
14847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14848 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14849 shlibpath_var=LD_LIBRARY_PATH
14850 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14852 openbsd2.[89] | openbsd2.[89].*)
14853 shlibpath_overrides_runpath=no
14856 shlibpath_overrides_runpath=yes
14860 shlibpath_overrides_runpath=yes
14865 libname_spec='$name'
14868 library_names_spec='$libname${shared_ext} $libname.a'
14869 dynamic_linker='OS/2 ld.exe'
14870 shlibpath_var=LIBPATH
14873 osf3* | osf4* | osf5*)
14877 soname_spec='${libname}${release}${shared_ext}$major'
14878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14879 shlibpath_var=LD_LIBRARY_PATH
14880 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14881 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14886 soname_spec='${libname}${release}${shared_ext}$major'
14887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14888 shlibpath_var=LD_LIBRARY_PATH
14895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14896 soname_spec='${libname}${release}${shared_ext}$major'
14897 shlibpath_var=LD_LIBRARY_PATH
14898 shlibpath_overrides_runpath=yes
14899 hardcode_into_libs=yes
14900 # ldd complains unless libraries are executable
14901 postinstall_cmds='chmod +x $lib'
14906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14907 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14908 shlibpath_var=LD_LIBRARY_PATH
14909 shlibpath_overrides_runpath=yes
14910 if test "$with_gnu_ld" = yes; then
14916 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14919 soname_spec='${libname}${release}${shared_ext}$major'
14920 shlibpath_var=LD_LIBRARY_PATH
14921 case $host_vendor in
14923 shlibpath_overrides_runpath=no
14925 export_dynamic_flag_spec='${wl}-Blargedynsym'
14926 runpath_var=LD_RUN_PATH
14934 shlibpath_overrides_runpath=no
14935 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14941 if test -d /usr/nec ;then
14943 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14944 soname_spec='$libname${shared_ext}.$major'
14945 shlibpath_var=LD_LIBRARY_PATH
14951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14952 soname_spec='${libname}${release}${shared_ext}$major'
14953 shlibpath_var=LD_LIBRARY_PATH
14960 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14961 echo "${ECHO_T}$dynamic_linker" >&6
14962 test "$dynamic_linker" = no && can_build_shared=no
14964 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14965 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14966 hardcode_action_F77=
14967 if test -n "$hardcode_libdir_flag_spec_F77" || \
14968 test -n "$runpath_var_F77" || \
14969 test "X$hardcode_automatic_F77" = "Xyes" ; then
14971 # We can hardcode non-existant directories.
14972 if test "$hardcode_direct_F77" != no &&
14973 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14974 # have to relink, otherwise we might link with an installed library
14975 # when we should be linking with a yet-to-be-installed one
14976 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14977 test "$hardcode_minus_L_F77" != no; then
14978 # Linking always hardcodes the temporary library directory.
14979 hardcode_action_F77=relink
14981 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14982 hardcode_action_F77=immediate
14985 # We cannot hardcode anything, or else we can only hardcode existing
14987 hardcode_action_F77=unsupported
14989 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14990 echo "${ECHO_T}$hardcode_action_F77" >&6
14992 if test "$hardcode_action_F77" = relink; then
14993 # Fast installation is not supported
14994 enable_fast_install=no
14995 elif test "$shlibpath_overrides_runpath" = yes ||
14996 test "$enable_shared" = no; then
14997 # Fast installation is not necessary
14998 enable_fast_install=needless
15003 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15004 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15005 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15006 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15007 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15008 echo "$as_me:$LINENO: result: yes" >&5
15009 echo "${ECHO_T}yes" >&6
15011 # FIXME - insert some real tests, host_os isn't really good enough
15014 if test -n "$STRIP" ; then
15015 striplib="$STRIP -x"
15016 echo "$as_me:$LINENO: result: yes" >&5
15017 echo "${ECHO_T}yes" >&6
15019 echo "$as_me:$LINENO: result: no" >&5
15020 echo "${ECHO_T}no" >&6
15024 echo "$as_me:$LINENO: result: no" >&5
15025 echo "${ECHO_T}no" >&6
15032 # The else clause should only fire when bootstrapping the
15033 # libtool distribution, otherwise you forgot to ship ltmain.sh
15034 # with your package, and you will get complaints that there are
15035 # no rules to generate ltmain.sh.
15036 if test -f "$ltmain"; then
15037 # See if we are running on zsh, and set the options which allow our commands through
15038 # without removal of \ escapes.
15039 if test -n "${ZSH_VERSION+set}" ; then
15040 setopt NO_GLOB_SUBST
15042 # Now quote all the things that may contain metacharacters while being
15043 # careful not to overquote the AC_SUBSTed values. We take copies of the
15044 # variables and quote the copies for generation of the libtool script.
15045 for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
15047 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15048 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15049 deplibs_check_method reload_flag reload_cmds need_locks \
15050 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15051 lt_cv_sys_global_symbol_to_c_name_address \
15052 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15053 old_postinstall_cmds old_postuninstall_cmds \
15057 lt_prog_compiler_wl_F77 \
15058 lt_prog_compiler_pic_F77 \
15059 lt_prog_compiler_static_F77 \
15060 lt_prog_compiler_no_builtin_flag_F77 \
15061 export_dynamic_flag_spec_F77 \
15062 thread_safe_flag_spec_F77 \
15063 whole_archive_flag_spec_F77 \
15064 enable_shared_with_static_runtimes_F77 \
15065 old_archive_cmds_F77 \
15066 old_archive_from_new_cmds_F77 \
15067 predep_objects_F77 \
15068 postdep_objects_F77 \
15071 compiler_lib_search_path_F77 \
15073 archive_expsym_cmds_F77 \
15074 postinstall_cmds_F77 \
15075 postuninstall_cmds_F77 \
15076 old_archive_from_expsyms_cmds_F77 \
15077 allow_undefined_flag_F77 \
15078 no_undefined_flag_F77 \
15079 export_symbols_cmds_F77 \
15080 hardcode_libdir_flag_spec_F77 \
15081 hardcode_libdir_flag_spec_ld_F77 \
15082 hardcode_libdir_separator_F77 \
15083 hardcode_automatic_F77 \
15085 module_expsym_cmds_F77 \
15086 lt_cv_prog_compiler_c_o_F77 \
15087 exclude_expsyms_F77 \
15088 include_expsyms_F77; do
15091 old_archive_cmds_F77 | \
15092 old_archive_from_new_cmds_F77 | \
15093 archive_cmds_F77 | \
15094 archive_expsym_cmds_F77 | \
15095 module_cmds_F77 | \
15096 module_expsym_cmds_F77 | \
15097 old_archive_from_expsyms_cmds_F77 | \
15098 export_symbols_cmds_F77 | \
15099 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15100 postinstall_cmds | postuninstall_cmds | \
15101 old_postinstall_cmds | old_postuninstall_cmds | \
15102 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15103 # Double-quote double-evaled strings.
15104 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15107 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15113 *'\$0 --fallback-echo"')
15114 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15120 cat <<__EOF__ >> "$cfgfile"
15121 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15123 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15125 # Shell to use when invoking shell scripts.
15128 # Whether or not to build shared libraries.
15129 build_libtool_libs=$enable_shared
15131 # Whether or not to build static libraries.
15132 build_old_libs=$enable_static
15134 # Whether or not to add -lc for building shared libraries.
15135 build_libtool_need_lc=$archive_cmds_need_lc_F77
15137 # Whether or not to disallow shared libs when runtime libs are static
15138 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15140 # Whether or not to optimize for fast installation.
15141 fast_install=$enable_fast_install
15144 host_alias=$host_alias
15147 # An echo program that does not interpret backslashes.
15152 AR_FLAGS=$lt_AR_FLAGS
15157 # A language-specific compiler.
15158 CC=$lt_compiler_F77
15160 # Is the compiler the GNU C compiler?
15166 # The linker used to build libraries.
15169 # Whether we need hard or soft links.
15172 # A BSD-compatible nm program.
15175 # A symbol stripping program
15178 # Used to examine libraries when file_magic_cmd begins "file"
15179 MAGIC_CMD=$MAGIC_CMD
15181 # Used on cygwin: DLL creation program.
15184 # Used on cygwin: object dumper.
15187 # Used on cygwin: assembler.
15190 # The name of the directory that contains temporary libtool files.
15193 # How to create reloadable object files.
15194 reload_flag=$lt_reload_flag
15195 reload_cmds=$lt_reload_cmds
15197 # How to pass a linker flag through the compiler.
15198 wl=$lt_lt_prog_compiler_wl_F77
15200 # Object file suffix (normally "o").
15201 objext="$ac_objext"
15203 # Old archive suffix (normally "a").
15206 # Shared library suffix (normally ".so").
15207 shrext_cmds='$shrext_cmds'
15209 # Executable file suffix (normally "").
15212 # Additional compiler flags for building library objects.
15213 pic_flag=$lt_lt_prog_compiler_pic_F77
15216 # What is the maximum length of a command?
15217 max_cmd_len=$lt_cv_sys_max_cmd_len
15219 # Does compiler simultaneously support -c and -o options?
15220 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15222 # Must we lock files when doing compilation ?
15223 need_locks=$lt_need_locks
15225 # Do we need the lib prefix for modules?
15226 need_lib_prefix=$need_lib_prefix
15228 # Do we need a version for libraries?
15229 need_version=$need_version
15231 # Whether dlopen is supported.
15232 dlopen_support=$enable_dlopen
15234 # Whether dlopen of programs is supported.
15235 dlopen_self=$enable_dlopen_self
15237 # Whether dlopen of statically linked programs is supported.
15238 dlopen_self_static=$enable_dlopen_self_static
15240 # Compiler flag to prevent dynamic linking.
15241 link_static_flag=$lt_lt_prog_compiler_static_F77
15243 # Compiler flag to turn off builtin functions.
15244 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15246 # Compiler flag to allow reflexive dlopens.
15247 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15249 # Compiler flag to generate shared objects directly from archives.
15250 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15252 # Compiler flag to generate thread-safe objects.
15253 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15255 # Library versioning type.
15256 version_type=$version_type
15258 # Format of library name prefix.
15259 libname_spec=$lt_libname_spec
15261 # List of archive names. First name is the real one, the rest are links.
15262 # The last name is the one that the linker finds with -lNAME.
15263 library_names_spec=$lt_library_names_spec
15265 # The coded name of the library, if different from the real name.
15266 soname_spec=$lt_soname_spec
15268 # Commands used to build and install an old-style archive.
15270 old_archive_cmds=$lt_old_archive_cmds_F77
15271 old_postinstall_cmds=$lt_old_postinstall_cmds
15272 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15274 # Create an old-style archive from a shared archive.
15275 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15277 # Create a temporary old-style archive to link instead of a shared archive.
15278 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15280 # Commands used to build and install a shared archive.
15281 archive_cmds=$lt_archive_cmds_F77
15282 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15283 postinstall_cmds=$lt_postinstall_cmds
15284 postuninstall_cmds=$lt_postuninstall_cmds
15286 # Commands used to build a loadable module (assumed same as above if empty)
15287 module_cmds=$lt_module_cmds_F77
15288 module_expsym_cmds=$lt_module_expsym_cmds_F77
15290 # Commands to strip libraries.
15291 old_striplib=$lt_old_striplib
15292 striplib=$lt_striplib
15294 # Dependencies to place before the objects being linked to create a
15296 predep_objects=$lt_predep_objects_F77
15298 # Dependencies to place after the objects being linked to create a
15300 postdep_objects=$lt_postdep_objects_F77
15302 # Dependencies to place before the objects being linked to create a
15304 predeps=$lt_predeps_F77
15306 # Dependencies to place after the objects being linked to create a
15308 postdeps=$lt_postdeps_F77
15310 # The library search path used internally by the compiler when linking
15311 # a shared library.
15312 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15314 # Method to check whether dependent libraries are shared objects.
15315 deplibs_check_method=$lt_deplibs_check_method
15317 # Command to use when deplibs_check_method == file_magic.
15318 file_magic_cmd=$lt_file_magic_cmd
15320 # Flag that allows shared libraries with undefined symbols to be built.
15321 allow_undefined_flag=$lt_allow_undefined_flag_F77
15323 # Flag that forces no undefined symbols.
15324 no_undefined_flag=$lt_no_undefined_flag_F77
15326 # Commands used to finish a libtool library installation in a directory.
15327 finish_cmds=$lt_finish_cmds
15329 # Same as above, but a single script fragment to be evaled but not shown.
15330 finish_eval=$lt_finish_eval
15332 # Take the output of nm and produce a listing of raw symbols and C names.
15333 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15335 # Transform the output of nm in a proper C declaration
15336 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15338 # Transform the output of nm in a C name address pair
15339 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15341 # This is the shared library runtime path variable.
15342 runpath_var=$runpath_var
15344 # This is the shared library path variable.
15345 shlibpath_var=$shlibpath_var
15347 # Is shlibpath searched before the hard-coded library search path?
15348 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15350 # How to hardcode a shared library path into an executable.
15351 hardcode_action=$hardcode_action_F77
15353 # Whether we should hardcode library paths into libraries.
15354 hardcode_into_libs=$hardcode_into_libs
15356 # Flag to hardcode \$libdir into a binary during linking.
15357 # This must work even if \$libdir does not exist.
15358 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15360 # If ld is used when linking, flag to hardcode \$libdir into
15361 # a binary during linking. This must work even if \$libdir does
15363 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15365 # Whether we need a single -rpath flag with a separated argument.
15366 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15368 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15369 # resulting binary.
15370 hardcode_direct=$hardcode_direct_F77
15372 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15373 # resulting binary.
15374 hardcode_minus_L=$hardcode_minus_L_F77
15376 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15377 # the resulting binary.
15378 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15380 # Set to yes if building a shared library automatically hardcodes DIR into the library
15381 # and all subsequent libraries and executables linked against it.
15382 hardcode_automatic=$hardcode_automatic_F77
15384 # Variables whose values should be saved in libtool wrapper scripts and
15385 # restored at relink time.
15386 variables_saved_for_relink="$variables_saved_for_relink"
15388 # Whether libtool must link a program against all its dependency libraries.
15389 link_all_deplibs=$link_all_deplibs_F77
15391 # Compile-time system search path for libraries
15392 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15394 # Run-time system search path for libraries
15395 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15397 # Fix the shell variable \$srcfile for the compiler.
15398 fix_srcfile_path="$fix_srcfile_path_F77"
15400 # Set to yes if exported symbols are required.
15401 always_export_symbols=$always_export_symbols_F77
15403 # The commands to list exported symbols.
15404 export_symbols_cmds=$lt_export_symbols_cmds_F77
15406 # The commands to extract the exported symbol list from a shared archive.
15407 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15409 # Symbols that should not be listed in the preloaded symbols.
15410 exclude_expsyms=$lt_exclude_expsyms_F77
15412 # Symbols that must always be exported.
15413 include_expsyms=$lt_include_expsyms_F77
15415 # ### END LIBTOOL TAG CONFIG: $tagname
15421 # If there is no Makefile yet, we rely on a make rule to execute
15422 # `config.status --recheck' to rerun these tests and create the
15423 # libtool script then.
15424 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15425 if test -f "$ltmain_in"; then
15426 test -f Makefile && make "$ltmain"
15432 ac_cpp='$CPP $CPPFLAGS'
15433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15445 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15449 # Source file extension for Java test sources.
15452 # Object file extension for compiled Java test sources.
15456 # Code to be used in simple compile tests
15457 lt_simple_compile_test_code="class foo {}\n"
15459 # Code to be used in simple link tests
15460 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15462 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15464 # If no C compiler was specified, use CC.
15467 # Allow CC to be a program name with arguments.
15471 # Allow CC to be a program name with arguments.
15477 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15478 archive_cmds_need_lc_GCJ=no
15481 lt_prog_compiler_no_builtin_flag_GCJ=
15483 if test "$GCC" = yes; then
15484 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15487 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15488 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15489 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15492 lt_cv_prog_compiler_rtti_exceptions=no
15493 ac_outfile=conftest.$ac_objext
15494 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15495 lt_compiler_flag="-fno-rtti -fno-exceptions"
15496 # Insert the option either (1) after the last *FLAGS variable, or
15497 # (2) before a word containing "conftest.", or (3) at the end.
15498 # Note that $ac_compile itself does not contain backslashes and begins
15499 # with a dollar sign (not a hyphen), so the echo should work correctly.
15500 # The option is referenced via a variable to avoid confusing sed.
15501 lt_compile=`echo "$ac_compile" | $SED \
15502 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15504 -e 's:$: $lt_compiler_flag:'`
15505 (eval echo "\"\$as_me:15505: $lt_compile\"" >&5)
15506 (eval "$lt_compile" 2>conftest.err)
15508 cat conftest.err >&5
15509 echo "$as_me:15509: \$? = $ac_status" >&5
15510 if (exit $ac_status) && test -s "$ac_outfile"; then
15511 # The compiler can only warn and ignore the option if not recognized
15512 # So say no if there are warnings
15513 if test ! -s conftest.err; then
15514 lt_cv_prog_compiler_rtti_exceptions=yes
15520 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15521 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15523 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15524 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15531 lt_prog_compiler_wl_GCJ=
15532 lt_prog_compiler_pic_GCJ=
15533 lt_prog_compiler_static_GCJ=
15535 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15536 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15538 if test "$GCC" = yes; then
15539 lt_prog_compiler_wl_GCJ='-Wl,'
15540 lt_prog_compiler_static_GCJ='-static'
15544 # All AIX code is PIC.
15545 if test "$host_cpu" = ia64; then
15546 # AIX 5 now supports IA64 processor
15547 lt_prog_compiler_static_GCJ='-Bstatic'
15552 # FIXME: we need at least 68020 code to build shared libraries, but
15553 # adding the `-m68020' flag to GCC prevents building anything better,
15555 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15558 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15559 # PIC is the default for these OSes.
15562 mingw* | pw32* | os2*)
15563 # This hack is so that the source file can tell whether it is being
15564 # built for inclusion in a dll (and should export symbols for example).
15565 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15568 darwin* | rhapsody*)
15569 # PIC is the default on this platform
15570 # Common symbols not allowed in MH_DYLIB files
15571 lt_prog_compiler_pic_GCJ='-fno-common'
15575 # Just because we use GCC doesn't mean we suddenly get shared libraries
15576 # on systems that don't support them.
15577 lt_prog_compiler_can_build_shared_GCJ=no
15582 if test -d /usr/nec; then
15583 lt_prog_compiler_pic_GCJ=-Kconform_pic
15588 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15589 # not for PA HP-UX.
15590 case "$host_cpu" in
15595 lt_prog_compiler_pic_GCJ='-fPIC'
15601 lt_prog_compiler_pic_GCJ='-fPIC'
15605 # PORTME Check for flag to pass linker flags through the system compiler.
15608 lt_prog_compiler_wl_GCJ='-Wl,'
15609 if test "$host_cpu" = ia64; then
15610 # AIX 5 now supports IA64 processor
15611 lt_prog_compiler_static_GCJ='-Bstatic'
15613 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15617 # PIC is the default on this platform
15618 # Common symbols not allowed in MH_DYLIB files
15619 case "$cc_basename" in
15621 lt_prog_compiler_pic_GCJ='-qnocommon'
15622 lt_prog_compiler_wl_GCJ='-Wl,'
15627 mingw* | pw32* | os2*)
15628 # This hack is so that the source file can tell whether it is being
15629 # built for inclusion in a dll (and should export symbols for example).
15630 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15633 hpux9* | hpux10* | hpux11*)
15634 lt_prog_compiler_wl_GCJ='-Wl,'
15635 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15636 # not for PA HP-UX.
15637 case "$host_cpu" in
15642 lt_prog_compiler_pic_GCJ='+Z'
15645 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15646 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15649 irix5* | irix6* | nonstopux*)
15650 lt_prog_compiler_wl_GCJ='-Wl,'
15651 # PIC (with -KPIC) is the default.
15652 lt_prog_compiler_static_GCJ='-non_shared'
15656 lt_prog_compiler_pic_GCJ='-KPIC'
15657 lt_prog_compiler_static_GCJ='-Bstatic'
15663 lt_prog_compiler_wl_GCJ='-Wl,'
15664 lt_prog_compiler_pic_GCJ='-KPIC'
15665 lt_prog_compiler_static_GCJ='-static'
15668 lt_prog_compiler_wl_GCJ='-Wl,'
15669 # All Alpha code is PIC.
15670 lt_prog_compiler_static_GCJ='-non_shared'
15675 osf3* | osf4* | osf5*)
15676 lt_prog_compiler_wl_GCJ='-Wl,'
15677 # All OSF/1 code is PIC.
15678 lt_prog_compiler_static_GCJ='-non_shared'
15682 lt_prog_compiler_pic_GCJ='-Kpic'
15683 lt_prog_compiler_static_GCJ='-dn'
15687 lt_prog_compiler_wl_GCJ='-Wl,'
15688 lt_prog_compiler_pic_GCJ='-KPIC'
15689 lt_prog_compiler_static_GCJ='-Bstatic'
15693 lt_prog_compiler_wl_GCJ='-Qoption ld '
15694 lt_prog_compiler_pic_GCJ='-PIC'
15695 lt_prog_compiler_static_GCJ='-Bstatic'
15698 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15699 lt_prog_compiler_wl_GCJ='-Wl,'
15700 lt_prog_compiler_pic_GCJ='-KPIC'
15701 lt_prog_compiler_static_GCJ='-Bstatic'
15705 if test -d /usr/nec ;then
15706 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15707 lt_prog_compiler_static_GCJ='-Bstatic'
15712 lt_prog_compiler_pic_GCJ='-pic'
15713 lt_prog_compiler_static_GCJ='-Bstatic'
15717 lt_prog_compiler_can_build_shared_GCJ=no
15722 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15723 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15726 # Check to make sure the PIC flag actually works.
15728 if test -n "$lt_prog_compiler_pic_GCJ"; then
15730 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15731 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15732 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15733 echo $ECHO_N "(cached) $ECHO_C" >&6
15735 lt_prog_compiler_pic_works_GCJ=no
15736 ac_outfile=conftest.$ac_objext
15737 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15738 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15739 # Insert the option either (1) after the last *FLAGS variable, or
15740 # (2) before a word containing "conftest.", or (3) at the end.
15741 # Note that $ac_compile itself does not contain backslashes and begins
15742 # with a dollar sign (not a hyphen), so the echo should work correctly.
15743 # The option is referenced via a variable to avoid confusing sed.
15744 lt_compile=`echo "$ac_compile" | $SED \
15745 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15747 -e 's:$: $lt_compiler_flag:'`
15748 (eval echo "\"\$as_me:15748: $lt_compile\"" >&5)
15749 (eval "$lt_compile" 2>conftest.err)
15751 cat conftest.err >&5
15752 echo "$as_me:15752: \$? = $ac_status" >&5
15753 if (exit $ac_status) && test -s "$ac_outfile"; then
15754 # The compiler can only warn and ignore the option if not recognized
15755 # So say no if there are warnings
15756 if test ! -s conftest.err; then
15757 lt_prog_compiler_pic_works_GCJ=yes
15763 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15764 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15766 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15767 case $lt_prog_compiler_pic_GCJ in
15769 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15772 lt_prog_compiler_pic_GCJ=
15773 lt_prog_compiler_can_build_shared_GCJ=no
15778 # For platforms which do not support PIC, -DPIC is meaningless:
15780 lt_prog_compiler_pic_GCJ=
15783 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15787 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15788 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15789 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15790 echo $ECHO_N "(cached) $ECHO_C" >&6
15792 lt_cv_prog_compiler_c_o_GCJ=no
15793 $rm -r conftest 2>/dev/null
15797 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15799 lt_compiler_flag="-o out/conftest2.$ac_objext"
15800 # Insert the option either (1) after the last *FLAGS variable, or
15801 # (2) before a word containing "conftest.", or (3) at the end.
15802 # Note that $ac_compile itself does not contain backslashes and begins
15803 # with a dollar sign (not a hyphen), so the echo should work correctly.
15804 lt_compile=`echo "$ac_compile" | $SED \
15805 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15807 -e 's:$: $lt_compiler_flag:'`
15808 (eval echo "\"\$as_me:15808: $lt_compile\"" >&5)
15809 (eval "$lt_compile" 2>out/conftest.err)
15811 cat out/conftest.err >&5
15812 echo "$as_me:15812: \$? = $ac_status" >&5
15813 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15815 # The compiler can only warn and ignore the option if not recognized
15816 # So say no if there are warnings
15817 if test ! -s out/conftest.err; then
15818 lt_cv_prog_compiler_c_o_GCJ=yes
15823 # SGI C++ compiler will create directory out/ii_files/ for
15824 # template instantiation
15825 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15826 $rm out/* && rmdir out
15832 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15833 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15836 hard_links="nottested"
15837 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15838 # do not overwrite the value of need_locks provided by the user
15839 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15840 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15843 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15845 ln conftest.a conftest.b 2>&5 || hard_links=no
15846 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15847 echo "$as_me:$LINENO: result: $hard_links" >&5
15848 echo "${ECHO_T}$hard_links" >&6
15849 if test "$hard_links" = no; then
15850 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15851 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15858 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15859 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15862 allow_undefined_flag_GCJ=
15863 enable_shared_with_static_runtimes_GCJ=no
15865 archive_expsym_cmds_GCJ=
15866 old_archive_From_new_cmds_GCJ=
15867 old_archive_from_expsyms_cmds_GCJ=
15868 export_dynamic_flag_spec_GCJ=
15869 whole_archive_flag_spec_GCJ=
15870 thread_safe_flag_spec_GCJ=
15871 hardcode_libdir_flag_spec_GCJ=
15872 hardcode_libdir_flag_spec_ld_GCJ=
15873 hardcode_libdir_separator_GCJ=
15874 hardcode_direct_GCJ=no
15875 hardcode_minus_L_GCJ=no
15876 hardcode_shlibpath_var_GCJ=unsupported
15877 link_all_deplibs_GCJ=unknown
15878 hardcode_automatic_GCJ=no
15880 module_expsym_cmds_GCJ=
15881 always_export_symbols_GCJ=no
15882 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15883 # include_expsyms should be a list of space-separated symbols to be *always*
15884 # included in the symbol list
15885 include_expsyms_GCJ=
15886 # exclude_expsyms can be an extended regexp of symbols to exclude
15887 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15888 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15889 # as well as any symbol that contains `d'.
15890 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15891 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15892 # platforms (ab)use it in PIC code, but their linkers get confused if
15893 # the symbol is explicitly referenced. Since portable code cannot
15894 # rely on this symbol name, it's probably fine to never include it in
15895 # preloaded symbol tables.
15896 extract_expsyms_cmds=
15899 cygwin* | mingw* | pw32*)
15900 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15901 # When not using gcc, we currently assume that we are using
15902 # Microsoft Visual C++.
15903 if test "$GCC" != yes; then
15913 if test "$with_gnu_ld" = yes; then
15914 # If archive_cmds runs LD, not CC, wlarc should be empty
15917 # See if GNU ld supports shared libraries.
15919 aix3* | aix4* | aix5*)
15920 # On AIX/PPC, the GNU linker is very broken
15921 if test "$host_cpu" != ia64; then
15925 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15926 *** to be unable to reliably create shared libraries on AIX.
15927 *** Therefore, libtool is disabling shared libraries support. If you
15928 *** really care for shared libraries, you may want to modify your PATH
15929 *** so that a non-GNU linker is found, and then restart.
15936 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)'
15937 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15938 hardcode_minus_L_GCJ=yes
15940 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15941 # that the semantics of dynamic libraries on AmigaOS, at least up
15942 # to version 4, is to share data among multiple programs linked
15943 # with the same dynamic library. Since this doesn't match the
15944 # behavior of shared libraries on other platforms, we can't use
15950 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15951 allow_undefined_flag_GCJ=unsupported
15952 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15953 # support --undefined. This deserves some investigation. FIXME
15954 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15960 cygwin* | mingw* | pw32*)
15961 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15962 # as there is no search path for DLLs.
15963 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15964 allow_undefined_flag_GCJ=unsupported
15965 always_export_symbols_GCJ=no
15966 enable_shared_with_static_runtimes_GCJ=yes
15967 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15969 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15970 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15971 # If the export-symbols file already is a .def file (1st line
15972 # is EXPORTS), use it as is; otherwise, prepend...
15973 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15974 cp $export_symbols $output_objdir/$soname.def;
15976 echo EXPORTS > $output_objdir/$soname.def;
15977 cat $export_symbols >> $output_objdir/$soname.def;
15979 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15986 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15987 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15990 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15991 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15996 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16000 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16001 *** create shared libraries on Solaris systems. Therefore, libtool
16002 *** is disabling shared libraries support. We urge you to upgrade GNU
16003 *** binutils to release 2.9.1 or newer. Another option is to modify
16004 *** your PATH or compiler configuration so that the native linker is
16005 *** used, and then restart.
16008 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16009 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16010 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16017 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16019 hardcode_direct_GCJ=yes
16020 hardcode_shlibpath_var_GCJ=no
16024 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16025 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16026 archive_cmds_GCJ="$tmp_archive_cmds"
16027 supports_anon_versioning=no
16028 case `$LD -v 2>/dev/null` in
16029 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16030 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16031 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16032 *\ 2.11.*) ;; # other 2.11 versions
16033 *) supports_anon_versioning=yes ;;
16035 if test $supports_anon_versioning = yes; then
16036 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16037 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16038 $echo "local: *; };" >> $output_objdir/$libname.ver~
16039 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16041 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16049 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16050 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16051 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16058 if test "$ld_shlibs_GCJ" = yes; then
16059 runpath_var=LD_RUN_PATH
16060 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16061 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16062 # ancient GNU ld didn't support --whole-archive et. al.
16063 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16064 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16066 whole_archive_flag_spec_GCJ=
16070 # PORTME fill in a description of your system's linker (not GNU ld)
16073 allow_undefined_flag_GCJ=unsupported
16074 always_export_symbols_GCJ=yes
16075 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'
16076 # Note: this linker hardcodes the directories in LIBPATH if there
16077 # are no directories specified by -L.
16078 hardcode_minus_L_GCJ=yes
16079 if test "$GCC" = yes && test -z "$link_static_flag"; then
16080 # Neither direct hardcoding nor static linking is supported with a
16082 hardcode_direct_GCJ=unsupported
16087 if test "$host_cpu" = ia64; then
16088 # On IA64, the linker does run time linking by default, so we don't
16089 # have to do anything special.
16090 aix_use_runtimelinking=no
16091 exp_sym_flag='-Bexport'
16094 # If we're using GNU nm, then we don't want the "-C" option.
16095 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16096 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16097 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'
16099 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'
16101 aix_use_runtimelinking=no
16103 # Test if we are trying to use run time linking or normal
16104 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16105 # need to do runtime linking.
16106 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16107 for ld_flag in $LDFLAGS; do
16108 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16109 aix_use_runtimelinking=yes
16115 exp_sym_flag='-bexport'
16116 no_entry_flag='-bnoentry'
16119 # When large executables or shared objects are built, AIX ld can
16120 # have problems creating the table of contents. If linking a library
16121 # or program results in "error TOC overflow" add -mminimal-toc to
16122 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16123 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16125 archive_cmds_GCJ=''
16126 hardcode_direct_GCJ=yes
16127 hardcode_libdir_separator_GCJ=':'
16128 link_all_deplibs_GCJ=yes
16130 if test "$GCC" = yes; then
16131 case $host_os in aix4.012|aix4.012.*)
16132 # We only want to do this on AIX 4.2 and lower, the check
16133 # below for broken collect2 doesn't work under 4.3+
16134 collect2name=`${CC} -print-prog-name=collect2`
16135 if test -f "$collect2name" && \
16136 strings "$collect2name" | grep resolve_lib_name >/dev/null
16138 # We have reworked collect2
16139 hardcode_direct_GCJ=yes
16141 # We have old collect2
16142 hardcode_direct_GCJ=unsupported
16143 # It fails to find uninstalled libraries when the uninstalled
16144 # path is not listed in the libpath. Setting hardcode_minus_L
16145 # to unsupported forces relinking
16146 hardcode_minus_L_GCJ=yes
16147 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16148 hardcode_libdir_separator_GCJ=
16151 shared_flag='-shared'
16154 if test "$host_cpu" = ia64; then
16155 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16156 # chokes on -Wl,-G. The following line is correct:
16159 if test "$aix_use_runtimelinking" = yes; then
16160 shared_flag='${wl}-G'
16162 shared_flag='${wl}-bM:SRE'
16167 # It seems that -bexpall does not export symbols beginning with
16168 # underscore (_), so it is better to generate a list of symbols to export.
16169 always_export_symbols_GCJ=yes
16170 if test "$aix_use_runtimelinking" = yes; then
16171 # Warning - without using the other runtime loading flags (-brtl),
16172 # -berok will link without error, but may produce a broken library.
16173 allow_undefined_flag_GCJ='-berok'
16174 # Determine the default libpath from the value encoded in an empty executable.
16175 cat >conftest.$ac_ext <<_ACEOF
16178 cat confdefs.h >>conftest.$ac_ext
16179 cat >>conftest.$ac_ext <<_ACEOF
16180 /* end confdefs.h. */
16190 rm -f conftest.$ac_objext conftest$ac_exeext
16191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16192 (eval $ac_link) 2>conftest.er1
16194 grep -v '^ *+' conftest.er1 >conftest.err
16196 cat conftest.err >&5
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); } &&
16199 { ac_try='test -z "$ac_c_werror_flag"
16200 || test ! -s conftest.err'
16201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16202 (eval $ac_try) 2>&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; } &&
16206 { ac_try='test -s conftest$ac_exeext'
16207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208 (eval $ac_try) 2>&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); }; }; then
16213 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16215 # Check for a 64-bit object if we didn't find anything.
16216 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; }
16219 echo "$as_me: failed program was:" >&5
16220 sed 's/^/| /' conftest.$ac_ext >&5
16223 rm -f conftest.err conftest.$ac_objext \
16224 conftest$ac_exeext conftest.$ac_ext
16225 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16227 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16228 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"
16230 if test "$host_cpu" = ia64; then
16231 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16232 allow_undefined_flag_GCJ="-z nodefs"
16233 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"
16235 # Determine the default libpath from the value encoded in an empty executable.
16236 cat >conftest.$ac_ext <<_ACEOF
16239 cat confdefs.h >>conftest.$ac_ext
16240 cat >>conftest.$ac_ext <<_ACEOF
16241 /* end confdefs.h. */
16251 rm -f conftest.$ac_objext conftest$ac_exeext
16252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16253 (eval $ac_link) 2>conftest.er1
16255 grep -v '^ *+' conftest.er1 >conftest.err
16257 cat conftest.err >&5
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); } &&
16260 { ac_try='test -z "$ac_c_werror_flag"
16261 || test ! -s conftest.err'
16262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16263 (eval $ac_try) 2>&5
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); }; } &&
16267 { ac_try='test -s conftest$ac_exeext'
16268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16269 (eval $ac_try) 2>&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); }; }; then
16274 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16276 # Check for a 64-bit object if we didn't find anything.
16277 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; }
16280 echo "$as_me: failed program was:" >&5
16281 sed 's/^/| /' conftest.$ac_ext >&5
16284 rm -f conftest.err conftest.$ac_objext \
16285 conftest$ac_exeext conftest.$ac_ext
16286 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16288 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16289 # Warning - without using the other run time loading flags,
16290 # -berok will link without error, but may produce a broken library.
16291 no_undefined_flag_GCJ=' ${wl}-bernotok'
16292 allow_undefined_flag_GCJ=' ${wl}-berok'
16293 # -bexpall does not export symbols beginning with underscore (_)
16294 always_export_symbols_GCJ=yes
16295 # Exported symbols can be pulled into shared objects from archives
16296 whole_archive_flag_spec_GCJ=' '
16297 archive_cmds_need_lc_GCJ=yes
16298 # This is similar to how AIX traditionally builds it's shared libraries.
16299 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'
16305 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)'
16306 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16307 hardcode_minus_L_GCJ=yes
16308 # see comment about different semantics on the GNU ld section
16313 export_dynamic_flag_spec_GCJ=-rdynamic
16316 cygwin* | mingw* | pw32*)
16317 # When not using gcc, we currently assume that we are using
16318 # Microsoft Visual C++.
16319 # hardcode_libdir_flag_spec is actually meaningless, as there is
16320 # no search path for DLLs.
16321 hardcode_libdir_flag_spec_GCJ=' '
16322 allow_undefined_flag_GCJ=unsupported
16323 # Tell ltmain to make .lib files, not .a files.
16325 # Tell ltmain to make .dll files, not .so files.
16327 # FIXME: Setting linknames here is a bad hack.
16328 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16329 # The linker will automatically build a .lib file if we build a DLL.
16330 old_archive_From_new_cmds_GCJ='true'
16331 # FIXME: Should let the user specify the lib program.
16332 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16333 fix_srcfile_path='`cygpath -w "$srcfile"`'
16334 enable_shared_with_static_runtimes_GCJ=yes
16337 darwin* | rhapsody*)
16339 rhapsody* | darwin1.[012])
16340 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16343 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16344 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16346 case ${MACOSX_DEPLOYMENT_TARGET} in
16348 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16351 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16357 archive_cmds_need_lc_GCJ=no
16358 hardcode_direct_GCJ=no
16359 hardcode_automatic_GCJ=yes
16360 hardcode_shlibpath_var_GCJ=unsupported
16361 whole_archive_flag_spec_GCJ=''
16362 link_all_deplibs_GCJ=yes
16363 if test "$GCC" = yes ; then
16364 output_verbose_link_cmd='echo'
16365 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16366 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16367 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16368 archive_expsym_cmds_GCJ='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}'
16369 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16371 case "$cc_basename" in
16373 output_verbose_link_cmd='echo'
16374 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16375 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16376 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16377 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16378 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16388 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16389 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16390 hardcode_shlibpath_var_GCJ=no
16397 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16398 # support. Future versions do this automatically, but an explicit c++rt0.o
16399 # does not break anything, and helps significantly (at the cost of a little
16402 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16403 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16404 hardcode_direct_GCJ=yes
16405 hardcode_shlibpath_var_GCJ=no
16408 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16410 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16411 hardcode_direct_GCJ=yes
16412 hardcode_minus_L_GCJ=yes
16413 hardcode_shlibpath_var_GCJ=no
16416 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16417 freebsd* | kfreebsd*-gnu)
16418 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16419 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16420 hardcode_direct_GCJ=yes
16421 hardcode_shlibpath_var_GCJ=no
16425 if test "$GCC" = yes; then
16426 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'
16428 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'
16430 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16431 hardcode_libdir_separator_GCJ=:
16432 hardcode_direct_GCJ=yes
16434 # hardcode_minus_L: Not really in the search PATH,
16435 # but as the default location of the library.
16436 hardcode_minus_L_GCJ=yes
16437 export_dynamic_flag_spec_GCJ='${wl}-E'
16441 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16442 case "$host_cpu" in
16444 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16447 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16451 case "$host_cpu" in
16453 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16456 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16460 if test "$with_gnu_ld" = no; then
16461 case "$host_cpu" in
16463 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16464 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16465 hardcode_libdir_separator_GCJ=:
16466 hardcode_direct_GCJ=no
16467 hardcode_shlibpath_var_GCJ=no
16470 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16471 hardcode_direct_GCJ=no
16472 hardcode_shlibpath_var_GCJ=no
16474 # hardcode_minus_L: Not really in the search PATH,
16475 # but as the default location of the library.
16476 hardcode_minus_L_GCJ=yes
16479 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16480 hardcode_libdir_separator_GCJ=:
16481 hardcode_direct_GCJ=yes
16482 export_dynamic_flag_spec_GCJ='${wl}-E'
16484 # hardcode_minus_L: Not really in the search PATH,
16485 # but as the default location of the library.
16486 hardcode_minus_L_GCJ=yes
16492 irix5* | irix6* | nonstopux*)
16493 if test "$GCC" = yes; then
16494 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'
16496 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'
16497 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16499 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16500 hardcode_libdir_separator_GCJ=:
16501 link_all_deplibs_GCJ=yes
16505 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16506 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16508 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16510 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16511 hardcode_direct_GCJ=yes
16512 hardcode_shlibpath_var_GCJ=no
16516 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16517 hardcode_direct_GCJ=yes
16518 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16519 hardcode_libdir_separator_GCJ=:
16520 hardcode_shlibpath_var_GCJ=no
16524 hardcode_direct_GCJ=yes
16525 hardcode_shlibpath_var_GCJ=no
16526 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16527 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16528 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16529 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16530 export_dynamic_flag_spec_GCJ='${wl}-E'
16533 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16534 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16535 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16538 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16539 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16546 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16547 hardcode_minus_L_GCJ=yes
16548 allow_undefined_flag_GCJ=unsupported
16549 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'
16550 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16554 if test "$GCC" = yes; then
16555 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16556 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'
16558 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16559 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'
16561 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16562 hardcode_libdir_separator_GCJ=:
16565 osf4* | osf5*) # as osf3* with the addition of -msym flag
16566 if test "$GCC" = yes; then
16567 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16568 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'
16569 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16571 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16572 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'
16573 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~
16574 $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'
16576 # Both c and cxx compiler support -rpath directly
16577 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16579 hardcode_libdir_separator_GCJ=:
16583 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16584 hardcode_shlibpath_var_GCJ=no
16585 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16586 runpath_var=LD_RUN_PATH
16587 hardcode_runpath_var=yes
16591 no_undefined_flag_GCJ=' -z text'
16592 if test "$GCC" = yes; then
16593 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16594 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16595 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16597 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16598 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16599 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16601 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16602 hardcode_shlibpath_var_GCJ=no
16604 solaris2.[0-5] | solaris2.[0-5].*) ;;
16605 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16606 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16608 link_all_deplibs_GCJ=yes
16612 if test "x$host_vendor" = xsequent; then
16613 # Use $CC to link under sequent, because it throws in some extra .o
16614 # files that make .init and .fini sections work.
16615 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16617 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16619 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16620 hardcode_direct_GCJ=yes
16621 hardcode_minus_L_GCJ=yes
16622 hardcode_shlibpath_var_GCJ=no
16626 case $host_vendor in
16628 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16629 hardcode_direct_GCJ=yes # is this really true???
16632 ## LD is ld it makes a PLAMLIB
16633 ## CC just makes a GrossModule.
16634 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16635 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16636 hardcode_direct_GCJ=no
16639 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16640 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16643 runpath_var='LD_RUN_PATH'
16644 hardcode_shlibpath_var_GCJ=no
16648 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16649 hardcode_shlibpath_var_GCJ=no
16650 export_dynamic_flag_spec_GCJ='-Bexport'
16654 if test -d /usr/nec; then
16655 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16656 hardcode_shlibpath_var_GCJ=no
16657 runpath_var=LD_RUN_PATH
16658 hardcode_runpath_var=yes
16664 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16665 hardcode_direct_GCJ=yes
16666 hardcode_minus_L_GCJ=no
16667 hardcode_shlibpath_var_GCJ=no
16668 hardcode_runpath_var=yes
16669 runpath_var=LD_RUN_PATH
16672 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16673 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16674 if test "$GCC" = yes; then
16675 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16677 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16679 runpath_var='LD_RUN_PATH'
16680 hardcode_shlibpath_var_GCJ=no
16684 no_undefined_flag_GCJ=' -z text'
16685 # $CC -shared without GNU ld will not create a library from C++
16686 # object files and a static libstdc++, better avoid it by now
16687 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16688 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16689 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16690 hardcode_libdir_flag_spec_GCJ=
16691 hardcode_shlibpath_var_GCJ=no
16692 runpath_var='LD_RUN_PATH'
16696 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16697 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16698 hardcode_shlibpath_var_GCJ=no
16707 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16708 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16709 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16711 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16712 if test "$GCC" = yes; then
16713 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16717 # Do we need to explicitly link libc?
16719 case "x$archive_cmds_need_lc_GCJ" in
16721 # Assume -lc should be added
16722 archive_cmds_need_lc_GCJ=yes
16724 if test "$enable_shared" = yes && test "$GCC" = yes; then
16725 case $archive_cmds_GCJ in
16727 # FIXME: we may have to deal with multi-command sequences.
16730 # Test whether the compiler implicitly links with -lc since on some
16731 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16732 # to ld, don't add -lc before -lgcc.
16733 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16734 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16736 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16739 (eval $ac_compile) 2>&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); } 2>conftest.err; then
16745 libobjs=conftest.$ac_objext
16747 wl=$lt_prog_compiler_wl_GCJ
16753 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16754 allow_undefined_flag_GCJ=
16755 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16756 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); }
16761 archive_cmds_need_lc_GCJ=no
16763 archive_cmds_need_lc_GCJ=yes
16765 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16767 cat conftest.err 1>&5
16770 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16771 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16778 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16779 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16780 library_names_spec=
16781 libname_spec='lib$name'
16785 postuninstall_cmds=
16789 shlibpath_overrides_runpath=unknown
16791 dynamic_linker="$host_os ld.so"
16792 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16793 if test "$GCC" = yes; then
16794 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16795 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16796 # if the path contains ";" then we assume it to be the separator
16797 # otherwise default to the standard path separator (i.e. ":") - it is
16798 # assumed that no part of a normal pathname contains ";" but that should
16799 # okay in the real world where ";" in dirpaths is itself problematic.
16800 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16805 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16807 need_lib_prefix=unknown
16808 hardcode_into_libs=no
16810 # when you set need_version to no, make sure it does not cause -set_version
16811 # flags to be left without arguments
16812 need_version=unknown
16817 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16818 shlibpath_var=LIBPATH
16820 # AIX 3 has no versioning support, so we append a major version to the name.
16821 soname_spec='${libname}${release}${shared_ext}$major'
16828 hardcode_into_libs=yes
16829 if test "$host_cpu" = ia64; then
16830 # AIX 5 supports IA64
16831 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16832 shlibpath_var=LD_LIBRARY_PATH
16834 # With GCC up to 2.95.x, collect2 would create an import file
16835 # for dependence libraries. The import file would start with
16836 # the line `#! .'. This would cause the generated library to
16837 # depend on `.', always an invalid library. This was fixed in
16838 # development snapshots of GCC prior to 3.0.
16840 aix4 | aix4.[01] | aix4.[01].*)
16841 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16843 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16846 can_build_shared=no
16850 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16851 # soname into executable. Probably we can add versioning support to
16852 # collect2, so additional links can be useful in future.
16853 if test "$aix_use_runtimelinking" = yes; then
16854 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16855 # instead of lib<name>.a to let people know that these are not
16856 # typical AIX shared libraries.
16857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16859 # We preserve .a as extension for shared libraries through AIX4.2
16860 # and later when we are not doing run time linking.
16861 library_names_spec='${libname}${release}.a $libname.a'
16862 soname_spec='${libname}${release}${shared_ext}$major'
16864 shlibpath_var=LIBPATH
16869 library_names_spec='$libname.ixlibrary $libname.a'
16870 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16871 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'
16875 library_names_spec='${libname}${shared_ext}'
16876 dynamic_linker="$host_os ld.so"
16877 shlibpath_var=LIBRARY_PATH
16883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16884 soname_spec='${libname}${release}${shared_ext}$major'
16885 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16886 shlibpath_var=LD_LIBRARY_PATH
16887 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16888 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16889 # the default ld.so.conf also contains /usr/contrib/lib and
16890 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16891 # libtool to hard-code these into programs
16894 cygwin* | mingw* | pw32*)
16895 version_type=windows
16900 case $GCC,$host_os in
16901 yes,cygwin* | yes,mingw* | yes,pw32*)
16902 library_names_spec='$libname.dll.a'
16903 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16904 postinstall_cmds='base_file=`basename \${file}`~
16905 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16906 dldir=$destdir/`dirname \$dlpath`~
16907 test -d \$dldir || mkdir -p \$dldir~
16908 $install_prog $dir/$dlname \$dldir/$dlname'
16909 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16910 dlpath=$dir/\$dldll~
16912 shlibpath_overrides_runpath=yes
16916 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16917 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16918 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16921 # MinGW DLLs use traditional 'lib' prefix
16922 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16923 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16924 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16925 # It is most probably a Windows format PATH printed by
16926 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16927 # path with ; separators, and with drive letters. We can handle the
16928 # drive letters (cygwin fileutils understands them), so leave them,
16929 # especially as we might pass files found there to a mingw objdump,
16930 # which wouldn't understand a cygwinified path. Ahh.
16931 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16933 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16937 # pw32 DLLs use 'pw' prefix rather than 'lib'
16938 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16944 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16947 dynamic_linker='Win32 ld.exe'
16948 # FIXME: first we should search . and the directory the executable is in
16952 darwin* | rhapsody*)
16953 dynamic_linker="$host_os dyld"
16954 version_type=darwin
16957 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16958 soname_spec='${libname}${release}${major}$shared_ext'
16959 shlibpath_overrides_runpath=yes
16960 shlibpath_var=DYLD_LIBRARY_PATH
16961 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16962 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16963 if test "$GCC" = yes; then
16964 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"`
16966 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16968 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16976 soname_spec='${libname}${release}${shared_ext}$major'
16977 shlibpath_var=LD_LIBRARY_PATH
16988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16989 soname_spec='${libname}${release}${shared_ext}$major'
16990 shlibpath_var=LD_LIBRARY_PATH
16991 shlibpath_overrides_runpath=no
16992 hardcode_into_libs=yes
16993 dynamic_linker='GNU ld.so'
16997 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16998 version_type=freebsd-$objformat
16999 case $version_type in
17001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17006 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17010 shlibpath_var=LD_LIBRARY_PATH
17013 shlibpath_overrides_runpath=yes
17015 freebsd3.01* | freebsdelf3.01*)
17016 shlibpath_overrides_runpath=yes
17017 hardcode_into_libs=yes
17020 shlibpath_overrides_runpath=no
17021 hardcode_into_libs=yes
17030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17031 soname_spec='${libname}${release}${shared_ext}$major'
17032 shlibpath_var=LD_LIBRARY_PATH
17033 hardcode_into_libs=yes
17036 hpux9* | hpux10* | hpux11*)
17037 # Give a soname corresponding to the major version so that dld.sl refuses to
17038 # link against other versions.
17042 case "$host_cpu" in
17045 hardcode_into_libs=yes
17046 dynamic_linker="$host_os dld.so"
17047 shlibpath_var=LD_LIBRARY_PATH
17048 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17050 soname_spec='${libname}${release}${shared_ext}$major'
17051 if test "X$HPUX_IA64_MODE" = X32; then
17052 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17054 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17056 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17060 hardcode_into_libs=yes
17061 dynamic_linker="$host_os dld.sl"
17062 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17063 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17065 soname_spec='${libname}${release}${shared_ext}$major'
17066 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17067 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17071 dynamic_linker="$host_os dld.sl"
17072 shlibpath_var=SHLIB_PATH
17073 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17075 soname_spec='${libname}${release}${shared_ext}$major'
17078 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17079 postinstall_cmds='chmod 555 $lib'
17082 irix5* | irix6* | nonstopux*)
17084 nonstopux*) version_type=nonstopux ;;
17086 if test "$lt_cv_prog_gnu_ld" = yes; then
17094 soname_spec='${libname}${release}${shared_ext}$major'
17095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17097 irix5* | nonstopux*)
17098 libsuff= shlibsuff=
17101 case $LD in # libtool.m4 will add one of these switches to LD
17102 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17103 libsuff= shlibsuff= libmagic=32-bit;;
17104 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17105 libsuff=32 shlibsuff=N32 libmagic=N32;;
17106 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17107 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17108 *) libsuff= shlibsuff= libmagic=never-match;;
17112 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17113 shlibpath_overrides_runpath=no
17114 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17115 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17116 hardcode_into_libs=yes
17119 # No shared lib support for Linux oldld, aout, or coff.
17120 linux*oldld* | linux*aout* | linux*coff*)
17124 # This must be Linux ELF.
17129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17130 soname_spec='${libname}${release}${shared_ext}$major'
17131 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17132 shlibpath_var=LD_LIBRARY_PATH
17133 shlibpath_overrides_runpath=no
17134 # This implies no fast_install, which is unacceptable.
17135 # Some rework will be needed to allow for fast_install
17136 # before this can be enabled.
17137 hardcode_into_libs=yes
17139 # Append ld.so.conf contents to the search path
17140 if test -f /etc/ld.so.conf; then
17141 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17142 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17145 # We used to test for /lib/ld.so.1 and disable shared libraries on
17146 # powerpc, because MkLinux only supported shared libraries with the
17147 # GNU dynamic linker. Since this was broken with cross compilers,
17148 # most powerpc-linux boxes support dynamic linking these days and
17149 # people can always --disable-shared, the test was removed, and we
17150 # assume the GNU/Linux dynamic linker is in use.
17151 dynamic_linker='GNU/Linux ld.so'
17158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17159 soname_spec='${libname}${release}${shared_ext}$major'
17160 shlibpath_var=LD_LIBRARY_PATH
17161 shlibpath_overrides_runpath=no
17162 hardcode_into_libs=yes
17163 dynamic_linker='GNU ld.so'
17170 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17173 dynamic_linker='NetBSD (a.out) ld.so'
17175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17176 soname_spec='${libname}${release}${shared_ext}$major'
17177 dynamic_linker='NetBSD ld.elf_so'
17179 shlibpath_var=LD_LIBRARY_PATH
17180 shlibpath_overrides_runpath=yes
17181 hardcode_into_libs=yes
17186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17187 shlibpath_var=LD_LIBRARY_PATH
17188 shlibpath_overrides_runpath=yes
17195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17196 soname_spec='${libname}${release}${shared_ext}$major'
17197 shlibpath_var=LD_LIBRARY_PATH
17198 shlibpath_overrides_runpath=yes
17205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17206 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17207 shlibpath_var=LD_LIBRARY_PATH
17208 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17210 openbsd2.[89] | openbsd2.[89].*)
17211 shlibpath_overrides_runpath=no
17214 shlibpath_overrides_runpath=yes
17218 shlibpath_overrides_runpath=yes
17223 libname_spec='$name'
17226 library_names_spec='$libname${shared_ext} $libname.a'
17227 dynamic_linker='OS/2 ld.exe'
17228 shlibpath_var=LIBPATH
17231 osf3* | osf4* | osf5*)
17235 soname_spec='${libname}${release}${shared_ext}$major'
17236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17237 shlibpath_var=LD_LIBRARY_PATH
17238 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17239 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17244 soname_spec='${libname}${release}${shared_ext}$major'
17245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17246 shlibpath_var=LD_LIBRARY_PATH
17253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17254 soname_spec='${libname}${release}${shared_ext}$major'
17255 shlibpath_var=LD_LIBRARY_PATH
17256 shlibpath_overrides_runpath=yes
17257 hardcode_into_libs=yes
17258 # ldd complains unless libraries are executable
17259 postinstall_cmds='chmod +x $lib'
17264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17265 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17266 shlibpath_var=LD_LIBRARY_PATH
17267 shlibpath_overrides_runpath=yes
17268 if test "$with_gnu_ld" = yes; then
17274 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17277 soname_spec='${libname}${release}${shared_ext}$major'
17278 shlibpath_var=LD_LIBRARY_PATH
17279 case $host_vendor in
17281 shlibpath_overrides_runpath=no
17283 export_dynamic_flag_spec='${wl}-Blargedynsym'
17284 runpath_var=LD_RUN_PATH
17292 shlibpath_overrides_runpath=no
17293 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17299 if test -d /usr/nec ;then
17301 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17302 soname_spec='$libname${shared_ext}.$major'
17303 shlibpath_var=LD_LIBRARY_PATH
17309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17310 soname_spec='${libname}${release}${shared_ext}$major'
17311 shlibpath_var=LD_LIBRARY_PATH
17318 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17319 echo "${ECHO_T}$dynamic_linker" >&6
17320 test "$dynamic_linker" = no && can_build_shared=no
17322 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17323 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17324 hardcode_action_GCJ=
17325 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17326 test -n "$runpath_var_GCJ" || \
17327 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17329 # We can hardcode non-existant directories.
17330 if test "$hardcode_direct_GCJ" != no &&
17331 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17332 # have to relink, otherwise we might link with an installed library
17333 # when we should be linking with a yet-to-be-installed one
17334 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17335 test "$hardcode_minus_L_GCJ" != no; then
17336 # Linking always hardcodes the temporary library directory.
17337 hardcode_action_GCJ=relink
17339 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17340 hardcode_action_GCJ=immediate
17343 # We cannot hardcode anything, or else we can only hardcode existing
17345 hardcode_action_GCJ=unsupported
17347 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17348 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17350 if test "$hardcode_action_GCJ" = relink; then
17351 # Fast installation is not supported
17352 enable_fast_install=no
17353 elif test "$shlibpath_overrides_runpath" = yes ||
17354 test "$enable_shared" = no; then
17355 # Fast installation is not necessary
17356 enable_fast_install=needless
17361 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17362 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17363 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17364 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17365 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17366 echo "$as_me:$LINENO: result: yes" >&5
17367 echo "${ECHO_T}yes" >&6
17369 # FIXME - insert some real tests, host_os isn't really good enough
17372 if test -n "$STRIP" ; then
17373 striplib="$STRIP -x"
17374 echo "$as_me:$LINENO: result: yes" >&5
17375 echo "${ECHO_T}yes" >&6
17377 echo "$as_me:$LINENO: result: no" >&5
17378 echo "${ECHO_T}no" >&6
17382 echo "$as_me:$LINENO: result: no" >&5
17383 echo "${ECHO_T}no" >&6
17388 if test "x$enable_dlopen" != xyes; then
17389 enable_dlopen=unknown
17390 enable_dlopen_self=unknown
17391 enable_dlopen_self_static=unknown
17398 lt_cv_dlopen="load_add_on"
17400 lt_cv_dlopen_self=yes
17404 lt_cv_dlopen="LoadLibrary"
17409 lt_cv_dlopen="dlopen"
17414 # if libdl is installed we need to link against it
17415 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17416 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17417 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17418 echo $ECHO_N "(cached) $ECHO_C" >&6
17420 ac_check_lib_save_LIBS=$LIBS
17422 cat >conftest.$ac_ext <<_ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h. */
17429 /* Override any gcc2 internal prototype to avoid an error. */
17433 /* We use char because int might match the return type of a gcc2
17434 builtin and then its argument prototype would still apply. */
17444 rm -f conftest.$ac_objext conftest$ac_exeext
17445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17446 (eval $ac_link) 2>conftest.er1
17448 grep -v '^ *+' conftest.er1 >conftest.err
17450 cat conftest.err >&5
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); } &&
17453 { ac_try='test -z "$ac_c_werror_flag"
17454 || test ! -s conftest.err'
17455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17456 (eval $ac_try) 2>&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); }; } &&
17460 { ac_try='test -s conftest$ac_exeext'
17461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462 (eval $ac_try) 2>&5
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; }; then
17466 ac_cv_lib_dl_dlopen=yes
17468 echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17471 ac_cv_lib_dl_dlopen=no
17473 rm -f conftest.err conftest.$ac_objext \
17474 conftest$ac_exeext conftest.$ac_ext
17475 LIBS=$ac_check_lib_save_LIBS
17477 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17478 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17479 if test $ac_cv_lib_dl_dlopen = yes; then
17480 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17483 lt_cv_dlopen="dyld"
17485 lt_cv_dlopen_self=yes
17492 echo "$as_me:$LINENO: checking for shl_load" >&5
17493 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17494 if test "${ac_cv_func_shl_load+set}" = set; then
17495 echo $ECHO_N "(cached) $ECHO_C" >&6
17497 cat >conftest.$ac_ext <<_ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h. */
17503 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17505 #define shl_load innocuous_shl_load
17507 /* System header to define __stub macros and hopefully few prototypes,
17508 which can conflict with char shl_load (); below.
17509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17510 <limits.h> exists even on freestanding compilers. */
17513 # include <limits.h>
17515 # include <assert.h>
17520 /* Override any gcc2 internal prototype to avoid an error. */
17525 /* We use char because int might match the return type of a gcc2
17526 builtin and then its argument prototype would still apply. */
17528 /* The GNU C library defines this for functions which it implements
17529 to always fail with ENOSYS. Some functions are actually named
17530 something starting with __ and the normal name is an alias. */
17531 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17534 char (*f) () = shl_load;
17543 return f != shl_load;
17548 rm -f conftest.$ac_objext conftest$ac_exeext
17549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17550 (eval $ac_link) 2>conftest.er1
17552 grep -v '^ *+' conftest.er1 >conftest.err
17554 cat conftest.err >&5
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); } &&
17557 { ac_try='test -z "$ac_c_werror_flag"
17558 || test ! -s conftest.err'
17559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17560 (eval $ac_try) 2>&5
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); }; } &&
17564 { ac_try='test -s conftest$ac_exeext'
17565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566 (eval $ac_try) 2>&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; }; then
17570 ac_cv_func_shl_load=yes
17572 echo "$as_me: failed program was:" >&5
17573 sed 's/^/| /' conftest.$ac_ext >&5
17575 ac_cv_func_shl_load=no
17577 rm -f conftest.err conftest.$ac_objext \
17578 conftest$ac_exeext conftest.$ac_ext
17580 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17581 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17582 if test $ac_cv_func_shl_load = yes; then
17583 lt_cv_dlopen="shl_load"
17585 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17586 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17587 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17588 echo $ECHO_N "(cached) $ECHO_C" >&6
17590 ac_check_lib_save_LIBS=$LIBS
17592 cat >conftest.$ac_ext <<_ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17599 /* Override any gcc2 internal prototype to avoid an error. */
17603 /* We use char because int might match the return type of a gcc2
17604 builtin and then its argument prototype would still apply. */
17614 rm -f conftest.$ac_objext conftest$ac_exeext
17615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17616 (eval $ac_link) 2>conftest.er1
17618 grep -v '^ *+' conftest.er1 >conftest.err
17620 cat conftest.err >&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); } &&
17623 { ac_try='test -z "$ac_c_werror_flag"
17624 || test ! -s conftest.err'
17625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17626 (eval $ac_try) 2>&5
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); }; } &&
17630 { ac_try='test -s conftest$ac_exeext'
17631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17632 (eval $ac_try) 2>&5
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); }; }; then
17636 ac_cv_lib_dld_shl_load=yes
17638 echo "$as_me: failed program was:" >&5
17639 sed 's/^/| /' conftest.$ac_ext >&5
17641 ac_cv_lib_dld_shl_load=no
17643 rm -f conftest.err conftest.$ac_objext \
17644 conftest$ac_exeext conftest.$ac_ext
17645 LIBS=$ac_check_lib_save_LIBS
17647 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17648 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17649 if test $ac_cv_lib_dld_shl_load = yes; then
17650 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17652 echo "$as_me:$LINENO: checking for dlopen" >&5
17653 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17654 if test "${ac_cv_func_dlopen+set}" = set; then
17655 echo $ECHO_N "(cached) $ECHO_C" >&6
17657 cat >conftest.$ac_ext <<_ACEOF
17660 cat confdefs.h >>conftest.$ac_ext
17661 cat >>conftest.$ac_ext <<_ACEOF
17662 /* end confdefs.h. */
17663 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17665 #define dlopen innocuous_dlopen
17667 /* System header to define __stub macros and hopefully few prototypes,
17668 which can conflict with char dlopen (); below.
17669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17670 <limits.h> exists even on freestanding compilers. */
17673 # include <limits.h>
17675 # include <assert.h>
17680 /* Override any gcc2 internal prototype to avoid an error. */
17685 /* We use char because int might match the return type of a gcc2
17686 builtin and then its argument prototype would still apply. */
17688 /* The GNU C library defines this for functions which it implements
17689 to always fail with ENOSYS. Some functions are actually named
17690 something starting with __ and the normal name is an alias. */
17691 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17694 char (*f) () = dlopen;
17703 return f != dlopen;
17708 rm -f conftest.$ac_objext conftest$ac_exeext
17709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17710 (eval $ac_link) 2>conftest.er1
17712 grep -v '^ *+' conftest.er1 >conftest.err
17714 cat conftest.err >&5
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); } &&
17717 { ac_try='test -z "$ac_c_werror_flag"
17718 || test ! -s conftest.err'
17719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720 (eval $ac_try) 2>&5
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); }; } &&
17724 { ac_try='test -s conftest$ac_exeext'
17725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17726 (eval $ac_try) 2>&5
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); }; }; then
17730 ac_cv_func_dlopen=yes
17732 echo "$as_me: failed program was:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17735 ac_cv_func_dlopen=no
17737 rm -f conftest.err conftest.$ac_objext \
17738 conftest$ac_exeext conftest.$ac_ext
17740 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17741 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17742 if test $ac_cv_func_dlopen = yes; then
17743 lt_cv_dlopen="dlopen"
17745 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17746 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17747 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17748 echo $ECHO_N "(cached) $ECHO_C" >&6
17750 ac_check_lib_save_LIBS=$LIBS
17752 cat >conftest.$ac_ext <<_ACEOF
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h. */
17759 /* Override any gcc2 internal prototype to avoid an error. */
17763 /* We use char because int might match the return type of a gcc2
17764 builtin and then its argument prototype would still apply. */
17774 rm -f conftest.$ac_objext conftest$ac_exeext
17775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17776 (eval $ac_link) 2>conftest.er1
17778 grep -v '^ *+' conftest.er1 >conftest.err
17780 cat conftest.err >&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); } &&
17783 { ac_try='test -z "$ac_c_werror_flag"
17784 || test ! -s conftest.err'
17785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17786 (eval $ac_try) 2>&5
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); }; } &&
17790 { ac_try='test -s conftest$ac_exeext'
17791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17792 (eval $ac_try) 2>&5
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); }; }; then
17796 ac_cv_lib_dl_dlopen=yes
17798 echo "$as_me: failed program was:" >&5
17799 sed 's/^/| /' conftest.$ac_ext >&5
17801 ac_cv_lib_dl_dlopen=no
17803 rm -f conftest.err conftest.$ac_objext \
17804 conftest$ac_exeext conftest.$ac_ext
17805 LIBS=$ac_check_lib_save_LIBS
17807 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17808 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17809 if test $ac_cv_lib_dl_dlopen = yes; then
17810 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17812 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17813 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17814 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17815 echo $ECHO_N "(cached) $ECHO_C" >&6
17817 ac_check_lib_save_LIBS=$LIBS
17818 LIBS="-lsvld $LIBS"
17819 cat >conftest.$ac_ext <<_ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h. */
17826 /* Override any gcc2 internal prototype to avoid an error. */
17830 /* We use char because int might match the return type of a gcc2
17831 builtin and then its argument prototype would still apply. */
17841 rm -f conftest.$ac_objext conftest$ac_exeext
17842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17843 (eval $ac_link) 2>conftest.er1
17845 grep -v '^ *+' conftest.er1 >conftest.err
17847 cat conftest.err >&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } &&
17850 { ac_try='test -z "$ac_c_werror_flag"
17851 || test ! -s conftest.err'
17852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853 (eval $ac_try) 2>&5
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; } &&
17857 { ac_try='test -s conftest$ac_exeext'
17858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17859 (eval $ac_try) 2>&5
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); }; }; then
17863 ac_cv_lib_svld_dlopen=yes
17865 echo "$as_me: failed program was:" >&5
17866 sed 's/^/| /' conftest.$ac_ext >&5
17868 ac_cv_lib_svld_dlopen=no
17870 rm -f conftest.err conftest.$ac_objext \
17871 conftest$ac_exeext conftest.$ac_ext
17872 LIBS=$ac_check_lib_save_LIBS
17874 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17875 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17876 if test $ac_cv_lib_svld_dlopen = yes; then
17877 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17879 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17880 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17881 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17882 echo $ECHO_N "(cached) $ECHO_C" >&6
17884 ac_check_lib_save_LIBS=$LIBS
17886 cat >conftest.$ac_ext <<_ACEOF
17889 cat confdefs.h >>conftest.$ac_ext
17890 cat >>conftest.$ac_ext <<_ACEOF
17891 /* end confdefs.h. */
17893 /* Override any gcc2 internal prototype to avoid an error. */
17897 /* We use char because int might match the return type of a gcc2
17898 builtin and then its argument prototype would still apply. */
17908 rm -f conftest.$ac_objext conftest$ac_exeext
17909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17910 (eval $ac_link) 2>conftest.er1
17912 grep -v '^ *+' conftest.er1 >conftest.err
17914 cat conftest.err >&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } &&
17917 { ac_try='test -z "$ac_c_werror_flag"
17918 || test ! -s conftest.err'
17919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920 (eval $ac_try) 2>&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; } &&
17924 { ac_try='test -s conftest$ac_exeext'
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; }; then
17930 ac_cv_lib_dld_dld_link=yes
17932 echo "$as_me: failed program was:" >&5
17933 sed 's/^/| /' conftest.$ac_ext >&5
17935 ac_cv_lib_dld_dld_link=no
17937 rm -f conftest.err conftest.$ac_objext \
17938 conftest$ac_exeext conftest.$ac_ext
17939 LIBS=$ac_check_lib_save_LIBS
17941 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17942 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17943 if test $ac_cv_lib_dld_dld_link = yes; then
17944 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17965 if test "x$lt_cv_dlopen" != xno; then
17971 case $lt_cv_dlopen in
17973 save_CPPFLAGS="$CPPFLAGS"
17974 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17976 save_LDFLAGS="$LDFLAGS"
17977 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17980 LIBS="$lt_cv_dlopen_libs $LIBS"
17982 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17983 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17984 if test "${lt_cv_dlopen_self+set}" = set; then
17985 echo $ECHO_N "(cached) $ECHO_C" >&6
17987 if test "$cross_compiling" = yes; then :
17988 lt_cv_dlopen_self=cross
17990 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17991 lt_status=$lt_dlunknown
17992 cat > conftest.$ac_ext <<EOF
17993 #line 17993 "configure"
17994 #include "confdefs.h"
18003 # define LT_DLGLOBAL RTLD_GLOBAL
18006 # define LT_DLGLOBAL DL_GLOBAL
18008 # define LT_DLGLOBAL 0
18012 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18013 find out it does not work in some platform. */
18014 #ifndef LT_DLLAZY_OR_NOW
18016 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18019 # define LT_DLLAZY_OR_NOW DL_LAZY
18022 # define LT_DLLAZY_OR_NOW RTLD_NOW
18025 # define LT_DLLAZY_OR_NOW DL_NOW
18027 # define LT_DLLAZY_OR_NOW 0
18035 extern "C" void exit (int);
18038 void fnord() { int i=42;}
18041 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18042 int status = $lt_dlunknown;
18046 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18047 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18048 /* dlclose (self); */
18054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18055 (eval $ac_link) 2>&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18059 (./conftest; exit; ) 2>/dev/null
18061 case x$lt_status in
18062 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18063 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18064 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18067 # compilation failed
18068 lt_cv_dlopen_self=no
18075 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18076 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18078 if test "x$lt_cv_dlopen_self" = xyes; then
18079 LDFLAGS="$LDFLAGS $link_static_flag"
18080 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18081 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18082 if test "${lt_cv_dlopen_self_static+set}" = set; then
18083 echo $ECHO_N "(cached) $ECHO_C" >&6
18085 if test "$cross_compiling" = yes; then :
18086 lt_cv_dlopen_self_static=cross
18088 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18089 lt_status=$lt_dlunknown
18090 cat > conftest.$ac_ext <<EOF
18091 #line 18091 "configure"
18092 #include "confdefs.h"
18101 # define LT_DLGLOBAL RTLD_GLOBAL
18104 # define LT_DLGLOBAL DL_GLOBAL
18106 # define LT_DLGLOBAL 0
18110 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18111 find out it does not work in some platform. */
18112 #ifndef LT_DLLAZY_OR_NOW
18114 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18117 # define LT_DLLAZY_OR_NOW DL_LAZY
18120 # define LT_DLLAZY_OR_NOW RTLD_NOW
18123 # define LT_DLLAZY_OR_NOW DL_NOW
18125 # define LT_DLLAZY_OR_NOW 0
18133 extern "C" void exit (int);
18136 void fnord() { int i=42;}
18139 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18140 int status = $lt_dlunknown;
18144 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18145 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18146 /* dlclose (self); */
18152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18153 (eval $ac_link) 2>&5
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18157 (./conftest; exit; ) 2>/dev/null
18159 case x$lt_status in
18160 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18161 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18162 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18165 # compilation failed
18166 lt_cv_dlopen_self_static=no
18173 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18174 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18177 CPPFLAGS="$save_CPPFLAGS"
18178 LDFLAGS="$save_LDFLAGS"
18183 case $lt_cv_dlopen_self in
18184 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18185 *) enable_dlopen_self=unknown ;;
18188 case $lt_cv_dlopen_self_static in
18189 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18190 *) enable_dlopen_self_static=unknown ;;
18195 # The else clause should only fire when bootstrapping the
18196 # libtool distribution, otherwise you forgot to ship ltmain.sh
18197 # with your package, and you will get complaints that there are
18198 # no rules to generate ltmain.sh.
18199 if test -f "$ltmain"; then
18200 # See if we are running on zsh, and set the options which allow our commands through
18201 # without removal of \ escapes.
18202 if test -n "${ZSH_VERSION+set}" ; then
18203 setopt NO_GLOB_SUBST
18205 # Now quote all the things that may contain metacharacters while being
18206 # careful not to overquote the AC_SUBSTed values. We take copies of the
18207 # variables and quote the copies for generation of the libtool script.
18208 for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
18210 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18211 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18212 deplibs_check_method reload_flag reload_cmds need_locks \
18213 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18214 lt_cv_sys_global_symbol_to_c_name_address \
18215 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18216 old_postinstall_cmds old_postuninstall_cmds \
18220 lt_prog_compiler_wl_GCJ \
18221 lt_prog_compiler_pic_GCJ \
18222 lt_prog_compiler_static_GCJ \
18223 lt_prog_compiler_no_builtin_flag_GCJ \
18224 export_dynamic_flag_spec_GCJ \
18225 thread_safe_flag_spec_GCJ \
18226 whole_archive_flag_spec_GCJ \
18227 enable_shared_with_static_runtimes_GCJ \
18228 old_archive_cmds_GCJ \
18229 old_archive_from_new_cmds_GCJ \
18230 predep_objects_GCJ \
18231 postdep_objects_GCJ \
18234 compiler_lib_search_path_GCJ \
18236 archive_expsym_cmds_GCJ \
18237 postinstall_cmds_GCJ \
18238 postuninstall_cmds_GCJ \
18239 old_archive_from_expsyms_cmds_GCJ \
18240 allow_undefined_flag_GCJ \
18241 no_undefined_flag_GCJ \
18242 export_symbols_cmds_GCJ \
18243 hardcode_libdir_flag_spec_GCJ \
18244 hardcode_libdir_flag_spec_ld_GCJ \
18245 hardcode_libdir_separator_GCJ \
18246 hardcode_automatic_GCJ \
18248 module_expsym_cmds_GCJ \
18249 lt_cv_prog_compiler_c_o_GCJ \
18250 exclude_expsyms_GCJ \
18251 include_expsyms_GCJ; do
18254 old_archive_cmds_GCJ | \
18255 old_archive_from_new_cmds_GCJ | \
18256 archive_cmds_GCJ | \
18257 archive_expsym_cmds_GCJ | \
18258 module_cmds_GCJ | \
18259 module_expsym_cmds_GCJ | \
18260 old_archive_from_expsyms_cmds_GCJ | \
18261 export_symbols_cmds_GCJ | \
18262 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18263 postinstall_cmds | postuninstall_cmds | \
18264 old_postinstall_cmds | old_postuninstall_cmds | \
18265 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18266 # Double-quote double-evaled strings.
18267 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18270 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18276 *'\$0 --fallback-echo"')
18277 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18283 cat <<__EOF__ >> "$cfgfile"
18284 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18286 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18288 # Shell to use when invoking shell scripts.
18291 # Whether or not to build shared libraries.
18292 build_libtool_libs=$enable_shared
18294 # Whether or not to build static libraries.
18295 build_old_libs=$enable_static
18297 # Whether or not to add -lc for building shared libraries.
18298 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18300 # Whether or not to disallow shared libs when runtime libs are static
18301 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18303 # Whether or not to optimize for fast installation.
18304 fast_install=$enable_fast_install
18307 host_alias=$host_alias
18310 # An echo program that does not interpret backslashes.
18315 AR_FLAGS=$lt_AR_FLAGS
18320 # A language-specific compiler.
18321 CC=$lt_compiler_GCJ
18323 # Is the compiler the GNU C compiler?
18329 # The linker used to build libraries.
18332 # Whether we need hard or soft links.
18335 # A BSD-compatible nm program.
18338 # A symbol stripping program
18341 # Used to examine libraries when file_magic_cmd begins "file"
18342 MAGIC_CMD=$MAGIC_CMD
18344 # Used on cygwin: DLL creation program.
18347 # Used on cygwin: object dumper.
18350 # Used on cygwin: assembler.
18353 # The name of the directory that contains temporary libtool files.
18356 # How to create reloadable object files.
18357 reload_flag=$lt_reload_flag
18358 reload_cmds=$lt_reload_cmds
18360 # How to pass a linker flag through the compiler.
18361 wl=$lt_lt_prog_compiler_wl_GCJ
18363 # Object file suffix (normally "o").
18364 objext="$ac_objext"
18366 # Old archive suffix (normally "a").
18369 # Shared library suffix (normally ".so").
18370 shrext_cmds='$shrext_cmds'
18372 # Executable file suffix (normally "").
18375 # Additional compiler flags for building library objects.
18376 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18379 # What is the maximum length of a command?
18380 max_cmd_len=$lt_cv_sys_max_cmd_len
18382 # Does compiler simultaneously support -c and -o options?
18383 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18385 # Must we lock files when doing compilation ?
18386 need_locks=$lt_need_locks
18388 # Do we need the lib prefix for modules?
18389 need_lib_prefix=$need_lib_prefix
18391 # Do we need a version for libraries?
18392 need_version=$need_version
18394 # Whether dlopen is supported.
18395 dlopen_support=$enable_dlopen
18397 # Whether dlopen of programs is supported.
18398 dlopen_self=$enable_dlopen_self
18400 # Whether dlopen of statically linked programs is supported.
18401 dlopen_self_static=$enable_dlopen_self_static
18403 # Compiler flag to prevent dynamic linking.
18404 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18406 # Compiler flag to turn off builtin functions.
18407 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18409 # Compiler flag to allow reflexive dlopens.
18410 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18412 # Compiler flag to generate shared objects directly from archives.
18413 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18415 # Compiler flag to generate thread-safe objects.
18416 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18418 # Library versioning type.
18419 version_type=$version_type
18421 # Format of library name prefix.
18422 libname_spec=$lt_libname_spec
18424 # List of archive names. First name is the real one, the rest are links.
18425 # The last name is the one that the linker finds with -lNAME.
18426 library_names_spec=$lt_library_names_spec
18428 # The coded name of the library, if different from the real name.
18429 soname_spec=$lt_soname_spec
18431 # Commands used to build and install an old-style archive.
18433 old_archive_cmds=$lt_old_archive_cmds_GCJ
18434 old_postinstall_cmds=$lt_old_postinstall_cmds
18435 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18437 # Create an old-style archive from a shared archive.
18438 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18440 # Create a temporary old-style archive to link instead of a shared archive.
18441 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18443 # Commands used to build and install a shared archive.
18444 archive_cmds=$lt_archive_cmds_GCJ
18445 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18446 postinstall_cmds=$lt_postinstall_cmds
18447 postuninstall_cmds=$lt_postuninstall_cmds
18449 # Commands used to build a loadable module (assumed same as above if empty)
18450 module_cmds=$lt_module_cmds_GCJ
18451 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18453 # Commands to strip libraries.
18454 old_striplib=$lt_old_striplib
18455 striplib=$lt_striplib
18457 # Dependencies to place before the objects being linked to create a
18459 predep_objects=$lt_predep_objects_GCJ
18461 # Dependencies to place after the objects being linked to create a
18463 postdep_objects=$lt_postdep_objects_GCJ
18465 # Dependencies to place before the objects being linked to create a
18467 predeps=$lt_predeps_GCJ
18469 # Dependencies to place after the objects being linked to create a
18471 postdeps=$lt_postdeps_GCJ
18473 # The library search path used internally by the compiler when linking
18474 # a shared library.
18475 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18477 # Method to check whether dependent libraries are shared objects.
18478 deplibs_check_method=$lt_deplibs_check_method
18480 # Command to use when deplibs_check_method == file_magic.
18481 file_magic_cmd=$lt_file_magic_cmd
18483 # Flag that allows shared libraries with undefined symbols to be built.
18484 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18486 # Flag that forces no undefined symbols.
18487 no_undefined_flag=$lt_no_undefined_flag_GCJ
18489 # Commands used to finish a libtool library installation in a directory.
18490 finish_cmds=$lt_finish_cmds
18492 # Same as above, but a single script fragment to be evaled but not shown.
18493 finish_eval=$lt_finish_eval
18495 # Take the output of nm and produce a listing of raw symbols and C names.
18496 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18498 # Transform the output of nm in a proper C declaration
18499 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18501 # Transform the output of nm in a C name address pair
18502 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18504 # This is the shared library runtime path variable.
18505 runpath_var=$runpath_var
18507 # This is the shared library path variable.
18508 shlibpath_var=$shlibpath_var
18510 # Is shlibpath searched before the hard-coded library search path?
18511 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18513 # How to hardcode a shared library path into an executable.
18514 hardcode_action=$hardcode_action_GCJ
18516 # Whether we should hardcode library paths into libraries.
18517 hardcode_into_libs=$hardcode_into_libs
18519 # Flag to hardcode \$libdir into a binary during linking.
18520 # This must work even if \$libdir does not exist.
18521 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18523 # If ld is used when linking, flag to hardcode \$libdir into
18524 # a binary during linking. This must work even if \$libdir does
18526 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18528 # Whether we need a single -rpath flag with a separated argument.
18529 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18531 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18532 # resulting binary.
18533 hardcode_direct=$hardcode_direct_GCJ
18535 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18536 # resulting binary.
18537 hardcode_minus_L=$hardcode_minus_L_GCJ
18539 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18540 # the resulting binary.
18541 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18543 # Set to yes if building a shared library automatically hardcodes DIR into the library
18544 # and all subsequent libraries and executables linked against it.
18545 hardcode_automatic=$hardcode_automatic_GCJ
18547 # Variables whose values should be saved in libtool wrapper scripts and
18548 # restored at relink time.
18549 variables_saved_for_relink="$variables_saved_for_relink"
18551 # Whether libtool must link a program against all its dependency libraries.
18552 link_all_deplibs=$link_all_deplibs_GCJ
18554 # Compile-time system search path for libraries
18555 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18557 # Run-time system search path for libraries
18558 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18560 # Fix the shell variable \$srcfile for the compiler.
18561 fix_srcfile_path="$fix_srcfile_path_GCJ"
18563 # Set to yes if exported symbols are required.
18564 always_export_symbols=$always_export_symbols_GCJ
18566 # The commands to list exported symbols.
18567 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18569 # The commands to extract the exported symbol list from a shared archive.
18570 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18572 # Symbols that should not be listed in the preloaded symbols.
18573 exclude_expsyms=$lt_exclude_expsyms_GCJ
18575 # Symbols that must always be exported.
18576 include_expsyms=$lt_include_expsyms_GCJ
18578 # ### END LIBTOOL TAG CONFIG: $tagname
18584 # If there is no Makefile yet, we rely on a make rule to execute
18585 # `config.status --recheck' to rerun these tests and create the
18586 # libtool script then.
18587 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18588 if test -f "$ltmain_in"; then
18589 test -f Makefile && make "$ltmain"
18595 ac_cpp='$CPP $CPPFLAGS'
18596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18611 # Source file extension for RC test sources.
18614 # Object file extension for compiled RC test sources.
18618 # Code to be used in simple compile tests
18619 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18621 # Code to be used in simple link tests
18622 lt_simple_link_test_code="$lt_simple_compile_test_code"
18624 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18626 # If no C compiler was specified, use CC.
18629 # Allow CC to be a program name with arguments.
18633 # Allow CC to be a program name with arguments.
18638 lt_cv_prog_compiler_c_o_RC=yes
18640 # The else clause should only fire when bootstrapping the
18641 # libtool distribution, otherwise you forgot to ship ltmain.sh
18642 # with your package, and you will get complaints that there are
18643 # no rules to generate ltmain.sh.
18644 if test -f "$ltmain"; then
18645 # See if we are running on zsh, and set the options which allow our commands through
18646 # without removal of \ escapes.
18647 if test -n "${ZSH_VERSION+set}" ; then
18648 setopt NO_GLOB_SUBST
18650 # Now quote all the things that may contain metacharacters while being
18651 # careful not to overquote the AC_SUBSTed values. We take copies of the
18652 # variables and quote the copies for generation of the libtool script.
18653 for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
18655 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18656 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18657 deplibs_check_method reload_flag reload_cmds need_locks \
18658 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18659 lt_cv_sys_global_symbol_to_c_name_address \
18660 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18661 old_postinstall_cmds old_postuninstall_cmds \
18665 lt_prog_compiler_wl_RC \
18666 lt_prog_compiler_pic_RC \
18667 lt_prog_compiler_static_RC \
18668 lt_prog_compiler_no_builtin_flag_RC \
18669 export_dynamic_flag_spec_RC \
18670 thread_safe_flag_spec_RC \
18671 whole_archive_flag_spec_RC \
18672 enable_shared_with_static_runtimes_RC \
18673 old_archive_cmds_RC \
18674 old_archive_from_new_cmds_RC \
18675 predep_objects_RC \
18676 postdep_objects_RC \
18679 compiler_lib_search_path_RC \
18681 archive_expsym_cmds_RC \
18682 postinstall_cmds_RC \
18683 postuninstall_cmds_RC \
18684 old_archive_from_expsyms_cmds_RC \
18685 allow_undefined_flag_RC \
18686 no_undefined_flag_RC \
18687 export_symbols_cmds_RC \
18688 hardcode_libdir_flag_spec_RC \
18689 hardcode_libdir_flag_spec_ld_RC \
18690 hardcode_libdir_separator_RC \
18691 hardcode_automatic_RC \
18693 module_expsym_cmds_RC \
18694 lt_cv_prog_compiler_c_o_RC \
18695 exclude_expsyms_RC \
18696 include_expsyms_RC; do
18699 old_archive_cmds_RC | \
18700 old_archive_from_new_cmds_RC | \
18701 archive_cmds_RC | \
18702 archive_expsym_cmds_RC | \
18704 module_expsym_cmds_RC | \
18705 old_archive_from_expsyms_cmds_RC | \
18706 export_symbols_cmds_RC | \
18707 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18708 postinstall_cmds | postuninstall_cmds | \
18709 old_postinstall_cmds | old_postuninstall_cmds | \
18710 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18711 # Double-quote double-evaled strings.
18712 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18715 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18721 *'\$0 --fallback-echo"')
18722 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18728 cat <<__EOF__ >> "$cfgfile"
18729 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18731 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18733 # Shell to use when invoking shell scripts.
18736 # Whether or not to build shared libraries.
18737 build_libtool_libs=$enable_shared
18739 # Whether or not to build static libraries.
18740 build_old_libs=$enable_static
18742 # Whether or not to add -lc for building shared libraries.
18743 build_libtool_need_lc=$archive_cmds_need_lc_RC
18745 # Whether or not to disallow shared libs when runtime libs are static
18746 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18748 # Whether or not to optimize for fast installation.
18749 fast_install=$enable_fast_install
18752 host_alias=$host_alias
18755 # An echo program that does not interpret backslashes.
18760 AR_FLAGS=$lt_AR_FLAGS
18765 # A language-specific compiler.
18768 # Is the compiler the GNU C compiler?
18774 # The linker used to build libraries.
18777 # Whether we need hard or soft links.
18780 # A BSD-compatible nm program.
18783 # A symbol stripping program
18786 # Used to examine libraries when file_magic_cmd begins "file"
18787 MAGIC_CMD=$MAGIC_CMD
18789 # Used on cygwin: DLL creation program.
18792 # Used on cygwin: object dumper.
18795 # Used on cygwin: assembler.
18798 # The name of the directory that contains temporary libtool files.
18801 # How to create reloadable object files.
18802 reload_flag=$lt_reload_flag
18803 reload_cmds=$lt_reload_cmds
18805 # How to pass a linker flag through the compiler.
18806 wl=$lt_lt_prog_compiler_wl_RC
18808 # Object file suffix (normally "o").
18809 objext="$ac_objext"
18811 # Old archive suffix (normally "a").
18814 # Shared library suffix (normally ".so").
18815 shrext_cmds='$shrext_cmds'
18817 # Executable file suffix (normally "").
18820 # Additional compiler flags for building library objects.
18821 pic_flag=$lt_lt_prog_compiler_pic_RC
18824 # What is the maximum length of a command?
18825 max_cmd_len=$lt_cv_sys_max_cmd_len
18827 # Does compiler simultaneously support -c and -o options?
18828 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18830 # Must we lock files when doing compilation ?
18831 need_locks=$lt_need_locks
18833 # Do we need the lib prefix for modules?
18834 need_lib_prefix=$need_lib_prefix
18836 # Do we need a version for libraries?
18837 need_version=$need_version
18839 # Whether dlopen is supported.
18840 dlopen_support=$enable_dlopen
18842 # Whether dlopen of programs is supported.
18843 dlopen_self=$enable_dlopen_self
18845 # Whether dlopen of statically linked programs is supported.
18846 dlopen_self_static=$enable_dlopen_self_static
18848 # Compiler flag to prevent dynamic linking.
18849 link_static_flag=$lt_lt_prog_compiler_static_RC
18851 # Compiler flag to turn off builtin functions.
18852 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18854 # Compiler flag to allow reflexive dlopens.
18855 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18857 # Compiler flag to generate shared objects directly from archives.
18858 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18860 # Compiler flag to generate thread-safe objects.
18861 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18863 # Library versioning type.
18864 version_type=$version_type
18866 # Format of library name prefix.
18867 libname_spec=$lt_libname_spec
18869 # List of archive names. First name is the real one, the rest are links.
18870 # The last name is the one that the linker finds with -lNAME.
18871 library_names_spec=$lt_library_names_spec
18873 # The coded name of the library, if different from the real name.
18874 soname_spec=$lt_soname_spec
18876 # Commands used to build and install an old-style archive.
18878 old_archive_cmds=$lt_old_archive_cmds_RC
18879 old_postinstall_cmds=$lt_old_postinstall_cmds
18880 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18882 # Create an old-style archive from a shared archive.
18883 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18885 # Create a temporary old-style archive to link instead of a shared archive.
18886 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18888 # Commands used to build and install a shared archive.
18889 archive_cmds=$lt_archive_cmds_RC
18890 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18891 postinstall_cmds=$lt_postinstall_cmds
18892 postuninstall_cmds=$lt_postuninstall_cmds
18894 # Commands used to build a loadable module (assumed same as above if empty)
18895 module_cmds=$lt_module_cmds_RC
18896 module_expsym_cmds=$lt_module_expsym_cmds_RC
18898 # Commands to strip libraries.
18899 old_striplib=$lt_old_striplib
18900 striplib=$lt_striplib
18902 # Dependencies to place before the objects being linked to create a
18904 predep_objects=$lt_predep_objects_RC
18906 # Dependencies to place after the objects being linked to create a
18908 postdep_objects=$lt_postdep_objects_RC
18910 # Dependencies to place before the objects being linked to create a
18912 predeps=$lt_predeps_RC
18914 # Dependencies to place after the objects being linked to create a
18916 postdeps=$lt_postdeps_RC
18918 # The library search path used internally by the compiler when linking
18919 # a shared library.
18920 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18922 # Method to check whether dependent libraries are shared objects.
18923 deplibs_check_method=$lt_deplibs_check_method
18925 # Command to use when deplibs_check_method == file_magic.
18926 file_magic_cmd=$lt_file_magic_cmd
18928 # Flag that allows shared libraries with undefined symbols to be built.
18929 allow_undefined_flag=$lt_allow_undefined_flag_RC
18931 # Flag that forces no undefined symbols.
18932 no_undefined_flag=$lt_no_undefined_flag_RC
18934 # Commands used to finish a libtool library installation in a directory.
18935 finish_cmds=$lt_finish_cmds
18937 # Same as above, but a single script fragment to be evaled but not shown.
18938 finish_eval=$lt_finish_eval
18940 # Take the output of nm and produce a listing of raw symbols and C names.
18941 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18943 # Transform the output of nm in a proper C declaration
18944 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18946 # Transform the output of nm in a C name address pair
18947 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18949 # This is the shared library runtime path variable.
18950 runpath_var=$runpath_var
18952 # This is the shared library path variable.
18953 shlibpath_var=$shlibpath_var
18955 # Is shlibpath searched before the hard-coded library search path?
18956 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18958 # How to hardcode a shared library path into an executable.
18959 hardcode_action=$hardcode_action_RC
18961 # Whether we should hardcode library paths into libraries.
18962 hardcode_into_libs=$hardcode_into_libs
18964 # Flag to hardcode \$libdir into a binary during linking.
18965 # This must work even if \$libdir does not exist.
18966 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18968 # If ld is used when linking, flag to hardcode \$libdir into
18969 # a binary during linking. This must work even if \$libdir does
18971 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18973 # Whether we need a single -rpath flag with a separated argument.
18974 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18976 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18977 # resulting binary.
18978 hardcode_direct=$hardcode_direct_RC
18980 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18981 # resulting binary.
18982 hardcode_minus_L=$hardcode_minus_L_RC
18984 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18985 # the resulting binary.
18986 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18988 # Set to yes if building a shared library automatically hardcodes DIR into the library
18989 # and all subsequent libraries and executables linked against it.
18990 hardcode_automatic=$hardcode_automatic_RC
18992 # Variables whose values should be saved in libtool wrapper scripts and
18993 # restored at relink time.
18994 variables_saved_for_relink="$variables_saved_for_relink"
18996 # Whether libtool must link a program against all its dependency libraries.
18997 link_all_deplibs=$link_all_deplibs_RC
18999 # Compile-time system search path for libraries
19000 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19002 # Run-time system search path for libraries
19003 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19005 # Fix the shell variable \$srcfile for the compiler.
19006 fix_srcfile_path="$fix_srcfile_path_RC"
19008 # Set to yes if exported symbols are required.
19009 always_export_symbols=$always_export_symbols_RC
19011 # The commands to list exported symbols.
19012 export_symbols_cmds=$lt_export_symbols_cmds_RC
19014 # The commands to extract the exported symbol list from a shared archive.
19015 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19017 # Symbols that should not be listed in the preloaded symbols.
19018 exclude_expsyms=$lt_exclude_expsyms_RC
19020 # Symbols that must always be exported.
19021 include_expsyms=$lt_include_expsyms_RC
19023 # ### END LIBTOOL TAG CONFIG: $tagname
19029 # If there is no Makefile yet, we rely on a make rule to execute
19030 # `config.status --recheck' to rerun these tests and create the
19031 # libtool script then.
19032 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19033 if test -f "$ltmain_in"; then
19034 test -f Makefile && make "$ltmain"
19040 ac_cpp='$CPP $CPPFLAGS'
19041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19050 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19051 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19052 { (exit 1); exit 1; }; }
19056 # Append the new tag name to the list of available tags.
19057 if test -n "$tagname" ; then
19058 available_tags="$available_tags $tagname"
19064 # Now substitute the updated list of available tags.
19065 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19066 mv "${ofile}T" "$ofile"
19070 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19071 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19072 { (exit 1); exit 1; }; }
19078 # This can be used to rebuild libtool when needed
19079 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19081 # Always use our own libtool.
19082 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19084 # Prevent multiple expansion
19110 echo "$as_me:$LINENO: checking for dm_init_service in -ldm" >&5
19111 echo $ECHO_N "checking for dm_init_service in -ldm... $ECHO_C" >&6
19112 if test "${ac_cv_lib_dm_dm_init_service+set}" = set; then
19113 echo $ECHO_N "(cached) $ECHO_C" >&6
19115 ac_check_lib_save_LIBS=$LIBS
19117 cat >conftest.$ac_ext <<_ACEOF
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h. */
19124 /* Override any gcc2 internal prototype to avoid an error. */
19128 /* We use char because int might match the return type of a gcc2
19129 builtin and then its argument prototype would still apply. */
19130 char dm_init_service ();
19134 dm_init_service ();
19139 rm -f conftest.$ac_objext conftest$ac_exeext
19140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19141 (eval $ac_link) 2>conftest.er1
19143 grep -v '^ *+' conftest.er1 >conftest.err
19145 cat conftest.err >&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); } &&
19148 { ac_try='test -z "$ac_c_werror_flag"
19149 || test ! -s conftest.err'
19150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151 (eval $ac_try) 2>&5
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; } &&
19155 { ac_try='test -s conftest$ac_exeext'
19156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157 (eval $ac_try) 2>&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; }; then
19161 ac_cv_lib_dm_dm_init_service=yes
19163 echo "$as_me: failed program was:" >&5
19164 sed 's/^/| /' conftest.$ac_ext >&5
19166 ac_cv_lib_dm_dm_init_service=no
19168 rm -f conftest.err conftest.$ac_objext \
19169 conftest$ac_exeext conftest.$ac_ext
19170 LIBS=$ac_check_lib_save_LIBS
19172 echo "$as_me:$LINENO: result: $ac_cv_lib_dm_dm_init_service" >&5
19173 echo "${ECHO_T}$ac_cv_lib_dm_dm_init_service" >&6
19174 if test $ac_cv_lib_dm_dm_init_service = yes; then
19175 cat >>confdefs.h <<_ACEOF
19176 #define HAVE_LIBDM 1
19185 for ac_header in xfs/dmapi.h
19187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19189 echo "$as_me:$LINENO: checking for $ac_header" >&5
19190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19192 echo $ECHO_N "(cached) $ECHO_C" >&6
19194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19197 # Is the header compilable?
19198 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19200 cat >conftest.$ac_ext <<_ACEOF
19203 cat confdefs.h >>conftest.$ac_ext
19204 cat >>conftest.$ac_ext <<_ACEOF
19205 /* end confdefs.h. */
19206 $ac_includes_default
19207 #include <$ac_header>
19209 rm -f conftest.$ac_objext
19210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19211 (eval $ac_compile) 2>conftest.er1
19213 grep -v '^ *+' conftest.er1 >conftest.err
19215 cat conftest.err >&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); } &&
19218 { ac_try='test -z "$ac_c_werror_flag"
19219 || test ! -s conftest.err'
19220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19221 (eval $ac_try) 2>&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); }; } &&
19225 { ac_try='test -s conftest.$ac_objext'
19226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19227 (eval $ac_try) 2>&5
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); }; }; then
19231 ac_header_compiler=yes
19233 echo "$as_me: failed program was:" >&5
19234 sed 's/^/| /' conftest.$ac_ext >&5
19236 ac_header_compiler=no
19238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19239 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19240 echo "${ECHO_T}$ac_header_compiler" >&6
19242 # Is the header present?
19243 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19244 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19245 cat >conftest.$ac_ext <<_ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h. */
19251 #include <$ac_header>
19253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19256 grep -v '^ *+' conftest.er1 >conftest.err
19258 cat conftest.err >&5
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); } >/dev/null; then
19261 if test -s conftest.err; then
19262 ac_cpp_err=$ac_c_preproc_warn_flag
19263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19270 if test -z "$ac_cpp_err"; then
19271 ac_header_preproc=yes
19273 echo "$as_me: failed program was:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19276 ac_header_preproc=no
19278 rm -f conftest.err conftest.$ac_ext
19279 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19280 echo "${ECHO_T}$ac_header_preproc" >&6
19282 # So? What about this header?
19283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19285 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19286 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19288 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19289 ac_header_preproc=yes
19292 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19293 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19294 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19295 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19296 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19297 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19298 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19299 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19302 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19303 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19306 ## ------------------------------------------ ##
19307 ## Report this to the AC_PACKAGE_NAME lists. ##
19308 ## ------------------------------------------ ##
19311 sed "s/^/$as_me: WARNING: /" >&2
19314 echo "$as_me:$LINENO: checking for $ac_header" >&5
19315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19317 echo $ECHO_N "(cached) $ECHO_C" >&6
19319 eval "$as_ac_Header=\$ac_header_preproc"
19321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19326 cat >>confdefs.h <<_ACEOF
19327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19335 for ac_header in sys/dmi.h
19337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19339 echo "$as_me:$LINENO: checking for $ac_header" >&5
19340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19342 echo $ECHO_N "(cached) $ECHO_C" >&6
19344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19347 # Is the header compilable?
19348 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19350 cat >conftest.$ac_ext <<_ACEOF
19353 cat confdefs.h >>conftest.$ac_ext
19354 cat >>conftest.$ac_ext <<_ACEOF
19355 /* end confdefs.h. */
19356 $ac_includes_default
19357 #include <$ac_header>
19359 rm -f conftest.$ac_objext
19360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19361 (eval $ac_compile) 2>conftest.er1
19363 grep -v '^ *+' conftest.er1 >conftest.err
19365 cat conftest.err >&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); } &&
19368 { ac_try='test -z "$ac_c_werror_flag"
19369 || test ! -s conftest.err'
19370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19371 (eval $ac_try) 2>&5
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); }; } &&
19375 { ac_try='test -s conftest.$ac_objext'
19376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19377 (eval $ac_try) 2>&5
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); }; }; then
19381 ac_header_compiler=yes
19383 echo "$as_me: failed program was:" >&5
19384 sed 's/^/| /' conftest.$ac_ext >&5
19386 ac_header_compiler=no
19388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19389 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19390 echo "${ECHO_T}$ac_header_compiler" >&6
19392 # Is the header present?
19393 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19395 cat >conftest.$ac_ext <<_ACEOF
19398 cat confdefs.h >>conftest.$ac_ext
19399 cat >>conftest.$ac_ext <<_ACEOF
19400 /* end confdefs.h. */
19401 #include <$ac_header>
19403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19406 grep -v '^ *+' conftest.er1 >conftest.err
19408 cat conftest.err >&5
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); } >/dev/null; then
19411 if test -s conftest.err; then
19412 ac_cpp_err=$ac_c_preproc_warn_flag
19413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19420 if test -z "$ac_cpp_err"; then
19421 ac_header_preproc=yes
19423 echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19426 ac_header_preproc=no
19428 rm -f conftest.err conftest.$ac_ext
19429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19430 echo "${ECHO_T}$ac_header_preproc" >&6
19432 # So? What about this header?
19433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19439 ac_header_preproc=yes
19442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19449 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19456 ## ------------------------------------------ ##
19457 ## Report this to the AC_PACKAGE_NAME lists. ##
19458 ## ------------------------------------------ ##
19461 sed "s/^/$as_me: WARNING: /" >&2
19464 echo "$as_me:$LINENO: checking for $ac_header" >&5
19465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19469 eval "$as_ac_Header=\$ac_header_preproc"
19471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19476 cat >>confdefs.h <<_ACEOF
19477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19485 CPPFLAGS="-I\$(top_srcdir)/src/common"
19486 if test "$have_xfs_dmapi_h" = 1; then
19487 CPPFLAGS="$CPPFLAGS -I/usr/include/xfs"
19488 CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE"
19494 ac_config_files="$ac_config_files Makefile src/Makefile src/common/Makefile src/common/cmd/Makefile src/common/lib/Makefile src/suite1/Makefile src/suite1/cmd/Makefile src/sample_hsm/Makefile src/simple/Makefile src/suite2/Makefile src/suite2/src/Makefile"
19495 cat >confcache <<\_ACEOF
19496 # This file is a shell script that caches the results of configure
19497 # tests run on this system so they can be shared between configure
19498 # scripts and configure runs, see configure's option --config-cache.
19499 # It is not useful on other systems. If it contains results you don't
19500 # want to keep, you may remove or edit it.
19502 # config.status only pays attention to the cache file if you give it
19503 # the --recheck option to rerun configure.
19505 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19506 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19507 # following values.
19511 # The following way of writing the cache mishandles newlines in values,
19512 # but we know of no workaround that is simple, portable, and efficient.
19513 # So, don't put newlines in cache variables' values.
19514 # Ultrix sh set writes to stderr and can't be redirected directly,
19515 # and sets the high bit in the cache file unless we assign to the vars.
19518 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19520 # `set' does not quote correctly, so add quotes (double-quote
19521 # substitution turns \\\\ into \\, and sed turns \\ into \).
19524 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19527 # `set' quotes correctly as required by POSIX, so do not add quotes.
19529 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19536 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19538 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19540 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19541 if test -w $cache_file; then
19542 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19543 cat confcache >$cache_file
19545 echo "not updating unwritable cache $cache_file"
19550 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19551 # Let make expand exec_prefix.
19552 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19554 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19555 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19556 # trailing colons and then remove the whole line if VPATH becomes empty
19557 # (actually we leave an empty line to preserve line numbers).
19558 if test "x$srcdir" = x.; then
19559 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19560 s/:*\$(srcdir):*/:/;
19561 s/:*\${srcdir}:*/:/;
19563 s/^\([^=]*=[ ]*\):*/\1/;
19569 # Transform confdefs.h into DEFS.
19570 # Protect against shell expansion while executing Makefile rules.
19571 # Protect against Makefile macro expansion.
19573 # If the first sed substitution is executed (which looks for macros that
19574 # take arguments), then we branch to the quote section. Otherwise,
19575 # look for a macro that doesn't take arguments.
19576 cat >confdef2opt.sed <<\_ACEOF
19579 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
19581 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
19585 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
19591 # We use echo to avoid assuming a particular line-breaking character.
19592 # The extra dot is to prevent the shell from consuming trailing
19593 # line-breaks from the sub-command output. A line-break within
19594 # single-quotes doesn't work because, if this script is created in a
19595 # platform that uses two characters for line-breaks (e.g., DOS), tr
19597 ac_LF_and_DOT=`echo; echo .`
19598 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
19599 rm -f confdef2opt.sed
19604 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19605 # 1. Remove the extension, and $U if already installed.
19606 ac_i=`echo "$ac_i" |
19607 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19609 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19610 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19612 LIBOBJS=$ac_libobjs
19614 LTLIBOBJS=$ac_ltlibobjs
19617 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19618 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19619 Usually this means the macro was only invoked conditionally." >&5
19620 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19621 Usually this means the macro was only invoked conditionally." >&2;}
19622 { (exit 1); exit 1; }; }
19624 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19625 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19626 Usually this means the macro was only invoked conditionally." >&5
19627 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19628 Usually this means the macro was only invoked conditionally." >&2;}
19629 { (exit 1); exit 1; }; }
19631 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19632 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19633 Usually this means the macro was only invoked conditionally." >&5
19634 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19635 Usually this means the macro was only invoked conditionally." >&2;}
19636 { (exit 1); exit 1; }; }
19639 : ${CONFIG_STATUS=./config.status}
19640 ac_clean_files_save=$ac_clean_files
19641 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19642 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19643 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19644 cat >$CONFIG_STATUS <<_ACEOF
19646 # Generated by $as_me.
19647 # Run this file to recreate the current configuration.
19648 # Compiler output produced by configure, useful for debugging
19649 # configure, is in config.log if it exists.
19652 ac_cs_recheck=false
19654 SHELL=\${CONFIG_SHELL-$SHELL}
19657 cat >>$CONFIG_STATUS <<\_ACEOF
19658 ## --------------------- ##
19659 ## M4sh Initialization. ##
19660 ## --------------------- ##
19662 # Be Bourne compatible
19663 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19666 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19667 # is contrary to our usage. Disable this feature.
19668 alias -g '${1+"$@"}'='"$@"'
19669 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19672 DUALCASE=1; export DUALCASE # for MKS sh
19674 # Support unset when possible.
19675 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19682 # Work around bugs in pre-3.0 UWIN ksh.
19683 $as_unset ENV MAIL MAILPATH
19690 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19691 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19692 LC_TELEPHONE LC_TIME
19694 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19695 eval $as_var=C; export $as_var
19701 # Required to use basename.
19702 if expr a : '\(a\)' >/dev/null 2>&1; then
19708 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19709 as_basename=basename
19715 # Name of the executable.
19716 as_me=`$as_basename "$0" ||
19717 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19718 X"$0" : 'X\(//\)$' \| \
19719 X"$0" : 'X\(/\)$' \| \
19720 . : '\(.\)' 2>/dev/null ||
19722 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19723 /^X\/\(\/\/\)$/{ s//\1/; q; }
19724 /^X\/\(\/\).*/{ s//\1/; q; }
19728 # PATH needs CR, and LINENO needs CR and PATH.
19729 # Avoid depending upon Character Ranges.
19730 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19731 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19732 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19733 as_cr_digits='0123456789'
19734 as_cr_alnum=$as_cr_Letters$as_cr_digits
19736 # The user is always right.
19737 if test "${PATH_SEPARATOR+set}" != set; then
19738 echo "#! /bin/sh" >conf$$.sh
19739 echo "exit 0" >>conf$$.sh
19741 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19750 as_lineno_1=$LINENO
19751 as_lineno_2=$LINENO
19752 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19753 test "x$as_lineno_1" != "x$as_lineno_2" &&
19754 test "x$as_lineno_3" = "x$as_lineno_2" || {
19755 # Find who we are. Look in the path if we contain no path at all
19758 *[\\/]* ) as_myself=$0 ;;
19759 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19760 for as_dir in $PATH
19763 test -z "$as_dir" && as_dir=.
19764 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19769 # We did not find ourselves, most probably we were run as `sh COMMAND'
19770 # in which case we are not to be found in the path.
19771 if test "x$as_myself" = x; then
19774 if test ! -f "$as_myself"; then
19775 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19776 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19777 { (exit 1); exit 1; }; }
19779 case $CONFIG_SHELL in
19781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19782 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19785 test -z "$as_dir" && as_dir=.
19786 for as_base in sh bash ksh sh5; do
19789 if ("$as_dir/$as_base" -c '
19790 as_lineno_1=$LINENO
19791 as_lineno_2=$LINENO
19792 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19793 test "x$as_lineno_1" != "x$as_lineno_2" &&
19794 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19795 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19796 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19797 CONFIG_SHELL=$as_dir/$as_base
19798 export CONFIG_SHELL
19799 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19807 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19808 # uniformly replaced by the line number. The first 'sed' inserts a
19809 # line-number line before each line; the second 'sed' does the real
19810 # work. The second script uses 'N' to pair each line-number line
19811 # with the numbered line, and appends trailing '-' during
19812 # substitution so that $LINENO is not a special case at line end.
19813 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19814 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19815 sed '=' <$as_myself |
19820 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19823 s,^['$as_cr_digits']*\n,,
19824 ' >$as_me.lineno &&
19825 chmod +x $as_me.lineno ||
19826 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19827 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19828 { (exit 1); exit 1; }; }
19830 # Don't try to exec as it changes $[0], causing all sort of problems
19831 # (the dirname of $[0] is not the place where we might find the
19832 # original and so on. Autoconf is especially sensible to this).
19834 # Exit status is that of the last command.
19839 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19840 *c*,-n*) ECHO_N= ECHO_C='
19842 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19843 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19846 if expr a : '\(a\)' >/dev/null 2>&1; then
19852 rm -f conf$$ conf$$.exe conf$$.file
19854 if ln -s conf$$.file conf$$ 2>/dev/null; then
19855 # We could just check for DJGPP; but this test a) works b) is more generic
19856 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19857 if test -f conf$$.exe; then
19858 # Don't use ln at all; we don't have any links
19863 elif ln conf$$.file conf$$ 2>/dev/null; then
19868 rm -f conf$$ conf$$.exe conf$$.file
19870 if mkdir -p . 2>/dev/null; then
19873 test -d ./-p && rmdir ./-p
19877 as_executable_p="test -f"
19879 # Sed expression to map a string onto a valid CPP name.
19880 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19882 # Sed expression to map a string onto a valid variable name.
19883 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19887 # We need space, tab and new line, in precisely that order.
19897 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19898 # report actual input values of CONFIG_FILES etc. instead of their
19899 # values after options handling. Logging --version etc. is OK.
19903 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19904 ## Running $as_me. ##
19909 This file was extended by $as_me, which was
19910 generated by GNU Autoconf 2.59. Invocation command line was
19912 CONFIG_FILES = $CONFIG_FILES
19913 CONFIG_HEADERS = $CONFIG_HEADERS
19914 CONFIG_LINKS = $CONFIG_LINKS
19915 CONFIG_COMMANDS = $CONFIG_COMMANDS
19919 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19923 # Files that config.status was made for.
19924 if test -n "$ac_config_files"; then
19925 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19928 if test -n "$ac_config_headers"; then
19929 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19932 if test -n "$ac_config_links"; then
19933 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19936 if test -n "$ac_config_commands"; then
19937 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19940 cat >>$CONFIG_STATUS <<\_ACEOF
19943 \`$as_me' instantiates files from templates according to the
19944 current configuration.
19946 Usage: $0 [OPTIONS] [FILE]...
19948 -h, --help print this help, then exit
19949 -V, --version print version number, then exit
19950 -q, --quiet do not print progress messages
19951 -d, --debug don't remove temporary files
19952 --recheck update $as_me by reconfiguring in the same conditions
19953 --file=FILE[:TEMPLATE]
19954 instantiate the configuration file FILE
19956 Configuration files:
19959 Configuration commands:
19962 Report bugs to <bug-autoconf@gnu.org>."
19965 cat >>$CONFIG_STATUS <<_ACEOF
19968 configured by $0, generated by GNU Autoconf 2.59,
19969 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19971 Copyright (C) 2003 Free Software Foundation, Inc.
19972 This config.status script is free software; the Free Software Foundation
19973 gives unlimited permission to copy, distribute and modify it."
19978 cat >>$CONFIG_STATUS <<\_ACEOF
19979 # If no file are specified by the user, then we need to provide default
19980 # value. By we need to know if files were specified by the user.
19986 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19987 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19995 *) # This is not an option, so the user has probably given explicit
19998 ac_need_defaults=false;;
20002 # Handling of the options.
20004 cat >>$CONFIG_STATUS <<\_ACEOF
20005 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20007 --version | --vers* | -V )
20008 echo "$ac_cs_version"; exit 0 ;;
20010 # Conflict between --help and --header
20011 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20012 Try \`$0 --help' for more information." >&5
20013 echo "$as_me: error: ambiguous option: $1
20014 Try \`$0 --help' for more information." >&2;}
20015 { (exit 1); exit 1; }; };;
20016 --help | --hel | -h )
20017 echo "$ac_cs_usage"; exit 0 ;;
20018 --debug | --d* | -d )
20020 --file | --fil | --fi | --f )
20022 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20023 ac_need_defaults=false;;
20024 --header | --heade | --head | --hea )
20026 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20027 ac_need_defaults=false;;
20028 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20029 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20032 # This is an error.
20033 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20034 Try \`$0 --help' for more information." >&5
20035 echo "$as_me: error: unrecognized option: $1
20036 Try \`$0 --help' for more information." >&2;}
20037 { (exit 1); exit 1; }; } ;;
20039 *) ac_config_targets="$ac_config_targets $1" ;;
20045 ac_configure_extra_args=
20047 if $ac_cs_silent; then
20049 ac_configure_extra_args="$ac_configure_extra_args --silent"
20053 cat >>$CONFIG_STATUS <<_ACEOF
20054 if \$ac_cs_recheck; then
20055 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20056 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20061 cat >>$CONFIG_STATUS <<_ACEOF
20063 # INIT-COMMANDS section.
20066 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20072 cat >>$CONFIG_STATUS <<\_ACEOF
20073 for ac_config_target in $ac_config_targets
20075 case "$ac_config_target" in
20076 # Handling of arguments.
20077 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20078 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20079 "src/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
20080 "src/common/cmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/common/cmd/Makefile" ;;
20081 "src/common/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/common/lib/Makefile" ;;
20082 "src/suite1/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/suite1/Makefile" ;;
20083 "src/suite1/cmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/suite1/cmd/Makefile" ;;
20084 "src/sample_hsm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/sample_hsm/Makefile" ;;
20085 "src/simple/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/simple/Makefile" ;;
20086 "src/suite2/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/suite2/Makefile" ;;
20087 "src/suite2/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/suite2/src/Makefile" ;;
20088 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20089 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20090 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20091 { (exit 1); exit 1; }; };;
20095 # If the user did not use the arguments to specify the items to instantiate,
20096 # then the envvar interface is used. Set only those that are not.
20097 # We use the long form for the default assignment because of an extremely
20098 # bizarre bug on SunOS 4.1.3.
20099 if $ac_need_defaults; then
20100 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20101 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20104 # Have a temporary directory for convenience. Make it in the build tree
20105 # simply because there is no reason to put it here, and in addition,
20106 # creating and moving files from /tmp can sometimes cause problems.
20107 # Create a temporary directory, and hook for its removal unless debugging.
20110 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20111 trap '{ (exit 1); exit 1; }' 1 2 13 15
20114 # Create a (secure) tmp directory for tmp files.
20117 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20118 test -n "$tmp" && test -d "$tmp"
20121 tmp=./confstat$$-$RANDOM
20122 (umask 077 && mkdir $tmp)
20125 echo "$me: cannot create a temporary directory in ." >&2
20126 { (exit 1); exit 1; }
20131 cat >>$CONFIG_STATUS <<_ACEOF
20134 # CONFIG_FILES section.
20137 # No need to generate the scripts if there are no CONFIG_FILES.
20138 # This happens for instance when ./config.status config.h
20139 if test -n "\$CONFIG_FILES"; then
20140 # Protect against being on the right side of a sed subst in config.status.
20141 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20142 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20143 s,@SHELL@,$SHELL,;t t
20144 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20145 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20146 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20147 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20148 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20149 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20150 s,@exec_prefix@,$exec_prefix,;t t
20151 s,@prefix@,$prefix,;t t
20152 s,@program_transform_name@,$program_transform_name,;t t
20153 s,@bindir@,$bindir,;t t
20154 s,@sbindir@,$sbindir,;t t
20155 s,@libexecdir@,$libexecdir,;t t
20156 s,@datadir@,$datadir,;t t
20157 s,@sysconfdir@,$sysconfdir,;t t
20158 s,@sharedstatedir@,$sharedstatedir,;t t
20159 s,@localstatedir@,$localstatedir,;t t
20160 s,@libdir@,$libdir,;t t
20161 s,@includedir@,$includedir,;t t
20162 s,@oldincludedir@,$oldincludedir,;t t
20163 s,@infodir@,$infodir,;t t
20164 s,@mandir@,$mandir,;t t
20165 s,@build_alias@,$build_alias,;t t
20166 s,@host_alias@,$host_alias,;t t
20167 s,@target_alias@,$target_alias,;t t
20168 s,@DEFS@,$DEFS,;t t
20169 s,@ECHO_C@,$ECHO_C,;t t
20170 s,@ECHO_N@,$ECHO_N,;t t
20171 s,@ECHO_T@,$ECHO_T,;t t
20172 s,@LIBS@,$LIBS,;t t
20173 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20174 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20175 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20176 s,@CYGPATH_W@,$CYGPATH_W,;t t
20177 s,@PACKAGE@,$PACKAGE,;t t
20178 s,@VERSION@,$VERSION,;t t
20179 s,@ACLOCAL@,$ACLOCAL,;t t
20180 s,@AUTOCONF@,$AUTOCONF,;t t
20181 s,@AUTOMAKE@,$AUTOMAKE,;t t
20182 s,@AUTOHEADER@,$AUTOHEADER,;t t
20183 s,@MAKEINFO@,$MAKEINFO,;t t
20184 s,@install_sh@,$install_sh,;t t
20185 s,@STRIP@,$STRIP,;t t
20186 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20187 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20188 s,@mkdir_p@,$mkdir_p,;t t
20190 s,@SET_MAKE@,$SET_MAKE,;t t
20191 s,@am__leading_dot@,$am__leading_dot,;t t
20192 s,@AMTAR@,$AMTAR,;t t
20193 s,@am__tar@,$am__tar,;t t
20194 s,@am__untar@,$am__untar,;t t
20196 s,@CFLAGS@,$CFLAGS,;t t
20197 s,@LDFLAGS@,$LDFLAGS,;t t
20198 s,@CPPFLAGS@,$CPPFLAGS,;t t
20199 s,@ac_ct_CC@,$ac_ct_CC,;t t
20200 s,@EXEEXT@,$EXEEXT,;t t
20201 s,@OBJEXT@,$OBJEXT,;t t
20202 s,@DEPDIR@,$DEPDIR,;t t
20203 s,@am__include@,$am__include,;t t
20204 s,@am__quote@,$am__quote,;t t
20205 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20206 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20207 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20208 s,@CCDEPMODE@,$CCDEPMODE,;t t
20209 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20210 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20211 s,@build@,$build,;t t
20212 s,@build_cpu@,$build_cpu,;t t
20213 s,@build_vendor@,$build_vendor,;t t
20214 s,@build_os@,$build_os,;t t
20215 s,@host@,$host,;t t
20216 s,@host_cpu@,$host_cpu,;t t
20217 s,@host_vendor@,$host_vendor,;t t
20218 s,@host_os@,$host_os,;t t
20219 s,@EGREP@,$EGREP,;t t
20220 s,@LN_S@,$LN_S,;t t
20221 s,@ECHO@,$ECHO,;t t
20223 s,@ac_ct_AR@,$ac_ct_AR,;t t
20224 s,@RANLIB@,$RANLIB,;t t
20225 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20228 s,@CXXFLAGS@,$CXXFLAGS,;t t
20229 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20230 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20231 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20232 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20233 s,@CXXCPP@,$CXXCPP,;t t
20235 s,@FFLAGS@,$FFLAGS,;t t
20236 s,@ac_ct_F77@,$ac_ct_F77,;t t
20237 s,@LIBTOOL@,$LIBTOOL,;t t
20238 s,@LIBOBJS@,$LIBOBJS,;t t
20239 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20244 cat >>$CONFIG_STATUS <<\_ACEOF
20245 # Split the substitutions into bite-sized pieces for seds with
20246 # small command number limits, like on Digital OSF/1 and HP-UX.
20247 ac_max_sed_lines=48
20248 ac_sed_frag=1 # Number of current file.
20249 ac_beg=1 # First line for current file.
20250 ac_end=$ac_max_sed_lines # Line after last line for current file.
20253 while $ac_more_lines; do
20254 if test $ac_beg -gt 1; then
20255 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20257 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20259 if test ! -s $tmp/subs.frag; then
20260 ac_more_lines=false
20262 # The purpose of the label and of the branching condition is to
20263 # speed up the sed processing (if there are no `@' at all, there
20264 # is no need to browse any of the substitutions).
20265 # These are the two extra sed commands mentioned above.
20267 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20268 if test -z "$ac_sed_cmds"; then
20269 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20271 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20273 ac_sed_frag=`expr $ac_sed_frag + 1`
20275 ac_end=`expr $ac_end + $ac_max_sed_lines`
20278 if test -z "$ac_sed_cmds"; then
20281 fi # test -n "$CONFIG_FILES"
20284 cat >>$CONFIG_STATUS <<\_ACEOF
20285 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20286 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20288 - | *:- | *:-:* ) # input from stdin
20290 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20291 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20292 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20293 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20294 * ) ac_file_in=$ac_file.in ;;
20297 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20298 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20299 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20300 X"$ac_file" : 'X\(//\)[^/]' \| \
20301 X"$ac_file" : 'X\(//\)$' \| \
20302 X"$ac_file" : 'X\(/\)' \| \
20303 . : '\(.\)' 2>/dev/null ||
20305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20306 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20307 /^X\(\/\/\)$/{ s//\1/; q; }
20308 /^X\(\/\).*/{ s//\1/; q; }
20310 { if $as_mkdir_p; then
20315 while test ! -d "$as_dir"; do
20316 as_dirs="$as_dir $as_dirs"
20317 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20318 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20319 X"$as_dir" : 'X\(//\)[^/]' \| \
20320 X"$as_dir" : 'X\(//\)$' \| \
20321 X"$as_dir" : 'X\(/\)' \| \
20322 . : '\(.\)' 2>/dev/null ||
20324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20325 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20326 /^X\(\/\/\)$/{ s//\1/; q; }
20327 /^X\(\/\).*/{ s//\1/; q; }
20330 test ! -n "$as_dirs" || mkdir $as_dirs
20331 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20332 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20333 { (exit 1); exit 1; }; }; }
20337 if test "$ac_dir" != .; then
20338 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20339 # A "../" for each directory in $ac_dir_suffix.
20340 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20342 ac_dir_suffix= ac_top_builddir=
20346 .) # No --srcdir option. We are building in place.
20348 if test -z "$ac_top_builddir"; then
20351 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20353 [\\/]* | ?:[\\/]* ) # Absolute path.
20354 ac_srcdir=$srcdir$ac_dir_suffix;
20355 ac_top_srcdir=$srcdir ;;
20356 *) # Relative path.
20357 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20358 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20361 # Do not use `cd foo && pwd` to compute absolute paths, because
20362 # the directories may not exist.
20364 .) ac_abs_builddir="$ac_dir";;
20367 .) ac_abs_builddir=`pwd`;;
20368 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20369 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20372 case $ac_abs_builddir in
20373 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20375 case ${ac_top_builddir}. in
20376 .) ac_abs_top_builddir=$ac_abs_builddir;;
20377 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20378 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20381 case $ac_abs_builddir in
20382 .) ac_abs_srcdir=$ac_srcdir;;
20385 .) ac_abs_srcdir=$ac_abs_builddir;;
20386 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20387 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20390 case $ac_abs_builddir in
20391 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20393 case $ac_top_srcdir in
20394 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20395 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20396 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20402 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20403 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20406 if test x"$ac_file" != x-; then
20407 { echo "$as_me:$LINENO: creating $ac_file" >&5
20408 echo "$as_me: creating $ac_file" >&6;}
20411 # Let's still pretend it is `configure' which instantiates (i.e., don't
20412 # use $as_me), people would be surprised to read:
20413 # /* config.h. Generated by config.status. */
20414 if test x"$ac_file" = x-; then
20417 configure_input="$ac_file. "
20419 configure_input=$configure_input"Generated from `echo $ac_file_in |
20420 sed 's,.*/,,'` by configure."
20422 # First look for the input files in the build tree, otherwise in the
20424 ac_file_inputs=`IFS=:
20425 for f in $ac_file_in; do
20427 -) echo $tmp/stdin ;;
20429 # Absolute (can't be DOS-style, as IFS=:)
20430 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20431 echo "$as_me: error: cannot find input file: $f" >&2;}
20432 { (exit 1); exit 1; }; }
20435 if test -f "$f"; then
20438 elif test -f "$srcdir/$f"; then
20443 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20444 echo "$as_me: error: cannot find input file: $f" >&2;}
20445 { (exit 1); exit 1; }; }
20448 done` || { (exit 1); exit 1; }
20450 cat >>$CONFIG_STATUS <<_ACEOF
20454 cat >>$CONFIG_STATUS <<\_ACEOF
20456 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20457 s,@configure_input@,$configure_input,;t t
20458 s,@srcdir@,$ac_srcdir,;t t
20459 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20460 s,@top_srcdir@,$ac_top_srcdir,;t t
20461 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20462 s,@builddir@,$ac_builddir,;t t
20463 s,@abs_builddir@,$ac_abs_builddir,;t t
20464 s,@top_builddir@,$ac_top_builddir,;t t
20465 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20466 s,@INSTALL@,$ac_INSTALL,;t t
20467 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20469 if test x"$ac_file" != x-; then
20470 mv $tmp/out $ac_file
20478 cat >>$CONFIG_STATUS <<\_ACEOF
20481 # CONFIG_COMMANDS section.
20483 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20484 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20485 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20486 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20487 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20488 X"$ac_dest" : 'X\(//\)[^/]' \| \
20489 X"$ac_dest" : 'X\(//\)$' \| \
20490 X"$ac_dest" : 'X\(/\)' \| \
20491 . : '\(.\)' 2>/dev/null ||
20493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20494 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20495 /^X\(\/\/\)$/{ s//\1/; q; }
20496 /^X\(\/\).*/{ s//\1/; q; }
20498 { if $as_mkdir_p; then
20503 while test ! -d "$as_dir"; do
20504 as_dirs="$as_dir $as_dirs"
20505 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20506 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20507 X"$as_dir" : 'X\(//\)[^/]' \| \
20508 X"$as_dir" : 'X\(//\)$' \| \
20509 X"$as_dir" : 'X\(/\)' \| \
20510 . : '\(.\)' 2>/dev/null ||
20512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20513 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20514 /^X\(\/\/\)$/{ s//\1/; q; }
20515 /^X\(\/\).*/{ s//\1/; q; }
20518 test ! -n "$as_dirs" || mkdir $as_dirs
20519 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20520 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20521 { (exit 1); exit 1; }; }; }
20525 if test "$ac_dir" != .; then
20526 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20527 # A "../" for each directory in $ac_dir_suffix.
20528 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20530 ac_dir_suffix= ac_top_builddir=
20534 .) # No --srcdir option. We are building in place.
20536 if test -z "$ac_top_builddir"; then
20539 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20541 [\\/]* | ?:[\\/]* ) # Absolute path.
20542 ac_srcdir=$srcdir$ac_dir_suffix;
20543 ac_top_srcdir=$srcdir ;;
20544 *) # Relative path.
20545 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20546 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20549 # Do not use `cd foo && pwd` to compute absolute paths, because
20550 # the directories may not exist.
20552 .) ac_abs_builddir="$ac_dir";;
20555 .) ac_abs_builddir=`pwd`;;
20556 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20557 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20560 case $ac_abs_builddir in
20561 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20563 case ${ac_top_builddir}. in
20564 .) ac_abs_top_builddir=$ac_abs_builddir;;
20565 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20566 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20569 case $ac_abs_builddir in
20570 .) ac_abs_srcdir=$ac_srcdir;;
20573 .) ac_abs_srcdir=$ac_abs_builddir;;
20574 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20575 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20578 case $ac_abs_builddir in
20579 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20581 case $ac_top_srcdir in
20582 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20583 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20584 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20589 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20590 echo "$as_me: executing $ac_dest commands" >&6;}
20592 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20593 # Strip MF so we end up with the name of the file.
20594 mf=`echo "$mf" | sed -e 's/:.*$//'`
20595 # Check whether this is an Automake generated Makefile or not.
20596 # We used to match only the files named `Makefile.in', but
20597 # some people rename them; so instead we look at the file content.
20598 # Grep'ing the first line is not enough: some people post-process
20599 # each Makefile.in and add a new line on top of each file to say so.
20600 # So let's grep whole file.
20601 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20602 dirpart=`(dirname "$mf") 2>/dev/null ||
20603 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20604 X"$mf" : 'X\(//\)[^/]' \| \
20605 X"$mf" : 'X\(//\)$' \| \
20606 X"$mf" : 'X\(/\)' \| \
20607 . : '\(.\)' 2>/dev/null ||
20609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20610 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20611 /^X\(\/\/\)$/{ s//\1/; q; }
20612 /^X\(\/\).*/{ s//\1/; q; }
20617 # Extract the definition of DEPDIR, am__include, and am__quote
20618 # from the Makefile without running `make'.
20619 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20620 test -z "$DEPDIR" && continue
20621 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20622 test -z "am__include" && continue
20623 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20624 # When using ansi2knr, U may be empty or an underscore; expand it
20625 U=`sed -n 's/^U = //p' < "$mf"`
20626 # Find all dependency output files, they are included files with
20627 # $(DEPDIR) in their names. We invoke sed twice because it is the
20628 # simplest approach to changing $(DEPDIR) to its actual value in the
20630 for file in `sed -n "
20631 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20632 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20633 # Make sure the directory exists.
20634 test -f "$dirpart/$file" && continue
20635 fdir=`(dirname "$file") 2>/dev/null ||
20636 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20637 X"$file" : 'X\(//\)[^/]' \| \
20638 X"$file" : 'X\(//\)$' \| \
20639 X"$file" : 'X\(/\)' \| \
20640 . : '\(.\)' 2>/dev/null ||
20642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20643 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20644 /^X\(\/\/\)$/{ s//\1/; q; }
20645 /^X\(\/\).*/{ s//\1/; q; }
20647 { if $as_mkdir_p; then
20648 mkdir -p $dirpart/$fdir
20650 as_dir=$dirpart/$fdir
20652 while test ! -d "$as_dir"; do
20653 as_dirs="$as_dir $as_dirs"
20654 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20655 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20656 X"$as_dir" : 'X\(//\)[^/]' \| \
20657 X"$as_dir" : 'X\(//\)$' \| \
20658 X"$as_dir" : 'X\(/\)' \| \
20659 . : '\(.\)' 2>/dev/null ||
20661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20662 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20663 /^X\(\/\/\)$/{ s//\1/; q; }
20664 /^X\(\/\).*/{ s//\1/; q; }
20667 test ! -n "$as_dirs" || mkdir $as_dirs
20668 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20669 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20670 { (exit 1); exit 1; }; }; }
20672 # echo "creating $dirpart/$file"
20673 echo '# dummy' > "$dirpart/$file"
20681 cat >>$CONFIG_STATUS <<\_ACEOF
20683 { (exit 0); exit 0; }
20685 chmod +x $CONFIG_STATUS
20686 ac_clean_files=$ac_clean_files_save
20689 # configure is writing to config.log, and then calls config.status.
20690 # config.status does its own redirection, appending to config.log.
20691 # Unfortunately, on DOS this fails, as config.log is still kept open
20692 # by configure, so config.status won't be able to write to it; its
20693 # output is simply discarded. So we exec the FD to /dev/null,
20694 # effectively closing config.log, so it can be properly (re)opened and
20695 # appended to by config.status. When coming back to configure, we
20696 # need to make the FD available again.
20697 if test "$no_create" != yes; then
20699 ac_config_status_args=
20700 test "$silent" = yes &&
20701 ac_config_status_args="$ac_config_status_args --quiet"
20703 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20705 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20706 # would make configure fail if this is the last instruction.
20707 $ac_cs_success || { (exit 1); exit 1; }