2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for bdbobj 0.10.
5 # Report bugs to <courier-users@lists.sourceforge.net>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 DUALCASE
=1; export DUALCASE
# for MKS sh
26 # Support unset when possible.
27 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C
; export $as_var
53 # Required to use basename.
54 if expr a
: '\(a\)' >/dev
/null
2>&1; then
60 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me
=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits
='0123456789'
86 as_cr_alnum
=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
104 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself
=$0 ;;
111 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir
=.
116 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x
; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
133 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir
=.
137 for as_base
in sh bash ksh sh5
; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
146 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
147 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
148 CONFIG_SHELL
=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x
$as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c
*,-n*) ECHO_N
= ECHO_C
='
192 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
193 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
196 if expr a
: '\(a\)' >/dev
/null
2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.
file
204 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe
; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.
file conf$$
2>/dev
/null
; then
218 rm -f conf$$ conf$$.exe conf$$.
file
220 if mkdir
-p .
2>/dev
/null
; then
223 test -d .
/-p && rmdir .
/-p
227 as_executable_p
="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL
=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec
; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo
; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo
; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset
; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string
=`eval $cmd`) 2>/dev
/null
&&
291 echo_test_string
=`eval $cmd` &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
311 for dir
in $PATH /usr
/ucb
; do
313 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho
; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL
=/bin
/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
352 SHELL
="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string
=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames
=${tagnames+${tagnames},}CXX
398 tagnames
=${tagnames+${tagnames},}F77
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix
=/usr
/local
411 ac_config_libobj_dir
=.
416 SHELL
=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
424 PACKAGE_NAME
='bdbobj'
425 PACKAGE_TARNAME
='bdbobj'
426 PACKAGE_VERSION
='0.10'
427 PACKAGE_STRING
='bdbobj 0.10'
428 PACKAGE_BUGREPORT
='courier-users@lists.sourceforge.net'
430 ac_unique_file
="bdbobj.h"
431 # Factoring default headers for most tests.
432 ac_includes_default
="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 CPP EGREP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBDB FOUND_DB_TRUE FOUND_DB_FALSE LIBOBJS LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version
=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name
=s
,x
,x
,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir
='${exec_prefix}/bin'
497 sbindir
='${exec_prefix}/sbin'
498 libexecdir
='${exec_prefix}/libexec'
499 datadir
='${prefix}/share'
500 sysconfdir
='${prefix}/etc'
501 sharedstatedir
='${prefix}/com'
502 localstatedir
='${prefix}/var'
503 libdir
='${exec_prefix}/lib'
504 includedir
='${prefix}/include'
505 oldincludedir
='/usr/include'
506 infodir
='${prefix}/info'
507 mandir
='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
527 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
530 -build |
--build |
--buil |
--bui |
--bu)
531 ac_prev
=build_alias
;;
532 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
533 build_alias
=$ac_optarg ;;
535 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
536 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
537 ac_prev
=cache_file
;;
538 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
539 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
540 cache_file
=$ac_optarg ;;
543 cache_file
=config.cache
;;
545 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
547 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
549 datadir
=$ac_optarg ;;
551 -disable-* |
--disable-*)
552 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* |
--enable-*)
561 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
574 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
575 |
--exec |
--exe |
--ex)
576 ac_prev
=exec_prefix
;;
577 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
578 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
579 |
--exec=* |
--exe=* |
--ex=*)
580 exec_prefix
=$ac_optarg ;;
582 -gas |
--gas |
--ga |
--g)
583 # Obsolete; use --with-gas.
586 -help |
--help |
--hel |
--he |
-h)
588 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
589 ac_init_help
=recursive
;;
590 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
591 ac_init_help
=short
;;
593 -host |
--host |
--hos |
--ho)
594 ac_prev
=host_alias
;;
595 -host=* |
--host=* |
--hos=* |
--ho=*)
596 host_alias
=$ac_optarg ;;
598 -includedir |
--includedir |
--includedi |
--included |
--include \
599 |
--includ |
--inclu |
--incl |
--inc)
600 ac_prev
=includedir
;;
601 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
602 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
603 includedir
=$ac_optarg ;;
605 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
607 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
608 infodir
=$ac_optarg ;;
610 -libdir |
--libdir |
--libdi |
--libd)
612 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
615 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
616 |
--libexe |
--libex |
--libe)
617 ac_prev
=libexecdir
;;
618 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
619 |
--libexe=* |
--libex=* |
--libe=*)
620 libexecdir
=$ac_optarg ;;
622 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
623 |
--localstate |
--localstat |
--localsta |
--localst \
624 |
--locals |
--local |
--loca |
--loc |
--lo)
625 ac_prev
=localstatedir
;;
626 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
627 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
628 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
629 localstatedir
=$ac_optarg ;;
631 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
633 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
637 # Obsolete; use --without-fp.
640 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
641 |
--no-cr |
--no-c |
-n)
644 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
645 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
648 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
649 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
650 |
--oldin |
--oldi |
--old |
--ol |
--o)
651 ac_prev
=oldincludedir
;;
652 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
653 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
654 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
655 oldincludedir
=$ac_optarg ;;
657 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
659 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
662 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
663 |
--program-pre |
--program-pr |
--program-p)
664 ac_prev
=program_prefix
;;
665 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
666 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
667 program_prefix
=$ac_optarg ;;
669 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
670 |
--program-suf |
--program-su |
--program-s)
671 ac_prev
=program_suffix
;;
672 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
673 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
674 program_suffix
=$ac_optarg ;;
676 -program-transform-name |
--program-transform-name \
677 |
--program-transform-nam |
--program-transform-na \
678 |
--program-transform-n |
--program-transform- \
679 |
--program-transform |
--program-transfor \
680 |
--program-transfo |
--program-transf \
681 |
--program-trans |
--program-tran \
682 |
--progr-tra |
--program-tr |
--program-t)
683 ac_prev
=program_transform_name
;;
684 -program-transform-name=* |
--program-transform-name=* \
685 |
--program-transform-nam=* |
--program-transform-na=* \
686 |
--program-transform-n=* |
--program-transform-=* \
687 |
--program-transform=* |
--program-transfor=* \
688 |
--program-transfo=* |
--program-transf=* \
689 |
--program-trans=* |
--program-tran=* \
690 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
691 program_transform_name
=$ac_optarg ;;
693 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
694 |
-silent |
--silent |
--silen |
--sile |
--sil)
697 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
699 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
701 sbindir
=$ac_optarg ;;
703 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
704 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
705 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
707 ac_prev
=sharedstatedir
;;
708 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
709 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
710 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
712 sharedstatedir
=$ac_optarg ;;
714 -site |
--site |
--sit)
716 -site=* |
--site=* |
--sit=*)
719 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
721 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
724 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
725 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
726 ac_prev
=sysconfdir
;;
727 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
728 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
729 sysconfdir
=$ac_optarg ;;
731 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
732 ac_prev
=target_alias
;;
733 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
734 target_alias
=$ac_optarg ;;
736 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
739 -version |
--version |
--versio |
--versi |
--vers |
-V)
743 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package
=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* |
--without-*)
756 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package
=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
769 |
--x-incl |
--x-inc |
--x-in |
--x-i)
770 ac_prev
=x_includes
;;
771 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
772 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
773 x_includes
=$ac_optarg ;;
775 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
776 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
777 ac_prev
=x_libraries
;;
778 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
779 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
780 x_libraries
=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var
in exec_prefix prefix
817 eval ac_val
=$
`echo $ac_var`
819 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val
=$
`echo $ac_var`
831 [\\/$
]* | ?
:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x
; then
846 if test "x$build_alias" = x
; then
847 cross_compiling
=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
858 test "$silent" = yes && exec 6>/dev
/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted
=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir
=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted
=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set
=${build_alias+set}
898 ac_env_build_alias_value
=$build_alias
899 ac_cv_env_build_alias_set
=${build_alias+set}
900 ac_cv_env_build_alias_value
=$build_alias
901 ac_env_host_alias_set
=${host_alias+set}
902 ac_env_host_alias_value
=$host_alias
903 ac_cv_env_host_alias_set
=${host_alias+set}
904 ac_cv_env_host_alias_value
=$host_alias
905 ac_env_target_alias_set
=${target_alias+set}
906 ac_env_target_alias_value
=$target_alias
907 ac_cv_env_target_alias_set
=${target_alias+set}
908 ac_cv_env_target_alias_value
=$target_alias
909 ac_env_CC_set
=${CC+set}
911 ac_cv_env_CC_set
=${CC+set}
912 ac_cv_env_CC_value
=$CC
913 ac_env_CFLAGS_set
=${CFLAGS+set}
914 ac_env_CFLAGS_value
=$CFLAGS
915 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value
=$CFLAGS
917 ac_env_LDFLAGS_set
=${LDFLAGS+set}
918 ac_env_LDFLAGS_value
=$LDFLAGS
919 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value
=$LDFLAGS
921 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value
=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
925 ac_env_CPP_set
=${CPP+set}
926 ac_env_CPP_value
=$CPP
927 ac_cv_env_CPP_set
=${CPP+set}
928 ac_cv_env_CPP_value
=$CPP
929 ac_env_CXX_set
=${CXX+set}
930 ac_env_CXX_value
=$CXX
931 ac_cv_env_CXX_set
=${CXX+set}
932 ac_cv_env_CXX_value
=$CXX
933 ac_env_CXXFLAGS_set
=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value
=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set
=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value
=$CXXFLAGS
937 ac_env_CXXCPP_set
=${CXXCPP+set}
938 ac_env_CXXCPP_value
=$CXXCPP
939 ac_cv_env_CXXCPP_set
=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value
=$CXXCPP
941 ac_env_F77_set
=${F77+set}
942 ac_env_F77_value
=$F77
943 ac_cv_env_F77_set
=${F77+set}
944 ac_cv_env_F77_value
=$F77
945 ac_env_FFLAGS_set
=${FFLAGS+set}
946 ac_env_FFLAGS_value
=$FFLAGS
947 ac_cv_env_FFLAGS_set
=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value
=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
957 \`configure' configures bdbobj 0.10 to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1016 --build=BUILD configure
for building on BUILD
[guessed
]
1017 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1021 if test -n "$ac_init_help"; then
1022 case $ac_init_help in
1023 short | recursive
) echo "Configuration of bdbobj 0.10:";;
1028 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1029 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1030 --disable-dependency-tracking speeds up one-time build
1031 --enable-dependency-tracking do not reject slow dependency extractors
1032 --enable-shared[=PKGS
]
1033 build shared libraries
[default
=yes]
1034 --enable-static[=PKGS
]
1035 build static libraries
[default
=yes]
1036 --enable-fast-install[=PKGS
]
1037 optimize
for fast installation
[default
=yes]
1038 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1041 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1042 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1043 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1044 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1047 include additional configurations
[automatic
]
1049 Some influential environment variables
:
1050 CC C compiler
command
1051 CFLAGS C compiler flags
1052 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1053 nonstandard directory
<lib dir
>
1054 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
1055 headers
in a nonstandard directory
<include dir
>
1057 CXX C
++ compiler
command
1058 CXXFLAGS C
++ compiler flags
1059 CXXCPP C
++ preprocessor
1060 F77 Fortran
77 compiler
command
1061 FFLAGS Fortran
77 compiler flags
1063 Use these variables to override the choices made by
`configure' or to help
1064 it to find libraries and programs with nonstandard names/locations.
1066 Report bugs to <courier-users@lists.sourceforge.net>.
1070 if test "$ac_init_help" = "recursive"; then
1071 # If there are subdirs, report their specific --help.
1073 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1074 test -d $ac_dir || continue
1077 if test "$ac_dir" != .; then
1078 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1079 # A "../" for each directory in $ac_dir_suffix.
1080 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
1082 ac_dir_suffix= ac_top_builddir=
1086 .) # No --srcdir option. We are building in place.
1088 if test -z "$ac_top_builddir"; then
1091 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1093 [\\/]* | ?:[\\/]* ) # Absolute path.
1094 ac_srcdir=$srcdir$ac_dir_suffix;
1095 ac_top_srcdir=$srcdir ;;
1097 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1098 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1101 # Do not use `cd foo
&& pwd` to compute absolute paths, because
1102 # the directories may not exist.
1104 .) ac_abs_builddir="$ac_dir";;
1107 .) ac_abs_builddir=`pwd`;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1109 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1112 case $ac_abs_builddir in
1113 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1115 case ${ac_top_builddir}. in
1116 .) ac_abs_top_builddir=$ac_abs_builddir;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1118 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1121 case $ac_abs_builddir in
1122 .) ac_abs_srcdir=$ac_srcdir;;
1125 .) ac_abs_srcdir=$ac_abs_builddir;;
1126 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1127 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1130 case $ac_abs_builddir in
1131 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1133 case $ac_top_srcdir in
1134 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1135 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1136 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1141 # Check for guested configure; otherwise get Cygnus style configure.
1142 if test -f $ac_srcdir/configure.gnu; then
1144 $SHELL $ac_srcdir/configure.gnu --help=recursive
1145 elif test -f $ac_srcdir/configure; then
1147 $SHELL $ac_srcdir/configure --help=recursive
1148 elif test -f $ac_srcdir/configure.ac ||
1149 test -f $ac_srcdir/configure.in; then
1151 $ac_configure --help
1153 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1159 test -n "$ac_init_help" && exit 0
1160 if $ac_init_version; then
1162 bdbobj configure 0.10
1163 generated by GNU Autoconf 2.59
1165 Copyright (C) 2003 Free Software Foundation, Inc.
1166 This configure script is free software; the Free Software Foundation
1167 gives unlimited permission to copy, distribute and modify it.
1173 This file contains any messages produced by compilers while
1174 running configure, to aid debugging if configure makes a mistake.
1176 It was created by bdbobj $as_me 0.10, which was
1177 generated by GNU Autoconf 2.59. Invocation command line was
1188 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1189 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1190 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1191 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1192 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1194 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1195 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1197 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1198 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1199 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1200 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1201 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1202 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1203 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1211 test -z "$as_dir" && as_dir=.
1212 echo "PATH: $as_dir"
1227 # Keep a trace of the command line.
1228 # Strip out --no-create and --no-recursion so they do not pile up.
1229 # Strip out --silent because we don't want to record it for future runs.
1230 # Also quote any args containing shell meta-characters.
1231 # Make two passes to allow for proper duplicate-argument suppression.
1236 ac_must_keep_next=false
1242 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1246 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1250 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1252 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1253 if test $ac_must_keep_next = true; then
1254 ac_must_keep_next=false # Got value, back to normal.
1257 *=* | --config-cache | -C | -disable-* | --disable-* \
1258 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1259 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1260 | -with-* | --with-* | -without-* | --without-* | --x)
1261 case "$ac_configure_args0 " in
1262 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1265 -* ) ac_must_keep_next=true ;;
1268 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1269 # Get rid of the leading space.
1275 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1276 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1278 # When interrupted or exit'd, cleanup temporary files, and complete
1279 # config.log. We remove comments because anyway the quotes in there
1280 # would cause problems or look ugly.
1281 # WARNING: Be sure not to use single quotes in there, as some shells,
1282 # such as our DU 5.0 friend, will then `close
' the trap.
1283 trap 'exit_status
=$?
1284 # Save into config.log some information that might help in debugging.
1289 ## ---------------- ##
1290 ## Cache variables. ##
1291 ## ---------------- ##
1294 # The following way of writing the cache mishandles newlines in values,
1297 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1300 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1305 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1312 ## ----------------- ##
1313 ## Output variables. ##
1314 ## ----------------- ##
1317 for ac_var
in $ac_subst_vars
1319 eval ac_val
=$
`echo $ac_var`
1320 echo "$ac_var='"'"'$ac_val'"'"'"
1324 if test -n "$ac_subst_files"; then
1331 for ac_var
in $ac_subst_files
1333 eval ac_val
=$
`echo $ac_var`
1334 echo "$ac_var='"'"'$ac_val'"'"'"
1339 if test -s confdefs.h
; then
1346 sed "/^$/d" confdefs.h |
sort
1349 test "$ac_signal" != 0 &&
1350 echo "$as_me: caught signal $ac_signal"
1351 echo "$as_me: exit $exit_status"
1353 rm -f core
*.core
&&
1354 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1357 for ac_signal in 1 2 13 15; do
1358 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1362 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1363 rm -rf conftest* confdefs.h
1364 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1367 # Predefined preprocessor variables.
1369 cat >>confdefs.h <<_ACEOF
1370 #define PACKAGE_NAME "$PACKAGE_NAME"
1374 cat >>confdefs.h <<_ACEOF
1375 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_STRING "$PACKAGE_STRING"
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1394 # Let the site file select an alternate cache file if it wants to.
1395 # Prefer explicitly selected file to automatically selected ones.
1396 if test -z "$CONFIG_SITE"; then
1397 if test "x$prefix" != xNONE; then
1398 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1400 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1403 for ac_site_file in $CONFIG_SITE; do
1404 if test -r "$ac_site_file"; then
1405 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1406 echo "$as_me: loading site script $ac_site_file" >&6;}
1407 sed 's
/^
/|
/' "$ac_site_file" >&5
1412 if test -r "$cache_file"; then
1413 # Some versions of bash will fail to source /dev/null (special
1414 # files actually), so we avoid doing that.
1415 if test -f "$cache_file"; then
1416 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1417 echo "$as_me: loading cache $cache_file" >&6;}
1419 [\\/]* | ?:[\\/]* ) . $cache_file;;
1420 *) . ./$cache_file;;
1424 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1425 echo "$as_me: creating cache $cache_file" >&6;}
1429 # Check that the precious variables saved in the cache have kept the same
1431 ac_cache_corrupted=false
1432 for ac_var in `(set) 2>&1 |
1433 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1434 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1435 eval ac_new_set=\$ac_env_${ac_var}_set
1436 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1437 eval ac_new_val="\$ac_env_${ac_var}_value"
1438 case $ac_old_set,$ac_new_set in
1440 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1441 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1442 ac_cache_corrupted=: ;;
1444 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1445 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1446 ac_cache_corrupted=: ;;
1449 if test "x$ac_old_val" != "x$ac_new_val"; then
1450 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1451 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1452 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1453 echo "$as_me: former value: $ac_old_val" >&2;}
1454 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1455 echo "$as_me: current value: $ac_new_val" >&2;}
1456 ac_cache_corrupted=:
1459 # Pass precious variables to config.status.
1460 if test "$ac_new_set" = set; then
1462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1463 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1464 *) ac_arg=$ac_var=$ac_new_val ;;
1466 case " $ac_configure_args " in
1467 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1468 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1472 if $ac_cache_corrupted; then
1473 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1474 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1475 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1476 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1477 { (exit 1); exit 1; }; }
1481 ac_cpp='$CPP $CPPFLAGS'
1482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1483 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1513 >confdefs.h # Kill PACKAGE_ macros
1516 am__api_version="1.9"
1518 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1519 if test -f $ac_dir/install-sh; then
1521 ac_install_sh="$ac_aux_dir/install-sh -c"
1523 elif test -f $ac_dir/install.sh; then
1525 ac_install_sh="$ac_aux_dir/install.sh -c"
1527 elif test -f $ac_dir/shtool; then
1529 ac_install_sh="$ac_aux_dir/shtool install -c"
1533 if test -z "$ac_aux_dir"; then
1534 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1535 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1536 { (exit 1); exit 1; }; }
1538 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1539 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1540 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1542 # Find a good install program. We prefer a C program (faster),
1543 # so one script is as good as another. But avoid the broken or
1544 # incompatible versions:
1545 # SysV /etc/install, /usr/sbin/install
1546 # SunOS /usr/etc/install
1547 # IRIX /sbin/install
1549 # AmigaOS /C/install, which installs bootblocks on floppy discs
1550 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1551 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1552 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1553 # OS/2's system install, which has a completely different semantic
1554 # ./install, which can be erroneously created by make from ./install.sh.
1555 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1556 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1557 if test -z "$INSTALL"; then
1558 if test "${ac_cv_path_install+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1565 test -z "$as_dir" && as_dir
=.
1566 # Account for people who put trailing slashes in PATH elements.
1568 .
/ | .
// |
/cC
/* | \
1569 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1570 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1573 # OSF1 and SCO ODT 3.0 have their own names for install.
1574 # Don't use installbsd from OSF since it installs stuff as root
1576 for ac_prog
in ginstall scoinst
install; do
1577 for ac_exec_ext
in '' $ac_executable_extensions; do
1578 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1579 if test $ac_prog = install &&
1580 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1581 # AIX install. It has an incompatible calling convention.
1583 elif test $ac_prog = install &&
1584 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1585 # program-specific install script used by HP pwplus--don't use.
1588 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1600 if test "${ac_cv_path_install+set}" = set; then
1601 INSTALL
=$ac_cv_path_install
1603 # As a last resort, use the slow shell script. We don't cache a
1604 # path for INSTALL within a source directory, because that will
1605 # break other packages using the cache if that directory is
1606 # removed, or if the path is relative.
1607 INSTALL
=$ac_install_sh
1610 echo "$as_me:$LINENO: result: $INSTALL" >&5
1611 echo "${ECHO_T}$INSTALL" >&6
1613 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1614 # It thinks the first close brace ends the variable substitution.
1615 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1617 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1619 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1621 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1622 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1625 echo timestamp
> conftest.
file
1626 # Do `set' in a subshell so we don't clobber the current shell's
1627 # arguments. Must try -L first in case configure is actually a
1628 # symlink; some systems play weird games with the mod time of symlinks
1629 # (eg FreeBSD returns the mod time of the symlink's containing
1632 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1633 if test "$*" = "X"; then
1635 set X
`ls -t $srcdir/configure conftest.file`
1638 if test "$*" != "X $srcdir/configure conftest.file" \
1639 && test "$*" != "X conftest.file $srcdir/configure"; then
1641 # If neither matched, then we have a broken ls. This can happen
1642 # if, for instance, CONFIG_SHELL is bash and it inherits a
1643 # broken ls alias from the environment. This has actually
1644 # happened. Such a system could not be considered "sane".
1645 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1646 alias in your environment" >&5
1647 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1648 alias in your environment" >&2;}
1649 { (exit 1); exit 1; }; }
1652 test "$2" = conftest.
file
1658 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1659 Check your system clock" >&5
1660 echo "$as_me: error: newly created file is older than distributed files!
1661 Check your system clock" >&2;}
1662 { (exit 1); exit 1; }; }
1664 echo "$as_me:$LINENO: result: yes" >&5
1665 echo "${ECHO_T}yes" >&6
1666 test "$program_prefix" != NONE
&&
1667 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1668 # Use a double $ so make ignores it.
1669 test "$program_suffix" != NONE
&&
1670 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1671 # Double any \ or $. echo might interpret backslashes.
1672 # By default was `s,x,x', remove it if useless.
1673 cat <<\_ACEOF
>conftest.
sed
1674 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1676 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1679 # expand $ac_aux_dir to an absolute path
1680 am_aux_dir
=`cd $ac_aux_dir && pwd`
1682 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1683 # Use eval to expand $SHELL
1684 if eval "$MISSING --run true"; then
1685 am_missing_run
="$MISSING --run "
1688 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1689 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1692 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
1693 # We used to keeping the `.' as first argument, in order to
1694 # allow $(mkdir_p) to be used without argument. As in
1695 # $(mkdir_p) $(somedir)
1696 # where $(somedir) is conditionally defined. However this is wrong
1698 # 1. if the package is installed by a user who cannot write `.'
1699 # make install will fail,
1700 # 2. the above comment should most certainly read
1701 # $(mkdir_p) $(DESTDIR)$(somedir)
1702 # so it does not work when $(somedir) is undefined and
1703 # $(DESTDIR) is not.
1704 # To support the latter case, we have to write
1705 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1706 # so the `.' trick is pointless.
1707 mkdir_p
='mkdir -p --'
1709 # On NextStep and OpenStep, the `mkdir' command does not
1710 # recognize any option. It will interpret all options as
1711 # directories to create, and then abort because `.' already
1713 for d
in .
/-p .
/--version;
1715 test -d $d && rmdir $d
1717 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1718 if test -f "$ac_aux_dir/mkinstalldirs"; then
1719 mkdir_p
='$(mkinstalldirs)'
1721 mkdir_p
='$(install_sh) -d'
1725 for ac_prog
in gawk mawk nawk
awk
1727 # Extract the first word of "$ac_prog", so it can be a program name with args.
1728 set dummy
$ac_prog; ac_word
=$2
1729 echo "$as_me:$LINENO: checking for $ac_word" >&5
1730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1731 if test "${ac_cv_prog_AWK+set}" = set; then
1732 echo $ECHO_N "(cached) $ECHO_C" >&6
1734 if test -n "$AWK"; then
1735 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1737 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1741 test -z "$as_dir" && as_dir
=.
1742 for ac_exec_ext
in '' $ac_executable_extensions; do
1743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1744 ac_cv_prog_AWK
="$ac_prog"
1745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1754 if test -n "$AWK"; then
1755 echo "$as_me:$LINENO: result: $AWK" >&5
1756 echo "${ECHO_T}$AWK" >&6
1758 echo "$as_me:$LINENO: result: no" >&5
1759 echo "${ECHO_T}no" >&6
1762 test -n "$AWK" && break
1765 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1766 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1767 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1768 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1771 cat >conftest.
make <<\_ACEOF
1773 @
echo 'ac_maketemp="$(MAKE)"'
1775 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1776 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1777 if test -n "$ac_maketemp"; then
1778 eval ac_cv_prog_make_
${ac_make}_set
=yes
1780 eval ac_cv_prog_make_
${ac_make}_set
=no
1784 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1785 echo "$as_me:$LINENO: result: yes" >&5
1786 echo "${ECHO_T}yes" >&6
1789 echo "$as_me:$LINENO: result: no" >&5
1790 echo "${ECHO_T}no" >&6
1791 SET_MAKE
="MAKE=${MAKE-make}"
1794 rm -rf .tst
2>/dev
/null
1795 mkdir .tst
2>/dev
/null
1796 if test -d .tst
; then
1801 rmdir .tst
2>/dev
/null
1803 # test to see if srcdir already configured
1804 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1805 test -f $srcdir/config.status
; then
1806 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1807 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1808 { (exit 1); exit 1; }; }
1811 # test whether we have cygpath
1812 if test -z "$CYGPATH_W"; then
1813 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
1814 CYGPATH_W
='cygpath -w'
1821 # Define the identity of the package.
1826 # Some tools Automake needs.
1828 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1831 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1834 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1837 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1840 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1842 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1844 # Installed binaries are usually stripped using `strip' when the user
1845 # run `make install-strip'. However `strip' might not be the right
1846 # tool to use in cross-compilation environments, therefore Automake
1847 # will honor the `STRIP' environment variable to overrule this program.
1848 if test "$cross_compiling" != no
; then
1849 if test -n "$ac_tool_prefix"; then
1850 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1851 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854 if test "${ac_cv_prog_STRIP+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1857 if test -n "$STRIP"; then
1858 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1860 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1864 test -z "$as_dir" && as_dir
=.
1865 for ac_exec_ext
in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 STRIP
=$ac_cv_prog_STRIP
1877 if test -n "$STRIP"; then
1878 echo "$as_me:$LINENO: result: $STRIP" >&5
1879 echo "${ECHO_T}$STRIP" >&6
1881 echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1886 if test -z "$ac_cv_prog_STRIP"; then
1888 # Extract the first word of "strip", so it can be a program name with args.
1889 set dummy strip
; ac_word
=$2
1890 echo "$as_me:$LINENO: checking for $ac_word" >&5
1891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1895 if test -n "$ac_ct_STRIP"; then
1896 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
1898 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1902 test -z "$as_dir" && as_dir
=.
1903 for ac_exec_ext
in '' $ac_executable_extensions; do
1904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905 ac_cv_prog_ac_ct_STRIP
="strip"
1906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
1915 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
1916 if test -n "$ac_ct_STRIP"; then
1917 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1918 echo "${ECHO_T}$ac_ct_STRIP" >&6
1920 echo "$as_me:$LINENO: result: no" >&5
1921 echo "${ECHO_T}no" >&6
1926 STRIP
="$ac_cv_prog_STRIP"
1930 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1932 # We need awk for the "check" target. The system "awk" is bad on
1934 # Always define AMTAR for backward compatibility.
1936 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1938 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
1944 ac_config_headers
="$ac_config_headers config.h"
1948 ac_cpp
='$CPP $CPPFLAGS'
1949 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1950 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1951 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1952 if test -n "$ac_tool_prefix"; then
1953 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1954 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1955 echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957 if test "${ac_cv_prog_CC+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 if test -n "$CC"; then
1961 ac_cv_prog_CC
="$CC" # Let the user override the test.
1963 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1967 test -z "$as_dir" && as_dir
=.
1968 for ac_exec_ext
in '' $ac_executable_extensions; do
1969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980 if test -n "$CC"; then
1981 echo "$as_me:$LINENO: result: $CC" >&5
1982 echo "${ECHO_T}$CC" >&6
1984 echo "$as_me:$LINENO: result: no" >&5
1985 echo "${ECHO_T}no" >&6
1989 if test -z "$ac_cv_prog_CC"; then
1991 # Extract the first word of "gcc", so it can be a program name with args.
1992 set dummy gcc
; ac_word
=$2
1993 echo "$as_me:$LINENO: checking for $ac_word" >&5
1994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1995 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 if test -n "$ac_ct_CC"; then
1999 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2001 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2005 test -z "$as_dir" && as_dir
=.
2006 for ac_exec_ext
in '' $ac_executable_extensions; do
2007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2008 ac_cv_prog_ac_ct_CC
="gcc"
2009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2018 if test -n "$ac_ct_CC"; then
2019 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2020 echo "${ECHO_T}$ac_ct_CC" >&6
2022 echo "$as_me:$LINENO: result: no" >&5
2023 echo "${ECHO_T}no" >&6
2031 if test -z "$CC"; then
2032 if test -n "$ac_tool_prefix"; then
2033 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2034 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2035 echo "$as_me:$LINENO: checking for $ac_word" >&5
2036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2037 if test "${ac_cv_prog_CC+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 if test -n "$CC"; then
2041 ac_cv_prog_CC
="$CC" # Let the user override the test.
2043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2047 test -z "$as_dir" && as_dir
=.
2048 for ac_exec_ext
in '' $ac_executable_extensions; do
2049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 if test -n "$CC"; then
2061 echo "$as_me:$LINENO: result: $CC" >&5
2062 echo "${ECHO_T}$CC" >&6
2064 echo "$as_me:$LINENO: result: no" >&5
2065 echo "${ECHO_T}no" >&6
2069 if test -z "$ac_cv_prog_CC"; then
2071 # Extract the first word of "cc", so it can be a program name with args.
2072 set dummy cc
; ac_word
=$2
2073 echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2075 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 if test -n "$ac_ct_CC"; then
2079 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2085 test -z "$as_dir" && as_dir
=.
2086 for ac_exec_ext
in '' $ac_executable_extensions; do
2087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2088 ac_cv_prog_ac_ct_CC
="cc"
2089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2098 if test -n "$ac_ct_CC"; then
2099 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2100 echo "${ECHO_T}$ac_ct_CC" >&6
2102 echo "$as_me:$LINENO: result: no" >&5
2103 echo "${ECHO_T}no" >&6
2112 if test -z "$CC"; then
2113 # Extract the first word of "cc", so it can be a program name with args.
2114 set dummy cc
; ac_word
=$2
2115 echo "$as_me:$LINENO: checking for $ac_word" >&5
2116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2117 if test "${ac_cv_prog_CC+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 if test -n "$CC"; then
2121 ac_cv_prog_CC
="$CC" # Let the user override the test.
2124 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2128 test -z "$as_dir" && as_dir
=.
2129 for ac_exec_ext
in '' $ac_executable_extensions; do
2130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2132 ac_prog_rejected
=yes
2136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142 if test $ac_prog_rejected = yes; then
2143 # We found a bogon in the path, so make sure we never use it.
2144 set dummy
$ac_cv_prog_CC
2146 if test $# != 0; then
2147 # We chose a different compiler from the bogus one.
2148 # However, it has the same basename, so the bogon will be chosen
2149 # first if we set CC to just the basename; use the full file name.
2151 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2157 if test -n "$CC"; then
2158 echo "$as_me:$LINENO: result: $CC" >&5
2159 echo "${ECHO_T}$CC" >&6
2161 echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6
2166 if test -z "$CC"; then
2167 if test -n "$ac_tool_prefix"; then
2170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2171 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2172 echo "$as_me:$LINENO: checking for $ac_word" >&5
2173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2174 if test "${ac_cv_prog_CC+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 if test -n "$CC"; then
2178 ac_cv_prog_CC
="$CC" # Let the user override the test.
2180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2184 test -z "$as_dir" && as_dir
=.
2185 for ac_exec_ext
in '' $ac_executable_extensions; do
2186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2187 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197 if test -n "$CC"; then
2198 echo "$as_me:$LINENO: result: $CC" >&5
2199 echo "${ECHO_T}$CC" >&6
2201 echo "$as_me:$LINENO: result: no" >&5
2202 echo "${ECHO_T}no" >&6
2205 test -n "$CC" && break
2208 if test -z "$CC"; then
2212 # Extract the first word of "$ac_prog", so it can be a program name with args.
2213 set dummy
$ac_prog; ac_word
=$2
2214 echo "$as_me:$LINENO: checking for $ac_word" >&5
2215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2216 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 if test -n "$ac_ct_CC"; then
2220 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2226 test -z "$as_dir" && as_dir
=.
2227 for ac_exec_ext
in '' $ac_executable_extensions; do
2228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2229 ac_cv_prog_ac_ct_CC
="$ac_prog"
2230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2239 if test -n "$ac_ct_CC"; then
2240 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2241 echo "${ECHO_T}$ac_ct_CC" >&6
2243 echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6
2247 test -n "$ac_ct_CC" && break
2256 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2257 See \`config.log' for more details." >&5
2258 echo "$as_me: error: no acceptable C compiler found in \$PATH
2259 See \`config.log' for more details." >&2;}
2260 { (exit 1); exit 1; }; }
2262 # Provide some information about the compiler.
2263 echo "$as_me:$LINENO:" \
2264 "checking for C compiler version" >&5
2265 ac_compiler
=`set X $ac_compile; echo $2`
2266 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2267 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }
2271 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2272 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }
2276 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2277 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }
2282 cat >conftest.
$ac_ext <<_ACEOF
2285 cat confdefs.h
>>conftest.
$ac_ext
2286 cat >>conftest.
$ac_ext <<_ACEOF
2287 /* end confdefs.h. */
2297 ac_clean_files_save
=$ac_clean_files
2298 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2299 # Try to create an executable without -o first, disregard a.out.
2300 # It will help us diagnose broken compilers, and finding out an intuition
2302 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2303 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2304 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2305 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2306 (eval $ac_link_default) 2>&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; then
2310 # Find the output, starting from the most likely. This scheme is
2311 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2314 # Be careful to initialize this variable, since it used to be cached.
2315 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2317 # b.out is created by i960 compilers.
2318 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2320 test -f "$ac_file" ||
continue
2322 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2325 # This is the source file.
2328 # We found the default executable, but exeext='' is most
2332 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2333 # FIXME: I believe we export ac_cv_exeext for Libtool,
2334 # but it would be cool to find out if it's true. Does anybody
2335 # maintain Libtool? --akim.
2343 echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.
$ac_ext >&5
2346 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2347 See \`config.log' for more details." >&5
2348 echo "$as_me: error: C compiler cannot create executables
2349 See \`config.log' for more details." >&2;}
2350 { (exit 77); exit 77; }; }
2353 ac_exeext
=$ac_cv_exeext
2354 echo "$as_me:$LINENO: result: $ac_file" >&5
2355 echo "${ECHO_T}$ac_file" >&6
2357 # Check the compiler produces executables we can run. If not, either
2358 # the compiler is broken, or we cross compile.
2359 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2360 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2361 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2362 # If not cross compiling, check that we can run a simple program.
2363 if test "$cross_compiling" != yes; then
2364 if { ac_try
='./$ac_file'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; }; then
2372 if test "$cross_compiling" = maybe
; then
2375 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2376 If you meant to cross compile, use \`--host'.
2377 See \`config.log' for more details." >&5
2378 echo "$as_me: error: cannot run C compiled programs.
2379 If you meant to cross compile, use \`--host'.
2380 See \`config.log' for more details." >&2;}
2381 { (exit 1); exit 1; }; }
2385 echo "$as_me:$LINENO: result: yes" >&5
2386 echo "${ECHO_T}yes" >&6
2388 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2389 ac_clean_files
=$ac_clean_files_save
2390 # Check the compiler produces executables we can run. If not, either
2391 # the compiler is broken, or we cross compile.
2392 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2393 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2394 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2395 echo "${ECHO_T}$cross_compiling" >&6
2397 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2398 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2400 (eval $ac_link) 2>&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; then
2404 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2405 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2406 # work properly (i.e., refer to `conftest.exe'), while it won't with
2408 for ac_file
in conftest.exe conftest conftest.
*; do
2409 test -f "$ac_file" ||
continue
2411 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2412 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2419 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2420 See \`config.log' for more details." >&5
2421 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2422 See \`config.log' for more details." >&2;}
2423 { (exit 1); exit 1; }; }
2426 rm -f conftest
$ac_cv_exeext
2427 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2428 echo "${ECHO_T}$ac_cv_exeext" >&6
2430 rm -f conftest.
$ac_ext
2431 EXEEXT
=$ac_cv_exeext
2433 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2434 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2435 if test "${ac_cv_objext+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 cat >conftest.
$ac_ext <<_ACEOF
2441 cat confdefs.h
>>conftest.
$ac_ext
2442 cat >>conftest.
$ac_ext <<_ACEOF
2443 /* end confdefs.h. */
2453 rm -f conftest.o conftest.obj
2454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455 (eval $ac_compile) 2>&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; then
2459 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2461 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2462 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2467 echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.
$ac_ext >&5
2470 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2471 See \`config.log' for more details." >&5
2472 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2473 See \`config.log' for more details." >&2;}
2474 { (exit 1); exit 1; }; }
2477 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2479 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2480 echo "${ECHO_T}$ac_cv_objext" >&6
2481 OBJEXT
=$ac_cv_objext
2483 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2484 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2485 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 cat >conftest.
$ac_ext <<_ACEOF
2491 cat confdefs.h
>>conftest.
$ac_ext
2492 cat >>conftest.
$ac_ext <<_ACEOF
2493 /* end confdefs.h. */
2506 rm -f conftest.
$ac_objext
2507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2508 (eval $ac_compile) 2>conftest.er1
2510 grep -v '^ *+' conftest.er1
>conftest.err
2512 cat conftest.err
>&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } &&
2515 { ac_try
='test -z "$ac_c_werror_flag"
2516 || test ! -s conftest.err'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; } &&
2522 { ac_try
='test -s conftest.$ac_objext'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2530 echo "$as_me: failed program was:" >&5
2531 sed 's/^/| /' conftest.
$ac_ext >&5
2535 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2536 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2539 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2540 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2541 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2542 ac_test_CFLAGS
=${CFLAGS+set}
2543 ac_save_CFLAGS
=$CFLAGS
2545 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2546 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2547 if test "${ac_cv_prog_cc_g+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
2550 cat >conftest.
$ac_ext <<_ACEOF
2553 cat confdefs.h
>>conftest.
$ac_ext
2554 cat >>conftest.
$ac_ext <<_ACEOF
2555 /* end confdefs.h. */
2565 rm -f conftest.
$ac_objext
2566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567 (eval $ac_compile) 2>conftest.er1
2569 grep -v '^ *+' conftest.er1
>conftest.err
2571 cat conftest.err
>&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } &&
2574 { ac_try
='test -z "$ac_c_werror_flag"
2575 || test ! -s conftest.err'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; } &&
2581 { ac_try
='test -s conftest.$ac_objext'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; }; then
2589 echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.
$ac_ext >&5
2594 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2596 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2597 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2598 if test "$ac_test_CFLAGS" = set; then
2599 CFLAGS
=$ac_save_CFLAGS
2600 elif test $ac_cv_prog_cc_g = yes; then
2601 if test "$GCC" = yes; then
2607 if test "$GCC" = yes; then
2613 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2614 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2615 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2618 ac_cv_prog_cc_stdc
=no
2620 cat >conftest.
$ac_ext <<_ACEOF
2623 cat confdefs.h
>>conftest.
$ac_ext
2624 cat >>conftest.
$ac_ext <<_ACEOF
2625 /* end confdefs.h. */
2628 #include <sys/types.h>
2629 #include <sys/stat.h>
2630 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2631 struct buf { int x; };
2632 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2633 static char *e (p, i)
2639 static char *f (char * (*g) (char **, int), char **p, ...)
2644 s = g (p, va_arg (v,int));
2649 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2650 function prototypes and stuff, but not '\xHH' hex character constants.
2651 These don't provoke an error unfortunately, instead are silently treated
2652 as 'x'. The following induces an error, until -std1 is added to get
2653 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2654 array size at least. It's necessary to write '\x00'==0 to get something
2655 that's true only with -std1. */
2656 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2658 int test (int i, double x);
2659 struct s1 {int (*f) (int a);};
2660 struct s2 {int (*f) (double a);};
2661 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2667 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2672 # Don't try gcc -ansi; that turns off useful extensions and
2673 # breaks some systems' header files.
2674 # AIX -qlanglvl=ansi
2675 # Ultrix and OSF/1 -std1
2676 # HP-UX 10.20 and later -Ae
2677 # HP-UX older versions -Aa -D_HPUX_SOURCE
2678 # SVR4 -Xc -D__EXTENSIONS__
2679 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2681 CC
="$ac_save_CC $ac_arg"
2682 rm -f conftest.
$ac_objext
2683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2684 (eval $ac_compile) 2>conftest.er1
2686 grep -v '^ *+' conftest.er1
>conftest.err
2688 cat conftest.err
>&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); } &&
2691 { ac_try
='test -z "$ac_c_werror_flag"
2692 || test ! -s conftest.err'
2693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; } &&
2698 { ac_try
='test -s conftest.$ac_objext'
2699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; }; then
2704 ac_cv_prog_cc_stdc
=$ac_arg
2707 echo "$as_me: failed program was:" >&5
2708 sed 's/^/| /' conftest.
$ac_ext >&5
2711 rm -f conftest.err conftest.
$ac_objext
2713 rm -f conftest.
$ac_ext conftest.
$ac_objext
2718 case "x$ac_cv_prog_cc_stdc" in
2720 echo "$as_me:$LINENO: result: none needed" >&5
2721 echo "${ECHO_T}none needed" >&6 ;;
2723 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2724 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2725 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2728 # Some people use a C++ compiler to compile C. Since we use `exit',
2729 # in C++ we need to declare it. In case someone uses the same compiler
2730 # for both compiling C and C++ we need to have the C++ compiler decide
2731 # the declaration of exit, since it's the most demanding environment.
2732 cat >conftest.
$ac_ext <<_ACEOF
2737 rm -f conftest.
$ac_objext
2738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2739 (eval $ac_compile) 2>conftest.er1
2741 grep -v '^ *+' conftest.er1
>conftest.err
2743 cat conftest.err
>&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } &&
2746 { ac_try
='test -z "$ac_c_werror_flag"
2747 || test ! -s conftest.err'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; } &&
2753 { ac_try
='test -s conftest.$ac_objext'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; }; then
2759 for ac_declaration
in \
2761 'extern "C" void std::exit (int) throw (); using std::exit;' \
2762 'extern "C" void std::exit (int); using std::exit;' \
2763 'extern "C" void exit (int) throw ();' \
2764 'extern "C" void exit (int);' \
2767 cat >conftest.
$ac_ext <<_ACEOF
2770 cat confdefs.h
>>conftest.
$ac_ext
2771 cat >>conftest.
$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2783 rm -f conftest.
$ac_objext
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785 (eval $ac_compile) 2>conftest.er1
2787 grep -v '^ *+' conftest.er1
>conftest.err
2789 cat conftest.err
>&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } &&
2792 { ac_try
='test -z "$ac_c_werror_flag"
2793 || test ! -s conftest.err'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; } &&
2799 { ac_try
='test -s conftest.$ac_objext'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; }; then
2807 echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.
$ac_ext >&5
2812 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2813 cat >conftest.
$ac_ext <<_ACEOF
2816 cat confdefs.h
>>conftest.
$ac_ext
2817 cat >>conftest.
$ac_ext <<_ACEOF
2818 /* end confdefs.h. */
2828 rm -f conftest.
$ac_objext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830 (eval $ac_compile) 2>conftest.er1
2832 grep -v '^ *+' conftest.er1
>conftest.err
2834 cat conftest.err
>&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); } &&
2837 { ac_try
='test -z "$ac_c_werror_flag"
2838 || test ! -s conftest.err'
2839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; } &&
2844 { ac_try
='test -s conftest.$ac_objext'
2845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; }; then
2852 echo "$as_me: failed program was:" >&5
2853 sed 's/^/| /' conftest.
$ac_ext >&5
2856 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2859 if test -n "$ac_declaration"; then
2860 echo '#ifdef __cplusplus' >>confdefs.h
2861 echo $ac_declaration >>confdefs.h
2862 echo '#endif' >>confdefs.h
2866 echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.
$ac_ext >&5
2870 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2872 ac_cpp
='$CPP $CPPFLAGS'
2873 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2874 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2875 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2876 DEPDIR
="${am__leading_dot}deps"
2878 ac_config_commands
="$ac_config_commands depfiles"
2881 am_make
=${MAKE-make}
2882 cat > confinc
<< 'END'
2887 # If we don't find an include directive, just comment out the code.
2888 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2889 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2893 # First try GNU make style include.
2894 echo "include confinc" > confmf
2895 # We grep out `Entering directory' and `Leaving directory'
2896 # messages which can occur if `w' ends up in MAKEFLAGS.
2897 # In particular we don't look at `^make:' because GNU make might
2898 # be invoked under some other name (usually "gmake"), in which
2899 # case it prints its new name instead of `make'.
2900 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2905 # Now try BSD make style include.
2906 if test "$am__include" = "#"; then
2907 echo '.include "confinc"' > confmf
2908 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2909 am__include
=.include
2916 echo "$as_me:$LINENO: result: $_am_result" >&5
2917 echo "${ECHO_T}$_am_result" >&6
2918 rm -f confinc confmf
2920 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2921 if test "${enable_dependency_tracking+set}" = set; then
2922 enableval
="$enable_dependency_tracking"
2925 if test "x$enable_dependency_tracking" != xno
; then
2926 am_depcomp
="$ac_aux_dir/depcomp"
2931 if test "x$enable_dependency_tracking" != xno; then
2942 depcc
="$CC" am_compiler_list
=
2944 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2945 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2946 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2950 # We make a subdir and do the tests there. Otherwise we can end up
2951 # making bogus files that we don't know about and never remove. For
2952 # instance it was reported that on HP-UX the gcc test will end up
2953 # making a dummy file named `D' -- because `-MD' means `put the output
2956 # Copy depcomp to subdir because otherwise we won't find it if we're
2957 # using a relative directory.
2958 cp "$am_depcomp" conftest.dir
2960 # We will build objects and dependencies in a subdirectory because
2961 # it helps to detect inapplicable dependency modes. For instance
2962 # both Tru64's cc and ICC support -MD to output dependencies as a
2963 # side effect of compilation, but ICC will put the dependencies in
2964 # the current directory while Tru64 will put them in the object
2968 am_cv_CC_dependencies_compiler_type
=none
2969 if test "$am_compiler_list" = ""; then
2970 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2972 for depmode
in $am_compiler_list; do
2973 # Setup a source with many dependencies, because some compilers
2974 # like to wrap large dependency lists on column 80 (with \), and
2975 # we should not choose a depcomp mode which is confused by this.
2977 # We need to recreate these files for each test, as the compiler may
2978 # overwrite some of them when testing with obscure command lines.
2979 # This happens at least with the AIX C compiler.
2981 for i
in 1 2 3 4 5 6; do
2982 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
2983 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2984 # Solaris 8's {/usr,}/bin/sh.
2985 touch sub
/conftst
$i.h
2987 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2991 # after this tag, mechanisms are not by side-effect, so they'll
2992 # only be used when explicitly requested
2993 if test "x$enable_dependency_tracking" = xyes
; then
3001 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3002 # mode. It turns out that the SunPro C++ compiler does not properly
3003 # handle `-M -o', and we need to detect this.
3004 if depmode
=$depmode \
3005 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3006 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3007 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3008 >/dev
/null
2>conftest.err
&&
3009 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3010 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3011 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3012 # icc doesn't choke on unknown options, it will just issue warnings
3013 # or remarks (even with -Werror). So we grep stderr for any message
3014 # that says an option was ignored or not supported.
3015 # When given -MP, icc 7.0 and 7.1 complain thusly:
3016 # icc: Command line warning: ignoring option '-M'; no argument required
3017 # The diagnosis changed in icc 8.0:
3018 # icc: Command line remark: option '-MP' not supported
3019 if (grep 'ignoring option' conftest.err ||
3020 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3021 am_cv_CC_dependencies_compiler_type
=$depmode
3030 am_cv_CC_dependencies_compiler_type
=none
3034 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3035 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3036 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3041 test "x$enable_dependency_tracking" != xno \
3042 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3044 am__fastdepCC_FALSE
='#'
3046 am__fastdepCC_TRUE
='#'
3047 am__fastdepCC_FALSE
=
3053 ac_cpp
='$CPP $CPPFLAGS'
3054 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3055 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3056 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3057 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3058 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3059 # On Suns, sometimes $CPP names a directory.
3060 if test -n "$CPP" && test -d "$CPP"; then
3063 if test -z "$CPP"; then
3064 if test "${ac_cv_prog_CPP+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 # Double quotes because CPP needs to be expanded
3068 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3071 for ac_c_preproc_warn_flag
in '' yes
3073 # Use a header file that comes with gcc, so configuring glibc
3074 # with a fresh cross-compiler works.
3075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3076 # <limits.h> exists even on freestanding compilers.
3077 # On the NeXT, cc -E runs the code through the compiler's parser,
3078 # not just through cpp. "Syntax error" is here to catch this case.
3079 cat >conftest.
$ac_ext <<_ACEOF
3082 cat confdefs.h
>>conftest.
$ac_ext
3083 cat >>conftest.
$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3086 # include <limits.h>
3088 # include <assert.h>
3092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3093 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3095 grep -v '^ *+' conftest.er1
>conftest.err
3097 cat conftest.err
>&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } >/dev
/null
; then
3100 if test -s conftest.err
; then
3101 ac_cpp_err
=$ac_c_preproc_warn_flag
3102 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3109 if test -z "$ac_cpp_err"; then
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.
$ac_ext >&5
3115 # Broken: fails on valid input.
3118 rm -f conftest.err conftest.
$ac_ext
3120 # OK, works on sane cases. Now check whether non-existent headers
3121 # can be detected and how.
3122 cat >conftest.
$ac_ext <<_ACEOF
3125 cat confdefs.h
>>conftest.
$ac_ext
3126 cat >>conftest.
$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3128 #include <ac_nonexistent.h>
3130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3131 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3133 grep -v '^ *+' conftest.er1
>conftest.err
3135 cat conftest.err
>&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } >/dev
/null
; then
3138 if test -s conftest.err
; then
3139 ac_cpp_err
=$ac_c_preproc_warn_flag
3140 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3147 if test -z "$ac_cpp_err"; then
3148 # Broken: success on invalid input.
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.
$ac_ext >&5
3154 # Passes both tests.
3158 rm -f conftest.err conftest.
$ac_ext
3161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3162 rm -f conftest.err conftest.
$ac_ext
3163 if $ac_preproc_ok; then
3175 echo "$as_me:$LINENO: result: $CPP" >&5
3176 echo "${ECHO_T}$CPP" >&6
3178 for ac_c_preproc_warn_flag
in '' yes
3180 # Use a header file that comes with gcc, so configuring glibc
3181 # with a fresh cross-compiler works.
3182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3183 # <limits.h> exists even on freestanding compilers.
3184 # On the NeXT, cc -E runs the code through the compiler's parser,
3185 # not just through cpp. "Syntax error" is here to catch this case.
3186 cat >conftest.
$ac_ext <<_ACEOF
3189 cat confdefs.h
>>conftest.
$ac_ext
3190 cat >>conftest.
$ac_ext <<_ACEOF
3191 /* end confdefs.h. */
3193 # include <limits.h>
3195 # include <assert.h>
3199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3200 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3202 grep -v '^ *+' conftest.er1
>conftest.err
3204 cat conftest.err
>&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } >/dev
/null
; then
3207 if test -s conftest.err
; then
3208 ac_cpp_err
=$ac_c_preproc_warn_flag
3209 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3216 if test -z "$ac_cpp_err"; then
3219 echo "$as_me: failed program was:" >&5
3220 sed 's/^/| /' conftest.
$ac_ext >&5
3222 # Broken: fails on valid input.
3225 rm -f conftest.err conftest.
$ac_ext
3227 # OK, works on sane cases. Now check whether non-existent headers
3228 # can be detected and how.
3229 cat >conftest.
$ac_ext <<_ACEOF
3232 cat confdefs.h
>>conftest.
$ac_ext
3233 cat >>conftest.
$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3235 #include <ac_nonexistent.h>
3237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3238 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3240 grep -v '^ *+' conftest.er1
>conftest.err
3242 cat conftest.err
>&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } >/dev
/null
; then
3245 if test -s conftest.err
; then
3246 ac_cpp_err
=$ac_c_preproc_warn_flag
3247 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3254 if test -z "$ac_cpp_err"; then
3255 # Broken: success on invalid input.
3258 echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.
$ac_ext >&5
3261 # Passes both tests.
3265 rm -f conftest.err conftest.
$ac_ext
3268 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3269 rm -f conftest.err conftest.
$ac_ext
3270 if $ac_preproc_ok; then
3273 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3274 See \`config.log' for more details." >&5
3275 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3276 See \`config.log' for more details." >&2;}
3277 { (exit 1); exit 1; }; }
3281 ac_cpp
='$CPP $CPPFLAGS'
3282 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3287 echo "$as_me:$LINENO: checking for egrep" >&5
3288 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3289 if test "${ac_cv_prog_egrep+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3293 then ac_cv_prog_egrep
='grep -E'
3294 else ac_cv_prog_egrep
='egrep'
3297 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3298 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3299 EGREP
=$ac_cv_prog_egrep
3303 echo "$as_me:$LINENO: checking for AIX" >&5
3304 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3305 cat >conftest.
$ac_ext <<_ACEOF
3308 cat confdefs.h
>>conftest.
$ac_ext
3309 cat >>conftest.
$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3317 $EGREP "yes" >/dev
/null
2>&1; then
3318 echo "$as_me:$LINENO: result: yes" >&5
3319 echo "${ECHO_T}yes" >&6
3320 cat >>confdefs.h
<<\_ACEOF
3321 #define _ALL_SOURCE 1
3325 echo "$as_me:$LINENO: result: no" >&5
3326 echo "${ECHO_T}no" >&6
3331 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3332 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3333 if test "${ac_cv_header_stdc+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3336 cat >conftest.
$ac_ext <<_ACEOF
3339 cat confdefs.h
>>conftest.
$ac_ext
3340 cat >>conftest.
$ac_ext <<_ACEOF
3341 /* end confdefs.h. */
3355 rm -f conftest.
$ac_objext
3356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3357 (eval $ac_compile) 2>conftest.er1
3359 grep -v '^ *+' conftest.er1
>conftest.err
3361 cat conftest.err
>&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } &&
3364 { ac_try
='test -z "$ac_c_werror_flag"
3365 || test ! -s conftest.err'
3366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; } &&
3371 { ac_try
='test -s conftest.$ac_objext'
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; }; then
3377 ac_cv_header_stdc
=yes
3379 echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.
$ac_ext >&5
3382 ac_cv_header_stdc
=no
3384 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3386 if test $ac_cv_header_stdc = yes; then
3387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3388 cat >conftest.
$ac_ext <<_ACEOF
3391 cat confdefs.h
>>conftest.
$ac_ext
3392 cat >>conftest.
$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3398 $EGREP "memchr" >/dev
/null
2>&1; then
3401 ac_cv_header_stdc
=no
3407 if test $ac_cv_header_stdc = yes; then
3408 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3409 cat >conftest.
$ac_ext <<_ACEOF
3412 cat confdefs.h
>>conftest.
$ac_ext
3413 cat >>conftest.
$ac_ext <<_ACEOF
3414 /* end confdefs.h. */
3418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3419 $EGREP "free" >/dev
/null
2>&1; then
3422 ac_cv_header_stdc
=no
3428 if test $ac_cv_header_stdc = yes; then
3429 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3430 if test "$cross_compiling" = yes; then
3433 cat >conftest.
$ac_ext <<_ACEOF
3436 cat confdefs.h
>>conftest.
$ac_ext
3437 cat >>conftest.
$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3440 #if ((' ' & 0x0FF) == 0x020)
3441 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3442 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3444 # define ISLOWER(c) \
3445 (('a' <= (c) && (c) <= 'i') \
3446 || ('j' <= (c) && (c) <= 'r') \
3447 || ('s' <= (c) && (c) <= 'z'))
3448 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3451 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3456 for (i = 0; i < 256; i++)
3457 if (XOR (islower (i), ISLOWER (i))
3458 || toupper (i) != TOUPPER (i))
3463 rm -f conftest
$ac_exeext
3464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3465 (eval $ac_link) 2>&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; }; then
3476 echo "$as_me: program exited with status $ac_status" >&5
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.
$ac_ext >&5
3481 ac_cv_header_stdc
=no
3483 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3487 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3488 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3489 if test $ac_cv_header_stdc = yes; then
3491 cat >>confdefs.h
<<\_ACEOF
3492 #define STDC_HEADERS 1
3497 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3507 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3508 inttypes.h stdint.h unistd.h
3510 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3511 echo "$as_me:$LINENO: checking for $ac_header" >&5
3512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3516 cat >conftest.
$ac_ext <<_ACEOF
3519 cat confdefs.h
>>conftest.
$ac_ext
3520 cat >>conftest.
$ac_ext <<_ACEOF
3521 /* end confdefs.h. */
3522 $ac_includes_default
3524 #include <$ac_header>
3526 rm -f conftest.
$ac_objext
3527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3528 (eval $ac_compile) 2>conftest.er1
3530 grep -v '^ *+' conftest.er1
>conftest.err
3532 cat conftest.err
>&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } &&
3535 { ac_try
='test -z "$ac_c_werror_flag"
3536 || test ! -s conftest.err'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; } &&
3542 { ac_try
='test -s conftest.$ac_objext'
3543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); }; }; then
3548 eval "$as_ac_Header=yes"
3550 echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.
$ac_ext >&5
3553 eval "$as_ac_Header=no"
3555 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3560 cat >>confdefs.h
<<_ACEOF
3561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3569 if test "${ac_cv_header_minix_config_h+set}" = set; then
3570 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3571 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3572 if test "${ac_cv_header_minix_config_h+set}" = set; then
3573 echo $ECHO_N "(cached) $ECHO_C" >&6
3575 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3576 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3578 # Is the header compilable?
3579 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3580 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3581 cat >conftest.
$ac_ext <<_ACEOF
3584 cat confdefs.h
>>conftest.
$ac_ext
3585 cat >>conftest.
$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3587 $ac_includes_default
3588 #include <minix/config.h>
3590 rm -f conftest.
$ac_objext
3591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3592 (eval $ac_compile) 2>conftest.er1
3594 grep -v '^ *+' conftest.er1
>conftest.err
3596 cat conftest.err
>&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } &&
3599 { ac_try
='test -z "$ac_c_werror_flag"
3600 || test ! -s conftest.err'
3601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; } &&
3606 { ac_try
='test -s conftest.$ac_objext'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; }; then
3612 ac_header_compiler
=yes
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.
$ac_ext >&5
3617 ac_header_compiler
=no
3619 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3620 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3621 echo "${ECHO_T}$ac_header_compiler" >&6
3623 # Is the header present?
3624 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3625 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3626 cat >conftest.
$ac_ext <<_ACEOF
3629 cat confdefs.h
>>conftest.
$ac_ext
3630 cat >>conftest.
$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3632 #include <minix/config.h>
3634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3635 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3637 grep -v '^ *+' conftest.er1
>conftest.err
3639 cat conftest.err
>&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); } >/dev
/null
; then
3642 if test -s conftest.err
; then
3643 ac_cpp_err
=$ac_c_preproc_warn_flag
3644 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3651 if test -z "$ac_cpp_err"; then
3652 ac_header_preproc
=yes
3654 echo "$as_me: failed program was:" >&5
3655 sed 's/^/| /' conftest.
$ac_ext >&5
3657 ac_header_preproc
=no
3659 rm -f conftest.err conftest.
$ac_ext
3660 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3661 echo "${ECHO_T}$ac_header_preproc" >&6
3663 # So? What about this header?
3664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3666 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3667 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3668 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3669 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3670 ac_header_preproc
=yes
3673 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3674 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3675 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3676 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3677 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3678 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3679 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3680 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3681 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3682 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3683 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3684 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3687 ## -------------------------------------------------- ##
3688 ## Report this to courier-users@lists.sourceforge.net ##
3689 ## -------------------------------------------------- ##
3692 sed "s/^/$as_me: WARNING: /" >&2
3695 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3696 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3697 if test "${ac_cv_header_minix_config_h+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 ac_cv_header_minix_config_h
=$ac_header_preproc
3702 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3703 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3706 if test $ac_cv_header_minix_config_h = yes; then
3713 if test "$MINIX" = yes; then
3715 cat >>confdefs.h
<<\_ACEOF
3716 #define _POSIX_SOURCE 1
3720 cat >>confdefs.h
<<\_ACEOF
3721 #define _POSIX_1_SOURCE 2
3725 cat >>confdefs.h
<<\_ACEOF
3731 for ac_prog
in gawk mawk nawk
awk
3733 # Extract the first word of "$ac_prog", so it can be a program name with args.
3734 set dummy
$ac_prog; ac_word
=$2
3735 echo "$as_me:$LINENO: checking for $ac_word" >&5
3736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737 if test "${ac_cv_prog_AWK+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 if test -n "$AWK"; then
3741 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3743 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3747 test -z "$as_dir" && as_dir
=.
3748 for ac_exec_ext
in '' $ac_executable_extensions; do
3749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3750 ac_cv_prog_AWK
="$ac_prog"
3751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3760 if test -n "$AWK"; then
3761 echo "$as_me:$LINENO: result: $AWK" >&5
3762 echo "${ECHO_T}$AWK" >&6
3764 echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6
3768 test -n "$AWK" && break
3772 ac_cpp
='$CXXCPP $CPPFLAGS'
3773 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3774 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3776 if test -n "$ac_tool_prefix"; then
3777 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
3779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3780 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3781 echo "$as_me:$LINENO: checking for $ac_word" >&5
3782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3783 if test "${ac_cv_prog_CXX+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 if test -n "$CXX"; then
3787 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3793 test -z "$as_dir" && as_dir
=.
3794 for ac_exec_ext
in '' $ac_executable_extensions; do
3795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3796 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 if test -n "$CXX"; then
3807 echo "$as_me:$LINENO: result: $CXX" >&5
3808 echo "${ECHO_T}$CXX" >&6
3810 echo "$as_me:$LINENO: result: no" >&5
3811 echo "${ECHO_T}no" >&6
3814 test -n "$CXX" && break
3817 if test -z "$CXX"; then
3819 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
3821 # Extract the first word of "$ac_prog", so it can be a program name with args.
3822 set dummy
$ac_prog; ac_word
=$2
3823 echo "$as_me:$LINENO: checking for $ac_word" >&5
3824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3825 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 if test -n "$ac_ct_CXX"; then
3829 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3831 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3835 test -z "$as_dir" && as_dir
=.
3836 for ac_exec_ext
in '' $ac_executable_extensions; do
3837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3838 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3847 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3848 if test -n "$ac_ct_CXX"; then
3849 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3850 echo "${ECHO_T}$ac_ct_CXX" >&6
3852 echo "$as_me:$LINENO: result: no" >&5
3853 echo "${ECHO_T}no" >&6
3856 test -n "$ac_ct_CXX" && break
3858 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
3864 # Provide some information about the compiler.
3865 echo "$as_me:$LINENO:" \
3866 "checking for C++ compiler version" >&5
3867 ac_compiler
=`set X $ac_compile; echo $2`
3868 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3869 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }
3873 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3874 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }
3878 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3879 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }
3884 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3885 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3886 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 cat >conftest.
$ac_ext <<_ACEOF
3892 cat confdefs.h
>>conftest.
$ac_ext
3893 cat >>conftest.
$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3907 rm -f conftest.
$ac_objext
3908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3909 (eval $ac_compile) 2>conftest.er1
3911 grep -v '^ *+' conftest.er1
>conftest.err
3913 cat conftest.err
>&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } &&
3916 { ac_try
='test -z "$ac_cxx_werror_flag"
3917 || test ! -s conftest.err'
3918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); }; } &&
3923 { ac_try
='test -s conftest.$ac_objext'
3924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); }; }; then
3931 echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.
$ac_ext >&5
3936 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3937 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3940 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3941 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3942 GXX
=`test $ac_compiler_gnu = yes && echo yes`
3943 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3944 ac_save_CXXFLAGS
=$CXXFLAGS
3946 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3947 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3948 if test "${ac_cv_prog_cxx_g+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 cat >conftest.
$ac_ext <<_ACEOF
3954 cat confdefs.h
>>conftest.
$ac_ext
3955 cat >>conftest.
$ac_ext <<_ACEOF
3956 /* end confdefs.h. */
3966 rm -f conftest.
$ac_objext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3968 (eval $ac_compile) 2>conftest.er1
3970 grep -v '^ *+' conftest.er1
>conftest.err
3972 cat conftest.err
>&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } &&
3975 { ac_try
='test -z "$ac_cxx_werror_flag"
3976 || test ! -s conftest.err'
3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; } &&
3982 { ac_try
='test -s conftest.$ac_objext'
3983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }; }; then
3988 ac_cv_prog_cxx_g
=yes
3990 echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.
$ac_ext >&5
3995 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3997 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3998 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3999 if test "$ac_test_CXXFLAGS" = set; then
4000 CXXFLAGS
=$ac_save_CXXFLAGS
4001 elif test $ac_cv_prog_cxx_g = yes; then
4002 if test "$GXX" = yes; then
4008 if test "$GXX" = yes; then
4014 for ac_declaration
in \
4016 'extern "C" void std::exit (int) throw (); using std::exit;' \
4017 'extern "C" void std::exit (int); using std::exit;' \
4018 'extern "C" void exit (int) throw ();' \
4019 'extern "C" void exit (int);' \
4022 cat >conftest.
$ac_ext <<_ACEOF
4025 cat confdefs.h
>>conftest.
$ac_ext
4026 cat >>conftest.
$ac_ext <<_ACEOF
4027 /* end confdefs.h. */
4038 rm -f conftest.
$ac_objext
4039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4040 (eval $ac_compile) 2>conftest.er1
4042 grep -v '^ *+' conftest.er1
>conftest.err
4044 cat conftest.err
>&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } &&
4047 { ac_try
='test -z "$ac_cxx_werror_flag"
4048 || test ! -s conftest.err'
4049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; } &&
4054 { ac_try
='test -s conftest.$ac_objext'
4055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); }; }; then
4062 echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.
$ac_ext >&5
4067 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4068 cat >conftest.
$ac_ext <<_ACEOF
4071 cat confdefs.h
>>conftest.
$ac_ext
4072 cat >>conftest.
$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4083 rm -f conftest.
$ac_objext
4084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4085 (eval $ac_compile) 2>conftest.er1
4087 grep -v '^ *+' conftest.er1
>conftest.err
4089 cat conftest.err
>&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } &&
4092 { ac_try
='test -z "$ac_cxx_werror_flag"
4093 || test ! -s conftest.err'
4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; } &&
4099 { ac_try
='test -s conftest.$ac_objext'
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
4107 echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.
$ac_ext >&5
4111 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4114 if test -n "$ac_declaration"; then
4115 echo '#ifdef __cplusplus' >>confdefs.h
4116 echo $ac_declaration >>confdefs.h
4117 echo '#endif' >>confdefs.h
4121 ac_cpp
='$CPP $CPPFLAGS'
4122 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4123 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4124 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4126 depcc
="$CXX" am_compiler_list
=
4128 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4129 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4130 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4133 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4134 # We make a subdir and do the tests there. Otherwise we can end up
4135 # making bogus files that we don't know about and never remove. For
4136 # instance it was reported that on HP-UX the gcc test will end up
4137 # making a dummy file named `D' -- because `-MD' means `put the output
4140 # Copy depcomp to subdir because otherwise we won't find it if we're
4141 # using a relative directory.
4142 cp "$am_depcomp" conftest.dir
4144 # We will build objects and dependencies in a subdirectory because
4145 # it helps to detect inapplicable dependency modes. For instance
4146 # both Tru64's cc and ICC support -MD to output dependencies as a
4147 # side effect of compilation, but ICC will put the dependencies in
4148 # the current directory while Tru64 will put them in the object
4152 am_cv_CXX_dependencies_compiler_type
=none
4153 if test "$am_compiler_list" = ""; then
4154 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4156 for depmode
in $am_compiler_list; do
4157 # Setup a source with many dependencies, because some compilers
4158 # like to wrap large dependency lists on column 80 (with \), and
4159 # we should not choose a depcomp mode which is confused by this.
4161 # We need to recreate these files for each test, as the compiler may
4162 # overwrite some of them when testing with obscure command lines.
4163 # This happens at least with the AIX C compiler.
4165 for i
in 1 2 3 4 5 6; do
4166 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4167 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4168 # Solaris 8's {/usr,}/bin/sh.
4169 touch sub
/conftst
$i.h
4171 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4175 # after this tag, mechanisms are not by side-effect, so they'll
4176 # only be used when explicitly requested
4177 if test "x$enable_dependency_tracking" = xyes
; then
4185 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4186 # mode. It turns out that the SunPro C++ compiler does not properly
4187 # handle `-M -o', and we need to detect this.
4188 if depmode
=$depmode \
4189 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
4190 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4191 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
4192 >/dev
/null
2>conftest.err
&&
4193 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4194 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
4195 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4196 # icc doesn't choke on unknown options, it will just issue warnings
4197 # or remarks (even with -Werror). So we grep stderr for any message
4198 # that says an option was ignored or not supported.
4199 # When given -MP, icc 7.0 and 7.1 complain thusly:
4200 # icc: Command line warning: ignoring option '-M'; no argument required
4201 # The diagnosis changed in icc 8.0:
4202 # icc: Command line remark: option '-MP' not supported
4203 if (grep 'ignoring option' conftest.err ||
4204 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4205 am_cv_CXX_dependencies_compiler_type
=$depmode
4214 am_cv_CXX_dependencies_compiler_type
=none
4218 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4219 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4220 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
4225 test "x$enable_dependency_tracking" != xno \
4226 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
4227 am__fastdepCXX_TRUE
=
4228 am__fastdepCXX_FALSE
='#'
4230 am__fastdepCXX_TRUE
='#'
4231 am__fastdepCXX_FALSE
=
4236 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4237 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
4238 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 ac_check_lib_save_LIBS
=$LIBS
4242 LIBS
="-lcposix $LIBS"
4243 cat >conftest.
$ac_ext <<_ACEOF
4246 cat confdefs.h
>>conftest.
$ac_ext
4247 cat >>conftest.
$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4250 /* Override any gcc2 internal prototype to avoid an error. */
4254 /* We use char because int might match the return type of a gcc2
4255 builtin and then its argument prototype would still apply. */
4265 rm -f conftest.
$ac_objext conftest
$ac_exeext
4266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4267 (eval $ac_link) 2>conftest.er1
4269 grep -v '^ *+' conftest.er1
>conftest.err
4271 cat conftest.err
>&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } &&
4274 { ac_try
='test -z "$ac_c_werror_flag"
4275 || test ! -s conftest.err'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; } &&
4281 { ac_try
='test -s conftest$ac_exeext'
4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; }; then
4287 ac_cv_lib_cposix_strerror
=yes
4289 echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.
$ac_ext >&5
4292 ac_cv_lib_cposix_strerror
=no
4294 rm -f conftest.err conftest.
$ac_objext \
4295 conftest
$ac_exeext conftest.
$ac_ext
4296 LIBS
=$ac_check_lib_save_LIBS
4298 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4299 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
4300 if test $ac_cv_lib_cposix_strerror = yes; then
4301 LIBS
="$LIBS -lcposix"
4306 # Check whether --enable-shared or --disable-shared was given.
4307 if test "${enable_shared+set}" = set; then
4308 enableval
="$enable_shared"
4309 p
=${PACKAGE-default}
4311 yes) enable_shared
=yes ;;
4312 no
) enable_shared
=no
;;
4315 # Look at the argument we got. We use all the common list separators.
4316 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
4317 for pkg
in $enableval; do
4319 if test "X$pkg" = "X$p"; then
4330 # Check whether --enable-static or --disable-static was given.
4331 if test "${enable_static+set}" = set; then
4332 enableval
="$enable_static"
4333 p
=${PACKAGE-default}
4335 yes) enable_static
=yes ;;
4336 no
) enable_static
=no
;;
4339 # Look at the argument we got. We use all the common list separators.
4340 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
4341 for pkg
in $enableval; do
4343 if test "X$pkg" = "X$p"; then
4354 # Check whether --enable-fast-install or --disable-fast-install was given.
4355 if test "${enable_fast_install+set}" = set; then
4356 enableval
="$enable_fast_install"
4357 p
=${PACKAGE-default}
4359 yes) enable_fast_install
=yes ;;
4360 no
) enable_fast_install
=no
;;
4362 enable_fast_install
=no
4363 # Look at the argument we got. We use all the common list separators.
4364 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
4365 for pkg
in $enableval; do
4367 if test "X$pkg" = "X$p"; then
4368 enable_fast_install
=yes
4375 enable_fast_install
=yes
4378 # Make sure we can run config.sub.
4379 $ac_config_sub sun4
>/dev
/null
2>&1 ||
4380 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4381 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4382 { (exit 1); exit 1; }; }
4384 echo "$as_me:$LINENO: checking build system type" >&5
4385 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4386 if test "${ac_cv_build+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 ac_cv_build_alias
=$build_alias
4390 test -z "$ac_cv_build_alias" &&
4391 ac_cv_build_alias
=`$ac_config_guess`
4392 test -z "$ac_cv_build_alias" &&
4393 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4394 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4395 { (exit 1); exit 1; }; }
4396 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
4397 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4398 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4399 { (exit 1); exit 1; }; }
4402 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4403 echo "${ECHO_T}$ac_cv_build" >&6
4405 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4406 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4407 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4410 echo "$as_me:$LINENO: checking host system type" >&5
4411 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4412 if test "${ac_cv_host+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 ac_cv_host_alias
=$host_alias
4416 test -z "$ac_cv_host_alias" &&
4417 ac_cv_host_alias
=$ac_cv_build_alias
4418 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
4419 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4420 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4421 { (exit 1); exit 1; }; }
4424 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4425 echo "${ECHO_T}$ac_cv_host" >&6
4427 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4428 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4429 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4432 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4433 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4434 if test "${lt_cv_path_SED+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 # Loop through the user's path and test for sed and gsed.
4438 # Then use that list of sed's as ones to test for truncation.
4439 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4443 test -z "$as_dir" && as_dir
=.
4444 for lt_ac_prog
in sed gsed
; do
4445 for ac_exec_ext
in '' $ac_executable_extensions; do
4446 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4447 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4455 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4456 # along with /bin/sed that truncates output.
4457 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
4458 test ! -f $lt_ac_sed && continue
4459 cat /dev
/null
> conftest.
in
4461 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
4462 # Check for GNU sed and select it if it is found.
4463 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
4464 lt_cv_path_SED
=$lt_ac_sed
4468 cat conftest.
in conftest.
in >conftest.tmp
4469 mv conftest.tmp conftest.
in
4470 cp conftest.
in conftest.
nl
4472 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
4473 cmp -s conftest.out conftest.
nl ||
break
4474 # 10000 chars as input seems more than enough
4475 test $lt_ac_count -gt 10 && break
4476 lt_ac_count
=`expr $lt_ac_count + 1`
4477 if test $lt_ac_count -gt $lt_ac_max; then
4478 lt_ac_max
=$lt_ac_count
4479 lt_cv_path_SED
=$lt_ac_sed
4488 echo "$as_me:$LINENO: result: $SED" >&5
4489 echo "${ECHO_T}$SED" >&6
4492 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4493 if test "${with_gnu_ld+set}" = set; then
4494 withval
="$with_gnu_ld"
4495 test "$withval" = no || with_gnu_ld
=yes
4500 if test "$GCC" = yes; then
4501 # Check if gcc -print-prog-name=ld gives a path.
4502 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4503 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4506 # gcc leaves a trailing carriage return which upsets mingw
4507 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4509 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4512 # Accept absolute paths.
4514 re_direlt
='/[^/][^/]*/\.\./'
4515 # Canonicalize the pathname of ld
4516 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
4517 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
4518 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4520 test -z "$LD" && LD
="$ac_prog"
4523 # If it fails, then pretend we aren't using GCC.
4527 # If it is relative, then search for the first ld in PATH.
4531 elif test "$with_gnu_ld" = yes; then
4532 echo "$as_me:$LINENO: checking for GNU ld" >&5
4533 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4535 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4536 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4538 if test "${lt_cv_path_LD+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 if test -z "$LD"; then
4542 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4543 for ac_dir
in $PATH; do
4545 test -z "$ac_dir" && ac_dir
=.
4546 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4547 lt_cv_path_LD
="$ac_dir/$ac_prog"
4548 # Check to see if the program is GNU ld. I'd rather use --version,
4549 # but apparently some variants of GNU ld only accept -v.
4550 # Break only if it was the GNU/non-GNU ld that we prefer.
4551 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4552 *GNU
* |
*'with BFD'*)
4553 test "$with_gnu_ld" != no
&& break
4556 test "$with_gnu_ld" != yes && break
4563 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4568 if test -n "$LD"; then
4569 echo "$as_me:$LINENO: result: $LD" >&5
4570 echo "${ECHO_T}$LD" >&6
4572 echo "$as_me:$LINENO: result: no" >&5
4573 echo "${ECHO_T}no" >&6
4575 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4576 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4577 { (exit 1); exit 1; }; }
4578 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4579 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4580 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4584 case `$LD -v 2>&1 </dev/null` in
4585 *GNU
* |
*'with BFD'*)
4586 lt_cv_prog_gnu_ld
=yes
4589 lt_cv_prog_gnu_ld
=no
4593 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4594 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4595 with_gnu_ld
=$lt_cv_prog_gnu_ld
4598 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4599 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4600 if test "${lt_cv_ld_reload_flag+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 lt_cv_ld_reload_flag
='-r'
4605 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4606 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4607 reload_flag
=$lt_cv_ld_reload_flag
4608 case $reload_flag in
4610 *) reload_flag
=" $reload_flag" ;;
4612 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
4615 if test "$GCC" = yes; then
4616 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4618 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
4623 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4624 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4625 if test "${lt_cv_path_NM+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4628 if test -n "$NM"; then
4629 # Let the user override the test.
4632 lt_nm_to_check
="${ac_tool_prefix}nm"
4633 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4634 lt_nm_to_check
="$lt_nm_to_check nm"
4636 for lt_tmp_nm
in $lt_nm_to_check; do
4637 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4638 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4640 test -z "$ac_dir" && ac_dir
=.
4641 tmp_nm
="$ac_dir/$lt_tmp_nm"
4642 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4643 # Check to see if the nm accepts a BSD-compat flag.
4644 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4645 # nm: unknown option "B" ignored
4646 # Tru64's nm complains that /dev/null is an invalid object file
4647 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4648 */dev
/null
* |
*'Invalid file or object type'*)
4649 lt_cv_path_NM
="$tmp_nm -B"
4653 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4655 lt_cv_path_NM
="$tmp_nm -p"
4659 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4660 continue # so that we can try to find one that supports BSD flags
4669 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
4672 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4673 echo "${ECHO_T}$lt_cv_path_NM" >&6
4676 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4677 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4679 if test "$LN_S" = "ln -s"; then
4680 echo "$as_me:$LINENO: result: yes" >&5
4681 echo "${ECHO_T}yes" >&6
4683 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4684 echo "${ECHO_T}no, using $LN_S" >&6
4687 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4688 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4689 if test "${lt_cv_deplibs_check_method+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 lt_cv_file_magic_cmd
='$MAGIC_CMD'
4693 lt_cv_file_magic_test_file
=
4694 lt_cv_deplibs_check_method
='unknown'
4695 # Need to set the preceding variable on all platforms that support
4696 # interlibrary dependencies.
4697 # 'none' -- dependencies not supported.
4698 # `unknown' -- same as none, but documents that we really don't know.
4699 # 'pass_all' -- all dependencies passed with no checks.
4700 # 'test_compile' -- check by making test program.
4701 # 'file_magic [[regex]]' -- check by looking for files in library path
4702 # which responds to the $file_magic_cmd with a given extended regex.
4703 # If you have `file' or equivalent on your system and you're not sure
4704 # whether `pass_all' will *always* work, you probably want this one.
4708 lt_cv_deplibs_check_method
=pass_all
4712 lt_cv_deplibs_check_method
=pass_all
4716 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4717 lt_cv_file_magic_cmd
='/usr/bin/file -L'
4718 lt_cv_file_magic_test_file
=/shlib
/libc.so
4722 # func_win32_libid is a shell function defined in ltmain.sh
4723 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
4724 lt_cv_file_magic_cmd
='func_win32_libid'
4728 # Base MSYS/MinGW do not provide the 'file' command needed by
4729 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4730 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
4731 lt_cv_file_magic_cmd
='$OBJDUMP -f'
4734 darwin
* | rhapsody
*)
4735 lt_cv_deplibs_check_method
=pass_all
4738 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
4739 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4742 # Not sure whether the presence of OpenBSD here was a mistake.
4743 # Let's accept both of them until this is cleared up.
4744 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4745 lt_cv_file_magic_cmd
=/usr
/bin
/file
4746 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
4750 lt_cv_deplibs_check_method
=pass_all
4755 lt_cv_deplibs_check_method
=pass_all
4758 hpux10.20
* | hpux11
*)
4759 lt_cv_file_magic_cmd
=/usr
/bin
/file
4762 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4763 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
4766 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]'
4767 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
4770 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4771 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
4777 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4778 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
4781 irix5
* | irix6
* | nonstopux
*)
4783 *-32|
*"-32 ") libmagic
=32-bit;;
4784 *-n32|
*"-n32 ") libmagic
=N32
;;
4785 *-64|
*"-64 ") libmagic
=64-bit;;
4786 *) libmagic
=never-match
;;
4788 lt_cv_deplibs_check_method
=pass_all
4791 # This must be Linux ELF.
4793 lt_cv_deplibs_check_method
=pass_all
4797 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4798 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4800 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4805 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4806 lt_cv_file_magic_cmd
=/usr
/bin
/file
4807 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
4811 lt_cv_deplibs_check_method
=unknown
4815 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4816 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4818 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4822 osf3
* | osf4
* | osf5
*)
4823 lt_cv_deplibs_check_method
=pass_all
4827 lt_cv_deplibs_check_method
=pass_all
4831 case $host_vendor in
4833 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]'
4834 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
4837 lt_cv_deplibs_check_method
=pass_all
4840 lt_cv_file_magic_cmd
='/bin/file'
4841 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4844 lt_cv_file_magic_cmd
='/bin/file'
4845 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4846 lt_cv_file_magic_test_file
=/lib
/libc.so
4849 lt_cv_deplibs_check_method
=pass_all
4852 lt_cv_deplibs_check_method
=pass_all
4857 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
4858 lt_cv_deplibs_check_method
=pass_all
4863 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4864 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4865 file_magic_cmd
=$lt_cv_file_magic_cmd
4866 deplibs_check_method
=$lt_cv_deplibs_check_method
4867 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
4872 # If no C compiler was specified, use CC.
4875 # If no C compiler flags were specified, use CFLAGS.
4876 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
4878 # Allow CC to be a program name with arguments.
4881 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4882 if test "${enable_libtool_lock+set}" = set; then
4883 enableval
="$enable_libtool_lock"
4886 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
4888 # Some flags need to be propagated to the compiler or linker for good
4892 # Find out which ABI we are using.
4893 echo 'int i;' > conftest.
$ac_ext
4894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4895 (eval $ac_compile) 2>&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; then
4899 case `/usr/bin/file conftest.$ac_objext` in
4911 # Find out which ABI we are using.
4912 echo '#line 4912 "configure"' > conftest.
$ac_ext
4913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4914 (eval $ac_compile) 2>&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; then
4918 if test "$lt_cv_prog_gnu_ld" = yes; then
4919 case `/usr/bin/file conftest.$ac_objext` in
4921 LD
="${LD-ld} -melf32bsmip"
4924 LD
="${LD-ld} -melf32bmipn32"
4927 LD
="${LD-ld} -melf64bmip"
4931 case `/usr/bin/file conftest.$ac_objext` in
4947 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
4948 # Find out which ABI we are using.
4949 echo 'int i;' > conftest.
$ac_ext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4951 (eval $ac_compile) 2>&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; then
4955 case `/usr/bin/file conftest.o` in
4959 LD
="${LD-ld} -m elf_i386"
4961 ppc64-
*linux
*|powerpc64-
*linux
*)
4962 LD
="${LD-ld} -m elf32ppclinux"
4965 LD
="${LD-ld} -m elf_s390"
4968 LD
="${LD-ld} -m elf32_sparc"
4975 LD
="${LD-ld} -m elf_x86_64"
4977 ppc
*-*linux
*|powerpc
*-*linux
*)
4978 LD
="${LD-ld} -m elf64ppc"
4981 LD
="${LD-ld} -m elf64_s390"
4984 LD
="${LD-ld} -m elf64_sparc"
4994 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4995 SAVE_CFLAGS
="$CFLAGS"
4996 CFLAGS
="$CFLAGS -belf"
4997 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4998 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4999 if test "${lt_cv_cc_needs_belf+set}" = set; then
5000 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 ac_cpp
='$CPP $CPPFLAGS'
5004 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5005 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5006 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5008 cat >conftest.
$ac_ext <<_ACEOF
5011 cat confdefs.h
>>conftest.
$ac_ext
5012 cat >>conftest.
$ac_ext <<_ACEOF
5013 /* end confdefs.h. */
5023 rm -f conftest.
$ac_objext conftest
$ac_exeext
5024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5025 (eval $ac_link) 2>conftest.er1
5027 grep -v '^ *+' conftest.er1
>conftest.err
5029 cat conftest.err
>&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } &&
5032 { ac_try
='test -z "$ac_c_werror_flag"
5033 || test ! -s conftest.err'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; } &&
5039 { ac_try
='test -s conftest$ac_exeext'
5040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; }; then
5045 lt_cv_cc_needs_belf
=yes
5047 echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.
$ac_ext >&5
5050 lt_cv_cc_needs_belf
=no
5052 rm -f conftest.err conftest.
$ac_objext \
5053 conftest
$ac_exeext conftest.
$ac_ext
5055 ac_cpp
='$CPP $CPPFLAGS'
5056 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5057 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5058 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5061 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5062 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5063 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
5064 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5065 CFLAGS
="$SAVE_CFLAGS"
5069 # Find out which ABI we are using.
5070 echo 'int i;' > conftest.
$ac_ext
5071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5072 (eval $ac_compile) 2>&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; then
5076 case `/usr/bin/file conftest.o` in
5078 case $lt_cv_prog_gnu_ld in
5079 yes*) LD
="${LD-ld} -m elf64_sparc" ;;
5080 *) LD
="${LD-ld} -64" ;;
5091 need_locks
="$enable_libtool_lock"
5095 for ac_header
in dlfcn.h
5097 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5099 echo "$as_me:$LINENO: checking for $ac_header" >&5
5100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5107 # Is the header compilable?
5108 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5110 cat >conftest.
$ac_ext <<_ACEOF
5113 cat confdefs.h
>>conftest.
$ac_ext
5114 cat >>conftest.
$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5116 $ac_includes_default
5117 #include <$ac_header>
5119 rm -f conftest.
$ac_objext
5120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5121 (eval $ac_compile) 2>conftest.er1
5123 grep -v '^ *+' conftest.er1
>conftest.err
5125 cat conftest.err
>&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } &&
5128 { ac_try
='test -z "$ac_c_werror_flag"
5129 || test ! -s conftest.err'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; } &&
5135 { ac_try
='test -s conftest.$ac_objext'
5136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; }; then
5141 ac_header_compiler
=yes
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.
$ac_ext >&5
5146 ac_header_compiler
=no
5148 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5150 echo "${ECHO_T}$ac_header_compiler" >&6
5152 # Is the header present?
5153 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5155 cat >conftest.
$ac_ext <<_ACEOF
5158 cat confdefs.h
>>conftest.
$ac_ext
5159 cat >>conftest.
$ac_ext <<_ACEOF
5160 /* end confdefs.h. */
5161 #include <$ac_header>
5163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5164 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5166 grep -v '^ *+' conftest.er1
>conftest.err
5168 cat conftest.err
>&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } >/dev
/null
; then
5171 if test -s conftest.err
; then
5172 ac_cpp_err
=$ac_c_preproc_warn_flag
5173 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5180 if test -z "$ac_cpp_err"; then
5181 ac_header_preproc
=yes
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.
$ac_ext >&5
5186 ac_header_preproc
=no
5188 rm -f conftest.err conftest.
$ac_ext
5189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5190 echo "${ECHO_T}$ac_header_preproc" >&6
5192 # So? What about this header?
5193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5199 ac_header_preproc
=yes
5202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5216 ## -------------------------------------------------- ##
5217 ## Report this to courier-users@lists.sourceforge.net ##
5218 ## -------------------------------------------------- ##
5221 sed "s/^/$as_me: WARNING: /" >&2
5224 echo "$as_me:$LINENO: checking for $ac_header" >&5
5225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 eval "$as_ac_Header=\$ac_header_preproc"
5231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5236 cat >>confdefs.h
<<_ACEOF
5237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5246 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5247 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5248 (test "X$CXX" != "Xg++"))) ; then
5250 ac_cpp
='$CXXCPP $CPPFLAGS'
5251 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5252 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5253 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5254 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5255 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5256 if test -z "$CXXCPP"; then
5257 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 # Double quotes because CXXCPP needs to be expanded
5261 for CXXCPP
in "$CXX -E" "/lib/cpp"
5264 for ac_cxx_preproc_warn_flag
in '' yes
5266 # Use a header file that comes with gcc, so configuring glibc
5267 # with a fresh cross-compiler works.
5268 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5269 # <limits.h> exists even on freestanding compilers.
5270 # On the NeXT, cc -E runs the code through the compiler's parser,
5271 # not just through cpp. "Syntax error" is here to catch this case.
5272 cat >conftest.
$ac_ext <<_ACEOF
5275 cat confdefs.h
>>conftest.
$ac_ext
5276 cat >>conftest.
$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5279 # include <limits.h>
5281 # include <assert.h>
5285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5286 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5288 grep -v '^ *+' conftest.er1
>conftest.err
5290 cat conftest.err
>&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } >/dev
/null
; then
5293 if test -s conftest.err
; then
5294 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5295 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5302 if test -z "$ac_cpp_err"; then
5305 echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.
$ac_ext >&5
5308 # Broken: fails on valid input.
5311 rm -f conftest.err conftest.
$ac_ext
5313 # OK, works on sane cases. Now check whether non-existent headers
5314 # can be detected and how.
5315 cat >conftest.
$ac_ext <<_ACEOF
5318 cat confdefs.h
>>conftest.
$ac_ext
5319 cat >>conftest.
$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5321 #include <ac_nonexistent.h>
5323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5324 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5326 grep -v '^ *+' conftest.er1
>conftest.err
5328 cat conftest.err
>&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } >/dev
/null
; then
5331 if test -s conftest.err
; then
5332 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5333 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5340 if test -z "$ac_cpp_err"; then
5341 # Broken: success on invalid input.
5344 echo "$as_me: failed program was:" >&5
5345 sed 's/^/| /' conftest.
$ac_ext >&5
5347 # Passes both tests.
5351 rm -f conftest.err conftest.
$ac_ext
5354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5355 rm -f conftest.err conftest.
$ac_ext
5356 if $ac_preproc_ok; then
5361 ac_cv_prog_CXXCPP
=$CXXCPP
5364 CXXCPP
=$ac_cv_prog_CXXCPP
5366 ac_cv_prog_CXXCPP
=$CXXCPP
5368 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5369 echo "${ECHO_T}$CXXCPP" >&6
5371 for ac_cxx_preproc_warn_flag
in '' yes
5373 # Use a header file that comes with gcc, so configuring glibc
5374 # with a fresh cross-compiler works.
5375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5376 # <limits.h> exists even on freestanding compilers.
5377 # On the NeXT, cc -E runs the code through the compiler's parser,
5378 # not just through cpp. "Syntax error" is here to catch this case.
5379 cat >conftest.
$ac_ext <<_ACEOF
5382 cat confdefs.h
>>conftest.
$ac_ext
5383 cat >>conftest.
$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5386 # include <limits.h>
5388 # include <assert.h>
5392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5393 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5395 grep -v '^ *+' conftest.er1
>conftest.err
5397 cat conftest.err
>&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } >/dev
/null
; then
5400 if test -s conftest.err
; then
5401 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5402 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5409 if test -z "$ac_cpp_err"; then
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.
$ac_ext >&5
5415 # Broken: fails on valid input.
5418 rm -f conftest.err conftest.
$ac_ext
5420 # OK, works on sane cases. Now check whether non-existent headers
5421 # can be detected and how.
5422 cat >conftest.
$ac_ext <<_ACEOF
5425 cat confdefs.h
>>conftest.
$ac_ext
5426 cat >>conftest.
$ac_ext <<_ACEOF
5427 /* end confdefs.h. */
5428 #include <ac_nonexistent.h>
5430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5431 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5433 grep -v '^ *+' conftest.er1
>conftest.err
5435 cat conftest.err
>&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } >/dev
/null
; then
5438 if test -s conftest.err
; then
5439 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5440 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5447 if test -z "$ac_cpp_err"; then
5448 # Broken: success on invalid input.
5451 echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.
$ac_ext >&5
5454 # Passes both tests.
5458 rm -f conftest.err conftest.
$ac_ext
5461 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5462 rm -f conftest.err conftest.
$ac_ext
5463 if $ac_preproc_ok; then
5466 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5467 See \`config.log' for more details." >&5
5468 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5469 See \`config.log' for more details." >&2;}
5470 { (exit 1); exit 1; }; }
5474 ac_cpp
='$CXXCPP $CPPFLAGS'
5475 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5476 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5477 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5483 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5484 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5485 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
5486 if test -n "$ac_tool_prefix"; then
5487 for ac_prog
in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5490 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5491 echo "$as_me:$LINENO: checking for $ac_word" >&5
5492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5493 if test "${ac_cv_prog_F77+set}" = set; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5496 if test -n "$F77"; then
5497 ac_cv_prog_F77
="$F77" # Let the user override the test.
5499 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5503 test -z "$as_dir" && as_dir
=.
5504 for ac_exec_ext
in '' $ac_executable_extensions; do
5505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5506 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
5507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5516 if test -n "$F77"; then
5517 echo "$as_me:$LINENO: result: $F77" >&5
5518 echo "${ECHO_T}$F77" >&6
5520 echo "$as_me:$LINENO: result: no" >&5
5521 echo "${ECHO_T}no" >&6
5524 test -n "$F77" && break
5527 if test -z "$F77"; then
5529 for ac_prog
in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5531 # Extract the first word of "$ac_prog", so it can be a program name with args.
5532 set dummy
$ac_prog; ac_word
=$2
5533 echo "$as_me:$LINENO: checking for $ac_word" >&5
5534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5535 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 if test -n "$ac_ct_F77"; then
5539 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
5541 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5545 test -z "$as_dir" && as_dir
=.
5546 for ac_exec_ext
in '' $ac_executable_extensions; do
5547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548 ac_cv_prog_ac_ct_F77
="$ac_prog"
5549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5557 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
5558 if test -n "$ac_ct_F77"; then
5559 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5560 echo "${ECHO_T}$ac_ct_F77" >&6
5562 echo "$as_me:$LINENO: result: no" >&5
5563 echo "${ECHO_T}no" >&6
5566 test -n "$ac_ct_F77" && break
5573 # Provide some information about the compiler.
5574 echo "$as_me:5574:" \
5575 "checking for Fortran 77 compiler version" >&5
5576 ac_compiler
=`set X $ac_compile; echo $2`
5577 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5578 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); }
5582 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5583 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); }
5587 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5588 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); }
5594 # If we don't use `.F' as extension, the preprocessor is not run on the
5595 # input file. (Note that this only needs to work for GNU compilers.)
5598 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5599 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5600 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5603 cat >conftest.
$ac_ext <<_ACEOF
5611 rm -f conftest.
$ac_objext
5612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5613 (eval $ac_compile) 2>conftest.er1
5615 grep -v '^ *+' conftest.er1
>conftest.err
5617 cat conftest.err
>&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } &&
5620 { ac_try
='test -z "$ac_f77_werror_flag"
5621 || test ! -s conftest.err'
5622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); }; } &&
5627 { ac_try
='test -s conftest.$ac_objext'
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; }; then
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.
$ac_ext >&5
5640 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5641 ac_cv_f77_compiler_gnu
=$ac_compiler_gnu
5644 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5645 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5647 ac_test_FFLAGS
=${FFLAGS+set}
5648 ac_save_FFLAGS
=$FFLAGS
5650 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5651 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5652 if test "${ac_cv_prog_f77_g+set}" = set; then
5653 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 cat >conftest.
$ac_ext <<_ACEOF
5661 rm -f conftest.
$ac_objext
5662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5663 (eval $ac_compile) 2>conftest.er1
5665 grep -v '^ *+' conftest.er1
>conftest.err
5667 cat conftest.err
>&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } &&
5670 { ac_try
='test -z "$ac_f77_werror_flag"
5671 || test ! -s conftest.err'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; } &&
5677 { ac_try
='test -s conftest.$ac_objext'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; }; then
5683 ac_cv_prog_f77_g
=yes
5685 echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.
$ac_ext >&5
5690 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5693 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5694 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5695 if test "$ac_test_FFLAGS" = set; then
5696 FFLAGS
=$ac_save_FFLAGS
5697 elif test $ac_cv_prog_f77_g = yes; then
5698 if test "x$ac_cv_f77_compiler_gnu" = xyes
; then
5704 if test "x$ac_cv_f77_compiler_gnu" = xyes
; then
5711 G77
=`test $ac_compiler_gnu = yes && echo yes`
5713 ac_cpp
='$CPP $CPPFLAGS'
5714 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5715 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5716 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5720 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5722 # find the maximum length of command line arguments
5723 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5724 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5725 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 # On DJGPP, this test can blow up pretty badly due to problems in libc
5734 # (any single argument exceeding 2000 bytes causes a buffer overrun
5735 # during glob expansion). Even if it were fixed, the result of this
5736 # check would be larger than it should be.
5737 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5741 # Under GNU Hurd, this test is not required because there is
5742 # no limit to the length of command line arguments.
5743 # Libtool will interpret -1 as no limit whatsoever
5744 lt_cv_sys_max_cmd_len
=-1;
5748 # On Win9x/ME, this test blows up -- it succeeds, but takes
5749 # about 5 minutes as the teststring grows exponentially.
5750 # Worse, since 9x/ME are not pre-emptively multitasking,
5751 # you end up with a "frozen" computer, even though with patience
5752 # the test eventually succeeds (with a max line length of 256k).
5753 # Instead, let's just punt: use the minimum linelength reported by
5754 # all of the supported platforms: 8192 (on NT/2K/XP).
5755 lt_cv_sys_max_cmd_len
=8192;
5759 # On AmigaOS with pdksh, this test takes hours, literally.
5760 # So we just punt and use a minimum line length of 8192.
5761 lt_cv_sys_max_cmd_len
=8192;
5764 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5765 # This has been around since 386BSD, at least. Likely further.
5766 if test -x /sbin
/sysctl
; then
5767 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5768 elif test -x /usr
/sbin
/sysctl
; then
5769 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5771 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5773 # And add a safety zone
5774 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5775 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5779 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5780 lt_cv_sys_max_cmd_len
=196608
5784 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5785 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5786 # nice to cause kernel panics so lets avoid the loop below.
5787 # First set a reasonable default.
5788 lt_cv_sys_max_cmd_len
=16384
5790 if test -x /sbin
/sysconfig
; then
5791 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5792 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5797 lt_cv_sys_max_cmd_len
=102400
5799 sysv5
* | sco5v6
* | sysv4.2uw2
*)
5800 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5801 if test -n "$kargmax"; then
5802 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
5804 lt_cv_sys_max_cmd_len
=32768
5808 # If test is not a shell built-in, we'll probably end up computing a
5809 # maximum length that is only half of the actual maximum length, but
5811 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5812 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5813 = "XX$teststring") >/dev
/null
2>&1 &&
5814 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
5815 lt_cv_sys_max_cmd_len
=$new_result &&
5816 test $i != 17 # 1/2 MB should be enough
5819 teststring
=$teststring$teststring
5822 # Add a significant safety factor because C++ compilers can tack on massive
5823 # amounts of additional arguments before passing them to the linker.
5824 # It appears as though 1/2 is a usable value.
5825 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5831 if test -n $lt_cv_sys_max_cmd_len ; then
5832 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5833 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5835 echo "$as_me:$LINENO: result: none" >&5
5836 echo "${ECHO_T}none" >&6
5842 # Check for command to grab the raw symbol name followed by C symbol from nm.
5843 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5844 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5845 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5849 # These are sane defaults that work on at least a few old systems.
5850 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5852 # Character class describing NM global symbol codes.
5853 symcode
='[BCDEGRST]'
5855 # Regexp to match symbols that can be accessed directly from C.
5856 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
5858 # Transform an extracted symbol line into a proper C declaration
5859 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5861 # Transform an extracted symbol line into symbol name and symbol address
5862 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'"
5864 # Define system-specific variables.
5869 cygwin
* | mingw
* | pw32
*)
5870 symcode
='[ABCDGISTW]'
5872 hpux
*) # Its linker distinguishes data from code symbols
5873 if test "$host_cpu" = ia64
; then
5874 symcode
='[ABCDEGRST]'
5876 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5877 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'"
5880 if test "$host_cpu" = ia64
; then
5881 symcode
='[ABCDGIRSTW]'
5882 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5883 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'"
5887 symcode
='[BCDEGRST]'
5890 symcode
='[BCDEGQRST]'
5901 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
5909 # Handle CRLF in mingw tool chain
5913 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5917 # If we're using GNU nm, then use its standard symbol codes.
5918 case `$NM -V 2>&1` in
5919 *GNU
* |
*'with BFD'*)
5920 symcode
='[ABCDGIRSTW]' ;;
5923 # Try without a prefix undercore, then with it.
5924 for ac_symprfx
in "" "_"; do
5926 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5927 symxfrm
="\\1 $ac_symprfx\\2 \\2"
5929 # Write the raw and C identifiers.
5930 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5932 # Check to see that the pipe works correctly.
5936 cat > conftest.
$ac_ext <<EOF
5941 void nm_test_func(){}
5945 int main(){nm_test_var='a';nm_test_func();return(0);}
5948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5949 (eval $ac_compile) 2>&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; then
5953 # Now try to grab the symbols.
5955 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5956 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } && test -s "$nlist"; then
5960 # Try sorting and uniquifying the output.
5961 if sort "$nlist" |
uniq > "$nlist"T
; then
5962 mv -f "$nlist"T
"$nlist"
5967 # Make sure that we snagged all the symbols we need.
5968 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
5969 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
5970 cat <<EOF > conftest.$ac_ext
5976 # Now generate the symbol file.
5977 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5979 cat <<EOF >> conftest.$ac_ext
5980 #if defined (__STDC__) && __STDC__
5981 # define lt_ptr_t void *
5983 # define lt_ptr_t char *
5987 /* The mapping between symbol names and symbols. */
5992 lt_preloaded_symbols[] =
5995 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
5996 cat <<\EOF
>> conftest.
$ac_ext
6004 # Now try linking the two files.
6005 mv conftest.
$ac_objext conftstm.
$ac_objext
6006 lt_save_LIBS
="$LIBS"
6007 lt_save_CFLAGS
="$CFLAGS"
6008 LIBS
="conftstm.$ac_objext"
6009 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6011 (eval $ac_link) 2>&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
6017 LIBS
="$lt_save_LIBS"
6018 CFLAGS
="$lt_save_CFLAGS"
6020 echo "cannot find nm_test_func in $nlist" >&5
6023 echo "cannot find nm_test_var in $nlist" >&5
6026 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6029 echo "$progname: failed program was:" >&5
6030 cat conftest.
$ac_ext >&5
6032 rm -f conftest
* conftst
*
6034 # Do not use the global_symbol_pipe unless it works.
6035 if test "$pipe_works" = yes; then
6038 lt_cv_sys_global_symbol_pipe
=
6044 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6045 lt_cv_sys_global_symbol_to_cdecl
=
6047 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6048 echo "$as_me:$LINENO: result: failed" >&5
6049 echo "${ECHO_T}failed" >&6
6051 echo "$as_me:$LINENO: result: ok" >&5
6052 echo "${ECHO_T}ok" >&6
6055 echo "$as_me:$LINENO: checking for objdir" >&5
6056 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6057 if test "${lt_cv_objdir+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 rm -f .libs
2>/dev
/null
6061 mkdir .libs
2>/dev
/null
6062 if test -d .libs
; then
6065 # MS-DOS does not allow filenames that begin with a dot.
6068 rmdir .libs
2>/dev
/null
6070 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6071 echo "${ECHO_T}$lt_cv_objdir" >&6
6072 objdir
=$lt_cv_objdir
6080 # AIX sometimes has problems with the GCC collect2 program. For some
6081 # reason, if we set the COLLECT_NAMES environment variable, the problems
6082 # vanish in a puff of smoke.
6083 if test "X${COLLECT_NAMES+set}" != Xset
; then
6085 export COLLECT_NAMES
6090 # Sed substitution that helps us do robust quoting. It backslashifies
6091 # metacharacters that are still active within double-quoted strings.
6092 Xsed
='sed -e 1s/^X//'
6093 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
6095 # Same as above, but do not quote variable references.
6096 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
6098 # Sed substitution to delay expansion of an escaped shell variable in a
6099 # double_quote_subst'ed string.
6100 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
6102 # Sed substitution to avoid accidental globbing in evaled expressions
6103 no_glob_subst
='s/\*/\\\*/g'
6109 default_ofile
=libtool
6110 can_build_shared
=yes
6112 # All known linkers require a `.a' archive for static linking (except MSVC,
6113 # which needs '.lib').
6115 ltmain
="$ac_aux_dir/ltmain.sh"
6116 ofile
="$default_ofile"
6117 with_gnu_ld
="$lt_cv_prog_gnu_ld"
6119 if test -n "$ac_tool_prefix"; then
6120 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6121 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6122 echo "$as_me:$LINENO: checking for $ac_word" >&5
6123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6124 if test "${ac_cv_prog_AR+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6127 if test -n "$AR"; then
6128 ac_cv_prog_AR
="$AR" # Let the user override the test.
6130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6134 test -z "$as_dir" && as_dir
=.
6135 for ac_exec_ext
in '' $ac_executable_extensions; do
6136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6137 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6147 if test -n "$AR"; then
6148 echo "$as_me:$LINENO: result: $AR" >&5
6149 echo "${ECHO_T}$AR" >&6
6151 echo "$as_me:$LINENO: result: no" >&5
6152 echo "${ECHO_T}no" >&6
6156 if test -z "$ac_cv_prog_AR"; then
6158 # Extract the first word of "ar", so it can be a program name with args.
6159 set dummy
ar; ac_word
=$2
6160 echo "$as_me:$LINENO: checking for $ac_word" >&5
6161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6162 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 if test -n "$ac_ct_AR"; then
6166 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6172 test -z "$as_dir" && as_dir
=.
6173 for ac_exec_ext
in '' $ac_executable_extensions; do
6174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6175 ac_cv_prog_ac_ct_AR
="ar"
6176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6182 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR
="false"
6185 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6186 if test -n "$ac_ct_AR"; then
6187 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6188 echo "${ECHO_T}$ac_ct_AR" >&6
6190 echo "$as_me:$LINENO: result: no" >&5
6191 echo "${ECHO_T}no" >&6
6199 if test -n "$ac_tool_prefix"; then
6200 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6201 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6202 echo "$as_me:$LINENO: checking for $ac_word" >&5
6203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6204 if test "${ac_cv_prog_RANLIB+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 if test -n "$RANLIB"; then
6208 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6214 test -z "$as_dir" && as_dir
=.
6215 for ac_exec_ext
in '' $ac_executable_extensions; do
6216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6217 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6226 RANLIB
=$ac_cv_prog_RANLIB
6227 if test -n "$RANLIB"; then
6228 echo "$as_me:$LINENO: result: $RANLIB" >&5
6229 echo "${ECHO_T}$RANLIB" >&6
6231 echo "$as_me:$LINENO: result: no" >&5
6232 echo "${ECHO_T}no" >&6
6236 if test -z "$ac_cv_prog_RANLIB"; then
6237 ac_ct_RANLIB
=$RANLIB
6238 # Extract the first word of "ranlib", so it can be a program name with args.
6239 set dummy ranlib
; ac_word
=$2
6240 echo "$as_me:$LINENO: checking for $ac_word" >&5
6241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6242 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6243 echo $ECHO_N "(cached) $ECHO_C" >&6
6245 if test -n "$ac_ct_RANLIB"; then
6246 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6252 test -z "$as_dir" && as_dir
=.
6253 for ac_exec_ext
in '' $ac_executable_extensions; do
6254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6255 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
6265 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6266 if test -n "$ac_ct_RANLIB"; then
6267 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6268 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6270 echo "$as_me:$LINENO: result: no" >&5
6271 echo "${ECHO_T}no" >&6
6274 RANLIB
=$ac_ct_RANLIB
6276 RANLIB
="$ac_cv_prog_RANLIB"
6279 if test -n "$ac_tool_prefix"; then
6280 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6281 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6282 echo "$as_me:$LINENO: checking for $ac_word" >&5
6283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6284 if test "${ac_cv_prog_STRIP+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 if test -n "$STRIP"; then
6288 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6294 test -z "$as_dir" && as_dir
=.
6295 for ac_exec_ext
in '' $ac_executable_extensions; do
6296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6297 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 STRIP
=$ac_cv_prog_STRIP
6307 if test -n "$STRIP"; then
6308 echo "$as_me:$LINENO: result: $STRIP" >&5
6309 echo "${ECHO_T}$STRIP" >&6
6311 echo "$as_me:$LINENO: result: no" >&5
6312 echo "${ECHO_T}no" >&6
6316 if test -z "$ac_cv_prog_STRIP"; then
6318 # Extract the first word of "strip", so it can be a program name with args.
6319 set dummy strip
; ac_word
=$2
6320 echo "$as_me:$LINENO: checking for $ac_word" >&5
6321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6322 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 if test -n "$ac_ct_STRIP"; then
6326 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6328 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6332 test -z "$as_dir" && as_dir
=.
6333 for ac_exec_ext
in '' $ac_executable_extensions; do
6334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6335 ac_cv_prog_ac_ct_STRIP
="strip"
6336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6342 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
6345 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6346 if test -n "$ac_ct_STRIP"; then
6347 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6348 echo "${ECHO_T}$ac_ct_STRIP" >&6
6350 echo "$as_me:$LINENO: result: no" >&5
6351 echo "${ECHO_T}no" >&6
6356 STRIP
="$ac_cv_prog_STRIP"
6361 old_CFLAGS
="$CFLAGS"
6363 # Set sane defaults for various variables
6364 test -z "$AR" && AR
=ar
6365 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6366 test -z "$AS" && AS
=as
6367 test -z "$CC" && CC
=cc
6368 test -z "$LTCC" && LTCC
=$CC
6369 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
6370 test -z "$DLLTOOL" && DLLTOOL
=dlltool
6371 test -z "$LD" && LD
=ld
6372 test -z "$LN_S" && LN_S
="ln -s"
6373 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
6374 test -z "$NM" && NM
=nm
6375 test -z "$SED" && SED
=sed
6376 test -z "$OBJDUMP" && OBJDUMP
=objdump
6377 test -z "$RANLIB" && RANLIB
=:
6378 test -z "$STRIP" && STRIP
=:
6379 test -z "$ac_objext" && ac_objext
=o
6381 # Determine commands to create old-style static archives.
6382 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6383 old_postinstall_cmds
='chmod 644 $oldlib'
6384 old_postuninstall_cmds
=
6386 if test -n "$RANLIB"; then
6389 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6392 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6395 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6398 for cc_temp
in $compiler""; do
6400 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
6401 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
6406 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6409 # Only perform the check for file, if the check method requires it
6410 case $deplibs_check_method in
6412 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6413 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6414 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6415 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6423 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6424 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6425 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6426 for ac_dir
in $ac_dummy; do
6428 test -z "$ac_dir" && ac_dir
=.
6429 if test -f $ac_dir/${ac_tool_prefix}file; then
6430 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
6431 if test -n "$file_magic_test_file"; then
6432 case $deplibs_check_method in
6434 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6435 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6436 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6437 $EGREP "$file_magic_regex" > /dev
/null
; then
6442 *** Warning: the command libtool uses to detect shared libraries,
6443 *** $file_magic_cmd, produces output that libtool cannot recognize.
6444 *** The result is that libtool may fail to recognize shared libraries
6445 *** as such. This will affect the creation of libtool libraries that
6446 *** depend on shared libraries, but programs linked with such libtool
6447 *** libraries will work regardless of this problem. Nevertheless, you
6448 *** may want to report the problem to your system manager and/or to
6449 *** bug-libtool@gnu.org
6459 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6464 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6465 if test -n "$MAGIC_CMD"; then
6466 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6467 echo "${ECHO_T}$MAGIC_CMD" >&6
6469 echo "$as_me:$LINENO: result: no" >&5
6470 echo "${ECHO_T}no" >&6
6473 if test -z "$lt_cv_path_MAGIC_CMD"; then
6474 if test -n "$ac_tool_prefix"; then
6475 echo "$as_me:$LINENO: checking for file" >&5
6476 echo $ECHO_N "checking for file... $ECHO_C" >&6
6477 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6485 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6486 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6487 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6488 for ac_dir
in $ac_dummy; do
6490 test -z "$ac_dir" && ac_dir
=.
6491 if test -f $ac_dir/file; then
6492 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
6493 if test -n "$file_magic_test_file"; then
6494 case $deplibs_check_method in
6496 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6497 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6498 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6499 $EGREP "$file_magic_regex" > /dev
/null
; then
6504 *** Warning: the command libtool uses to detect shared libraries,
6505 *** $file_magic_cmd, produces output that libtool cannot recognize.
6506 *** The result is that libtool may fail to recognize shared libraries
6507 *** as such. This will affect the creation of libtool libraries that
6508 *** depend on shared libraries, but programs linked with such libtool
6509 *** libraries will work regardless of this problem. Nevertheless, you
6510 *** may want to report the problem to your system manager and/or to
6511 *** bug-libtool@gnu.org
6521 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6526 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6527 if test -n "$MAGIC_CMD"; then
6528 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6529 echo "${ECHO_T}$MAGIC_CMD" >&6
6531 echo "$as_me:$LINENO: result: no" >&5
6532 echo "${ECHO_T}no" >&6
6547 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6548 if test "${enable_libtool_lock+set}" = set; then
6549 enableval
="$enable_libtool_lock"
6552 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6555 # Check whether --with-pic or --without-pic was given.
6556 if test "${with_pic+set}" = set; then
6562 test -z "$pic_mode" && pic_mode
=default
6564 # Use C for the default configuration in the libtool script
6568 ac_cpp
='$CPP $CPPFLAGS'
6569 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6570 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6571 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6574 # Source file extension for C test sources.
6577 # Object file extension for compiled C test sources.
6581 # Code to be used in simple compile tests
6582 lt_simple_compile_test_code
="int some_variable = 0;\n"
6584 # Code to be used in simple link tests
6585 lt_simple_link_test_code
='int main(){return(0);}\n'
6588 # If no C compiler was specified, use CC.
6591 # If no C compiler flags were specified, use CFLAGS.
6592 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
6594 # Allow CC to be a program name with arguments.
6598 # save warnings/boilerplate of simple test code
6599 ac_outfile
=conftest.
$ac_objext
6600 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
6601 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
6602 _lt_compiler_boilerplate
=`cat conftest.err`
6605 ac_outfile
=conftest.
$ac_objext
6606 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
6607 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
6608 _lt_linker_boilerplate
=`cat conftest.err`
6613 lt_prog_compiler_no_builtin_flag
=
6615 if test "$GCC" = yes; then
6616 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
6619 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6620 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6621 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 lt_cv_prog_compiler_rtti_exceptions
=no
6625 ac_outfile
=conftest.
$ac_objext
6626 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6627 lt_compiler_flag
="-fno-rtti -fno-exceptions"
6628 # Insert the option either (1) after the last *FLAGS variable, or
6629 # (2) before a word containing "conftest.", or (3) at the end.
6630 # Note that $ac_compile itself does not contain backslashes and begins
6631 # with a dollar sign (not a hyphen), so the echo should work correctly.
6632 # The option is referenced via a variable to avoid confusing sed.
6633 lt_compile
=`echo "$ac_compile" | $SED \
6634 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6635 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6636 -e 's:$: $lt_compiler_flag:'`
6637 (eval echo "\"\$as_me:6637: $lt_compile\"" >&5)
6638 (eval "$lt_compile" 2>conftest.err
)
6640 cat conftest.err
>&5
6641 echo "$as_me:6641: \$? = $ac_status" >&5
6642 if (exit $ac_status) && test -s "$ac_outfile"; then
6643 # The compiler can only warn and ignore the option if not recognized
6644 # So say no if there are warnings other than the usual output.
6645 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
6646 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
6647 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
6648 lt_cv_prog_compiler_rtti_exceptions
=yes
6654 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6655 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6657 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
6658 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6665 lt_prog_compiler_wl
=
6666 lt_prog_compiler_pic
=
6667 lt_prog_compiler_static
=
6669 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6670 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6672 if test "$GCC" = yes; then
6673 lt_prog_compiler_wl
='-Wl,'
6674 lt_prog_compiler_static
='-static'
6678 # All AIX code is PIC.
6679 if test "$host_cpu" = ia64
; then
6680 # AIX 5 now supports IA64 processor
6681 lt_prog_compiler_static
='-Bstatic'
6686 # FIXME: we need at least 68020 code to build shared libraries, but
6687 # adding the `-m68020' flag to GCC prevents building anything better,
6689 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
6692 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
6693 # PIC is the default for these OSes.
6696 mingw
* | pw32
* | os2
*)
6697 # This hack is so that the source file can tell whether it is being
6698 # built for inclusion in a dll (and should export symbols for example).
6699 lt_prog_compiler_pic
='-DDLL_EXPORT'
6702 darwin
* | rhapsody
*)
6703 # PIC is the default on this platform
6704 # Common symbols not allowed in MH_DYLIB files
6705 lt_prog_compiler_pic
='-fno-common'
6709 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6710 # Instead, we relocate shared libraries at runtime.
6714 # Just because we use GCC doesn't mean we suddenly get shared libraries
6715 # on systems that don't support them.
6716 lt_prog_compiler_can_build_shared
=no
6721 if test -d /usr
/nec
; then
6722 lt_prog_compiler_pic
=-Kconform_pic
6727 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6734 lt_prog_compiler_pic
='-fPIC'
6740 lt_prog_compiler_pic
='-fPIC'
6744 # PORTME Check for flag to pass linker flags through the system compiler.
6747 lt_prog_compiler_wl
='-Wl,'
6748 if test "$host_cpu" = ia64
; then
6749 # AIX 5 now supports IA64 processor
6750 lt_prog_compiler_static
='-Bstatic'
6752 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
6756 # PIC is the default on this platform
6757 # Common symbols not allowed in MH_DYLIB files
6758 case $cc_basename in
6760 lt_prog_compiler_pic
='-qnocommon'
6761 lt_prog_compiler_wl
='-Wl,'
6766 mingw
* | pw32
* | os2
*)
6767 # This hack is so that the source file can tell whether it is being
6768 # built for inclusion in a dll (and should export symbols for example).
6769 lt_prog_compiler_pic
='-DDLL_EXPORT'
6772 hpux9
* | hpux10
* | hpux11
*)
6773 lt_prog_compiler_wl
='-Wl,'
6774 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6781 lt_prog_compiler_pic
='+Z'
6784 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6785 lt_prog_compiler_static
='${wl}-a ${wl}archive'
6788 irix5
* | irix6
* | nonstopux
*)
6789 lt_prog_compiler_wl
='-Wl,'
6790 # PIC (with -KPIC) is the default.
6791 lt_prog_compiler_static
='-non_shared'
6795 lt_prog_compiler_pic
='-KPIC'
6796 lt_prog_compiler_static
='-Bstatic'
6800 case $cc_basename in
6802 lt_prog_compiler_wl
='-Wl,'
6803 lt_prog_compiler_pic
='-KPIC'
6804 lt_prog_compiler_static
='-static'
6806 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
6807 # Portland Group compilers (*not* the Pentium gcc compiler,
6808 # which looks to be a dead project)
6809 lt_prog_compiler_wl
='-Wl,'
6810 lt_prog_compiler_pic
='-fpic'
6811 lt_prog_compiler_static
='-Bstatic'
6814 lt_prog_compiler_wl
='-Wl,'
6815 # All Alpha code is PIC.
6816 lt_prog_compiler_static
='-non_shared'
6821 osf3
* | osf4
* | osf5
*)
6822 lt_prog_compiler_wl
='-Wl,'
6823 # All OSF/1 code is PIC.
6824 lt_prog_compiler_static
='-non_shared'
6828 lt_prog_compiler_pic
='-KPIC'
6829 lt_prog_compiler_static
='-Bstatic'
6830 case $cc_basename in
6832 lt_prog_compiler_wl
='-Qoption ld ';;
6834 lt_prog_compiler_wl
='-Wl,';;
6839 lt_prog_compiler_wl
='-Qoption ld '
6840 lt_prog_compiler_pic
='-PIC'
6841 lt_prog_compiler_static
='-Bstatic'
6844 sysv4 | sysv4.2uw2
* | sysv4.3
*)
6845 lt_prog_compiler_wl
='-Wl,'
6846 lt_prog_compiler_pic
='-KPIC'
6847 lt_prog_compiler_static
='-Bstatic'
6851 if test -d /usr
/nec
;then
6852 lt_prog_compiler_pic
='-Kconform_pic'
6853 lt_prog_compiler_static
='-Bstatic'
6857 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
6858 lt_prog_compiler_wl
='-Wl,'
6859 lt_prog_compiler_pic
='-KPIC'
6860 lt_prog_compiler_static
='-Bstatic'
6864 lt_prog_compiler_wl
='-Wl,'
6865 lt_prog_compiler_can_build_shared
=no
6869 lt_prog_compiler_pic
='-pic'
6870 lt_prog_compiler_static
='-Bstatic'
6874 lt_prog_compiler_can_build_shared
=no
6879 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6880 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6883 # Check to make sure the PIC flag actually works.
6885 if test -n "$lt_prog_compiler_pic"; then
6887 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6888 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6889 if test "${lt_prog_compiler_pic_works+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 lt_prog_compiler_pic_works
=no
6893 ac_outfile
=conftest.
$ac_objext
6894 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6895 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
6896 # Insert the option either (1) after the last *FLAGS variable, or
6897 # (2) before a word containing "conftest.", or (3) at the end.
6898 # Note that $ac_compile itself does not contain backslashes and begins
6899 # with a dollar sign (not a hyphen), so the echo should work correctly.
6900 # The option is referenced via a variable to avoid confusing sed.
6901 lt_compile
=`echo "$ac_compile" | $SED \
6902 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6904 -e 's:$: $lt_compiler_flag:'`
6905 (eval echo "\"\$as_me:6905: $lt_compile\"" >&5)
6906 (eval "$lt_compile" 2>conftest.err
)
6908 cat conftest.err
>&5
6909 echo "$as_me:6909: \$? = $ac_status" >&5
6910 if (exit $ac_status) && test -s "$ac_outfile"; then
6911 # The compiler can only warn and ignore the option if not recognized
6912 # So say no if there are warnings other than the usual output.
6913 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
6914 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
6915 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
6916 lt_prog_compiler_pic_works
=yes
6922 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6923 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6925 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
6926 case $lt_prog_compiler_pic in
6928 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
6931 lt_prog_compiler_pic
=
6932 lt_prog_compiler_can_build_shared
=no
6937 # For platforms which do not support PIC, -DPIC is meaningless:
6939 lt_prog_compiler_pic
=
6942 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
6947 # Check to make sure the static flag actually works.
6949 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
6950 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6951 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6952 if test "${lt_prog_compiler_static_works+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 lt_prog_compiler_static_works
=no
6956 save_LDFLAGS
="$LDFLAGS"
6957 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
6958 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
6959 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
6960 # The linker can only warn and ignore the option if not recognized
6961 # So say no if there are warnings
6962 if test -s conftest.err
; then
6963 # Append any errors to the config.log.
6964 cat conftest.err
1>&5
6965 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
6966 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
6967 if diff conftest.exp conftest.er2
>/dev
/null
; then
6968 lt_prog_compiler_static_works
=yes
6971 lt_prog_compiler_static_works
=yes
6975 LDFLAGS
="$save_LDFLAGS"
6978 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6979 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6981 if test x
"$lt_prog_compiler_static_works" = xyes
; then
6984 lt_prog_compiler_static
=
6988 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6989 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6990 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 lt_cv_prog_compiler_c_o
=no
6994 $rm -r conftest
2>/dev
/null
6998 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7000 lt_compiler_flag
="-o out/conftest2.$ac_objext"
7001 # Insert the option either (1) after the last *FLAGS variable, or
7002 # (2) before a word containing "conftest.", or (3) at the end.
7003 # Note that $ac_compile itself does not contain backslashes and begins
7004 # with a dollar sign (not a hyphen), so the echo should work correctly.
7005 lt_compile
=`echo "$ac_compile" | $SED \
7006 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7007 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7008 -e 's:$: $lt_compiler_flag:'`
7009 (eval echo "\"\$as_me:7009: $lt_compile\"" >&5)
7010 (eval "$lt_compile" 2>out
/conftest.err
)
7012 cat out
/conftest.err
>&5
7013 echo "$as_me:7013: \$? = $ac_status" >&5
7014 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
7016 # The compiler can only warn and ignore the option if not recognized
7017 # So say no if there are warnings
7018 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
7019 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
7020 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
7021 lt_cv_prog_compiler_c_o
=yes
7026 # SGI C++ compiler will create directory out/ii_files/ for
7027 # template instantiation
7028 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
7029 $rm out
/* && rmdir out
7035 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7036 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7039 hard_links
="nottested"
7040 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
7041 # do not overwrite the value of need_locks provided by the user
7042 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7043 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7046 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7048 ln conftest.a conftest.b
2>&5 || hard_links
=no
7049 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7050 echo "$as_me:$LINENO: result: $hard_links" >&5
7051 echo "${ECHO_T}$hard_links" >&6
7052 if test "$hard_links" = no
; then
7053 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7054 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7061 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7062 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7065 allow_undefined_flag
=
7066 enable_shared_with_static_runtimes
=no
7068 archive_expsym_cmds
=
7069 old_archive_From_new_cmds
=
7070 old_archive_from_expsyms_cmds
=
7071 export_dynamic_flag_spec
=
7072 whole_archive_flag_spec
=
7073 thread_safe_flag_spec
=
7074 hardcode_libdir_flag_spec
=
7075 hardcode_libdir_flag_spec_ld
=
7076 hardcode_libdir_separator
=
7079 hardcode_shlibpath_var
=unsupported
7080 link_all_deplibs
=unknown
7081 hardcode_automatic
=no
7084 always_export_symbols
=no
7085 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7086 # include_expsyms should be a list of space-separated symbols to be *always*
7087 # included in the symbol list
7089 # exclude_expsyms can be an extended regexp of symbols to exclude
7090 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7091 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7092 # as well as any symbol that contains `d'.
7093 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
7094 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7095 # platforms (ab)use it in PIC code, but their linkers get confused if
7096 # the symbol is explicitly referenced. Since portable code cannot
7097 # rely on this symbol name, it's probably fine to never include it in
7098 # preloaded symbol tables.
7099 extract_expsyms_cmds
=
7100 # Just being paranoid about ensuring that cc_basename is set.
7101 for cc_temp
in $compiler""; do
7103 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7104 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7109 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7112 cygwin
* | mingw
* | pw32
*)
7113 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7114 # When not using gcc, we currently assume that we are using
7115 # Microsoft Visual C++.
7116 if test "$GCC" != yes; then
7121 # we just hope/assume this is gcc and not c89 (= MSVC++)
7130 if test "$with_gnu_ld" = yes; then
7131 # If archive_cmds runs LD, not CC, wlarc should be empty
7134 # Set some defaults for GNU ld with shared library support. These
7135 # are reset later if shared libraries are not supported. Putting them
7136 # here allows them to be overridden if necessary.
7137 runpath_var
=LD_RUN_PATH
7138 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
7139 export_dynamic_flag_spec
='${wl}--export-dynamic'
7140 # ancient GNU ld didn't support --whole-archive et. al.
7141 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
7142 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7144 whole_archive_flag_spec
=
7146 supports_anon_versioning
=no
7147 case `$LD -v 2>/dev/null` in
7148 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
7149 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
7150 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
7151 *\
2.11.
*) ;; # other 2.11 versions
7152 *) supports_anon_versioning
=yes ;;
7155 # See if GNU ld supports shared libraries.
7157 aix3
* | aix4
* | aix5
*)
7158 # On AIX/PPC, the GNU linker is very broken
7159 if test "$host_cpu" != ia64
; then
7163 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7164 *** to be unable to reliably create shared libraries on AIX.
7165 *** Therefore, libtool is disabling shared libraries support. If you
7166 *** really care for shared libraries, you may want to modify your PATH
7167 *** so that a non-GNU linker is found, and then restart.
7174 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)'
7175 hardcode_libdir_flag_spec
='-L$libdir'
7176 hardcode_minus_L
=yes
7178 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7179 # that the semantics of dynamic libraries on AmigaOS, at least up
7180 # to version 4, is to share data among multiple programs linked
7181 # with the same dynamic library. Since this doesn't match the
7182 # behavior of shared libraries on other platforms, we can't use
7188 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7189 allow_undefined_flag
=unsupported
7190 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7191 # support --undefined. This deserves some investigation. FIXME
7192 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7198 cygwin
* | mingw
* | pw32
*)
7199 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7200 # as there is no search path for DLLs.
7201 hardcode_libdir_flag_spec
='-L$libdir'
7202 allow_undefined_flag
=unsupported
7203 always_export_symbols
=no
7204 enable_shared_with_static_runtimes
=yes
7205 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7207 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
7208 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7209 # If the export-symbols file already is a .def file (1st line
7210 # is EXPORTS), use it as is; otherwise, prepend...
7211 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7212 cp $export_symbols $output_objdir/$soname.def;
7214 echo EXPORTS > $output_objdir/$soname.def;
7215 cat $export_symbols >> $output_objdir/$soname.def;
7217 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7225 hardcode_shlibpath_var
=no
7226 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7227 export_dynamic_flag_spec
='${wl}-E'
7228 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7229 # Instead, shared libraries are loaded at an image base (0x10000000 by
7230 # default) and relocated if they conflict, which is a slow very memory
7231 # consuming and fragmenting process. To avoid this, we pick a random,
7232 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7233 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7234 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7235 archive_expsym_cmds
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7239 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7241 case $cc_basename,$host_cpu in
7242 pgcc
*) # Portland Group C compiler
7243 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7244 tmp_addflag
=' $pic_flag'
7246 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
7247 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7248 tmp_addflag
=' $pic_flag -Mnomain' ;;
7249 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
7250 tmp_addflag
=' -i_dynamic' ;;
7251 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
7252 tmp_addflag
=' -i_dynamic -nofor_main' ;;
7253 ifc
* | ifort
*) # Intel Fortran compiler
7254 tmp_addflag
=' -nofor_main' ;;
7256 archive_cmds
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7258 if test $supports_anon_versioning = yes; then
7259 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
7260 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7261 $echo "local: *; };" >> $output_objdir/$libname.ver~
7262 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7270 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7271 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7274 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7275 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7280 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
7284 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7285 *** create shared libraries on Solaris systems. Therefore, libtool
7286 *** is disabling shared libraries support. We urge you to upgrade GNU
7287 *** binutils to release 2.9.1 or newer. Another option is to modify
7288 *** your PATH or compiler configuration so that the native linker is
7289 *** used, and then restart.
7292 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7293 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7294 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7300 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
7301 case `$LD -v 2>&1` in
7302 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
7306 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7307 *** reliably create shared libraries on SCO systems. Therefore, libtool
7308 *** is disabling shared libraries support. We urge you to upgrade GNU
7309 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7310 *** your PATH or compiler configuration so that the native linker is
7311 *** used, and then restart.
7316 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7317 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7318 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7319 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7328 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7331 hardcode_shlibpath_var
=no
7335 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7336 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7337 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7344 if test "$ld_shlibs" = no
; then
7346 hardcode_libdir_flag_spec
=
7347 export_dynamic_flag_spec
=
7348 whole_archive_flag_spec
=
7351 # PORTME fill in a description of your system's linker (not GNU ld)
7354 allow_undefined_flag
=unsupported
7355 always_export_symbols
=yes
7356 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'
7357 # Note: this linker hardcodes the directories in LIBPATH if there
7358 # are no directories specified by -L.
7359 hardcode_minus_L
=yes
7360 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7361 # Neither direct hardcoding nor static linking is supported with a
7363 hardcode_direct
=unsupported
7368 if test "$host_cpu" = ia64
; then
7369 # On IA64, the linker does run time linking by default, so we don't
7370 # have to do anything special.
7371 aix_use_runtimelinking
=no
7372 exp_sym_flag
='-Bexport'
7375 # If we're using GNU nm, then we don't want the "-C" option.
7376 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7377 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
7378 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'
7380 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'
7382 aix_use_runtimelinking
=no
7384 # Test if we are trying to use run time linking or normal
7385 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7386 # need to do runtime linking.
7387 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
7388 for ld_flag
in $LDFLAGS; do
7389 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
7390 aix_use_runtimelinking
=yes
7397 exp_sym_flag
='-bexport'
7398 no_entry_flag
='-bnoentry'
7401 # When large executables or shared objects are built, AIX ld can
7402 # have problems creating the table of contents. If linking a library
7403 # or program results in "error TOC overflow" add -mminimal-toc to
7404 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7405 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7409 hardcode_libdir_separator
=':'
7410 link_all_deplibs
=yes
7412 if test "$GCC" = yes; then
7413 case $host_os in aix4.
[012]|aix4.
[012].
*)
7414 # We only want to do this on AIX 4.2 and lower, the check
7415 # below for broken collect2 doesn't work under 4.3+
7416 collect2name
=`${CC} -print-prog-name=collect2`
7417 if test -f "$collect2name" && \
7418 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
7420 # We have reworked collect2
7423 # We have old collect2
7424 hardcode_direct
=unsupported
7425 # It fails to find uninstalled libraries when the uninstalled
7426 # path is not listed in the libpath. Setting hardcode_minus_L
7427 # to unsupported forces relinking
7428 hardcode_minus_L
=yes
7429 hardcode_libdir_flag_spec
='-L$libdir'
7430 hardcode_libdir_separator
=
7434 shared_flag
='-shared'
7435 if test "$aix_use_runtimelinking" = yes; then
7436 shared_flag
="$shared_flag "'${wl}-G'
7440 if test "$host_cpu" = ia64
; then
7441 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7442 # chokes on -Wl,-G. The following line is correct:
7445 if test "$aix_use_runtimelinking" = yes; then
7446 shared_flag
='${wl}-G'
7448 shared_flag
='${wl}-bM:SRE'
7453 # It seems that -bexpall does not export symbols beginning with
7454 # underscore (_), so it is better to generate a list of symbols to export.
7455 always_export_symbols
=yes
7456 if test "$aix_use_runtimelinking" = yes; then
7457 # Warning - without using the other runtime loading flags (-brtl),
7458 # -berok will link without error, but may produce a broken library.
7459 allow_undefined_flag
='-berok'
7460 # Determine the default libpath from the value encoded in an empty executable.
7461 cat >conftest.
$ac_ext <<_ACEOF
7464 cat confdefs.h
>>conftest.
$ac_ext
7465 cat >>conftest.
$ac_ext <<_ACEOF
7466 /* end confdefs.h. */
7476 rm -f conftest.
$ac_objext conftest
$ac_exeext
7477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7478 (eval $ac_link) 2>conftest.er1
7480 grep -v '^ *+' conftest.er1
>conftest.err
7482 cat conftest.err
>&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } &&
7485 { ac_try
='test -z "$ac_c_werror_flag"
7486 || test ! -s conftest.err'
7487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); }; } &&
7492 { ac_try
='test -s conftest$ac_exeext'
7493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); }; }; then
7499 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7501 # Check for a 64-bit object if we didn't find anything.
7502 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; }
7505 echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.
$ac_ext >&5
7509 rm -f conftest.err conftest.
$ac_objext \
7510 conftest
$ac_exeext conftest.
$ac_ext
7511 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
7513 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
7514 archive_expsym_cmds
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7516 if test "$host_cpu" = ia64
; then
7517 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
7518 allow_undefined_flag
="-z nodefs"
7519 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7521 # Determine the default libpath from the value encoded in an empty executable.
7522 cat >conftest.
$ac_ext <<_ACEOF
7525 cat confdefs.h
>>conftest.
$ac_ext
7526 cat >>conftest.
$ac_ext <<_ACEOF
7527 /* end confdefs.h. */
7537 rm -f conftest.
$ac_objext conftest
$ac_exeext
7538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7539 (eval $ac_link) 2>conftest.er1
7541 grep -v '^ *+' conftest.er1
>conftest.err
7543 cat conftest.err
>&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } &&
7546 { ac_try
='test -z "$ac_c_werror_flag"
7547 || test ! -s conftest.err'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; } &&
7553 { ac_try
='test -s conftest$ac_exeext'
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; }; then
7560 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7562 # Check for a 64-bit object if we didn't find anything.
7563 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; }
7566 echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.
$ac_ext >&5
7570 rm -f conftest.err conftest.
$ac_objext \
7571 conftest
$ac_exeext conftest.
$ac_ext
7572 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
7574 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
7575 # Warning - without using the other run time loading flags,
7576 # -berok will link without error, but may produce a broken library.
7577 no_undefined_flag
=' ${wl}-bernotok'
7578 allow_undefined_flag
=' ${wl}-berok'
7579 # Exported symbols can be pulled into shared objects from archives
7580 whole_archive_flag_spec
='$convenience'
7581 archive_cmds_need_lc
=yes
7582 # This is similar to how AIX traditionally builds its shared libraries.
7583 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7589 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)'
7590 hardcode_libdir_flag_spec
='-L$libdir'
7591 hardcode_minus_L
=yes
7592 # see comment about different semantics on the GNU ld section
7597 export_dynamic_flag_spec
=-rdynamic
7600 cygwin
* | mingw
* | pw32
*)
7601 # When not using gcc, we currently assume that we are using
7602 # Microsoft Visual C++.
7603 # hardcode_libdir_flag_spec is actually meaningless, as there is
7604 # no search path for DLLs.
7605 hardcode_libdir_flag_spec
=' '
7606 allow_undefined_flag
=unsupported
7607 # Tell ltmain to make .lib files, not .a files.
7609 # Tell ltmain to make .dll files, not .so files.
7611 # FIXME: Setting linknames here is a bad hack.
7612 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7613 # The linker will automatically build a .lib file if we build a DLL.
7614 old_archive_From_new_cmds
='true'
7615 # FIXME: Should let the user specify the lib program.
7616 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
7617 fix_srcfile_path
='`cygpath -w "$srcfile"`'
7618 enable_shared_with_static_runtimes
=yes
7621 darwin
* | rhapsody
*)
7623 rhapsody
* | darwin1.
[012])
7624 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
7627 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7628 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7630 case ${MACOSX_DEPLOYMENT_TARGET} in
7632 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7635 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
7641 archive_cmds_need_lc
=no
7643 hardcode_automatic
=yes
7644 hardcode_shlibpath_var
=unsupported
7645 whole_archive_flag_spec
=''
7646 link_all_deplibs
=yes
7647 if test "$GCC" = yes ; then
7648 output_verbose_link_cmd
='echo'
7649 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7650 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7651 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7652 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}'
7653 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}'
7655 case $cc_basename in
7657 output_verbose_link_cmd
='echo'
7658 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7659 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7660 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7661 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}'
7662 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}'
7672 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7673 hardcode_libdir_flag_spec
='-L$libdir'
7674 hardcode_shlibpath_var
=no
7681 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7682 # support. Future versions do this automatically, but an explicit c++rt0.o
7683 # does not break anything, and helps significantly (at the cost of a little
7686 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7687 hardcode_libdir_flag_spec
='-R$libdir'
7689 hardcode_shlibpath_var
=no
7692 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7694 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7696 hardcode_minus_L
=yes
7697 hardcode_shlibpath_var
=no
7700 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7701 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
7702 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7703 hardcode_libdir_flag_spec
='-R$libdir'
7705 hardcode_shlibpath_var
=no
7709 if test "$GCC" = yes; then
7710 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'
7712 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'
7714 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7715 hardcode_libdir_separator
=:
7718 # hardcode_minus_L: Not really in the search PATH,
7719 # but as the default location of the library.
7720 hardcode_minus_L
=yes
7721 export_dynamic_flag_spec
='${wl}-E'
7725 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
7726 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7728 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7730 if test "$with_gnu_ld" = no
; then
7731 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7732 hardcode_libdir_separator
=:
7735 export_dynamic_flag_spec
='${wl}-E'
7737 # hardcode_minus_L: Not really in the search PATH,
7738 # but as the default location of the library.
7739 hardcode_minus_L
=yes
7744 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
7747 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7750 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7753 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7759 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7762 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7765 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7769 if test "$with_gnu_ld" = no
; then
7770 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7771 hardcode_libdir_separator
=:
7775 hardcode_libdir_flag_spec_ld
='+b $libdir'
7777 hardcode_shlibpath_var
=no
7781 export_dynamic_flag_spec
='${wl}-E'
7783 # hardcode_minus_L: Not really in the search PATH,
7784 # but as the default location of the library.
7785 hardcode_minus_L
=yes
7791 irix5
* | irix6
* | nonstopux
*)
7792 if test "$GCC" = yes; then
7793 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'
7795 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'
7796 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
7798 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7799 hardcode_libdir_separator
=:
7800 link_all_deplibs
=yes
7804 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7805 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7807 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7809 hardcode_libdir_flag_spec
='-R$libdir'
7811 hardcode_shlibpath_var
=no
7815 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7817 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7818 hardcode_libdir_separator
=:
7819 hardcode_shlibpath_var
=no
7824 hardcode_shlibpath_var
=no
7825 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7826 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7827 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7828 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7829 export_dynamic_flag_spec
='${wl}-E'
7832 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
7833 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7834 hardcode_libdir_flag_spec
='-R$libdir'
7837 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7838 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7845 hardcode_libdir_flag_spec
='-L$libdir'
7846 hardcode_minus_L
=yes
7847 allow_undefined_flag
=unsupported
7848 archive_cmds
='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7849 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7853 if test "$GCC" = yes; then
7854 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
7855 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7857 allow_undefined_flag
=' -expect_unresolved \*'
7858 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'
7860 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7861 hardcode_libdir_separator
=:
7864 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
7865 if test "$GCC" = yes; then
7866 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
7867 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'
7868 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7870 allow_undefined_flag
=' -expect_unresolved \*'
7871 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'
7872 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7873 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7875 # Both c and cxx compiler support -rpath directly
7876 hardcode_libdir_flag_spec
='-rpath $libdir'
7878 hardcode_libdir_separator
=:
7882 no_undefined_flag
=' -z text'
7883 if test "$GCC" = yes; then
7885 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7886 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7887 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7890 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7891 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7892 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7894 hardcode_libdir_flag_spec
='-R$libdir'
7895 hardcode_shlibpath_var
=no
7897 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
7899 # The compiler driver will combine linker options so we
7900 # cannot just pass the convience library names through
7901 # without $wl, iff we do not link with $LD.
7902 # Luckily, gcc supports the same syntax we need for Sun Studio.
7903 # Supported since Solaris 2.6 (maybe 2.5.1?)
7906 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
7908 whole_archive_flag_spec
='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7911 link_all_deplibs
=yes
7915 if test "x$host_vendor" = xsequent
; then
7916 # Use $CC to link under sequent, because it throws in some extra .o
7917 # files that make .init and .fini sections work.
7918 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7920 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7922 hardcode_libdir_flag_spec
='-L$libdir'
7924 hardcode_minus_L
=yes
7925 hardcode_shlibpath_var
=no
7929 case $host_vendor in
7931 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7932 hardcode_direct
=yes # is this really true???
7935 ## LD is ld it makes a PLAMLIB
7936 ## CC just makes a GrossModule.
7937 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7938 reload_cmds
='$CC -r -o $output$reload_objs'
7942 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7943 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
7946 runpath_var
='LD_RUN_PATH'
7947 hardcode_shlibpath_var
=no
7951 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7952 hardcode_shlibpath_var
=no
7953 export_dynamic_flag_spec
='-Bexport'
7957 if test -d /usr
/nec
; then
7958 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7959 hardcode_shlibpath_var
=no
7960 runpath_var
=LD_RUN_PATH
7961 hardcode_runpath_var
=yes
7966 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
7967 no_undefined_flag
='${wl}-z,text'
7968 archive_cmds_need_lc
=no
7969 hardcode_shlibpath_var
=no
7970 runpath_var
='LD_RUN_PATH'
7972 if test "$GCC" = yes; then
7973 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7974 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7976 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7977 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7981 sysv5
* | sco3.2v5
* | sco5v6
*)
7982 # Note: We can NOT use -z defs as we might desire, because we do not
7983 # link with -lc, and that would cause any symbols used from libc to
7984 # always be unresolved, which means just about no library would
7985 # ever link correctly. If we're not using GNU ld we use -z text
7986 # though, which does catch some bad symbols but isn't as heavy-handed
7988 no_undefined_flag
='${wl}-z,text'
7989 allow_undefined_flag
='${wl}-z,nodefs'
7990 archive_cmds_need_lc
=no
7991 hardcode_shlibpath_var
=no
7992 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7993 hardcode_libdir_separator
=':'
7994 link_all_deplibs
=yes
7995 export_dynamic_flag_spec
='${wl}-Bexport'
7996 runpath_var
='LD_RUN_PATH'
7998 if test "$GCC" = yes; then
7999 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8000 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8002 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8003 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8008 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8009 hardcode_libdir_flag_spec
='-L$libdir'
8010 hardcode_shlibpath_var
=no
8019 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8020 echo "${ECHO_T}$ld_shlibs" >&6
8021 test "$ld_shlibs" = no
&& can_build_shared
=no
8024 # Do we need to explicitly link libc?
8026 case "x$archive_cmds_need_lc" in
8028 # Assume -lc should be added
8029 archive_cmds_need_lc
=yes
8031 if test "$enable_shared" = yes && test "$GCC" = yes; then
8032 case $archive_cmds in
8034 # FIXME: we may have to deal with multi-command sequences.
8037 # Test whether the compiler implicitly links with -lc since on some
8038 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8039 # to ld, don't add -lc before -lgcc.
8040 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8041 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8043 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
8045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8046 (eval $ac_compile) 2>&5
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); } 2>conftest.err
; then
8052 libobjs
=conftest.
$ac_objext
8054 wl
=$lt_prog_compiler_wl
8055 pic_flag
=$lt_prog_compiler_pic
8061 lt_save_allow_undefined_flag
=$allow_undefined_flag
8062 allow_undefined_flag
=
8063 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8064 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }
8069 archive_cmds_need_lc
=no
8071 archive_cmds_need_lc
=yes
8073 allow_undefined_flag
=$lt_save_allow_undefined_flag
8075 cat conftest.err
1>&5
8078 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8079 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8086 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8087 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8089 libname_spec
='lib$name'
8097 shlibpath_overrides_runpath
=unknown
8099 dynamic_linker
="$host_os ld.so"
8100 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
8101 if test "$GCC" = yes; then
8102 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8103 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
8104 # if the path contains ";" then we assume it to be the separator
8105 # otherwise default to the standard path separator (i.e. ":") - it is
8106 # assumed that no part of a normal pathname contains ";" but that should
8107 # okay in the real world where ";" in dirpaths is itself problematic.
8108 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8110 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8113 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
8115 need_lib_prefix
=unknown
8116 hardcode_into_libs
=no
8118 # when you set need_version to no, make sure it does not cause -set_version
8119 # flags to be left without arguments
8120 need_version
=unknown
8125 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
8126 shlibpath_var
=LIBPATH
8128 # AIX 3 has no versioning support, so we append a major version to the name.
8129 soname_spec
='${libname}${release}${shared_ext}$major'
8136 hardcode_into_libs
=yes
8137 if test "$host_cpu" = ia64
; then
8138 # AIX 5 supports IA64
8139 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8140 shlibpath_var
=LD_LIBRARY_PATH
8142 # With GCC up to 2.95.x, collect2 would create an import file
8143 # for dependence libraries. The import file would start with
8144 # the line `#! .'. This would cause the generated library to
8145 # depend on `.', always an invalid library. This was fixed in
8146 # development snapshots of GCC prior to 3.0.
8148 aix4 | aix4.
[01] | aix4.
[01].
*)
8149 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8151 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
8158 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8159 # soname into executable. Probably we can add versioning support to
8160 # collect2, so additional links can be useful in future.
8161 if test "$aix_use_runtimelinking" = yes; then
8162 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8163 # instead of lib<name>.a to let people know that these are not
8164 # typical AIX shared libraries.
8165 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8167 # We preserve .a as extension for shared libraries through AIX4.2
8168 # and later when we are not doing run time linking.
8169 library_names_spec
='${libname}${release}.a $libname.a'
8170 soname_spec
='${libname}${release}${shared_ext}$major'
8172 shlibpath_var
=LIBPATH
8177 library_names_spec
='$libname.ixlibrary $libname.a'
8178 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8179 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'
8183 library_names_spec
='${libname}${shared_ext}'
8184 dynamic_linker
="$host_os ld.so"
8185 shlibpath_var
=LIBRARY_PATH
8191 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8192 soname_spec
='${libname}${release}${shared_ext}$major'
8193 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
8194 shlibpath_var
=LD_LIBRARY_PATH
8195 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8196 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
8197 # the default ld.so.conf also contains /usr/contrib/lib and
8198 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8199 # libtool to hard-code these into programs
8202 cygwin
* | mingw
* | pw32
*)
8203 version_type
=windows
8208 case $GCC,$host_os in
8209 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
8210 library_names_spec
='$libname.dll.a'
8211 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8212 postinstall_cmds
='base_file=`basename \${file}`~
8213 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8214 dldir=$destdir/`dirname \$dlpath`~
8215 test -d \$dldir || mkdir -p \$dldir~
8216 $install_prog $dir/$dlname \$dldir/$dlname~
8217 chmod a+x \$dldir/$dlname'
8218 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8219 dlpath=$dir/\$dldll~
8221 shlibpath_overrides_runpath
=yes
8225 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8226 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8227 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
8230 # MinGW DLLs use traditional 'lib' prefix
8231 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8232 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8233 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
8234 # It is most probably a Windows format PATH printed by
8235 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8236 # path with ; separators, and with drive letters. We can handle the
8237 # drive letters (cygwin fileutils understands them), so leave them,
8238 # especially as we might pass files found there to a mingw objdump,
8239 # which wouldn't understand a cygwinified path. Ahh.
8240 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8242 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8246 # pw32 DLLs use 'pw' prefix rather than 'lib'
8247 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8253 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8256 dynamic_linker
='Win32 ld.exe'
8257 # FIXME: first we should search . and the directory the executable is in
8261 darwin
* | rhapsody
*)
8262 dynamic_linker
="$host_os dyld"
8266 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8267 soname_spec
='${libname}${release}${major}$shared_ext'
8268 shlibpath_overrides_runpath
=yes
8269 shlibpath_var
=DYLD_LIBRARY_PATH
8270 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
8271 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8272 if test "$GCC" = yes; then
8273 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"`
8275 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
8277 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
8284 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8285 soname_spec
='${libname}${release}${shared_ext}$major'
8286 shlibpath_var
=LD_LIBRARY_PATH
8297 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8298 soname_spec
='${libname}${release}${shared_ext}$major'
8299 shlibpath_var
=LD_LIBRARY_PATH
8300 shlibpath_overrides_runpath
=no
8301 hardcode_into_libs
=yes
8302 dynamic_linker
='GNU ld.so'
8305 freebsd
* | dragonfly
*)
8306 # DragonFly does not have aout. When/if they implement a new
8307 # versioning mechanism, adjust this.
8308 if test -x /usr
/bin
/objformat
; then
8309 objformat
=`/usr/bin/objformat`
8312 freebsd
[123]*) objformat
=aout
;;
8316 version_type
=freebsd-
$objformat
8317 case $version_type in
8319 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8324 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8328 shlibpath_var
=LD_LIBRARY_PATH
8331 shlibpath_overrides_runpath
=yes
8333 freebsd3.
[01]* | freebsdelf3.
[01]*)
8334 shlibpath_overrides_runpath
=yes
8335 hardcode_into_libs
=yes
8337 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
8338 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
8339 shlibpath_overrides_runpath
=no
8340 hardcode_into_libs
=yes
8342 freebsd
*) # from 4.6 on
8343 shlibpath_overrides_runpath
=yes
8344 hardcode_into_libs
=yes
8353 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8354 soname_spec
='${libname}${release}${shared_ext}$major'
8355 shlibpath_var
=LD_LIBRARY_PATH
8356 hardcode_into_libs
=yes
8359 hpux9
* | hpux10
* | hpux11
*)
8360 # Give a soname corresponding to the major version so that dld.sl refuses to
8361 # link against other versions.
8368 hardcode_into_libs
=yes
8369 dynamic_linker
="$host_os dld.so"
8370 shlibpath_var
=LD_LIBRARY_PATH
8371 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8372 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8373 soname_spec
='${libname}${release}${shared_ext}$major'
8374 if test "X$HPUX_IA64_MODE" = X32
; then
8375 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8377 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
8379 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8383 hardcode_into_libs
=yes
8384 dynamic_linker
="$host_os dld.sl"
8385 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
8386 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8387 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8388 soname_spec
='${libname}${release}${shared_ext}$major'
8389 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8390 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8394 dynamic_linker
="$host_os dld.sl"
8395 shlibpath_var
=SHLIB_PATH
8396 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
8397 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8398 soname_spec
='${libname}${release}${shared_ext}$major'
8401 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8402 postinstall_cmds
='chmod 555 $lib'
8409 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8410 soname_spec
='${libname}${release}${shared_ext}$major'
8411 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
8412 shlibpath_var
=LD_LIBRARY_PATH
8413 shlibpath_overrides_runpath
=no
8414 hardcode_into_libs
=yes
8417 irix5
* | irix6
* | nonstopux
*)
8419 nonstopux
*) version_type
=nonstopux
;;
8421 if test "$lt_cv_prog_gnu_ld" = yes; then
8429 soname_spec
='${libname}${release}${shared_ext}$major'
8430 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8432 irix5
* | nonstopux
*)
8436 case $LD in # libtool.m4 will add one of these switches to LD
8437 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
8438 libsuff
= shlibsuff
= libmagic
=32-bit;;
8439 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
8440 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
8441 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
8442 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
8443 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
8447 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
8448 shlibpath_overrides_runpath
=no
8449 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8450 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
8451 hardcode_into_libs
=yes
8454 # No shared lib support for Linux oldld, aout, or coff.
8455 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
8459 # This must be Linux ELF.
8464 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8465 soname_spec
='${libname}${release}${shared_ext}$major'
8466 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8467 shlibpath_var
=LD_LIBRARY_PATH
8468 shlibpath_overrides_runpath
=no
8469 # This implies no fast_install, which is unacceptable.
8470 # Some rework will be needed to allow for fast_install
8471 # before this can be enabled.
8472 hardcode_into_libs
=yes
8474 # find out which ABI we are using
8477 x86_64
*|s390x
*|powerpc64
*)
8478 echo '#line 8478 "configure"' > conftest.
$ac_ext
8479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8480 (eval $ac_compile) 2>&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; then
8484 case `/usr/bin/file conftest.$ac_objext` in
8487 sys_lib_search_path_spec
="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8495 # Append ld.so.conf contents to the search path
8496 if test -f /etc
/ld.so.conf
; then
8497 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8498 sys_lib_dlsearch_path_spec
="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8501 # We used to test for /lib/ld.so.1 and disable shared libraries on
8502 # powerpc, because MkLinux only supported shared libraries with the
8503 # GNU dynamic linker. Since this was broken with cross compilers,
8504 # most powerpc-linux boxes support dynamic linking these days and
8505 # people can always --disable-shared, the test was removed, and we
8506 # assume the GNU/Linux dynamic linker is in use.
8507 dynamic_linker
='GNU/Linux ld.so'
8514 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8515 soname_spec
='${libname}${release}${shared_ext}$major'
8516 shlibpath_var
=LD_LIBRARY_PATH
8517 shlibpath_overrides_runpath
=no
8518 hardcode_into_libs
=yes
8519 dynamic_linker
='GNU ld.so'
8526 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8527 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8528 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8529 dynamic_linker
='NetBSD (a.out) ld.so'
8531 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8532 soname_spec
='${libname}${release}${shared_ext}$major'
8533 dynamic_linker
='NetBSD ld.elf_so'
8535 shlibpath_var
=LD_LIBRARY_PATH
8536 shlibpath_overrides_runpath
=yes
8537 hardcode_into_libs
=yes
8542 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8543 shlibpath_var
=LD_LIBRARY_PATH
8544 shlibpath_overrides_runpath
=yes
8551 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8552 soname_spec
='${libname}${release}${shared_ext}$major'
8553 shlibpath_var
=LD_LIBRARY_PATH
8554 shlibpath_overrides_runpath
=yes
8559 sys_lib_dlsearch_path_spec
="/usr/lib"
8561 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8563 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
8564 *) need_version
=no
;;
8566 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8567 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8568 shlibpath_var
=LD_LIBRARY_PATH
8569 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8571 openbsd2.
[89] | openbsd2.
[89].
*)
8572 shlibpath_overrides_runpath
=no
8575 shlibpath_overrides_runpath
=yes
8579 shlibpath_overrides_runpath
=yes
8584 libname_spec
='$name'
8587 library_names_spec
='$libname${shared_ext} $libname.a'
8588 dynamic_linker
='OS/2 ld.exe'
8589 shlibpath_var
=LIBPATH
8592 osf3
* | osf4
* | osf5
*)
8596 soname_spec
='${libname}${release}${shared_ext}$major'
8597 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8598 shlibpath_var
=LD_LIBRARY_PATH
8599 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8600 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
8607 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8608 soname_spec
='${libname}${release}${shared_ext}$major'
8609 shlibpath_var
=LD_LIBRARY_PATH
8610 shlibpath_overrides_runpath
=yes
8611 hardcode_into_libs
=yes
8612 # ldd complains unless libraries are executable
8613 postinstall_cmds
='chmod +x $lib'
8618 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8619 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8620 shlibpath_var
=LD_LIBRARY_PATH
8621 shlibpath_overrides_runpath
=yes
8622 if test "$with_gnu_ld" = yes; then
8630 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8631 soname_spec
='${libname}${release}${shared_ext}$major'
8632 shlibpath_var
=LD_LIBRARY_PATH
8633 case $host_vendor in
8635 shlibpath_overrides_runpath
=no
8637 export_dynamic_flag_spec
='${wl}-Blargedynsym'
8638 runpath_var
=LD_RUN_PATH
8646 shlibpath_overrides_runpath
=no
8647 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
8653 if test -d /usr
/nec
;then
8655 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8656 soname_spec
='$libname${shared_ext}.$major'
8657 shlibpath_var
=LD_LIBRARY_PATH
8661 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
8662 version_type
=freebsd-elf
8665 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8666 soname_spec
='${libname}${release}${shared_ext}$major'
8667 shlibpath_var
=LD_LIBRARY_PATH
8668 hardcode_into_libs
=yes
8669 if test "$with_gnu_ld" = yes; then
8670 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8671 shlibpath_overrides_runpath
=no
8673 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
8674 shlibpath_overrides_runpath
=yes
8677 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
8681 sys_lib_dlsearch_path_spec
='/usr/lib'
8686 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8687 soname_spec
='${libname}${release}${shared_ext}$major'
8688 shlibpath_var
=LD_LIBRARY_PATH
8695 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8696 echo "${ECHO_T}$dynamic_linker" >&6
8697 test "$dynamic_linker" = no
&& can_build_shared
=no
8699 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
8700 if test "$GCC" = yes; then
8701 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8704 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8705 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8707 if test -n "$hardcode_libdir_flag_spec" || \
8708 test -n "$runpath_var" || \
8709 test "X$hardcode_automatic" = "Xyes" ; then
8711 # We can hardcode non-existant directories.
8712 if test "$hardcode_direct" != no
&&
8713 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8714 # have to relink, otherwise we might link with an installed library
8715 # when we should be linking with a yet-to-be-installed one
8716 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8717 test "$hardcode_minus_L" != no
; then
8718 # Linking always hardcodes the temporary library directory.
8719 hardcode_action
=relink
8721 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8722 hardcode_action
=immediate
8725 # We cannot hardcode anything, or else we can only hardcode existing
8727 hardcode_action
=unsupported
8729 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8730 echo "${ECHO_T}$hardcode_action" >&6
8732 if test "$hardcode_action" = relink
; then
8733 # Fast installation is not supported
8734 enable_fast_install
=no
8735 elif test "$shlibpath_overrides_runpath" = yes ||
8736 test "$enable_shared" = no
; then
8737 # Fast installation is not necessary
8738 enable_fast_install
=needless
8743 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8744 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8745 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
8746 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
8747 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
8748 echo "$as_me:$LINENO: result: yes" >&5
8749 echo "${ECHO_T}yes" >&6
8751 # FIXME - insert some real tests, host_os isn't really good enough
8754 if test -n "$STRIP" ; then
8755 striplib
="$STRIP -x"
8756 echo "$as_me:$LINENO: result: yes" >&5
8757 echo "${ECHO_T}yes" >&6
8759 echo "$as_me:$LINENO: result: no" >&5
8760 echo "${ECHO_T}no" >&6
8764 echo "$as_me:$LINENO: result: no" >&5
8765 echo "${ECHO_T}no" >&6
8770 if test "x$enable_dlopen" != xyes
; then
8771 enable_dlopen
=unknown
8772 enable_dlopen_self
=unknown
8773 enable_dlopen_self_static
=unknown
8780 lt_cv_dlopen
="load_add_on"
8782 lt_cv_dlopen_self
=yes
8786 lt_cv_dlopen
="LoadLibrary"
8791 lt_cv_dlopen
="dlopen"
8796 # if libdl is installed we need to link against it
8797 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8798 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8799 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8800 echo $ECHO_N "(cached) $ECHO_C" >&6
8802 ac_check_lib_save_LIBS
=$LIBS
8804 cat >conftest.
$ac_ext <<_ACEOF
8807 cat confdefs.h
>>conftest.
$ac_ext
8808 cat >>conftest.
$ac_ext <<_ACEOF
8809 /* end confdefs.h. */
8811 /* Override any gcc2 internal prototype to avoid an error. */
8815 /* We use char because int might match the return type of a gcc2
8816 builtin and then its argument prototype would still apply. */
8826 rm -f conftest.
$ac_objext conftest
$ac_exeext
8827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8828 (eval $ac_link) 2>conftest.er1
8830 grep -v '^ *+' conftest.er1
>conftest.err
8832 cat conftest.err
>&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } &&
8835 { ac_try
='test -z "$ac_c_werror_flag"
8836 || test ! -s conftest.err'
8837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); }; } &&
8842 { ac_try
='test -s conftest$ac_exeext'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; }; then
8848 ac_cv_lib_dl_dlopen
=yes
8850 echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.
$ac_ext >&5
8853 ac_cv_lib_dl_dlopen
=no
8855 rm -f conftest.err conftest.
$ac_objext \
8856 conftest
$ac_exeext conftest.
$ac_ext
8857 LIBS
=$ac_check_lib_save_LIBS
8859 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8860 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8861 if test $ac_cv_lib_dl_dlopen = yes; then
8862 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
8867 lt_cv_dlopen_self
=yes
8874 echo "$as_me:$LINENO: checking for shl_load" >&5
8875 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8876 if test "${ac_cv_func_shl_load+set}" = set; then
8877 echo $ECHO_N "(cached) $ECHO_C" >&6
8879 cat >conftest.
$ac_ext <<_ACEOF
8882 cat confdefs.h
>>conftest.
$ac_ext
8883 cat >>conftest.
$ac_ext <<_ACEOF
8884 /* end confdefs.h. */
8885 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8887 #define shl_load innocuous_shl_load
8889 /* System header to define __stub macros and hopefully few prototypes,
8890 which can conflict with char shl_load (); below.
8891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8892 <limits.h> exists even on freestanding compilers. */
8895 # include <limits.h>
8897 # include <assert.h>
8902 /* Override any gcc2 internal prototype to avoid an error. */
8907 /* We use char because int might match the return type of a gcc2
8908 builtin and then its argument prototype would still apply. */
8910 /* The GNU C library defines this for functions which it implements
8911 to always fail with ENOSYS. Some functions are actually named
8912 something starting with __ and the normal name is an alias. */
8913 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8916 char (*f) () = shl_load;
8925 return f != shl_load;
8930 rm -f conftest.
$ac_objext conftest
$ac_exeext
8931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8932 (eval $ac_link) 2>conftest.er1
8934 grep -v '^ *+' conftest.er1
>conftest.err
8936 cat conftest.err
>&5
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); } &&
8939 { ac_try
='test -z "$ac_c_werror_flag"
8940 || test ! -s conftest.err'
8941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; } &&
8946 { ac_try
='test -s conftest$ac_exeext'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; }; then
8952 ac_cv_func_shl_load
=yes
8954 echo "$as_me: failed program was:" >&5
8955 sed 's/^/| /' conftest.
$ac_ext >&5
8957 ac_cv_func_shl_load
=no
8959 rm -f conftest.err conftest.
$ac_objext \
8960 conftest
$ac_exeext conftest.
$ac_ext
8962 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8963 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8964 if test $ac_cv_func_shl_load = yes; then
8965 lt_cv_dlopen
="shl_load"
8967 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8968 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8969 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8970 echo $ECHO_N "(cached) $ECHO_C" >&6
8972 ac_check_lib_save_LIBS
=$LIBS
8974 cat >conftest.
$ac_ext <<_ACEOF
8977 cat confdefs.h
>>conftest.
$ac_ext
8978 cat >>conftest.
$ac_ext <<_ACEOF
8979 /* end confdefs.h. */
8981 /* Override any gcc2 internal prototype to avoid an error. */
8985 /* We use char because int might match the return type of a gcc2
8986 builtin and then its argument prototype would still apply. */
8996 rm -f conftest.
$ac_objext conftest
$ac_exeext
8997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8998 (eval $ac_link) 2>conftest.er1
9000 grep -v '^ *+' conftest.er1
>conftest.err
9002 cat conftest.err
>&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } &&
9005 { ac_try
='test -z "$ac_c_werror_flag"
9006 || test ! -s conftest.err'
9007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; } &&
9012 { ac_try
='test -s conftest$ac_exeext'
9013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); }; }; then
9018 ac_cv_lib_dld_shl_load
=yes
9020 echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.
$ac_ext >&5
9023 ac_cv_lib_dld_shl_load
=no
9025 rm -f conftest.err conftest.
$ac_objext \
9026 conftest
$ac_exeext conftest.
$ac_ext
9027 LIBS
=$ac_check_lib_save_LIBS
9029 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9030 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9031 if test $ac_cv_lib_dld_shl_load = yes; then
9032 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
9034 echo "$as_me:$LINENO: checking for dlopen" >&5
9035 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9036 if test "${ac_cv_func_dlopen+set}" = set; then
9037 echo $ECHO_N "(cached) $ECHO_C" >&6
9039 cat >conftest.
$ac_ext <<_ACEOF
9042 cat confdefs.h
>>conftest.
$ac_ext
9043 cat >>conftest.
$ac_ext <<_ACEOF
9044 /* end confdefs.h. */
9045 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9047 #define dlopen innocuous_dlopen
9049 /* System header to define __stub macros and hopefully few prototypes,
9050 which can conflict with char dlopen (); below.
9051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9052 <limits.h> exists even on freestanding compilers. */
9055 # include <limits.h>
9057 # include <assert.h>
9062 /* Override any gcc2 internal prototype to avoid an error. */
9067 /* We use char because int might match the return type of a gcc2
9068 builtin and then its argument prototype would still apply. */
9070 /* The GNU C library defines this for functions which it implements
9071 to always fail with ENOSYS. Some functions are actually named
9072 something starting with __ and the normal name is an alias. */
9073 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9076 char (*f) () = dlopen;
9090 rm -f conftest.
$ac_objext conftest
$ac_exeext
9091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9092 (eval $ac_link) 2>conftest.er1
9094 grep -v '^ *+' conftest.er1
>conftest.err
9096 cat conftest.err
>&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); } &&
9099 { ac_try
='test -z "$ac_c_werror_flag"
9100 || test ! -s conftest.err'
9101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); }; } &&
9106 { ac_try
='test -s conftest$ac_exeext'
9107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); }; }; then
9112 ac_cv_func_dlopen
=yes
9114 echo "$as_me: failed program was:" >&5
9115 sed 's/^/| /' conftest.
$ac_ext >&5
9117 ac_cv_func_dlopen
=no
9119 rm -f conftest.err conftest.
$ac_objext \
9120 conftest
$ac_exeext conftest.
$ac_ext
9122 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9123 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9124 if test $ac_cv_func_dlopen = yes; then
9125 lt_cv_dlopen
="dlopen"
9127 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9128 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9129 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9130 echo $ECHO_N "(cached) $ECHO_C" >&6
9132 ac_check_lib_save_LIBS
=$LIBS
9134 cat >conftest.
$ac_ext <<_ACEOF
9137 cat confdefs.h
>>conftest.
$ac_ext
9138 cat >>conftest.
$ac_ext <<_ACEOF
9139 /* end confdefs.h. */
9141 /* Override any gcc2 internal prototype to avoid an error. */
9145 /* We use char because int might match the return type of a gcc2
9146 builtin and then its argument prototype would still apply. */
9156 rm -f conftest.
$ac_objext conftest
$ac_exeext
9157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9158 (eval $ac_link) 2>conftest.er1
9160 grep -v '^ *+' conftest.er1
>conftest.err
9162 cat conftest.err
>&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); } &&
9165 { ac_try
='test -z "$ac_c_werror_flag"
9166 || test ! -s conftest.err'
9167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); }; } &&
9172 { ac_try
='test -s conftest$ac_exeext'
9173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); }; }; then
9178 ac_cv_lib_dl_dlopen
=yes
9180 echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.
$ac_ext >&5
9183 ac_cv_lib_dl_dlopen
=no
9185 rm -f conftest.err conftest.
$ac_objext \
9186 conftest
$ac_exeext conftest.
$ac_ext
9187 LIBS
=$ac_check_lib_save_LIBS
9189 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9190 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9191 if test $ac_cv_lib_dl_dlopen = yes; then
9192 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
9194 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9195 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9196 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 ac_check_lib_save_LIBS
=$LIBS
9201 cat >conftest.
$ac_ext <<_ACEOF
9204 cat confdefs.h
>>conftest.
$ac_ext
9205 cat >>conftest.
$ac_ext <<_ACEOF
9206 /* end confdefs.h. */
9208 /* Override any gcc2 internal prototype to avoid an error. */
9212 /* We use char because int might match the return type of a gcc2
9213 builtin and then its argument prototype would still apply. */
9223 rm -f conftest.
$ac_objext conftest
$ac_exeext
9224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9225 (eval $ac_link) 2>conftest.er1
9227 grep -v '^ *+' conftest.er1
>conftest.err
9229 cat conftest.err
>&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } &&
9232 { ac_try
='test -z "$ac_c_werror_flag"
9233 || test ! -s conftest.err'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; } &&
9239 { ac_try
='test -s conftest$ac_exeext'
9240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); }; }; then
9245 ac_cv_lib_svld_dlopen
=yes
9247 echo "$as_me: failed program was:" >&5
9248 sed 's/^/| /' conftest.
$ac_ext >&5
9250 ac_cv_lib_svld_dlopen
=no
9252 rm -f conftest.err conftest.
$ac_objext \
9253 conftest
$ac_exeext conftest.
$ac_ext
9254 LIBS
=$ac_check_lib_save_LIBS
9256 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9257 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9258 if test $ac_cv_lib_svld_dlopen = yes; then
9259 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
9261 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9262 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9263 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
9266 ac_check_lib_save_LIBS
=$LIBS
9268 cat >conftest.
$ac_ext <<_ACEOF
9271 cat confdefs.h
>>conftest.
$ac_ext
9272 cat >>conftest.
$ac_ext <<_ACEOF
9273 /* end confdefs.h. */
9275 /* Override any gcc2 internal prototype to avoid an error. */
9279 /* We use char because int might match the return type of a gcc2
9280 builtin and then its argument prototype would still apply. */
9290 rm -f conftest.
$ac_objext conftest
$ac_exeext
9291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9292 (eval $ac_link) 2>conftest.er1
9294 grep -v '^ *+' conftest.er1
>conftest.err
9296 cat conftest.err
>&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); } &&
9299 { ac_try
='test -z "$ac_c_werror_flag"
9300 || test ! -s conftest.err'
9301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); }; } &&
9306 { ac_try
='test -s conftest$ac_exeext'
9307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); }; }; then
9312 ac_cv_lib_dld_dld_link
=yes
9314 echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.
$ac_ext >&5
9317 ac_cv_lib_dld_dld_link
=no
9319 rm -f conftest.err conftest.
$ac_objext \
9320 conftest
$ac_exeext conftest.
$ac_ext
9321 LIBS
=$ac_check_lib_save_LIBS
9323 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9324 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9325 if test $ac_cv_lib_dld_dld_link = yes; then
9326 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
9347 if test "x$lt_cv_dlopen" != xno
; then
9353 case $lt_cv_dlopen in
9355 save_CPPFLAGS
="$CPPFLAGS"
9356 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
9358 save_LDFLAGS
="$LDFLAGS"
9359 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
9362 LIBS
="$lt_cv_dlopen_libs $LIBS"
9364 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9365 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9366 if test "${lt_cv_dlopen_self+set}" = set; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9369 if test "$cross_compiling" = yes; then :
9370 lt_cv_dlopen_self
=cross
9372 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
9373 lt_status
=$lt_dlunknown
9374 cat > conftest.
$ac_ext <<EOF
9375 #line 9375 "configure"
9376 #include "confdefs.h"
9385 # define LT_DLGLOBAL RTLD_GLOBAL
9388 # define LT_DLGLOBAL DL_GLOBAL
9390 # define LT_DLGLOBAL 0
9394 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9395 find out it does not work in some platform. */
9396 #ifndef LT_DLLAZY_OR_NOW
9398 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9401 # define LT_DLLAZY_OR_NOW DL_LAZY
9404 # define LT_DLLAZY_OR_NOW RTLD_NOW
9407 # define LT_DLLAZY_OR_NOW DL_NOW
9409 # define LT_DLLAZY_OR_NOW 0
9417 extern "C" void exit (int);
9420 void fnord() { int i=42;}
9423 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9424 int status = $lt_dlunknown;
9428 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9429 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9430 /* dlclose (self); */
9438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9439 (eval $ac_link) 2>&5
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
9443 (.
/conftest
; exit; ) >&5 2>/dev
/null
9446 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
9447 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
9448 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
9451 # compilation failed
9452 lt_cv_dlopen_self
=no
9459 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9460 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9462 if test "x$lt_cv_dlopen_self" = xyes
; then
9463 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
9464 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9465 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9466 if test "${lt_cv_dlopen_self_static+set}" = set; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9469 if test "$cross_compiling" = yes; then :
9470 lt_cv_dlopen_self_static
=cross
9472 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
9473 lt_status
=$lt_dlunknown
9474 cat > conftest.
$ac_ext <<EOF
9475 #line 9475 "configure"
9476 #include "confdefs.h"
9485 # define LT_DLGLOBAL RTLD_GLOBAL
9488 # define LT_DLGLOBAL DL_GLOBAL
9490 # define LT_DLGLOBAL 0
9494 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9495 find out it does not work in some platform. */
9496 #ifndef LT_DLLAZY_OR_NOW
9498 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9501 # define LT_DLLAZY_OR_NOW DL_LAZY
9504 # define LT_DLLAZY_OR_NOW RTLD_NOW
9507 # define LT_DLLAZY_OR_NOW DL_NOW
9509 # define LT_DLLAZY_OR_NOW 0
9517 extern "C" void exit (int);
9520 void fnord() { int i=42;}
9523 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9524 int status = $lt_dlunknown;
9528 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9529 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9530 /* dlclose (self); */
9538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9539 (eval $ac_link) 2>&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
9543 (.
/conftest
; exit; ) >&5 2>/dev
/null
9546 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
9547 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
9548 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
9551 # compilation failed
9552 lt_cv_dlopen_self_static
=no
9559 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9560 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9563 CPPFLAGS
="$save_CPPFLAGS"
9564 LDFLAGS
="$save_LDFLAGS"
9569 case $lt_cv_dlopen_self in
9570 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
9571 *) enable_dlopen_self
=unknown
;;
9574 case $lt_cv_dlopen_self_static in
9575 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
9576 *) enable_dlopen_self_static
=unknown
;;
9581 # Report which library types will actually be built
9582 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9583 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9584 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9585 echo "${ECHO_T}$can_build_shared" >&6
9587 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9588 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9589 test "$can_build_shared" = "no" && enable_shared
=no
9591 # On AIX, shared libraries and static libraries use the same namespace, and
9592 # are all built from PIC.
9595 test "$enable_shared" = yes && enable_static
=no
9596 if test -n "$RANLIB"; then
9597 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
9598 postinstall_cmds
='$RANLIB $lib'
9603 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
9604 test "$enable_shared" = yes && enable_static
=no
9608 echo "$as_me:$LINENO: result: $enable_shared" >&5
9609 echo "${ECHO_T}$enable_shared" >&6
9611 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9612 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9613 # Make sure either enable_shared or enable_static is yes.
9614 test "$enable_shared" = yes || enable_static
=yes
9615 echo "$as_me:$LINENO: result: $enable_static" >&5
9616 echo "${ECHO_T}$enable_static" >&6
9618 # The else clause should only fire when bootstrapping the
9619 # libtool distribution, otherwise you forgot to ship ltmain.sh
9620 # with your package, and you will get complaints that there are
9621 # no rules to generate ltmain.sh.
9622 if test -f "$ltmain"; then
9623 # See if we are running on zsh, and set the options which allow our commands through
9624 # without removal of \ escapes.
9625 if test -n "${ZSH_VERSION+set}" ; then
9626 setopt NO_GLOB_SUBST
9628 # Now quote all the things that may contain metacharacters while being
9629 # careful not to overquote the AC_SUBSTed values. We take copies of the
9630 # variables and quote the copies for generation of the libtool script.
9631 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9633 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9634 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9635 deplibs_check_method reload_flag reload_cmds need_locks \
9636 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9637 lt_cv_sys_global_symbol_to_c_name_address \
9638 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9639 old_postinstall_cmds old_postuninstall_cmds \
9643 lt_prog_compiler_wl \
9644 lt_prog_compiler_pic \
9645 lt_prog_compiler_static \
9646 lt_prog_compiler_no_builtin_flag \
9647 export_dynamic_flag_spec \
9648 thread_safe_flag_spec \
9649 whole_archive_flag_spec \
9650 enable_shared_with_static_runtimes \
9652 old_archive_from_new_cmds \
9657 compiler_lib_search_path \
9659 archive_expsym_cmds \
9661 postuninstall_cmds \
9662 old_archive_from_expsyms_cmds \
9663 allow_undefined_flag \
9665 export_symbols_cmds \
9666 hardcode_libdir_flag_spec \
9667 hardcode_libdir_flag_spec_ld \
9668 hardcode_libdir_separator \
9669 hardcode_automatic \
9671 module_expsym_cmds \
9672 lt_cv_prog_compiler_c_o \
9677 old_archive_cmds | \
9678 old_archive_from_new_cmds | \
9680 archive_expsym_cmds | \
9682 module_expsym_cmds | \
9683 old_archive_from_expsyms_cmds | \
9684 export_symbols_cmds | \
9685 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9686 postinstall_cmds | postuninstall_cmds | \
9687 old_postinstall_cmds | old_postuninstall_cmds | \
9688 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
9689 # Double-quote double-evaled strings.
9690 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9693 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9699 *'\$0 --fallback-echo"')
9700 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9705 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9707 { echo "$as_me:$LINENO: creating $ofile" >&5
9708 echo "$as_me: creating $ofile" >&6;}
9710 cat <<__EOF__ >> "$cfgfile"
9713 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9714 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9715 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9717 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9718 # Free Software Foundation, Inc.
9720 # This file is part of GNU Libtool:
9721 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9723 # This program is free software; you can redistribute it and/or modify
9724 # it under the terms of the GNU General Public License as published by
9725 # the Free Software Foundation; either version 2 of the License, or
9726 # (at your option) any later version.
9728 # This program is distributed in the hope that it will be useful, but
9729 # WITHOUT ANY WARRANTY; without even the implied warranty of
9730 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9731 # General Public License for more details.
9733 # You should have received a copy of the GNU General Public License
9734 # along with this program; if not, write to the Free Software
9735 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9737 # As a special exception to the GNU General Public License, if you
9738 # distribute this file as part of a program that contains a
9739 # configuration script generated by Autoconf, you may include it under
9740 # the same distribution terms that you use for the rest of that program.
9742 # A sed program that does not truncate output.
9745 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9746 Xsed="$SED -e 1s/^X//"
9748 # The HP-UX ksh and POSIX shell print the target directory to stdout
9750 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9752 # The names of the tagged configurations supported by this script.
9755 # ### BEGIN LIBTOOL CONFIG
9757 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9759 # Shell to use when invoking shell scripts.
9762 # Whether or not to build shared libraries.
9763 build_libtool_libs=$enable_shared
9765 # Whether or not to build static libraries.
9766 build_old_libs=$enable_static
9768 # Whether or not to add -lc for building shared libraries.
9769 build_libtool_need_lc=$archive_cmds_need_lc
9771 # Whether or not to disallow shared libs when runtime libs are static
9772 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9774 # Whether or not to optimize for fast installation.
9775 fast_install=$enable_fast_install
9778 host_alias=$host_alias
9783 build_alias=$build_alias
9787 # An echo program that does not interpret backslashes.
9792 AR_FLAGS=$lt_AR_FLAGS
9797 # LTCC compiler flags.
9798 LTCFLAGS=$lt_LTCFLAGS
9800 # A language-specific compiler.
9803 # Is the compiler the GNU C compiler?
9806 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9807 gcc_ver=\`gcc -dumpversion\`
9812 # The linker used to build libraries.
9815 # Whether we need hard or soft links.
9818 # A BSD-compatible nm program.
9821 # A symbol stripping program
9824 # Used to examine libraries when file_magic_cmd begins "file"
9825 MAGIC_CMD=$MAGIC_CMD
9827 # Used on cygwin: DLL creation program.
9830 # Used on cygwin: object dumper.
9833 # Used on cygwin: assembler.
9836 # The name of the directory that contains temporary libtool files.
9839 # How to create reloadable object files.
9840 reload_flag=$lt_reload_flag
9841 reload_cmds=$lt_reload_cmds
9843 # How to pass a linker flag through the compiler.
9844 wl=$lt_lt_prog_compiler_wl
9846 # Object file suffix (normally "o").
9849 # Old archive suffix (normally "a").
9852 # Shared library suffix (normally ".so").
9853 shrext_cmds='$shrext_cmds'
9855 # Executable file suffix (normally "").
9858 # Additional compiler flags for building library objects.
9859 pic_flag=$lt_lt_prog_compiler_pic
9862 # What is the maximum length of a command?
9863 max_cmd_len=$lt_cv_sys_max_cmd_len
9865 # Does compiler simultaneously support -c and -o options?
9866 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9868 # Must we lock files when doing compilation?
9869 need_locks=$lt_need_locks
9871 # Do we need the lib prefix for modules?
9872 need_lib_prefix=$need_lib_prefix
9874 # Do we need a version for libraries?
9875 need_version=$need_version
9877 # Whether dlopen is supported.
9878 dlopen_support=$enable_dlopen
9880 # Whether dlopen of programs is supported.
9881 dlopen_self=$enable_dlopen_self
9883 # Whether dlopen of statically linked programs is supported.
9884 dlopen_self_static=$enable_dlopen_self_static
9886 # Compiler flag to prevent dynamic linking.
9887 link_static_flag=$lt_lt_prog_compiler_static
9889 # Compiler flag to turn off builtin functions.
9890 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9892 # Compiler flag to allow reflexive dlopens.
9893 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9895 # Compiler flag to generate shared objects directly from archives.
9896 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9898 # Compiler flag to generate thread-safe objects.
9899 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9901 # Library versioning type.
9902 version_type=$version_type
9904 # Format of library name prefix.
9905 libname_spec=$lt_libname_spec
9907 # List of archive names. First name is the real one, the rest are links.
9908 # The last name is the one that the linker finds with -lNAME.
9909 library_names_spec=$lt_library_names_spec
9911 # The coded name of the library, if different from the real name.
9912 soname_spec=$lt_soname_spec
9914 # Commands used to build and install an old-style archive.
9916 old_archive_cmds=$lt_old_archive_cmds
9917 old_postinstall_cmds=$lt_old_postinstall_cmds
9918 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9920 # Create an old-style archive from a shared archive.
9921 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9923 # Create a temporary old-style archive to link instead of a shared archive.
9924 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9926 # Commands used to build and install a shared archive.
9927 archive_cmds=$lt_archive_cmds
9928 archive_expsym_cmds=$lt_archive_expsym_cmds
9929 postinstall_cmds=$lt_postinstall_cmds
9930 postuninstall_cmds=$lt_postuninstall_cmds
9932 # Commands used to build a loadable module (assumed same as above if empty)
9933 module_cmds=$lt_module_cmds
9934 module_expsym_cmds=$lt_module_expsym_cmds
9936 # Commands to strip libraries.
9937 old_striplib=$lt_old_striplib
9938 striplib=$lt_striplib
9940 # Dependencies to place before the objects being linked to create a
9942 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9944 # Dependencies to place after the objects being linked to create a
9946 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9948 # Dependencies to place before the objects being linked to create a
9952 # Dependencies to place after the objects being linked to create a
9954 postdeps=$lt_postdeps
9956 # The library search path used internally by the compiler when linking
9958 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9960 # Method to check whether dependent libraries are shared objects.
9961 deplibs_check_method=$lt_deplibs_check_method
9963 # Command to use when deplibs_check_method == file_magic.
9964 file_magic_cmd=$lt_file_magic_cmd
9966 # Flag that allows shared libraries with undefined symbols to be built.
9967 allow_undefined_flag=$lt_allow_undefined_flag
9969 # Flag that forces no undefined symbols.
9970 no_undefined_flag=$lt_no_undefined_flag
9972 # Commands used to finish a libtool library installation in a directory.
9973 finish_cmds=$lt_finish_cmds
9975 # Same as above, but a single script fragment to be evaled but not shown.
9976 finish_eval=$lt_finish_eval
9978 # Take the output of nm and produce a listing of raw symbols and C names.
9979 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9981 # Transform the output of nm in a proper C declaration
9982 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9984 # Transform the output of nm in a C name address pair
9985 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9987 # This is the shared library runtime path variable.
9988 runpath_var=$runpath_var
9990 # This is the shared library path variable.
9991 shlibpath_var=$shlibpath_var
9993 # Is shlibpath searched before the hard-coded library search path?
9994 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9996 # How to hardcode a shared library path into an executable.
9997 hardcode_action=$hardcode_action
9999 # Whether we should hardcode library paths into libraries.
10000 hardcode_into_libs=$hardcode_into_libs
10002 # Flag to hardcode \$libdir into a binary during linking.
10003 # This must work even if \$libdir does not exist.
10004 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10006 # If ld is used when linking, flag to hardcode \$libdir into
10007 # a binary during linking. This must work even if \$libdir does
10009 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10011 # Whether we need a single -rpath flag with a separated argument.
10012 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10014 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10015 # resulting binary.
10016 hardcode_direct=$hardcode_direct
10018 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10019 # resulting binary.
10020 hardcode_minus_L=$hardcode_minus_L
10022 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10023 # the resulting binary.
10024 hardcode_shlibpath_var=$hardcode_shlibpath_var
10026 # Set to yes if building a shared library automatically hardcodes DIR into the library
10027 # and all subsequent libraries and executables linked against it.
10028 hardcode_automatic=$hardcode_automatic
10030 # Variables whose values should be saved in libtool wrapper scripts and
10031 # restored at relink time.
10032 variables_saved_for_relink="$variables_saved_for_relink"
10034 # Whether libtool must link a program against all its dependency libraries.
10035 link_all_deplibs=$link_all_deplibs
10037 # Compile-time system search path for libraries
10038 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10040 # Run-time system search path for libraries
10041 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10043 # Fix the shell variable \$srcfile for the compiler.
10044 fix_srcfile_path="$fix_srcfile_path"
10046 # Set to yes if exported symbols are required.
10047 always_export_symbols=$always_export_symbols
10049 # The commands to list exported symbols.
10050 export_symbols_cmds=$lt_export_symbols_cmds
10052 # The commands to extract the exported symbol list from a shared archive.
10053 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10055 # Symbols that should not be listed in the preloaded symbols.
10056 exclude_expsyms=$lt_exclude_expsyms
10058 # Symbols that must always be exported.
10059 include_expsyms=$lt_include_expsyms
10061 # ### END LIBTOOL CONFIG
10068 cat <<\EOF
>> "$cfgfile"
10070 # AIX sometimes has problems with the GCC collect2 program. For some
10071 # reason, if we set the COLLECT_NAMES environment variable, the problems
10072 # vanish in a puff of smoke.
10073 if test "X${COLLECT_NAMES+set}" != Xset
; then
10075 export COLLECT_NAMES
10081 # We use sed instead of cat because bash on DJGPP gets confused if
10082 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10083 # text mode, it properly converts lines to CR/LF. This bash problem
10084 # is reportedly fixed, but why not run on old versions too?
10085 sed '$q' "$ltmain" >> "$cfgfile" ||
(rm -f "$cfgfile"; exit 1)
10087 mv -f "$cfgfile" "$ofile" || \
10088 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10092 # If there is no Makefile yet, we rely on a make rule to execute
10093 # `config.status --recheck' to rerun these tests and create the
10094 # libtool script then.
10095 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10096 if test -f "$ltmain_in"; then
10097 test -f Makefile
&& make "$ltmain"
10103 ac_cpp
='$CPP $CPPFLAGS'
10104 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10105 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10106 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10111 # Check whether --with-tags or --without-tags was given.
10112 if test "${with_tags+set}" = set; then
10113 withval
="$with_tags"
10114 tagnames
="$withval"
10117 if test -f "$ltmain" && test -n "$tagnames"; then
10118 if test ! -f "${ofile}"; then
10119 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10120 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10123 if test -z "$LTCC"; then
10124 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10125 if test -z "$LTCC"; then
10126 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10127 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10129 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10130 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10133 if test -z "$LTCFLAGS"; then
10134 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10137 # Extract list of available tagged configurations in $ofile.
10138 # Note that this assumes the entire list is on one line.
10139 available_tags
=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10141 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
10142 for tagname
in $tagnames; do
10144 # Check whether tagname contains only valid characters
10145 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10147 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10148 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10149 { (exit 1); exit 1; }; }
10153 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev
/null
10155 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10156 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10157 { (exit 1); exit 1; }; }
10160 # Update the list of available tags.
10161 if test -n "$tagname"; then
10162 echo appending configuration tag
\"$tagname\" to
$ofile
10166 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10167 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10168 (test "X$CXX" != "Xg++"))) ; then
10170 ac_cpp
='$CXXCPP $CPPFLAGS'
10171 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10172 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10173 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10178 archive_cmds_need_lc_CXX
=no
10179 allow_undefined_flag_CXX
=
10180 always_export_symbols_CXX
=no
10181 archive_expsym_cmds_CXX
=
10182 export_dynamic_flag_spec_CXX
=
10183 hardcode_direct_CXX
=no
10184 hardcode_libdir_flag_spec_CXX
=
10185 hardcode_libdir_flag_spec_ld_CXX
=
10186 hardcode_libdir_separator_CXX
=
10187 hardcode_minus_L_CXX
=no
10188 hardcode_shlibpath_var_CXX
=unsupported
10189 hardcode_automatic_CXX
=no
10191 module_expsym_cmds_CXX
=
10192 link_all_deplibs_CXX
=unknown
10193 old_archive_cmds_CXX
=$old_archive_cmds
10194 no_undefined_flag_CXX
=
10195 whole_archive_flag_spec_CXX
=
10196 enable_shared_with_static_runtimes_CXX
=no
10198 # Dependencies to place before and after the object being linked:
10199 predep_objects_CXX
=
10200 postdep_objects_CXX
=
10203 compiler_lib_search_path_CXX
=
10205 # Source file extension for C++ test sources.
10208 # Object file extension for compiled C++ test sources.
10212 # Code to be used in simple compile tests
10213 lt_simple_compile_test_code
="int some_variable = 0;\n"
10215 # Code to be used in simple link tests
10216 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }\n'
10218 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10220 # If no C compiler was specified, use CC.
10223 # If no C compiler flags were specified, use CFLAGS.
10224 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
10226 # Allow CC to be a program name with arguments.
10230 # save warnings/boilerplate of simple test code
10231 ac_outfile
=conftest.
$ac_objext
10232 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
10233 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
10234 _lt_compiler_boilerplate
=`cat conftest.err`
10237 ac_outfile
=conftest.
$ac_objext
10238 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
10239 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
10240 _lt_linker_boilerplate
=`cat conftest.err`
10244 # Allow CC to be a program name with arguments.
10249 lt_save_with_gnu_ld
=$with_gnu_ld
10250 lt_save_path_LD
=$lt_cv_path_LD
10251 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10252 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
10254 $as_unset lt_cv_prog_gnu_ld
10256 if test -n "${lt_cv_path_LDCXX+set}"; then
10257 lt_cv_path_LD
=$lt_cv_path_LDCXX
10259 $as_unset lt_cv_path_LD
10261 test -z "${LDCXX+set}" || LD
=$LDCXX
10265 for cc_temp
in $compiler""; do
10267 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
10268 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
10273 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10276 # We don't want -fno-exception wen compiling C++ code, so set the
10277 # no_builtin_flag separately
10278 if test "$GXX" = yes; then
10279 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
10281 lt_prog_compiler_no_builtin_flag_CXX
=
10284 if test "$GXX" = yes; then
10285 # Set up default GNU C++ configuration
10288 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10289 if test "${with_gnu_ld+set}" = set; then
10290 withval
="$with_gnu_ld"
10291 test "$withval" = no || with_gnu_ld
=yes
10296 if test "$GCC" = yes; then
10297 # Check if gcc -print-prog-name=ld gives a path.
10298 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10299 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10302 # gcc leaves a trailing carriage return which upsets mingw
10303 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10305 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10308 # Accept absolute paths.
10310 re_direlt
='/[^/][^/]*/\.\./'
10311 # Canonicalize the pathname of ld
10312 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
10313 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10314 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10316 test -z "$LD" && LD
="$ac_prog"
10319 # If it fails, then pretend we aren't using GCC.
10323 # If it is relative, then search for the first ld in PATH.
10324 with_gnu_ld
=unknown
10327 elif test "$with_gnu_ld" = yes; then
10328 echo "$as_me:$LINENO: checking for GNU ld" >&5
10329 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10331 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10332 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10334 if test "${lt_cv_path_LD+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10337 if test -z "$LD"; then
10338 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
10339 for ac_dir
in $PATH; do
10341 test -z "$ac_dir" && ac_dir
=.
10342 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10343 lt_cv_path_LD
="$ac_dir/$ac_prog"
10344 # Check to see if the program is GNU ld. I'd rather use --version,
10345 # but apparently some variants of GNU ld only accept -v.
10346 # Break only if it was the GNU/non-GNU ld that we prefer.
10347 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10348 *GNU
* |
*'with BFD'*)
10349 test "$with_gnu_ld" != no
&& break
10352 test "$with_gnu_ld" != yes && break
10359 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
10363 LD
="$lt_cv_path_LD"
10364 if test -n "$LD"; then
10365 echo "$as_me:$LINENO: result: $LD" >&5
10366 echo "${ECHO_T}$LD" >&6
10368 echo "$as_me:$LINENO: result: no" >&5
10369 echo "${ECHO_T}no" >&6
10371 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10372 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10373 { (exit 1); exit 1; }; }
10374 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10375 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10376 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10380 case `$LD -v 2>&1 </dev/null` in
10381 *GNU
* |
*'with BFD'*)
10382 lt_cv_prog_gnu_ld
=yes
10385 lt_cv_prog_gnu_ld
=no
10389 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10390 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10391 with_gnu_ld
=$lt_cv_prog_gnu_ld
10395 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10396 # archiving commands below assume that GNU ld is being used.
10397 if test "$with_gnu_ld" = yes; then
10398 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10399 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'
10401 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
10402 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
10404 # If archive_cmds runs LD, not CC, wlarc should be empty
10405 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10406 # investigate it a little bit more. (MM)
10409 # ancient GNU ld didn't support --whole-archive et. al.
10410 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10411 grep 'no-whole-archive' > /dev
/null
; then
10412 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10414 whole_archive_flag_spec_CXX
=
10420 # A generic and very simple default shared library creation
10421 # command for GNU C++ for the case where it uses the native
10422 # linker, instead of GNU ld. If possible, this setting should
10423 # overridden to take advantage of the native linker features on
10424 # the platform it is being used on.
10425 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10428 # Commands to make compiler produce verbose output that lists
10429 # what "hidden" libraries, object files and flags are used when
10430 # linking a shared library.
10431 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10439 # PORTME: fill in a description of your system's C++ link characteristics
10440 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10441 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10445 # FIXME: insert proper C++ library support
10449 if test "$host_cpu" = ia64
; then
10450 # On IA64, the linker does run time linking by default, so we don't
10451 # have to do anything special.
10452 aix_use_runtimelinking
=no
10453 exp_sym_flag
='-Bexport'
10456 aix_use_runtimelinking
=no
10458 # Test if we are trying to use run time linking or normal
10459 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10460 # need to do runtime linking.
10461 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
10462 for ld_flag
in $LDFLAGS; do
10465 aix_use_runtimelinking
=yes
10473 exp_sym_flag
='-bexport'
10474 no_entry_flag
='-bnoentry'
10477 # When large executables or shared objects are built, AIX ld can
10478 # have problems creating the table of contents. If linking a library
10479 # or program results in "error TOC overflow" add -mminimal-toc to
10480 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10481 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10483 archive_cmds_CXX
=''
10484 hardcode_direct_CXX
=yes
10485 hardcode_libdir_separator_CXX
=':'
10486 link_all_deplibs_CXX
=yes
10488 if test "$GXX" = yes; then
10489 case $host_os in aix4.
[012]|aix4.
[012].
*)
10490 # We only want to do this on AIX 4.2 and lower, the check
10491 # below for broken collect2 doesn't work under 4.3+
10492 collect2name
=`${CC} -print-prog-name=collect2`
10493 if test -f "$collect2name" && \
10494 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
10496 # We have reworked collect2
10497 hardcode_direct_CXX
=yes
10499 # We have old collect2
10500 hardcode_direct_CXX
=unsupported
10501 # It fails to find uninstalled libraries when the uninstalled
10502 # path is not listed in the libpath. Setting hardcode_minus_L
10503 # to unsupported forces relinking
10504 hardcode_minus_L_CXX
=yes
10505 hardcode_libdir_flag_spec_CXX
='-L$libdir'
10506 hardcode_libdir_separator_CXX
=
10510 shared_flag
='-shared'
10511 if test "$aix_use_runtimelinking" = yes; then
10512 shared_flag
="$shared_flag "'${wl}-G'
10516 if test "$host_cpu" = ia64
; then
10517 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10518 # chokes on -Wl,-G. The following line is correct:
10521 if test "$aix_use_runtimelinking" = yes; then
10522 shared_flag
='${wl}-G'
10524 shared_flag
='${wl}-bM:SRE'
10529 # It seems that -bexpall does not export symbols beginning with
10530 # underscore (_), so it is better to generate a list of symbols to export.
10531 always_export_symbols_CXX
=yes
10532 if test "$aix_use_runtimelinking" = yes; then
10533 # Warning - without using the other runtime loading flags (-brtl),
10534 # -berok will link without error, but may produce a broken library.
10535 allow_undefined_flag_CXX
='-berok'
10536 # Determine the default libpath from the value encoded in an empty executable.
10537 cat >conftest.
$ac_ext <<_ACEOF
10540 cat confdefs.h
>>conftest.
$ac_ext
10541 cat >>conftest.
$ac_ext <<_ACEOF
10542 /* end confdefs.h. */
10552 rm -f conftest.
$ac_objext conftest
$ac_exeext
10553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10554 (eval $ac_link) 2>conftest.er1
10556 grep -v '^ *+' conftest.er1
>conftest.err
10558 cat conftest.err
>&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } &&
10561 { ac_try
='test -z "$ac_cxx_werror_flag"
10562 || test ! -s conftest.err'
10563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564 (eval $ac_try) 2>&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; } &&
10568 { ac_try
='test -s conftest$ac_exeext'
10569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10570 (eval $ac_try) 2>&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); }; }; then
10575 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10577 # Check for a 64-bit object if we didn't find anything.
10578 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; }
10581 echo "$as_me: failed program was:" >&5
10582 sed 's/^/| /' conftest.
$ac_ext >&5
10585 rm -f conftest.err conftest.
$ac_objext \
10586 conftest
$ac_exeext conftest.
$ac_ext
10587 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10589 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
10591 archive_expsym_cmds_CXX
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10593 if test "$host_cpu" = ia64
; then
10594 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
10595 allow_undefined_flag_CXX
="-z nodefs"
10596 archive_expsym_cmds_CXX
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10598 # Determine the default libpath from the value encoded in an empty executable.
10599 cat >conftest.
$ac_ext <<_ACEOF
10602 cat confdefs.h
>>conftest.
$ac_ext
10603 cat >>conftest.
$ac_ext <<_ACEOF
10604 /* end confdefs.h. */
10614 rm -f conftest.
$ac_objext conftest
$ac_exeext
10615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10616 (eval $ac_link) 2>conftest.er1
10618 grep -v '^ *+' conftest.er1
>conftest.err
10620 cat conftest.err
>&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } &&
10623 { ac_try
='test -z "$ac_cxx_werror_flag"
10624 || test ! -s conftest.err'
10625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10626 (eval $ac_try) 2>&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); }; } &&
10630 { ac_try
='test -s conftest$ac_exeext'
10631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10632 (eval $ac_try) 2>&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; }; then
10637 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10639 # Check for a 64-bit object if we didn't find anything.
10640 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; }
10643 echo "$as_me: failed program was:" >&5
10644 sed 's/^/| /' conftest.
$ac_ext >&5
10647 rm -f conftest.err conftest.
$ac_objext \
10648 conftest
$ac_exeext conftest.
$ac_ext
10649 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10651 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
10652 # Warning - without using the other run time loading flags,
10653 # -berok will link without error, but may produce a broken library.
10654 no_undefined_flag_CXX
=' ${wl}-bernotok'
10655 allow_undefined_flag_CXX
=' ${wl}-berok'
10656 # Exported symbols can be pulled into shared objects from archives
10657 whole_archive_flag_spec_CXX
='$convenience'
10658 archive_cmds_need_lc_CXX
=yes
10659 # This is similar to how AIX traditionally builds its shared libraries.
10660 archive_expsym_cmds_CXX
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10666 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
10667 allow_undefined_flag_CXX
=unsupported
10668 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10669 # support --undefined. This deserves some investigation. FIXME
10670 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10677 case $cc_basename in
10679 # FIXME: insert proper C++ library support
10685 cygwin
* | mingw
* | pw32
*)
10686 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10687 # as there is no search path for DLLs.
10688 hardcode_libdir_flag_spec_CXX
='-L$libdir'
10689 allow_undefined_flag_CXX
=unsupported
10690 always_export_symbols_CXX
=no
10691 enable_shared_with_static_runtimes_CXX
=yes
10693 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
10694 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10695 # If the export-symbols file already is a .def file (1st line
10696 # is EXPORTS), use it as is; otherwise, prepend...
10697 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10698 cp $export_symbols $output_objdir/$soname.def;
10700 echo EXPORTS > $output_objdir/$soname.def;
10701 cat $export_symbols >> $output_objdir/$soname.def;
10703 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10708 darwin
* | rhapsody
*)
10710 rhapsody
* | darwin1.
[012])
10711 allow_undefined_flag_CXX
='${wl}-undefined ${wl}suppress'
10714 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10715 allow_undefined_flag_CXX
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10717 case ${MACOSX_DEPLOYMENT_TARGET} in
10719 allow_undefined_flag_CXX
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10722 allow_undefined_flag_CXX
='${wl}-undefined ${wl}dynamic_lookup'
10728 archive_cmds_need_lc_CXX
=no
10729 hardcode_direct_CXX
=no
10730 hardcode_automatic_CXX
=yes
10731 hardcode_shlibpath_var_CXX
=unsupported
10732 whole_archive_flag_spec_CXX
=''
10733 link_all_deplibs_CXX
=yes
10735 if test "$GXX" = yes ; then
10736 lt_int_apple_cc_single_mod
=no
10737 output_verbose_link_cmd
='echo'
10738 if $CC -dumpspecs 2>&1 |
$EGREP 'single_module' >/dev
/null
; then
10739 lt_int_apple_cc_single_mod
=yes
10741 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
10742 archive_cmds_CXX
='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10744 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'
10746 module_cmds_CXX
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10747 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10748 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
10749 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}'
10751 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}'
10753 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}'
10755 case $cc_basename in
10757 output_verbose_link_cmd
='echo'
10758 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'
10759 module_cmds_CXX
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10760 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10761 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}'
10762 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}'
10772 case $cc_basename in
10774 # FIXME: insert proper C++ library support
10778 # Green Hills C++ Compiler
10779 # FIXME: insert proper C++ library support
10783 # FIXME: insert proper C++ library support
10789 # C++ shared libraries reported to be fairly broken before switch to ELF
10793 archive_cmds_need_lc_CXX
=no
10795 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
10796 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10803 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10804 hardcode_libdir_separator_CXX
=:
10805 export_dynamic_flag_spec_CXX
='${wl}-E'
10806 hardcode_direct_CXX
=yes
10807 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10808 # but as the default
10809 # location of the library.
10811 case $cc_basename in
10813 # FIXME: insert proper C++ library support
10817 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'
10818 # Commands to make compiler produce verbose output that lists
10819 # what "hidden" libraries, object files and flags are used when
10820 # linking a shared library.
10822 # There doesn't appear to be a way to prevent this compiler from
10823 # explicitly linking system object files so we need to strip them
10824 # from the output so that they don't get included in the library
10826 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'
10829 if test "$GXX" = yes; then
10830 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'
10832 # FIXME: insert proper C++ library support
10839 if test $with_gnu_ld = no
; then
10840 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10841 hardcode_libdir_separator_CXX
=:
10845 hardcode_libdir_flag_spec_ld_CXX
='+b $libdir'
10848 export_dynamic_flag_spec_CXX
='${wl}-E'
10854 hardcode_direct_CXX
=no
10855 hardcode_shlibpath_var_CXX
=no
10858 hardcode_direct_CXX
=yes
10859 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10860 # but as the default
10861 # location of the library.
10865 case $cc_basename in
10867 # FIXME: insert proper C++ library support
10873 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10876 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10879 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10882 # Commands to make compiler produce verbose output that lists
10883 # what "hidden" libraries, object files and flags are used when
10884 # linking a shared library.
10886 # There doesn't appear to be a way to prevent this compiler from
10887 # explicitly linking system object files so we need to strip them
10888 # from the output so that they don't get included in the library
10890 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'
10893 if test "$GXX" = yes; then
10894 if test $with_gnu_ld = no
; then
10897 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10900 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10903 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'
10908 # FIXME: insert proper C++ library support
10915 hardcode_direct_CXX
=no
10916 hardcode_shlibpath_var_CXX
=no
10917 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10918 export_dynamic_flag_spec_CXX
='${wl}-E'
10919 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10920 # Instead, shared libraries are loaded at an image base (0x10000000 by
10921 # default) and relocated if they conflict, which is a slow very memory
10922 # consuming and fragmenting process. To avoid this, we pick a random,
10923 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10924 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10925 archive_cmds_CXX
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10926 archive_expsym_cmds_CXX
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10929 case $cc_basename in
10932 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 ${output_objdir}/so_locations -o $lib'
10934 # Archives containing C++ object files must be created using
10935 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10936 # necessary to make sure instantiated templates are included
10938 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
10941 if test "$GXX" = yes; then
10942 if test "$with_gnu_ld" = no
; then
10943 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}${output_objdir}/so_locations -o $lib'
10945 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'
10948 link_all_deplibs_CXX
=yes
10951 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10952 hardcode_libdir_separator_CXX
=:
10955 case $cc_basename in
10957 # Kuck and Associates, Inc. (KAI) C++ Compiler
10959 # KCC will only create a shared library if the output file
10960 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10961 # to its proper name (with version) after linking.
10962 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'
10963 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'
10964 # Commands to make compiler produce verbose output that lists
10965 # what "hidden" libraries, object files and flags are used when
10966 # linking a shared library.
10968 # There doesn't appear to be a way to prevent this compiler from
10969 # explicitly linking system object files so we need to strip them
10970 # from the output so that they don't get included in the library
10972 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'
10974 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
10975 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
10977 # Archives containing C++ object files must be created using
10978 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10979 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
10984 # version 8.0 and above of icpc choke on multiply defined symbols
10985 # if we add $predep_objects and $postdep_objects, however 7.1 and
10986 # earlier do not add the objects themselves.
10987 case `$CC -V 2>&1` in
10989 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10990 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'
10992 *) # Version 8.0 or newer
10995 ia64
*) tmp_idyn
=' -i_dynamic';;
10997 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10998 archive_expsym_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11001 archive_cmds_need_lc_CXX
=no
11002 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11003 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11004 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11007 # Portland Group C++ compiler
11008 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11009 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11011 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
11012 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11013 whole_archive_flag_spec_CXX
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11017 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11018 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'
11020 runpath_var
=LD_RUN_PATH
11021 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11022 hardcode_libdir_separator_CXX
=:
11024 # Commands to make compiler produce verbose output that lists
11025 # what "hidden" libraries, object files and flags are used when
11026 # linking a shared library.
11028 # There doesn't appear to be a way to prevent this compiler from
11029 # explicitly linking system object files so we need to strip them
11030 # from the output so that they don't get included in the library
11032 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'
11037 # FIXME: insert proper C++ library support
11041 # FIXME: insert proper C++ library support
11045 case $cc_basename in
11047 # FIXME: insert proper C++ library support
11051 # FIXME: insert proper C++ library support
11057 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11058 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11060 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11061 hardcode_direct_CXX
=yes
11062 hardcode_shlibpath_var_CXX
=no
11064 # Workaround some broken pre-1.5 toolchains
11065 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11068 # C++ shared libraries are fairly broken
11072 hardcode_direct_CXX
=yes
11073 hardcode_shlibpath_var_CXX
=no
11074 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11075 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11076 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11077 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11078 export_dynamic_flag_spec_CXX
='${wl}-E'
11079 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11081 output_verbose_link_cmd
='echo'
11084 case $cc_basename in
11086 # Kuck and Associates, Inc. (KAI) C++ Compiler
11088 # KCC will only create a shared library if the output file
11089 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11090 # to its proper name (with version) after linking.
11091 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'
11093 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11094 hardcode_libdir_separator_CXX
=:
11096 # Archives containing C++ object files must be created using
11097 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11098 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11102 # Rational C++ 2.4.1
11103 # FIXME: insert proper C++ library support
11107 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11108 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 ${output_objdir}/so_locations -o $lib'
11110 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11111 hardcode_libdir_separator_CXX
=:
11113 # Commands to make compiler produce verbose output that lists
11114 # what "hidden" libraries, object files and flags are used when
11115 # linking a shared library.
11117 # There doesn't appear to be a way to prevent this compiler from
11118 # explicitly linking system object files so we need to strip them
11119 # from the output so that they don't get included in the library
11121 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'
11124 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11125 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11126 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}${output_objdir}/so_locations -o $lib'
11128 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11129 hardcode_libdir_separator_CXX
=:
11131 # Commands to make compiler produce verbose output that lists
11132 # what "hidden" libraries, object files and flags are used when
11133 # linking a shared library.
11134 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11137 # FIXME: insert proper C++ library support
11144 case $cc_basename in
11146 # Kuck and Associates, Inc. (KAI) C++ Compiler
11148 # KCC will only create a shared library if the output file
11149 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11150 # to its proper name (with version) after linking.
11151 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'
11153 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11154 hardcode_libdir_separator_CXX
=:
11156 # Archives containing C++ object files must be created using
11157 # the KAI C++ compiler.
11158 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
11161 # Rational C++ 2.4.1
11162 # FIXME: insert proper C++ library support
11166 allow_undefined_flag_CXX
=' -expect_unresolved \*'
11167 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 ${output_objdir}/so_locations -o $lib'
11168 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11169 echo "-hidden">> $lib.exp~
11170 $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 ${output_objdir}/so_locations -o $lib~
11173 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11174 hardcode_libdir_separator_CXX
=:
11176 # Commands to make compiler produce verbose output that lists
11177 # what "hidden" libraries, object files and flags are used when
11178 # linking a shared library.
11180 # There doesn't appear to be a way to prevent this compiler from
11181 # explicitly linking system object files so we need to strip them
11182 # from the output so that they don't get included in the library
11184 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'
11187 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11188 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11189 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}${output_objdir}/so_locations -o $lib'
11191 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11192 hardcode_libdir_separator_CXX
=:
11194 # Commands to make compiler produce verbose output that lists
11195 # what "hidden" libraries, object files and flags are used when
11196 # linking a shared library.
11197 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11200 # FIXME: insert proper C++ library support
11207 # FIXME: insert proper C++ library support
11211 case $cc_basename in
11214 # FIXME: insert proper C++ library support
11219 # FIXME: insert proper C++ library support
11223 # FIXME: insert proper C++ library support
11229 case $cc_basename in
11231 # Sun C++ 4.2, 5.x and Centerline C++
11232 archive_cmds_need_lc_CXX
=yes
11233 no_undefined_flag_CXX
=' -zdefs'
11234 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11235 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11236 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11238 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11239 hardcode_shlibpath_var_CXX
=no
11241 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11243 # The C++ compiler is used as linker so we must use $wl
11244 # flag to pass the commands to the underlying system
11245 # linker. We must also pass each convience library through
11246 # to the system linker between allextract/defaultextract.
11247 # The C++ compiler will combine linker options so we
11248 # cannot just pass the convience library names through
11250 # Supported since Solaris 2.6 (maybe 2.5.1?)
11251 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11254 link_all_deplibs_CXX
=yes
11256 output_verbose_link_cmd
='echo'
11258 # Archives containing C++ object files must be created using
11259 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11260 # necessary to make sure instantiated templates are included
11262 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
11265 # Green Hills C++ Compiler
11266 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11268 # The C++ compiler must be used to create the archive.
11269 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11272 # GNU C++ compiler with Solaris linker
11273 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11274 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
11275 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
11276 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11277 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11278 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11280 # Commands to make compiler produce verbose output that lists
11281 # what "hidden" libraries, object files and flags are used when
11282 # linking a shared library.
11283 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11285 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11287 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11288 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11289 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11291 # Commands to make compiler produce verbose output that lists
11292 # what "hidden" libraries, object files and flags are used when
11293 # linking a shared library.
11294 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11297 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
11302 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
11303 no_undefined_flag_CXX
='${wl}-z,text'
11304 archive_cmds_need_lc_CXX
=no
11305 hardcode_shlibpath_var_CXX
=no
11306 runpath_var
='LD_RUN_PATH'
11308 case $cc_basename in
11310 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11311 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11314 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11315 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11319 sysv5
* | sco3.2v5
* | sco5v6
*)
11320 # Note: We can NOT use -z defs as we might desire, because we do not
11321 # link with -lc, and that would cause any symbols used from libc to
11322 # always be unresolved, which means just about no library would
11323 # ever link correctly. If we're not using GNU ld we use -z text
11324 # though, which does catch some bad symbols but isn't as heavy-handed
11326 # For security reasons, it is highly recommended that you always
11327 # use absolute paths for naming shared libraries, and exclude the
11328 # DT_RUNPATH tag from executables and libraries. But doing so
11329 # requires that you compile everything twice, which is a pain.
11330 # So that behaviour is only enabled if SCOABSPATH is set to a
11331 # non-empty value in the environment. Most likely only useful for
11332 # creating official distributions of packages.
11333 # This is a hack until libtool officially supports absolute path
11334 # names for shared libraries.
11335 no_undefined_flag_CXX
='${wl}-z,text'
11336 allow_undefined_flag_CXX
='${wl}-z,nodefs'
11337 archive_cmds_need_lc_CXX
=no
11338 hardcode_shlibpath_var_CXX
=no
11339 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11340 hardcode_libdir_separator_CXX
=':'
11341 link_all_deplibs_CXX
=yes
11342 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
11343 runpath_var
='LD_RUN_PATH'
11345 case $cc_basename in
11347 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11348 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11351 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11352 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11357 case $cc_basename in
11359 # NonStop-UX NCC 3.20
11360 # FIXME: insert proper C++ library support
11364 # FIXME: insert proper C++ library support
11370 # FIXME: insert proper C++ library support
11374 # FIXME: insert proper C++ library support
11378 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11379 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11380 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
11386 cat > conftest.
$ac_ext <<EOF
11390 Foo (void) { a = 0; }
11396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11397 (eval $ac_compile) 2>&5
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); }; then
11401 # Parse the compiler output and extract the necessary
11402 # objects, libraries and library flags.
11404 # Sentinel used to keep track of whether or not we are before
11405 # the conftest object file.
11406 pre_test_object_deps_done
=no
11408 # The `*' in the case matches for architectures that use `case' in
11409 # $output_verbose_cmd can trigger glob expansion during the loop
11410 # eval without this substitution.
11411 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11413 for p
in `eval $output_verbose_link_cmd`; do
11417 # Some compilers place space between "-{L,R}" and the path.
11418 # Remove the space.
11419 if test $p = "-L" \
11420 ||
test $p = "-R"; then
11427 if test "$pre_test_object_deps_done" = no
; then
11430 # Internal compiler library paths should come after those
11431 # provided the user. The postdeps already come after the
11432 # user supplied libs so there is no need to process them.
11433 if test -z "$compiler_lib_search_path_CXX"; then
11434 compiler_lib_search_path_CXX
="${prev}${p}"
11436 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
11439 # The "-l" case would never come before the object being
11440 # linked, so don't bother handling this case.
11443 if test -z "$postdeps_CXX"; then
11444 postdeps_CXX
="${prev}${p}"
11446 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
11452 # This assumes that the test object file only shows up
11453 # once in the compiler output.
11454 if test "$p" = "conftest.$objext"; then
11455 pre_test_object_deps_done
=yes
11459 if test "$pre_test_object_deps_done" = no
; then
11460 if test -z "$predep_objects_CXX"; then
11461 predep_objects_CXX
="$p"
11463 predep_objects_CXX
="$predep_objects_CXX $p"
11466 if test -z "$postdep_objects_CXX"; then
11467 postdep_objects_CXX
="$p"
11469 postdep_objects_CXX
="$postdep_objects_CXX $p"
11474 *) ;; # Ignore the rest.
11482 echo "libtool.m4: error: problem compiling CXX test program"
11485 $rm -f confest.
$objext
11487 # PORTME: override above test on systems where it is broken
11490 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11491 # hack all around it, let's just trust "g++" to DTRT.
11492 predep_objects_CXX
=
11493 postdep_objects_CXX
=
11498 case $cc_basename in
11500 # Adding this requires a known-good setup of shared libraries for
11501 # Sun compiler versions before 5.6, else PIC objects from an old
11502 # archive will be linked into the output, leading to subtle bugs.
11503 postdeps_CXX
='-lCstd -lCrun'
11510 case " $postdeps_CXX " in
11511 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
11514 lt_prog_compiler_wl_CXX
=
11515 lt_prog_compiler_pic_CXX
=
11516 lt_prog_compiler_static_CXX
=
11518 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11519 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11521 # C++ specific cases for pic, static, wl, etc.
11522 if test "$GXX" = yes; then
11523 lt_prog_compiler_wl_CXX
='-Wl,'
11524 lt_prog_compiler_static_CXX
='-static'
11528 # All AIX code is PIC.
11529 if test "$host_cpu" = ia64
; then
11530 # AIX 5 now supports IA64 processor
11531 lt_prog_compiler_static_CXX
='-Bstatic'
11535 # FIXME: we need at least 68020 code to build shared libraries, but
11536 # adding the `-m68020' flag to GCC prevents building anything better,
11538 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
11540 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
11541 # PIC is the default for these OSes.
11543 mingw
* | os2
* | pw32
*)
11544 # This hack is so that the source file can tell whether it is being
11545 # built for inclusion in a dll (and should export symbols for example).
11546 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
11548 darwin
* | rhapsody
*)
11549 # PIC is the default on this platform
11550 # Common symbols not allowed in MH_DYLIB files
11551 lt_prog_compiler_pic_CXX
='-fno-common'
11554 # DJGPP does not support shared libraries at all
11555 lt_prog_compiler_pic_CXX
=
11558 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11559 # Instead, we relocate shared libraries at runtime.
11562 if test -d /usr
/nec
; then
11563 lt_prog_compiler_pic_CXX
=-Kconform_pic
11567 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11568 # not for PA HP-UX.
11573 lt_prog_compiler_pic_CXX
='-fPIC'
11578 lt_prog_compiler_pic_CXX
='-fPIC'
11584 # All AIX code is PIC.
11585 if test "$host_cpu" = ia64
; then
11586 # AIX 5 now supports IA64 processor
11587 lt_prog_compiler_static_CXX
='-Bstatic'
11589 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
11593 case $cc_basename in
11595 # Green Hills C++ Compiler
11596 # _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"
11601 # PIC is the default on this platform
11602 # Common symbols not allowed in MH_DYLIB files
11603 case $cc_basename in
11605 lt_prog_compiler_pic_CXX
='-qnocommon'
11606 lt_prog_compiler_wl_CXX
='-Wl,'
11611 case $cc_basename in
11613 lt_prog_compiler_pic_CXX
='-KPIC'
11616 # Green Hills C++ Compiler
11617 lt_prog_compiler_pic_CXX
='-pic'
11623 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
11624 # FreeBSD uses GNU C++
11626 hpux9
* | hpux10
* | hpux11
*)
11627 case $cc_basename in
11629 lt_prog_compiler_wl_CXX
='-Wl,'
11630 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
11631 if test "$host_cpu" != ia64
; then
11632 lt_prog_compiler_pic_CXX
='+Z'
11636 lt_prog_compiler_wl_CXX
='-Wl,'
11637 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
11643 lt_prog_compiler_pic_CXX
='+Z'
11652 # This is c89, which is MS Visual C++ (no shared libs)
11653 # Anyone wants to do a port?
11655 irix5
* | irix6
* | nonstopux
*)
11656 case $cc_basename in
11658 lt_prog_compiler_wl_CXX
='-Wl,'
11659 lt_prog_compiler_static_CXX
='-non_shared'
11660 # CC pic flag -KPIC is the default.
11667 case $cc_basename in
11670 lt_prog_compiler_wl_CXX
='--backend -Wl,'
11671 lt_prog_compiler_pic_CXX
='-fPIC'
11675 lt_prog_compiler_wl_CXX
='-Wl,'
11676 lt_prog_compiler_pic_CXX
='-KPIC'
11677 lt_prog_compiler_static_CXX
='-static'
11680 # Portland Group C++ compiler.
11681 lt_prog_compiler_wl_CXX
='-Wl,'
11682 lt_prog_compiler_pic_CXX
='-fpic'
11683 lt_prog_compiler_static_CXX
='-Bstatic'
11687 # Make sure the PIC flag is empty. It appears that all Alpha
11688 # Linux and Compaq Tru64 Unix objects are PIC.
11689 lt_prog_compiler_pic_CXX
=
11690 lt_prog_compiler_static_CXX
='-non_shared'
11701 case $cc_basename in
11703 lt_prog_compiler_pic_CXX
='-W c,exportall'
11711 osf3
* | osf4
* | osf5
*)
11712 case $cc_basename in
11714 lt_prog_compiler_wl_CXX
='--backend -Wl,'
11717 # Rational C++ 2.4.1
11718 lt_prog_compiler_pic_CXX
='-pic'
11721 # Digital/Compaq C++
11722 lt_prog_compiler_wl_CXX
='-Wl,'
11723 # Make sure the PIC flag is empty. It appears that all Alpha
11724 # Linux and Compaq Tru64 Unix objects are PIC.
11725 lt_prog_compiler_pic_CXX
=
11726 lt_prog_compiler_static_CXX
='-non_shared'
11735 case $cc_basename in
11737 # Sun C++ 4.2, 5.x and Centerline C++
11738 lt_prog_compiler_pic_CXX
='-KPIC'
11739 lt_prog_compiler_static_CXX
='-Bstatic'
11740 lt_prog_compiler_wl_CXX
='-Qoption ld '
11743 # Green Hills C++ Compiler
11744 lt_prog_compiler_pic_CXX
='-PIC'
11751 case $cc_basename in
11754 lt_prog_compiler_pic_CXX
='-pic'
11755 lt_prog_compiler_static_CXX
='-Bstatic'
11759 lt_prog_compiler_pic_CXX
='-pic'
11766 case $cc_basename in
11768 # NonStop-UX NCC 3.20
11769 lt_prog_compiler_pic_CXX
='-KPIC'
11775 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
11776 case $cc_basename in
11778 lt_prog_compiler_wl_CXX
='-Wl,'
11779 lt_prog_compiler_pic_CXX
='-KPIC'
11780 lt_prog_compiler_static_CXX
='-Bstatic'
11787 lt_prog_compiler_can_build_shared_CXX
=no
11792 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11793 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11796 # Check to make sure the PIC flag actually works.
11798 if test -n "$lt_prog_compiler_pic_CXX"; then
11800 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11801 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11802 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11805 lt_prog_compiler_pic_works_CXX
=no
11806 ac_outfile
=conftest.
$ac_objext
11807 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11808 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
11809 # Insert the option either (1) after the last *FLAGS variable, or
11810 # (2) before a word containing "conftest.", or (3) at the end.
11811 # Note that $ac_compile itself does not contain backslashes and begins
11812 # with a dollar sign (not a hyphen), so the echo should work correctly.
11813 # The option is referenced via a variable to avoid confusing sed.
11814 lt_compile
=`echo "$ac_compile" | $SED \
11815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11817 -e 's:$: $lt_compiler_flag:'`
11818 (eval echo "\"\$as_me:11818: $lt_compile\"" >&5)
11819 (eval "$lt_compile" 2>conftest.err
)
11821 cat conftest.err
>&5
11822 echo "$as_me:11822: \$? = $ac_status" >&5
11823 if (exit $ac_status) && test -s "$ac_outfile"; then
11824 # The compiler can only warn and ignore the option if not recognized
11825 # So say no if there are warnings other than the usual output.
11826 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
11827 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
11828 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
11829 lt_prog_compiler_pic_works_CXX
=yes
11835 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11836 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11838 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
11839 case $lt_prog_compiler_pic_CXX in
11841 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
11844 lt_prog_compiler_pic_CXX
=
11845 lt_prog_compiler_can_build_shared_CXX
=no
11850 # For platforms which do not support PIC, -DPIC is meaningless:
11852 lt_prog_compiler_pic_CXX
=
11855 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
11860 # Check to make sure the static flag actually works.
11862 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
11863 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11864 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11865 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11866 echo $ECHO_N "(cached) $ECHO_C" >&6
11868 lt_prog_compiler_static_works_CXX
=no
11869 save_LDFLAGS
="$LDFLAGS"
11870 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
11871 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
11872 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
11873 # The linker can only warn and ignore the option if not recognized
11874 # So say no if there are warnings
11875 if test -s conftest.err
; then
11876 # Append any errors to the config.log.
11877 cat conftest.err
1>&5
11878 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
11879 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
11880 if diff conftest.exp conftest.er2
>/dev
/null
; then
11881 lt_prog_compiler_static_works_CXX
=yes
11884 lt_prog_compiler_static_works_CXX
=yes
11888 LDFLAGS
="$save_LDFLAGS"
11891 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11892 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11894 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
11897 lt_prog_compiler_static_CXX
=
11901 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11902 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11903 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11904 echo $ECHO_N "(cached) $ECHO_C" >&6
11906 lt_cv_prog_compiler_c_o_CXX
=no
11907 $rm -r conftest
2>/dev
/null
11911 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11913 lt_compiler_flag
="-o out/conftest2.$ac_objext"
11914 # Insert the option either (1) after the last *FLAGS variable, or
11915 # (2) before a word containing "conftest.", or (3) at the end.
11916 # Note that $ac_compile itself does not contain backslashes and begins
11917 # with a dollar sign (not a hyphen), so the echo should work correctly.
11918 lt_compile
=`echo "$ac_compile" | $SED \
11919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11921 -e 's:$: $lt_compiler_flag:'`
11922 (eval echo "\"\$as_me:11922: $lt_compile\"" >&5)
11923 (eval "$lt_compile" 2>out
/conftest.err
)
11925 cat out
/conftest.err
>&5
11926 echo "$as_me:11926: \$? = $ac_status" >&5
11927 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
11929 # The compiler can only warn and ignore the option if not recognized
11930 # So say no if there are warnings
11931 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
11932 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
11933 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
11934 lt_cv_prog_compiler_c_o_CXX
=yes
11939 # SGI C++ compiler will create directory out/ii_files/ for
11940 # template instantiation
11941 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
11942 $rm out
/* && rmdir out
11948 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11949 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11952 hard_links
="nottested"
11953 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
11954 # do not overwrite the value of need_locks provided by the user
11955 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11956 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11959 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
11961 ln conftest.a conftest.b
2>&5 || hard_links
=no
11962 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
11963 echo "$as_me:$LINENO: result: $hard_links" >&5
11964 echo "${ECHO_T}$hard_links" >&6
11965 if test "$hard_links" = no
; then
11966 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11967 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11974 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11975 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11977 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11980 # If we're using GNU nm, then we don't want the "-C" option.
11981 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11982 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
11983 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'
11985 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'
11989 export_symbols_cmds_CXX
="$ltdll_cmds"
11992 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11995 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11999 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12000 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12001 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
12004 # Do we need to explicitly link libc?
12006 case "x$archive_cmds_need_lc_CXX" in
12008 # Assume -lc should be added
12009 archive_cmds_need_lc_CXX
=yes
12011 if test "$enable_shared" = yes && test "$GCC" = yes; then
12012 case $archive_cmds_CXX in
12014 # FIXME: we may have to deal with multi-command sequences.
12017 # Test whether the compiler implicitly links with -lc since on some
12018 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12019 # to ld, don't add -lc before -lgcc.
12020 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12021 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12023 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
12025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12026 (eval $ac_compile) 2>&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } 2>conftest.err
; then
12032 libobjs
=conftest.
$ac_objext
12034 wl
=$lt_prog_compiler_wl_CXX
12035 pic_flag
=$lt_prog_compiler_pic_CXX
12041 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
12042 allow_undefined_flag_CXX
=
12043 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12044 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }
12049 archive_cmds_need_lc_CXX
=no
12051 archive_cmds_need_lc_CXX
=yes
12053 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
12055 cat conftest.err
1>&5
12058 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12059 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12066 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12067 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12068 library_names_spec
=
12069 libname_spec
='lib$name'
12073 postuninstall_cmds
=
12077 shlibpath_overrides_runpath
=unknown
12079 dynamic_linker
="$host_os ld.so"
12080 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
12081 if test "$GCC" = yes; then
12082 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12083 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
12084 # if the path contains ";" then we assume it to be the separator
12085 # otherwise default to the standard path separator (i.e. ":") - it is
12086 # assumed that no part of a normal pathname contains ";" but that should
12087 # okay in the real world where ";" in dirpaths is itself problematic.
12088 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12090 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12093 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
12095 need_lib_prefix
=unknown
12096 hardcode_into_libs
=no
12098 # when you set need_version to no, make sure it does not cause -set_version
12099 # flags to be left without arguments
12100 need_version
=unknown
12105 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
12106 shlibpath_var
=LIBPATH
12108 # AIX 3 has no versioning support, so we append a major version to the name.
12109 soname_spec
='${libname}${release}${shared_ext}$major'
12116 hardcode_into_libs
=yes
12117 if test "$host_cpu" = ia64
; then
12118 # AIX 5 supports IA64
12119 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12120 shlibpath_var
=LD_LIBRARY_PATH
12122 # With GCC up to 2.95.x, collect2 would create an import file
12123 # for dependence libraries. The import file would start with
12124 # the line `#! .'. This would cause the generated library to
12125 # depend on `.', always an invalid library. This was fixed in
12126 # development snapshots of GCC prior to 3.0.
12128 aix4 | aix4.
[01] | aix4.
[01].
*)
12129 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12131 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
12134 can_build_shared
=no
12138 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12139 # soname into executable. Probably we can add versioning support to
12140 # collect2, so additional links can be useful in future.
12141 if test "$aix_use_runtimelinking" = yes; then
12142 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12143 # instead of lib<name>.a to let people know that these are not
12144 # typical AIX shared libraries.
12145 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12147 # We preserve .a as extension for shared libraries through AIX4.2
12148 # and later when we are not doing run time linking.
12149 library_names_spec
='${libname}${release}.a $libname.a'
12150 soname_spec
='${libname}${release}${shared_ext}$major'
12152 shlibpath_var
=LIBPATH
12157 library_names_spec
='$libname.ixlibrary $libname.a'
12158 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12159 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'
12163 library_names_spec
='${libname}${shared_ext}'
12164 dynamic_linker
="$host_os ld.so"
12165 shlibpath_var
=LIBRARY_PATH
12171 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12172 soname_spec
='${libname}${release}${shared_ext}$major'
12173 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
12174 shlibpath_var
=LD_LIBRARY_PATH
12175 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12176 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
12177 # the default ld.so.conf also contains /usr/contrib/lib and
12178 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12179 # libtool to hard-code these into programs
12182 cygwin
* | mingw
* | pw32
*)
12183 version_type
=windows
12188 case $GCC,$host_os in
12189 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
12190 library_names_spec
='$libname.dll.a'
12191 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12192 postinstall_cmds
='base_file=`basename \${file}`~
12193 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12194 dldir=$destdir/`dirname \$dlpath`~
12195 test -d \$dldir || mkdir -p \$dldir~
12196 $install_prog $dir/$dlname \$dldir/$dlname~
12197 chmod a+x \$dldir/$dlname'
12198 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12199 dlpath=$dir/\$dldll~
12201 shlibpath_overrides_runpath
=yes
12205 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12206 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12207 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
12210 # MinGW DLLs use traditional 'lib' prefix
12211 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12212 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12213 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
12214 # It is most probably a Windows format PATH printed by
12215 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12216 # path with ; separators, and with drive letters. We can handle the
12217 # drive letters (cygwin fileutils understands them), so leave them,
12218 # especially as we might pass files found there to a mingw objdump,
12219 # which wouldn't understand a cygwinified path. Ahh.
12220 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12222 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12226 # pw32 DLLs use 'pw' prefix rather than 'lib'
12227 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12233 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12236 dynamic_linker
='Win32 ld.exe'
12237 # FIXME: first we should search . and the directory the executable is in
12241 darwin
* | rhapsody
*)
12242 dynamic_linker
="$host_os dyld"
12243 version_type
=darwin
12246 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12247 soname_spec
='${libname}${release}${major}$shared_ext'
12248 shlibpath_overrides_runpath
=yes
12249 shlibpath_var
=DYLD_LIBRARY_PATH
12250 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
12251 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12252 if test "$GCC" = yes; then
12253 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"`
12255 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
12257 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
12264 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12265 soname_spec
='${libname}${release}${shared_ext}$major'
12266 shlibpath_var
=LD_LIBRARY_PATH
12277 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12278 soname_spec
='${libname}${release}${shared_ext}$major'
12279 shlibpath_var
=LD_LIBRARY_PATH
12280 shlibpath_overrides_runpath
=no
12281 hardcode_into_libs
=yes
12282 dynamic_linker
='GNU ld.so'
12285 freebsd
* | dragonfly
*)
12286 # DragonFly does not have aout. When/if they implement a new
12287 # versioning mechanism, adjust this.
12288 if test -x /usr
/bin
/objformat
; then
12289 objformat
=`/usr/bin/objformat`
12292 freebsd
[123]*) objformat
=aout
;;
12293 *) objformat
=elf
;;
12296 version_type
=freebsd-
$objformat
12297 case $version_type in
12299 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12304 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12308 shlibpath_var
=LD_LIBRARY_PATH
12311 shlibpath_overrides_runpath
=yes
12313 freebsd3.
[01]* | freebsdelf3.
[01]*)
12314 shlibpath_overrides_runpath
=yes
12315 hardcode_into_libs
=yes
12317 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
12318 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
12319 shlibpath_overrides_runpath
=no
12320 hardcode_into_libs
=yes
12322 freebsd
*) # from 4.6 on
12323 shlibpath_overrides_runpath
=yes
12324 hardcode_into_libs
=yes
12333 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12334 soname_spec
='${libname}${release}${shared_ext}$major'
12335 shlibpath_var
=LD_LIBRARY_PATH
12336 hardcode_into_libs
=yes
12339 hpux9
* | hpux10
* | hpux11
*)
12340 # Give a soname corresponding to the major version so that dld.sl refuses to
12341 # link against other versions.
12348 hardcode_into_libs
=yes
12349 dynamic_linker
="$host_os dld.so"
12350 shlibpath_var
=LD_LIBRARY_PATH
12351 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12352 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12353 soname_spec
='${libname}${release}${shared_ext}$major'
12354 if test "X$HPUX_IA64_MODE" = X32
; then
12355 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12357 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
12359 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12363 hardcode_into_libs
=yes
12364 dynamic_linker
="$host_os dld.sl"
12365 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
12366 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12367 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12368 soname_spec
='${libname}${release}${shared_ext}$major'
12369 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12370 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12374 dynamic_linker
="$host_os dld.sl"
12375 shlibpath_var
=SHLIB_PATH
12376 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
12377 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12378 soname_spec
='${libname}${release}${shared_ext}$major'
12381 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12382 postinstall_cmds
='chmod 555 $lib'
12389 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12390 soname_spec
='${libname}${release}${shared_ext}$major'
12391 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
12392 shlibpath_var
=LD_LIBRARY_PATH
12393 shlibpath_overrides_runpath
=no
12394 hardcode_into_libs
=yes
12397 irix5
* | irix6
* | nonstopux
*)
12399 nonstopux
*) version_type
=nonstopux
;;
12401 if test "$lt_cv_prog_gnu_ld" = yes; then
12409 soname_spec
='${libname}${release}${shared_ext}$major'
12410 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12412 irix5
* | nonstopux
*)
12413 libsuff
= shlibsuff
=
12416 case $LD in # libtool.m4 will add one of these switches to LD
12417 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
12418 libsuff
= shlibsuff
= libmagic
=32-bit;;
12419 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
12420 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
12421 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
12422 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
12423 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
12427 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
12428 shlibpath_overrides_runpath
=no
12429 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12430 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
12431 hardcode_into_libs
=yes
12434 # No shared lib support for Linux oldld, aout, or coff.
12435 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
12439 # This must be Linux ELF.
12444 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12445 soname_spec
='${libname}${release}${shared_ext}$major'
12446 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12447 shlibpath_var
=LD_LIBRARY_PATH
12448 shlibpath_overrides_runpath
=no
12449 # This implies no fast_install, which is unacceptable.
12450 # Some rework will be needed to allow for fast_install
12451 # before this can be enabled.
12452 hardcode_into_libs
=yes
12454 # find out which ABI we are using
12456 case "$host_cpu" in
12457 x86_64
*|s390x
*|powerpc64
*)
12458 echo '#line 12458 "configure"' > conftest.
$ac_ext
12459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12460 (eval $ac_compile) 2>&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; then
12464 case `/usr/bin/file conftest.$ac_objext` in
12467 sys_lib_search_path_spec
="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12475 # Append ld.so.conf contents to the search path
12476 if test -f /etc
/ld.so.conf
; then
12477 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12478 sys_lib_dlsearch_path_spec
="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12481 # We used to test for /lib/ld.so.1 and disable shared libraries on
12482 # powerpc, because MkLinux only supported shared libraries with the
12483 # GNU dynamic linker. Since this was broken with cross compilers,
12484 # most powerpc-linux boxes support dynamic linking these days and
12485 # people can always --disable-shared, the test was removed, and we
12486 # assume the GNU/Linux dynamic linker is in use.
12487 dynamic_linker
='GNU/Linux ld.so'
12494 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12495 soname_spec
='${libname}${release}${shared_ext}$major'
12496 shlibpath_var
=LD_LIBRARY_PATH
12497 shlibpath_overrides_runpath
=no
12498 hardcode_into_libs
=yes
12499 dynamic_linker
='GNU ld.so'
12506 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
12507 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12508 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12509 dynamic_linker
='NetBSD (a.out) ld.so'
12511 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12512 soname_spec
='${libname}${release}${shared_ext}$major'
12513 dynamic_linker
='NetBSD ld.elf_so'
12515 shlibpath_var
=LD_LIBRARY_PATH
12516 shlibpath_overrides_runpath
=yes
12517 hardcode_into_libs
=yes
12522 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12523 shlibpath_var
=LD_LIBRARY_PATH
12524 shlibpath_overrides_runpath
=yes
12531 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12532 soname_spec
='${libname}${release}${shared_ext}$major'
12533 shlibpath_var
=LD_LIBRARY_PATH
12534 shlibpath_overrides_runpath
=yes
12539 sys_lib_dlsearch_path_spec
="/usr/lib"
12541 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12543 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
12544 *) need_version
=no
;;
12546 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12547 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12548 shlibpath_var
=LD_LIBRARY_PATH
12549 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12551 openbsd2.
[89] | openbsd2.
[89].
*)
12552 shlibpath_overrides_runpath
=no
12555 shlibpath_overrides_runpath
=yes
12559 shlibpath_overrides_runpath
=yes
12564 libname_spec
='$name'
12567 library_names_spec
='$libname${shared_ext} $libname.a'
12568 dynamic_linker
='OS/2 ld.exe'
12569 shlibpath_var
=LIBPATH
12572 osf3
* | osf4
* | osf5
*)
12576 soname_spec
='${libname}${release}${shared_ext}$major'
12577 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12578 shlibpath_var
=LD_LIBRARY_PATH
12579 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12580 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
12587 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12588 soname_spec
='${libname}${release}${shared_ext}$major'
12589 shlibpath_var
=LD_LIBRARY_PATH
12590 shlibpath_overrides_runpath
=yes
12591 hardcode_into_libs
=yes
12592 # ldd complains unless libraries are executable
12593 postinstall_cmds
='chmod +x $lib'
12598 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12599 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12600 shlibpath_var
=LD_LIBRARY_PATH
12601 shlibpath_overrides_runpath
=yes
12602 if test "$with_gnu_ld" = yes; then
12610 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12611 soname_spec
='${libname}${release}${shared_ext}$major'
12612 shlibpath_var
=LD_LIBRARY_PATH
12613 case $host_vendor in
12615 shlibpath_overrides_runpath
=no
12617 export_dynamic_flag_spec
='${wl}-Blargedynsym'
12618 runpath_var
=LD_RUN_PATH
12626 shlibpath_overrides_runpath
=no
12627 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
12633 if test -d /usr
/nec
;then
12635 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12636 soname_spec
='$libname${shared_ext}.$major'
12637 shlibpath_var
=LD_LIBRARY_PATH
12641 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
12642 version_type
=freebsd-elf
12645 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12646 soname_spec
='${libname}${release}${shared_ext}$major'
12647 shlibpath_var
=LD_LIBRARY_PATH
12648 hardcode_into_libs
=yes
12649 if test "$with_gnu_ld" = yes; then
12650 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12651 shlibpath_overrides_runpath
=no
12653 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
12654 shlibpath_overrides_runpath
=yes
12657 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
12661 sys_lib_dlsearch_path_spec
='/usr/lib'
12666 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12667 soname_spec
='${libname}${release}${shared_ext}$major'
12668 shlibpath_var
=LD_LIBRARY_PATH
12675 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12676 echo "${ECHO_T}$dynamic_linker" >&6
12677 test "$dynamic_linker" = no
&& can_build_shared
=no
12679 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
12680 if test "$GCC" = yes; then
12681 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12684 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12685 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12686 hardcode_action_CXX
=
12687 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12688 test -n "$runpath_var_CXX" || \
12689 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12691 # We can hardcode non-existant directories.
12692 if test "$hardcode_direct_CXX" != no
&&
12693 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12694 # have to relink, otherwise we might link with an installed library
12695 # when we should be linking with a yet-to-be-installed one
12696 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12697 test "$hardcode_minus_L_CXX" != no
; then
12698 # Linking always hardcodes the temporary library directory.
12699 hardcode_action_CXX
=relink
12701 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12702 hardcode_action_CXX
=immediate
12705 # We cannot hardcode anything, or else we can only hardcode existing
12707 hardcode_action_CXX
=unsupported
12709 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12710 echo "${ECHO_T}$hardcode_action_CXX" >&6
12712 if test "$hardcode_action_CXX" = relink
; then
12713 # Fast installation is not supported
12714 enable_fast_install
=no
12715 elif test "$shlibpath_overrides_runpath" = yes ||
12716 test "$enable_shared" = no
; then
12717 # Fast installation is not necessary
12718 enable_fast_install
=needless
12722 # The else clause should only fire when bootstrapping the
12723 # libtool distribution, otherwise you forgot to ship ltmain.sh
12724 # with your package, and you will get complaints that there are
12725 # no rules to generate ltmain.sh.
12726 if test -f "$ltmain"; then
12727 # See if we are running on zsh, and set the options which allow our commands through
12728 # without removal of \ escapes.
12729 if test -n "${ZSH_VERSION+set}" ; then
12730 setopt NO_GLOB_SUBST
12732 # Now quote all the things that may contain metacharacters while being
12733 # careful not to overquote the AC_SUBSTed values. We take copies of the
12734 # variables and quote the copies for generation of the libtool script.
12735 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12737 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12738 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12739 deplibs_check_method reload_flag reload_cmds need_locks \
12740 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12741 lt_cv_sys_global_symbol_to_c_name_address \
12742 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12743 old_postinstall_cmds old_postuninstall_cmds \
12747 lt_prog_compiler_wl_CXX \
12748 lt_prog_compiler_pic_CXX \
12749 lt_prog_compiler_static_CXX \
12750 lt_prog_compiler_no_builtin_flag_CXX \
12751 export_dynamic_flag_spec_CXX \
12752 thread_safe_flag_spec_CXX \
12753 whole_archive_flag_spec_CXX \
12754 enable_shared_with_static_runtimes_CXX \
12755 old_archive_cmds_CXX \
12756 old_archive_from_new_cmds_CXX \
12757 predep_objects_CXX \
12758 postdep_objects_CXX \
12761 compiler_lib_search_path_CXX \
12763 archive_expsym_cmds_CXX \
12764 postinstall_cmds_CXX \
12765 postuninstall_cmds_CXX \
12766 old_archive_from_expsyms_cmds_CXX \
12767 allow_undefined_flag_CXX \
12768 no_undefined_flag_CXX \
12769 export_symbols_cmds_CXX \
12770 hardcode_libdir_flag_spec_CXX \
12771 hardcode_libdir_flag_spec_ld_CXX \
12772 hardcode_libdir_separator_CXX \
12773 hardcode_automatic_CXX \
12775 module_expsym_cmds_CXX \
12776 lt_cv_prog_compiler_c_o_CXX \
12777 exclude_expsyms_CXX \
12778 include_expsyms_CXX
; do
12781 old_archive_cmds_CXX | \
12782 old_archive_from_new_cmds_CXX | \
12783 archive_cmds_CXX | \
12784 archive_expsym_cmds_CXX | \
12785 module_cmds_CXX | \
12786 module_expsym_cmds_CXX | \
12787 old_archive_from_expsyms_cmds_CXX | \
12788 export_symbols_cmds_CXX | \
12789 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12790 postinstall_cmds | postuninstall_cmds | \
12791 old_postinstall_cmds | old_postuninstall_cmds | \
12792 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
12793 # Double-quote double-evaled strings.
12794 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12797 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12803 *'\$0 --fallback-echo"')
12804 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12810 cat <<__EOF__ >> "$cfgfile"
12811 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12813 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12815 # Shell to use when invoking shell scripts.
12818 # Whether or not to build shared libraries.
12819 build_libtool_libs=$enable_shared
12821 # Whether or not to build static libraries.
12822 build_old_libs=$enable_static
12824 # Whether or not to add -lc for building shared libraries.
12825 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12827 # Whether or not to disallow shared libs when runtime libs are static
12828 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12830 # Whether or not to optimize for fast installation.
12831 fast_install=$enable_fast_install
12834 host_alias=$host_alias
12838 # The build system.
12839 build_alias=$build_alias
12843 # An echo program that does not interpret backslashes.
12848 AR_FLAGS=$lt_AR_FLAGS
12853 # LTCC compiler flags.
12854 LTCFLAGS=$lt_LTCFLAGS
12856 # A language-specific compiler.
12857 CC=$lt_compiler_CXX
12859 # Is the compiler the GNU C compiler?
12862 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12863 gcc_ver=\`gcc -dumpversion\`
12868 # The linker used to build libraries.
12871 # Whether we need hard or soft links.
12874 # A BSD-compatible nm program.
12877 # A symbol stripping program
12880 # Used to examine libraries when file_magic_cmd begins "file"
12881 MAGIC_CMD=$MAGIC_CMD
12883 # Used on cygwin: DLL creation program.
12886 # Used on cygwin: object dumper.
12889 # Used on cygwin: assembler.
12892 # The name of the directory that contains temporary libtool files.
12895 # How to create reloadable object files.
12896 reload_flag=$lt_reload_flag
12897 reload_cmds=$lt_reload_cmds
12899 # How to pass a linker flag through the compiler.
12900 wl=$lt_lt_prog_compiler_wl_CXX
12902 # Object file suffix (normally "o").
12903 objext="$ac_objext"
12905 # Old archive suffix (normally "a").
12908 # Shared library suffix (normally ".so").
12909 shrext_cmds='$shrext_cmds'
12911 # Executable file suffix (normally "").
12914 # Additional compiler flags for building library objects.
12915 pic_flag=$lt_lt_prog_compiler_pic_CXX
12918 # What is the maximum length of a command?
12919 max_cmd_len=$lt_cv_sys_max_cmd_len
12921 # Does compiler simultaneously support -c and -o options?
12922 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12924 # Must we lock files when doing compilation?
12925 need_locks=$lt_need_locks
12927 # Do we need the lib prefix for modules?
12928 need_lib_prefix=$need_lib_prefix
12930 # Do we need a version for libraries?
12931 need_version=$need_version
12933 # Whether dlopen is supported.
12934 dlopen_support=$enable_dlopen
12936 # Whether dlopen of programs is supported.
12937 dlopen_self=$enable_dlopen_self
12939 # Whether dlopen of statically linked programs is supported.
12940 dlopen_self_static=$enable_dlopen_self_static
12942 # Compiler flag to prevent dynamic linking.
12943 link_static_flag=$lt_lt_prog_compiler_static_CXX
12945 # Compiler flag to turn off builtin functions.
12946 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12948 # Compiler flag to allow reflexive dlopens.
12949 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12951 # Compiler flag to generate shared objects directly from archives.
12952 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12954 # Compiler flag to generate thread-safe objects.
12955 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12957 # Library versioning type.
12958 version_type=$version_type
12960 # Format of library name prefix.
12961 libname_spec=$lt_libname_spec
12963 # List of archive names. First name is the real one, the rest are links.
12964 # The last name is the one that the linker finds with -lNAME.
12965 library_names_spec=$lt_library_names_spec
12967 # The coded name of the library, if different from the real name.
12968 soname_spec=$lt_soname_spec
12970 # Commands used to build and install an old-style archive.
12972 old_archive_cmds=$lt_old_archive_cmds_CXX
12973 old_postinstall_cmds=$lt_old_postinstall_cmds
12974 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12976 # Create an old-style archive from a shared archive.
12977 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12979 # Create a temporary old-style archive to link instead of a shared archive.
12980 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12982 # Commands used to build and install a shared archive.
12983 archive_cmds=$lt_archive_cmds_CXX
12984 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12985 postinstall_cmds=$lt_postinstall_cmds
12986 postuninstall_cmds=$lt_postuninstall_cmds
12988 # Commands used to build a loadable module (assumed same as above if empty)
12989 module_cmds=$lt_module_cmds_CXX
12990 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12992 # Commands to strip libraries.
12993 old_striplib=$lt_old_striplib
12994 striplib=$lt_striplib
12996 # Dependencies to place before the objects being linked to create a
12998 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13000 # Dependencies to place after the objects being linked to create a
13002 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13004 # Dependencies to place before the objects being linked to create a
13006 predeps=$lt_predeps_CXX
13008 # Dependencies to place after the objects being linked to create a
13010 postdeps=$lt_postdeps_CXX
13012 # The library search path used internally by the compiler when linking
13013 # a shared library.
13014 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13016 # Method to check whether dependent libraries are shared objects.
13017 deplibs_check_method=$lt_deplibs_check_method
13019 # Command to use when deplibs_check_method == file_magic.
13020 file_magic_cmd=$lt_file_magic_cmd
13022 # Flag that allows shared libraries with undefined symbols to be built.
13023 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13025 # Flag that forces no undefined symbols.
13026 no_undefined_flag=$lt_no_undefined_flag_CXX
13028 # Commands used to finish a libtool library installation in a directory.
13029 finish_cmds=$lt_finish_cmds
13031 # Same as above, but a single script fragment to be evaled but not shown.
13032 finish_eval=$lt_finish_eval
13034 # Take the output of nm and produce a listing of raw symbols and C names.
13035 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13037 # Transform the output of nm in a proper C declaration
13038 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13040 # Transform the output of nm in a C name address pair
13041 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13043 # This is the shared library runtime path variable.
13044 runpath_var=$runpath_var
13046 # This is the shared library path variable.
13047 shlibpath_var=$shlibpath_var
13049 # Is shlibpath searched before the hard-coded library search path?
13050 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13052 # How to hardcode a shared library path into an executable.
13053 hardcode_action=$hardcode_action_CXX
13055 # Whether we should hardcode library paths into libraries.
13056 hardcode_into_libs=$hardcode_into_libs
13058 # Flag to hardcode \$libdir into a binary during linking.
13059 # This must work even if \$libdir does not exist.
13060 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13062 # If ld is used when linking, flag to hardcode \$libdir into
13063 # a binary during linking. This must work even if \$libdir does
13065 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13067 # Whether we need a single -rpath flag with a separated argument.
13068 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13070 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13071 # resulting binary.
13072 hardcode_direct=$hardcode_direct_CXX
13074 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13075 # resulting binary.
13076 hardcode_minus_L=$hardcode_minus_L_CXX
13078 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13079 # the resulting binary.
13080 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13082 # Set to yes if building a shared library automatically hardcodes DIR into the library
13083 # and all subsequent libraries and executables linked against it.
13084 hardcode_automatic=$hardcode_automatic_CXX
13086 # Variables whose values should be saved in libtool wrapper scripts and
13087 # restored at relink time.
13088 variables_saved_for_relink="$variables_saved_for_relink"
13090 # Whether libtool must link a program against all its dependency libraries.
13091 link_all_deplibs=$link_all_deplibs_CXX
13093 # Compile-time system search path for libraries
13094 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13096 # Run-time system search path for libraries
13097 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13099 # Fix the shell variable \$srcfile for the compiler.
13100 fix_srcfile_path="$fix_srcfile_path_CXX"
13102 # Set to yes if exported symbols are required.
13103 always_export_symbols=$always_export_symbols_CXX
13105 # The commands to list exported symbols.
13106 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13108 # The commands to extract the exported symbol list from a shared archive.
13109 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13111 # Symbols that should not be listed in the preloaded symbols.
13112 exclude_expsyms=$lt_exclude_expsyms_CXX
13114 # Symbols that must always be exported.
13115 include_expsyms=$lt_include_expsyms_CXX
13117 # ### END LIBTOOL TAG CONFIG: $tagname
13123 # If there is no Makefile yet, we rely on a make rule to execute
13124 # `config.status --recheck' to rerun these tests and create the
13125 # libtool script then.
13126 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13127 if test -f "$ltmain_in"; then
13128 test -f Makefile
&& make "$ltmain"
13134 ac_cpp
='$CPP $CPPFLAGS'
13135 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13136 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13137 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13143 with_gnu_ldcxx
=$with_gnu_ld
13144 with_gnu_ld
=$lt_save_with_gnu_ld
13145 lt_cv_path_LDCXX
=$lt_cv_path_LD
13146 lt_cv_path_LD
=$lt_save_path_LD
13147 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
13148 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
13156 if test -n "$F77" && test "X$F77" != "Xno"; then
13159 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13160 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13161 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
13164 archive_cmds_need_lc_F77
=no
13165 allow_undefined_flag_F77
=
13166 always_export_symbols_F77
=no
13167 archive_expsym_cmds_F77
=
13168 export_dynamic_flag_spec_F77
=
13169 hardcode_direct_F77
=no
13170 hardcode_libdir_flag_spec_F77
=
13171 hardcode_libdir_flag_spec_ld_F77
=
13172 hardcode_libdir_separator_F77
=
13173 hardcode_minus_L_F77
=no
13174 hardcode_automatic_F77
=no
13176 module_expsym_cmds_F77
=
13177 link_all_deplibs_F77
=unknown
13178 old_archive_cmds_F77
=$old_archive_cmds
13179 no_undefined_flag_F77
=
13180 whole_archive_flag_spec_F77
=
13181 enable_shared_with_static_runtimes_F77
=no
13183 # Source file extension for f77 test sources.
13186 # Object file extension for compiled f77 test sources.
13190 # Code to be used in simple compile tests
13191 lt_simple_compile_test_code
=" subroutine t\n return\n end\n"
13193 # Code to be used in simple link tests
13194 lt_simple_link_test_code
=" program t\n end\n"
13196 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13198 # If no C compiler was specified, use CC.
13201 # If no C compiler flags were specified, use CFLAGS.
13202 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
13204 # Allow CC to be a program name with arguments.
13208 # save warnings/boilerplate of simple test code
13209 ac_outfile
=conftest.
$ac_objext
13210 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
13211 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13212 _lt_compiler_boilerplate
=`cat conftest.err`
13215 ac_outfile
=conftest.
$ac_objext
13216 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
13217 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13218 _lt_linker_boilerplate
=`cat conftest.err`
13222 # Allow CC to be a program name with arguments.
13227 for cc_temp
in $compiler""; do
13229 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
13230 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
13235 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13238 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13239 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13240 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13241 echo "${ECHO_T}$can_build_shared" >&6
13243 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13244 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13245 test "$can_build_shared" = "no" && enable_shared
=no
13247 # On AIX, shared libraries and static libraries use the same namespace, and
13248 # are all built from PIC.
13251 test "$enable_shared" = yes && enable_static
=no
13252 if test -n "$RANLIB"; then
13253 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
13254 postinstall_cmds
='$RANLIB $lib'
13258 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
13259 test "$enable_shared" = yes && enable_static
=no
13263 echo "$as_me:$LINENO: result: $enable_shared" >&5
13264 echo "${ECHO_T}$enable_shared" >&6
13266 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13267 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13268 # Make sure either enable_shared or enable_static is yes.
13269 test "$enable_shared" = yes || enable_static
=yes
13270 echo "$as_me:$LINENO: result: $enable_static" >&5
13271 echo "${ECHO_T}$enable_static" >&6
13276 lt_prog_compiler_wl_F77
=
13277 lt_prog_compiler_pic_F77
=
13278 lt_prog_compiler_static_F77
=
13280 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13281 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13283 if test "$GCC" = yes; then
13284 lt_prog_compiler_wl_F77
='-Wl,'
13285 lt_prog_compiler_static_F77
='-static'
13289 # All AIX code is PIC.
13290 if test "$host_cpu" = ia64
; then
13291 # AIX 5 now supports IA64 processor
13292 lt_prog_compiler_static_F77
='-Bstatic'
13297 # FIXME: we need at least 68020 code to build shared libraries, but
13298 # adding the `-m68020' flag to GCC prevents building anything better,
13300 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
13303 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13304 # PIC is the default for these OSes.
13307 mingw
* | pw32
* | os2
*)
13308 # This hack is so that the source file can tell whether it is being
13309 # built for inclusion in a dll (and should export symbols for example).
13310 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13313 darwin
* | rhapsody
*)
13314 # PIC is the default on this platform
13315 # Common symbols not allowed in MH_DYLIB files
13316 lt_prog_compiler_pic_F77
='-fno-common'
13320 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13321 # Instead, we relocate shared libraries at runtime.
13325 # Just because we use GCC doesn't mean we suddenly get shared libraries
13326 # on systems that don't support them.
13327 lt_prog_compiler_can_build_shared_F77
=no
13332 if test -d /usr
/nec
; then
13333 lt_prog_compiler_pic_F77
=-Kconform_pic
13338 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13339 # not for PA HP-UX.
13345 lt_prog_compiler_pic_F77
='-fPIC'
13351 lt_prog_compiler_pic_F77
='-fPIC'
13355 # PORTME Check for flag to pass linker flags through the system compiler.
13358 lt_prog_compiler_wl_F77
='-Wl,'
13359 if test "$host_cpu" = ia64
; then
13360 # AIX 5 now supports IA64 processor
13361 lt_prog_compiler_static_F77
='-Bstatic'
13363 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
13367 # PIC is the default on this platform
13368 # Common symbols not allowed in MH_DYLIB files
13369 case $cc_basename in
13371 lt_prog_compiler_pic_F77
='-qnocommon'
13372 lt_prog_compiler_wl_F77
='-Wl,'
13377 mingw
* | pw32
* | os2
*)
13378 # This hack is so that the source file can tell whether it is being
13379 # built for inclusion in a dll (and should export symbols for example).
13380 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13383 hpux9
* | hpux10
* | hpux11
*)
13384 lt_prog_compiler_wl_F77
='-Wl,'
13385 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13386 # not for PA HP-UX.
13392 lt_prog_compiler_pic_F77
='+Z'
13395 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13396 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
13399 irix5
* | irix6
* | nonstopux
*)
13400 lt_prog_compiler_wl_F77
='-Wl,'
13401 # PIC (with -KPIC) is the default.
13402 lt_prog_compiler_static_F77
='-non_shared'
13406 lt_prog_compiler_pic_F77
='-KPIC'
13407 lt_prog_compiler_static_F77
='-Bstatic'
13411 case $cc_basename in
13413 lt_prog_compiler_wl_F77
='-Wl,'
13414 lt_prog_compiler_pic_F77
='-KPIC'
13415 lt_prog_compiler_static_F77
='-static'
13417 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
13418 # Portland Group compilers (*not* the Pentium gcc compiler,
13419 # which looks to be a dead project)
13420 lt_prog_compiler_wl_F77
='-Wl,'
13421 lt_prog_compiler_pic_F77
='-fpic'
13422 lt_prog_compiler_static_F77
='-Bstatic'
13425 lt_prog_compiler_wl_F77
='-Wl,'
13426 # All Alpha code is PIC.
13427 lt_prog_compiler_static_F77
='-non_shared'
13432 osf3
* | osf4
* | osf5
*)
13433 lt_prog_compiler_wl_F77
='-Wl,'
13434 # All OSF/1 code is PIC.
13435 lt_prog_compiler_static_F77
='-non_shared'
13439 lt_prog_compiler_pic_F77
='-KPIC'
13440 lt_prog_compiler_static_F77
='-Bstatic'
13441 case $cc_basename in
13442 f77
* | f90
* | f95
*)
13443 lt_prog_compiler_wl_F77
='-Qoption ld ';;
13445 lt_prog_compiler_wl_F77
='-Wl,';;
13450 lt_prog_compiler_wl_F77
='-Qoption ld '
13451 lt_prog_compiler_pic_F77
='-PIC'
13452 lt_prog_compiler_static_F77
='-Bstatic'
13455 sysv4 | sysv4.2uw2
* | sysv4.3
*)
13456 lt_prog_compiler_wl_F77
='-Wl,'
13457 lt_prog_compiler_pic_F77
='-KPIC'
13458 lt_prog_compiler_static_F77
='-Bstatic'
13462 if test -d /usr
/nec
;then
13463 lt_prog_compiler_pic_F77
='-Kconform_pic'
13464 lt_prog_compiler_static_F77
='-Bstatic'
13468 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
13469 lt_prog_compiler_wl_F77
='-Wl,'
13470 lt_prog_compiler_pic_F77
='-KPIC'
13471 lt_prog_compiler_static_F77
='-Bstatic'
13475 lt_prog_compiler_wl_F77
='-Wl,'
13476 lt_prog_compiler_can_build_shared_F77
=no
13480 lt_prog_compiler_pic_F77
='-pic'
13481 lt_prog_compiler_static_F77
='-Bstatic'
13485 lt_prog_compiler_can_build_shared_F77
=no
13490 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13491 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13494 # Check to make sure the PIC flag actually works.
13496 if test -n "$lt_prog_compiler_pic_F77"; then
13498 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13499 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13500 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13501 echo $ECHO_N "(cached) $ECHO_C" >&6
13503 lt_prog_compiler_pic_works_F77
=no
13504 ac_outfile
=conftest.
$ac_objext
13505 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13506 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
13507 # Insert the option either (1) after the last *FLAGS variable, or
13508 # (2) before a word containing "conftest.", or (3) at the end.
13509 # Note that $ac_compile itself does not contain backslashes and begins
13510 # with a dollar sign (not a hyphen), so the echo should work correctly.
13511 # The option is referenced via a variable to avoid confusing sed.
13512 lt_compile
=`echo "$ac_compile" | $SED \
13513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13515 -e 's:$: $lt_compiler_flag:'`
13516 (eval echo "\"\$as_me:13516: $lt_compile\"" >&5)
13517 (eval "$lt_compile" 2>conftest.err
)
13519 cat conftest.err
>&5
13520 echo "$as_me:13520: \$? = $ac_status" >&5
13521 if (exit $ac_status) && test -s "$ac_outfile"; then
13522 # The compiler can only warn and ignore the option if not recognized
13523 # So say no if there are warnings other than the usual output.
13524 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
13525 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13526 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
13527 lt_prog_compiler_pic_works_F77
=yes
13533 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13534 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13536 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
13537 case $lt_prog_compiler_pic_F77 in
13539 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
13542 lt_prog_compiler_pic_F77
=
13543 lt_prog_compiler_can_build_shared_F77
=no
13548 # For platforms which do not support PIC, -DPIC is meaningless:
13550 lt_prog_compiler_pic_F77
=
13553 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
13558 # Check to make sure the static flag actually works.
13560 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
13561 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13562 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13563 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13566 lt_prog_compiler_static_works_F77
=no
13567 save_LDFLAGS
="$LDFLAGS"
13568 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
13569 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
13570 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
13571 # The linker can only warn and ignore the option if not recognized
13572 # So say no if there are warnings
13573 if test -s conftest.err
; then
13574 # Append any errors to the config.log.
13575 cat conftest.err
1>&5
13576 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
13577 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13578 if diff conftest.exp conftest.er2
>/dev
/null
; then
13579 lt_prog_compiler_static_works_F77
=yes
13582 lt_prog_compiler_static_works_F77
=yes
13586 LDFLAGS
="$save_LDFLAGS"
13589 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13590 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13592 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
13595 lt_prog_compiler_static_F77
=
13599 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13600 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13601 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13602 echo $ECHO_N "(cached) $ECHO_C" >&6
13604 lt_cv_prog_compiler_c_o_F77
=no
13605 $rm -r conftest
2>/dev
/null
13609 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13611 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13612 # Insert the option either (1) after the last *FLAGS variable, or
13613 # (2) before a word containing "conftest.", or (3) at the end.
13614 # Note that $ac_compile itself does not contain backslashes and begins
13615 # with a dollar sign (not a hyphen), so the echo should work correctly.
13616 lt_compile
=`echo "$ac_compile" | $SED \
13617 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13618 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13619 -e 's:$: $lt_compiler_flag:'`
13620 (eval echo "\"\$as_me:13620: $lt_compile\"" >&5)
13621 (eval "$lt_compile" 2>out
/conftest.err
)
13623 cat out
/conftest.err
>&5
13624 echo "$as_me:13624: \$? = $ac_status" >&5
13625 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13627 # The compiler can only warn and ignore the option if not recognized
13628 # So say no if there are warnings
13629 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
13630 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13631 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13632 lt_cv_prog_compiler_c_o_F77
=yes
13637 # SGI C++ compiler will create directory out/ii_files/ for
13638 # template instantiation
13639 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
13640 $rm out
/* && rmdir out
13646 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13647 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13650 hard_links
="nottested"
13651 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
13652 # do not overwrite the value of need_locks provided by the user
13653 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13654 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13657 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13659 ln conftest.a conftest.b
2>&5 || hard_links
=no
13660 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13661 echo "$as_me:$LINENO: result: $hard_links" >&5
13662 echo "${ECHO_T}$hard_links" >&6
13663 if test "$hard_links" = no
; then
13664 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13665 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13672 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13673 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13676 allow_undefined_flag_F77
=
13677 enable_shared_with_static_runtimes_F77
=no
13679 archive_expsym_cmds_F77
=
13680 old_archive_From_new_cmds_F77
=
13681 old_archive_from_expsyms_cmds_F77
=
13682 export_dynamic_flag_spec_F77
=
13683 whole_archive_flag_spec_F77
=
13684 thread_safe_flag_spec_F77
=
13685 hardcode_libdir_flag_spec_F77
=
13686 hardcode_libdir_flag_spec_ld_F77
=
13687 hardcode_libdir_separator_F77
=
13688 hardcode_direct_F77
=no
13689 hardcode_minus_L_F77
=no
13690 hardcode_shlibpath_var_F77
=unsupported
13691 link_all_deplibs_F77
=unknown
13692 hardcode_automatic_F77
=no
13694 module_expsym_cmds_F77
=
13695 always_export_symbols_F77
=no
13696 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13697 # include_expsyms should be a list of space-separated symbols to be *always*
13698 # included in the symbol list
13699 include_expsyms_F77
=
13700 # exclude_expsyms can be an extended regexp of symbols to exclude
13701 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13702 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13703 # as well as any symbol that contains `d'.
13704 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
13705 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13706 # platforms (ab)use it in PIC code, but their linkers get confused if
13707 # the symbol is explicitly referenced. Since portable code cannot
13708 # rely on this symbol name, it's probably fine to never include it in
13709 # preloaded symbol tables.
13710 extract_expsyms_cmds
=
13711 # Just being paranoid about ensuring that cc_basename is set.
13712 for cc_temp
in $compiler""; do
13714 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
13715 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
13720 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13723 cygwin
* | mingw
* | pw32
*)
13724 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13725 # When not using gcc, we currently assume that we are using
13726 # Microsoft Visual C++.
13727 if test "$GCC" != yes; then
13732 # we just hope/assume this is gcc and not c89 (= MSVC++)
13741 if test "$with_gnu_ld" = yes; then
13742 # If archive_cmds runs LD, not CC, wlarc should be empty
13745 # Set some defaults for GNU ld with shared library support. These
13746 # are reset later if shared libraries are not supported. Putting them
13747 # here allows them to be overridden if necessary.
13748 runpath_var
=LD_RUN_PATH
13749 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
13750 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
13751 # ancient GNU ld didn't support --whole-archive et. al.
13752 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
13753 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13755 whole_archive_flag_spec_F77
=
13757 supports_anon_versioning
=no
13758 case `$LD -v 2>/dev/null` in
13759 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
13760 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
13761 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
13762 *\
2.11.
*) ;; # other 2.11 versions
13763 *) supports_anon_versioning
=yes ;;
13766 # See if GNU ld supports shared libraries.
13768 aix3
* | aix4
* | aix5
*)
13769 # On AIX/PPC, the GNU linker is very broken
13770 if test "$host_cpu" != ia64
; then
13774 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13775 *** to be unable to reliably create shared libraries on AIX.
13776 *** Therefore, libtool is disabling shared libraries support. If you
13777 *** really care for shared libraries, you may want to modify your PATH
13778 *** so that a non-GNU linker is found, and then restart.
13785 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)'
13786 hardcode_libdir_flag_spec_F77
='-L$libdir'
13787 hardcode_minus_L_F77
=yes
13789 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13790 # that the semantics of dynamic libraries on AmigaOS, at least up
13791 # to version 4, is to share data among multiple programs linked
13792 # with the same dynamic library. Since this doesn't match the
13793 # behavior of shared libraries on other platforms, we can't use
13799 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13800 allow_undefined_flag_F77
=unsupported
13801 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13802 # support --undefined. This deserves some investigation. FIXME
13803 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13809 cygwin
* | mingw
* | pw32
*)
13810 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13811 # as there is no search path for DLLs.
13812 hardcode_libdir_flag_spec_F77
='-L$libdir'
13813 allow_undefined_flag_F77
=unsupported
13814 always_export_symbols_F77
=no
13815 enable_shared_with_static_runtimes_F77
=yes
13816 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13818 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
13819 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13820 # If the export-symbols file already is a .def file (1st line
13821 # is EXPORTS), use it as is; otherwise, prepend...
13822 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13823 cp $export_symbols $output_objdir/$soname.def;
13825 echo EXPORTS > $output_objdir/$soname.def;
13826 cat $export_symbols >> $output_objdir/$soname.def;
13828 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13835 hardcode_direct_F77
=no
13836 hardcode_shlibpath_var_F77
=no
13837 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
13838 export_dynamic_flag_spec_F77
='${wl}-E'
13839 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13840 # Instead, shared libraries are loaded at an image base (0x10000000 by
13841 # default) and relocated if they conflict, which is a slow very memory
13842 # consuming and fragmenting process. To avoid this, we pick a random,
13843 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13844 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13845 archive_cmds_F77
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13846 archive_expsym_cmds_F77
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13850 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13852 case $cc_basename,$host_cpu in
13853 pgcc
*) # Portland Group C compiler
13854 whole_archive_flag_spec_F77
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13855 tmp_addflag
=' $pic_flag'
13857 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
13858 whole_archive_flag_spec_F77
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13859 tmp_addflag
=' $pic_flag -Mnomain' ;;
13860 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
13861 tmp_addflag
=' -i_dynamic' ;;
13862 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
13863 tmp_addflag
=' -i_dynamic -nofor_main' ;;
13864 ifc
* | ifort
*) # Intel Fortran compiler
13865 tmp_addflag
=' -nofor_main' ;;
13867 archive_cmds_F77
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13869 if test $supports_anon_versioning = yes; then
13870 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
13871 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13872 $echo "local: *; };" >> $output_objdir/$libname.ver~
13873 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13881 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
13882 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13885 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13886 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13891 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
13895 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13896 *** create shared libraries on Solaris systems. Therefore, libtool
13897 *** is disabling shared libraries support. We urge you to upgrade GNU
13898 *** binutils to release 2.9.1 or newer. Another option is to modify
13899 *** your PATH or compiler configuration so that the native linker is
13900 *** used, and then restart.
13903 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13904 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13905 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13911 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
13912 case `$LD -v 2>&1` in
13913 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
13917 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13918 *** reliably create shared libraries on SCO systems. Therefore, libtool
13919 *** is disabling shared libraries support. We urge you to upgrade GNU
13920 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13921 *** your PATH or compiler configuration so that the native linker is
13922 *** used, and then restart.
13927 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13928 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13929 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13930 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13939 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13941 hardcode_direct_F77
=yes
13942 hardcode_shlibpath_var_F77
=no
13946 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13947 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13948 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13955 if test "$ld_shlibs_F77" = no
; then
13957 hardcode_libdir_flag_spec_F77
=
13958 export_dynamic_flag_spec_F77
=
13959 whole_archive_flag_spec_F77
=
13962 # PORTME fill in a description of your system's linker (not GNU ld)
13965 allow_undefined_flag_F77
=unsupported
13966 always_export_symbols_F77
=yes
13967 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'
13968 # Note: this linker hardcodes the directories in LIBPATH if there
13969 # are no directories specified by -L.
13970 hardcode_minus_L_F77
=yes
13971 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13972 # Neither direct hardcoding nor static linking is supported with a
13974 hardcode_direct_F77
=unsupported
13979 if test "$host_cpu" = ia64
; then
13980 # On IA64, the linker does run time linking by default, so we don't
13981 # have to do anything special.
13982 aix_use_runtimelinking
=no
13983 exp_sym_flag
='-Bexport'
13986 # If we're using GNU nm, then we don't want the "-C" option.
13987 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13988 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
13989 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'
13991 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'
13993 aix_use_runtimelinking
=no
13995 # Test if we are trying to use run time linking or normal
13996 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13997 # need to do runtime linking.
13998 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
13999 for ld_flag
in $LDFLAGS; do
14000 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
14001 aix_use_runtimelinking
=yes
14008 exp_sym_flag
='-bexport'
14009 no_entry_flag
='-bnoentry'
14012 # When large executables or shared objects are built, AIX ld can
14013 # have problems creating the table of contents. If linking a library
14014 # or program results in "error TOC overflow" add -mminimal-toc to
14015 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14016 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14018 archive_cmds_F77
=''
14019 hardcode_direct_F77
=yes
14020 hardcode_libdir_separator_F77
=':'
14021 link_all_deplibs_F77
=yes
14023 if test "$GCC" = yes; then
14024 case $host_os in aix4.
[012]|aix4.
[012].
*)
14025 # We only want to do this on AIX 4.2 and lower, the check
14026 # below for broken collect2 doesn't work under 4.3+
14027 collect2name
=`${CC} -print-prog-name=collect2`
14028 if test -f "$collect2name" && \
14029 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
14031 # We have reworked collect2
14032 hardcode_direct_F77
=yes
14034 # We have old collect2
14035 hardcode_direct_F77
=unsupported
14036 # It fails to find uninstalled libraries when the uninstalled
14037 # path is not listed in the libpath. Setting hardcode_minus_L
14038 # to unsupported forces relinking
14039 hardcode_minus_L_F77
=yes
14040 hardcode_libdir_flag_spec_F77
='-L$libdir'
14041 hardcode_libdir_separator_F77
=
14045 shared_flag
='-shared'
14046 if test "$aix_use_runtimelinking" = yes; then
14047 shared_flag
="$shared_flag "'${wl}-G'
14051 if test "$host_cpu" = ia64
; then
14052 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14053 # chokes on -Wl,-G. The following line is correct:
14056 if test "$aix_use_runtimelinking" = yes; then
14057 shared_flag
='${wl}-G'
14059 shared_flag
='${wl}-bM:SRE'
14064 # It seems that -bexpall does not export symbols beginning with
14065 # underscore (_), so it is better to generate a list of symbols to export.
14066 always_export_symbols_F77
=yes
14067 if test "$aix_use_runtimelinking" = yes; then
14068 # Warning - without using the other runtime loading flags (-brtl),
14069 # -berok will link without error, but may produce a broken library.
14070 allow_undefined_flag_F77
='-berok'
14071 # Determine the default libpath from the value encoded in an empty executable.
14072 cat >conftest.
$ac_ext <<_ACEOF
14077 rm -f conftest.
$ac_objext conftest
$ac_exeext
14078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14079 (eval $ac_link) 2>conftest.er1
14081 grep -v '^ *+' conftest.er1
>conftest.err
14083 cat conftest.err
>&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); } &&
14086 { ac_try
='test -z "$ac_f77_werror_flag"
14087 || test ! -s conftest.err'
14088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14089 (eval $ac_try) 2>&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }; } &&
14093 { ac_try
='test -s conftest$ac_exeext'
14094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14095 (eval $ac_try) 2>&5
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); }; }; then
14100 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14102 # Check for a 64-bit object if we didn't find anything.
14103 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; }
14106 echo "$as_me: failed program was:" >&5
14107 sed 's/^/| /' conftest.
$ac_ext >&5
14110 rm -f conftest.err conftest.
$ac_objext \
14111 conftest
$ac_exeext conftest.
$ac_ext
14112 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
14114 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
14115 archive_expsym_cmds_F77
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14117 if test "$host_cpu" = ia64
; then
14118 hardcode_libdir_flag_spec_F77
='${wl}-R $libdir:/usr/lib:/lib'
14119 allow_undefined_flag_F77
="-z nodefs"
14120 archive_expsym_cmds_F77
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14122 # Determine the default libpath from the value encoded in an empty executable.
14123 cat >conftest.
$ac_ext <<_ACEOF
14128 rm -f conftest.
$ac_objext conftest
$ac_exeext
14129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14130 (eval $ac_link) 2>conftest.er1
14132 grep -v '^ *+' conftest.er1
>conftest.err
14134 cat conftest.err
>&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); } &&
14137 { ac_try
='test -z "$ac_f77_werror_flag"
14138 || test ! -s conftest.err'
14139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140 (eval $ac_try) 2>&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; } &&
14144 { ac_try
='test -s conftest$ac_exeext'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; }; then
14151 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14153 # Check for a 64-bit object if we didn't find anything.
14154 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; }
14157 echo "$as_me: failed program was:" >&5
14158 sed 's/^/| /' conftest.
$ac_ext >&5
14161 rm -f conftest.err conftest.
$ac_objext \
14162 conftest
$ac_exeext conftest.
$ac_ext
14163 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
14165 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
14166 # Warning - without using the other run time loading flags,
14167 # -berok will link without error, but may produce a broken library.
14168 no_undefined_flag_F77
=' ${wl}-bernotok'
14169 allow_undefined_flag_F77
=' ${wl}-berok'
14170 # Exported symbols can be pulled into shared objects from archives
14171 whole_archive_flag_spec_F77
='$convenience'
14172 archive_cmds_need_lc_F77
=yes
14173 # This is similar to how AIX traditionally builds its shared libraries.
14174 archive_expsym_cmds_F77
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14180 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)'
14181 hardcode_libdir_flag_spec_F77
='-L$libdir'
14182 hardcode_minus_L_F77
=yes
14183 # see comment about different semantics on the GNU ld section
14188 export_dynamic_flag_spec_F77
=-rdynamic
14191 cygwin
* | mingw
* | pw32
*)
14192 # When not using gcc, we currently assume that we are using
14193 # Microsoft Visual C++.
14194 # hardcode_libdir_flag_spec is actually meaningless, as there is
14195 # no search path for DLLs.
14196 hardcode_libdir_flag_spec_F77
=' '
14197 allow_undefined_flag_F77
=unsupported
14198 # Tell ltmain to make .lib files, not .a files.
14200 # Tell ltmain to make .dll files, not .so files.
14202 # FIXME: Setting linknames here is a bad hack.
14203 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14204 # The linker will automatically build a .lib file if we build a DLL.
14205 old_archive_From_new_cmds_F77
='true'
14206 # FIXME: Should let the user specify the lib program.
14207 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
14208 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
14209 enable_shared_with_static_runtimes_F77
=yes
14212 darwin
* | rhapsody
*)
14214 rhapsody
* | darwin1.
[012])
14215 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
14218 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14219 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14221 case ${MACOSX_DEPLOYMENT_TARGET} in
14223 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14226 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
14232 archive_cmds_need_lc_F77
=no
14233 hardcode_direct_F77
=no
14234 hardcode_automatic_F77
=yes
14235 hardcode_shlibpath_var_F77
=unsupported
14236 whole_archive_flag_spec_F77
=''
14237 link_all_deplibs_F77
=yes
14238 if test "$GCC" = yes ; then
14239 output_verbose_link_cmd
='echo'
14240 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14241 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14242 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14243 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}'
14244 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}'
14246 case $cc_basename in
14248 output_verbose_link_cmd
='echo'
14249 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14250 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14251 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14252 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}'
14253 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}'
14263 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14264 hardcode_libdir_flag_spec_F77
='-L$libdir'
14265 hardcode_shlibpath_var_F77
=no
14272 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14273 # support. Future versions do this automatically, but an explicit c++rt0.o
14274 # does not break anything, and helps significantly (at the cost of a little
14277 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14278 hardcode_libdir_flag_spec_F77
='-R$libdir'
14279 hardcode_direct_F77
=yes
14280 hardcode_shlibpath_var_F77
=no
14283 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14285 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14286 hardcode_direct_F77
=yes
14287 hardcode_minus_L_F77
=yes
14288 hardcode_shlibpath_var_F77
=no
14291 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14292 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
14293 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14294 hardcode_libdir_flag_spec_F77
='-R$libdir'
14295 hardcode_direct_F77
=yes
14296 hardcode_shlibpath_var_F77
=no
14300 if test "$GCC" = yes; then
14301 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'
14303 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'
14305 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14306 hardcode_libdir_separator_F77
=:
14307 hardcode_direct_F77
=yes
14309 # hardcode_minus_L: Not really in the search PATH,
14310 # but as the default location of the library.
14311 hardcode_minus_L_F77
=yes
14312 export_dynamic_flag_spec_F77
='${wl}-E'
14316 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14317 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14319 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14321 if test "$with_gnu_ld" = no
; then
14322 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14323 hardcode_libdir_separator_F77
=:
14325 hardcode_direct_F77
=yes
14326 export_dynamic_flag_spec_F77
='${wl}-E'
14328 # hardcode_minus_L: Not really in the search PATH,
14329 # but as the default location of the library.
14330 hardcode_minus_L_F77
=yes
14335 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14338 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14341 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14344 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14350 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14353 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14356 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14360 if test "$with_gnu_ld" = no
; then
14361 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14362 hardcode_libdir_separator_F77
=:
14366 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
14367 hardcode_direct_F77
=no
14368 hardcode_shlibpath_var_F77
=no
14371 hardcode_direct_F77
=yes
14372 export_dynamic_flag_spec_F77
='${wl}-E'
14374 # hardcode_minus_L: Not really in the search PATH,
14375 # but as the default location of the library.
14376 hardcode_minus_L_F77
=yes
14382 irix5
* | irix6
* | nonstopux
*)
14383 if test "$GCC" = yes; then
14384 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'
14386 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'
14387 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
14389 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14390 hardcode_libdir_separator_F77
=:
14391 link_all_deplibs_F77
=yes
14395 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14396 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14398 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14400 hardcode_libdir_flag_spec_F77
='-R$libdir'
14401 hardcode_direct_F77
=yes
14402 hardcode_shlibpath_var_F77
=no
14406 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14407 hardcode_direct_F77
=yes
14408 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14409 hardcode_libdir_separator_F77
=:
14410 hardcode_shlibpath_var_F77
=no
14414 hardcode_direct_F77
=yes
14415 hardcode_shlibpath_var_F77
=no
14416 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14417 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14418 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14419 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14420 export_dynamic_flag_spec_F77
='${wl}-E'
14423 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
14424 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14425 hardcode_libdir_flag_spec_F77
='-R$libdir'
14428 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14429 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14436 hardcode_libdir_flag_spec_F77
='-L$libdir'
14437 hardcode_minus_L_F77
=yes
14438 allow_undefined_flag_F77
=unsupported
14439 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'
14440 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14444 if test "$GCC" = yes; then
14445 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14446 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'
14448 allow_undefined_flag_F77
=' -expect_unresolved \*'
14449 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'
14451 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14452 hardcode_libdir_separator_F77
=:
14455 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
14456 if test "$GCC" = yes; then
14457 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14458 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'
14459 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14461 allow_undefined_flag_F77
=' -expect_unresolved \*'
14462 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'
14463 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~
14464 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14466 # Both c and cxx compiler support -rpath directly
14467 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
14469 hardcode_libdir_separator_F77
=:
14473 no_undefined_flag_F77
=' -z text'
14474 if test "$GCC" = yes; then
14476 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14477 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14478 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14481 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14482 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14483 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14485 hardcode_libdir_flag_spec_F77
='-R$libdir'
14486 hardcode_shlibpath_var_F77
=no
14488 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
14490 # The compiler driver will combine linker options so we
14491 # cannot just pass the convience library names through
14492 # without $wl, iff we do not link with $LD.
14493 # Luckily, gcc supports the same syntax we need for Sun Studio.
14494 # Supported since Solaris 2.6 (maybe 2.5.1?)
14497 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract' ;;
14499 whole_archive_flag_spec_F77
='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14502 link_all_deplibs_F77
=yes
14506 if test "x$host_vendor" = xsequent
; then
14507 # Use $CC to link under sequent, because it throws in some extra .o
14508 # files that make .init and .fini sections work.
14509 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14511 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14513 hardcode_libdir_flag_spec_F77
='-L$libdir'
14514 hardcode_direct_F77
=yes
14515 hardcode_minus_L_F77
=yes
14516 hardcode_shlibpath_var_F77
=no
14520 case $host_vendor in
14522 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14523 hardcode_direct_F77
=yes # is this really true???
14526 ## LD is ld it makes a PLAMLIB
14527 ## CC just makes a GrossModule.
14528 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14529 reload_cmds_F77
='$CC -r -o $output$reload_objs'
14530 hardcode_direct_F77
=no
14533 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14534 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
14537 runpath_var
='LD_RUN_PATH'
14538 hardcode_shlibpath_var_F77
=no
14542 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14543 hardcode_shlibpath_var_F77
=no
14544 export_dynamic_flag_spec_F77
='-Bexport'
14548 if test -d /usr
/nec
; then
14549 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14550 hardcode_shlibpath_var_F77
=no
14551 runpath_var
=LD_RUN_PATH
14552 hardcode_runpath_var
=yes
14557 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
14558 no_undefined_flag_F77
='${wl}-z,text'
14559 archive_cmds_need_lc_F77
=no
14560 hardcode_shlibpath_var_F77
=no
14561 runpath_var
='LD_RUN_PATH'
14563 if test "$GCC" = yes; then
14564 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14565 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14567 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14568 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14572 sysv5
* | sco3.2v5
* | sco5v6
*)
14573 # Note: We can NOT use -z defs as we might desire, because we do not
14574 # link with -lc, and that would cause any symbols used from libc to
14575 # always be unresolved, which means just about no library would
14576 # ever link correctly. If we're not using GNU ld we use -z text
14577 # though, which does catch some bad symbols but isn't as heavy-handed
14579 no_undefined_flag_F77
='${wl}-z,text'
14580 allow_undefined_flag_F77
='${wl}-z,nodefs'
14581 archive_cmds_need_lc_F77
=no
14582 hardcode_shlibpath_var_F77
=no
14583 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14584 hardcode_libdir_separator_F77
=':'
14585 link_all_deplibs_F77
=yes
14586 export_dynamic_flag_spec_F77
='${wl}-Bexport'
14587 runpath_var
='LD_RUN_PATH'
14589 if test "$GCC" = yes; then
14590 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14591 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14593 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14594 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14599 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14600 hardcode_libdir_flag_spec_F77
='-L$libdir'
14601 hardcode_shlibpath_var_F77
=no
14610 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14611 echo "${ECHO_T}$ld_shlibs_F77" >&6
14612 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
14615 # Do we need to explicitly link libc?
14617 case "x$archive_cmds_need_lc_F77" in
14619 # Assume -lc should be added
14620 archive_cmds_need_lc_F77
=yes
14622 if test "$enable_shared" = yes && test "$GCC" = yes; then
14623 case $archive_cmds_F77 in
14625 # FIXME: we may have to deal with multi-command sequences.
14628 # Test whether the compiler implicitly links with -lc since on some
14629 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14630 # to ld, don't add -lc before -lgcc.
14631 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14632 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14634 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
14636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14637 (eval $ac_compile) 2>&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); } 2>conftest.err
; then
14643 libobjs
=conftest.
$ac_objext
14645 wl
=$lt_prog_compiler_wl_F77
14646 pic_flag
=$lt_prog_compiler_pic_F77
14652 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
14653 allow_undefined_flag_F77
=
14654 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14655 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }
14660 archive_cmds_need_lc_F77
=no
14662 archive_cmds_need_lc_F77
=yes
14664 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
14666 cat conftest.err
1>&5
14669 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14670 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14677 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14678 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14679 library_names_spec
=
14680 libname_spec
='lib$name'
14684 postuninstall_cmds
=
14688 shlibpath_overrides_runpath
=unknown
14690 dynamic_linker
="$host_os ld.so"
14691 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14692 if test "$GCC" = yes; then
14693 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14694 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
14695 # if the path contains ";" then we assume it to be the separator
14696 # otherwise default to the standard path separator (i.e. ":") - it is
14697 # assumed that no part of a normal pathname contains ";" but that should
14698 # okay in the real world where ";" in dirpaths is itself problematic.
14699 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14701 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14704 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
14706 need_lib_prefix
=unknown
14707 hardcode_into_libs
=no
14709 # when you set need_version to no, make sure it does not cause -set_version
14710 # flags to be left without arguments
14711 need_version
=unknown
14716 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14717 shlibpath_var
=LIBPATH
14719 # AIX 3 has no versioning support, so we append a major version to the name.
14720 soname_spec
='${libname}${release}${shared_ext}$major'
14727 hardcode_into_libs
=yes
14728 if test "$host_cpu" = ia64
; then
14729 # AIX 5 supports IA64
14730 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14731 shlibpath_var
=LD_LIBRARY_PATH
14733 # With GCC up to 2.95.x, collect2 would create an import file
14734 # for dependence libraries. The import file would start with
14735 # the line `#! .'. This would cause the generated library to
14736 # depend on `.', always an invalid library. This was fixed in
14737 # development snapshots of GCC prior to 3.0.
14739 aix4 | aix4.
[01] | aix4.
[01].
*)
14740 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14742 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
14745 can_build_shared
=no
14749 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14750 # soname into executable. Probably we can add versioning support to
14751 # collect2, so additional links can be useful in future.
14752 if test "$aix_use_runtimelinking" = yes; then
14753 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14754 # instead of lib<name>.a to let people know that these are not
14755 # typical AIX shared libraries.
14756 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14758 # We preserve .a as extension for shared libraries through AIX4.2
14759 # and later when we are not doing run time linking.
14760 library_names_spec
='${libname}${release}.a $libname.a'
14761 soname_spec
='${libname}${release}${shared_ext}$major'
14763 shlibpath_var
=LIBPATH
14768 library_names_spec
='$libname.ixlibrary $libname.a'
14769 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14770 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'
14774 library_names_spec
='${libname}${shared_ext}'
14775 dynamic_linker
="$host_os ld.so"
14776 shlibpath_var
=LIBRARY_PATH
14782 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14783 soname_spec
='${libname}${release}${shared_ext}$major'
14784 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14785 shlibpath_var
=LD_LIBRARY_PATH
14786 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14787 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14788 # the default ld.so.conf also contains /usr/contrib/lib and
14789 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14790 # libtool to hard-code these into programs
14793 cygwin
* | mingw
* | pw32
*)
14794 version_type
=windows
14799 case $GCC,$host_os in
14800 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
14801 library_names_spec
='$libname.dll.a'
14802 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14803 postinstall_cmds
='base_file=`basename \${file}`~
14804 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14805 dldir=$destdir/`dirname \$dlpath`~
14806 test -d \$dldir || mkdir -p \$dldir~
14807 $install_prog $dir/$dlname \$dldir/$dlname~
14808 chmod a+x \$dldir/$dlname'
14809 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14810 dlpath=$dir/\$dldll~
14812 shlibpath_overrides_runpath
=yes
14816 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14817 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14818 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
14821 # MinGW DLLs use traditional 'lib' prefix
14822 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14823 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14824 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
14825 # It is most probably a Windows format PATH printed by
14826 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14827 # path with ; separators, and with drive letters. We can handle the
14828 # drive letters (cygwin fileutils understands them), so leave them,
14829 # especially as we might pass files found there to a mingw objdump,
14830 # which wouldn't understand a cygwinified path. Ahh.
14831 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14833 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14837 # pw32 DLLs use 'pw' prefix rather than 'lib'
14838 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14844 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14847 dynamic_linker
='Win32 ld.exe'
14848 # FIXME: first we should search . and the directory the executable is in
14852 darwin
* | rhapsody
*)
14853 dynamic_linker
="$host_os dyld"
14854 version_type
=darwin
14857 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14858 soname_spec
='${libname}${release}${major}$shared_ext'
14859 shlibpath_overrides_runpath
=yes
14860 shlibpath_var
=DYLD_LIBRARY_PATH
14861 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14862 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14863 if test "$GCC" = yes; then
14864 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"`
14866 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
14868 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14875 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14876 soname_spec
='${libname}${release}${shared_ext}$major'
14877 shlibpath_var
=LD_LIBRARY_PATH
14888 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14889 soname_spec
='${libname}${release}${shared_ext}$major'
14890 shlibpath_var
=LD_LIBRARY_PATH
14891 shlibpath_overrides_runpath
=no
14892 hardcode_into_libs
=yes
14893 dynamic_linker
='GNU ld.so'
14896 freebsd
* | dragonfly
*)
14897 # DragonFly does not have aout. When/if they implement a new
14898 # versioning mechanism, adjust this.
14899 if test -x /usr
/bin
/objformat
; then
14900 objformat
=`/usr/bin/objformat`
14903 freebsd
[123]*) objformat
=aout
;;
14904 *) objformat
=elf
;;
14907 version_type
=freebsd-
$objformat
14908 case $version_type in
14910 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14915 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14919 shlibpath_var
=LD_LIBRARY_PATH
14922 shlibpath_overrides_runpath
=yes
14924 freebsd3.
[01]* | freebsdelf3.
[01]*)
14925 shlibpath_overrides_runpath
=yes
14926 hardcode_into_libs
=yes
14928 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14929 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14930 shlibpath_overrides_runpath
=no
14931 hardcode_into_libs
=yes
14933 freebsd
*) # from 4.6 on
14934 shlibpath_overrides_runpath
=yes
14935 hardcode_into_libs
=yes
14944 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14945 soname_spec
='${libname}${release}${shared_ext}$major'
14946 shlibpath_var
=LD_LIBRARY_PATH
14947 hardcode_into_libs
=yes
14950 hpux9
* | hpux10
* | hpux11
*)
14951 # Give a soname corresponding to the major version so that dld.sl refuses to
14952 # link against other versions.
14959 hardcode_into_libs
=yes
14960 dynamic_linker
="$host_os dld.so"
14961 shlibpath_var
=LD_LIBRARY_PATH
14962 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14963 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14964 soname_spec
='${libname}${release}${shared_ext}$major'
14965 if test "X$HPUX_IA64_MODE" = X32
; then
14966 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14968 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14970 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14974 hardcode_into_libs
=yes
14975 dynamic_linker
="$host_os dld.sl"
14976 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14977 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14978 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14979 soname_spec
='${libname}${release}${shared_ext}$major'
14980 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14981 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14985 dynamic_linker
="$host_os dld.sl"
14986 shlibpath_var
=SHLIB_PATH
14987 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14988 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14989 soname_spec
='${libname}${release}${shared_ext}$major'
14992 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14993 postinstall_cmds
='chmod 555 $lib'
15000 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15001 soname_spec
='${libname}${release}${shared_ext}$major'
15002 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
15003 shlibpath_var
=LD_LIBRARY_PATH
15004 shlibpath_overrides_runpath
=no
15005 hardcode_into_libs
=yes
15008 irix5
* | irix6
* | nonstopux
*)
15010 nonstopux
*) version_type
=nonstopux
;;
15012 if test "$lt_cv_prog_gnu_ld" = yes; then
15020 soname_spec
='${libname}${release}${shared_ext}$major'
15021 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15023 irix5
* | nonstopux
*)
15024 libsuff
= shlibsuff
=
15027 case $LD in # libtool.m4 will add one of these switches to LD
15028 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
15029 libsuff
= shlibsuff
= libmagic
=32-bit;;
15030 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
15031 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
15032 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
15033 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
15034 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
15038 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
15039 shlibpath_overrides_runpath
=no
15040 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15041 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
15042 hardcode_into_libs
=yes
15045 # No shared lib support for Linux oldld, aout, or coff.
15046 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
15050 # This must be Linux ELF.
15055 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15056 soname_spec
='${libname}${release}${shared_ext}$major'
15057 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15058 shlibpath_var
=LD_LIBRARY_PATH
15059 shlibpath_overrides_runpath
=no
15060 # This implies no fast_install, which is unacceptable.
15061 # Some rework will be needed to allow for fast_install
15062 # before this can be enabled.
15063 hardcode_into_libs
=yes
15065 # find out which ABI we are using
15067 case "$host_cpu" in
15068 x86_64
*|s390x
*|powerpc64
*)
15069 echo '#line 15069 "configure"' > conftest.
$ac_ext
15070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15071 (eval $ac_compile) 2>&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; then
15075 case `/usr/bin/file conftest.$ac_objext` in
15078 sys_lib_search_path_spec
="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15086 # Append ld.so.conf contents to the search path
15087 if test -f /etc
/ld.so.conf
; then
15088 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15089 sys_lib_dlsearch_path_spec
="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15092 # We used to test for /lib/ld.so.1 and disable shared libraries on
15093 # powerpc, because MkLinux only supported shared libraries with the
15094 # GNU dynamic linker. Since this was broken with cross compilers,
15095 # most powerpc-linux boxes support dynamic linking these days and
15096 # people can always --disable-shared, the test was removed, and we
15097 # assume the GNU/Linux dynamic linker is in use.
15098 dynamic_linker
='GNU/Linux ld.so'
15105 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15106 soname_spec
='${libname}${release}${shared_ext}$major'
15107 shlibpath_var
=LD_LIBRARY_PATH
15108 shlibpath_overrides_runpath
=no
15109 hardcode_into_libs
=yes
15110 dynamic_linker
='GNU ld.so'
15117 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15118 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15119 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15120 dynamic_linker
='NetBSD (a.out) ld.so'
15122 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15123 soname_spec
='${libname}${release}${shared_ext}$major'
15124 dynamic_linker
='NetBSD ld.elf_so'
15126 shlibpath_var
=LD_LIBRARY_PATH
15127 shlibpath_overrides_runpath
=yes
15128 hardcode_into_libs
=yes
15133 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15134 shlibpath_var
=LD_LIBRARY_PATH
15135 shlibpath_overrides_runpath
=yes
15142 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15143 soname_spec
='${libname}${release}${shared_ext}$major'
15144 shlibpath_var
=LD_LIBRARY_PATH
15145 shlibpath_overrides_runpath
=yes
15150 sys_lib_dlsearch_path_spec
="/usr/lib"
15152 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15154 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
15155 *) need_version
=no
;;
15157 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15158 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15159 shlibpath_var
=LD_LIBRARY_PATH
15160 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15162 openbsd2.
[89] | openbsd2.
[89].
*)
15163 shlibpath_overrides_runpath
=no
15166 shlibpath_overrides_runpath
=yes
15170 shlibpath_overrides_runpath
=yes
15175 libname_spec
='$name'
15178 library_names_spec
='$libname${shared_ext} $libname.a'
15179 dynamic_linker
='OS/2 ld.exe'
15180 shlibpath_var
=LIBPATH
15183 osf3
* | osf4
* | osf5
*)
15187 soname_spec
='${libname}${release}${shared_ext}$major'
15188 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15189 shlibpath_var
=LD_LIBRARY_PATH
15190 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15191 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15198 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15199 soname_spec
='${libname}${release}${shared_ext}$major'
15200 shlibpath_var
=LD_LIBRARY_PATH
15201 shlibpath_overrides_runpath
=yes
15202 hardcode_into_libs
=yes
15203 # ldd complains unless libraries are executable
15204 postinstall_cmds
='chmod +x $lib'
15209 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15210 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15211 shlibpath_var
=LD_LIBRARY_PATH
15212 shlibpath_overrides_runpath
=yes
15213 if test "$with_gnu_ld" = yes; then
15221 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15222 soname_spec
='${libname}${release}${shared_ext}$major'
15223 shlibpath_var
=LD_LIBRARY_PATH
15224 case $host_vendor in
15226 shlibpath_overrides_runpath
=no
15228 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15229 runpath_var
=LD_RUN_PATH
15237 shlibpath_overrides_runpath
=no
15238 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15244 if test -d /usr
/nec
;then
15246 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15247 soname_spec
='$libname${shared_ext}.$major'
15248 shlibpath_var
=LD_LIBRARY_PATH
15252 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
15253 version_type
=freebsd-elf
15256 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15257 soname_spec
='${libname}${release}${shared_ext}$major'
15258 shlibpath_var
=LD_LIBRARY_PATH
15259 hardcode_into_libs
=yes
15260 if test "$with_gnu_ld" = yes; then
15261 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15262 shlibpath_overrides_runpath
=no
15264 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
15265 shlibpath_overrides_runpath
=yes
15268 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
15272 sys_lib_dlsearch_path_spec
='/usr/lib'
15277 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15278 soname_spec
='${libname}${release}${shared_ext}$major'
15279 shlibpath_var
=LD_LIBRARY_PATH
15286 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15287 echo "${ECHO_T}$dynamic_linker" >&6
15288 test "$dynamic_linker" = no
&& can_build_shared
=no
15290 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
15291 if test "$GCC" = yes; then
15292 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15295 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15296 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15297 hardcode_action_F77
=
15298 if test -n "$hardcode_libdir_flag_spec_F77" || \
15299 test -n "$runpath_var_F77" || \
15300 test "X$hardcode_automatic_F77" = "Xyes" ; then
15302 # We can hardcode non-existant directories.
15303 if test "$hardcode_direct_F77" != no
&&
15304 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15305 # have to relink, otherwise we might link with an installed library
15306 # when we should be linking with a yet-to-be-installed one
15307 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15308 test "$hardcode_minus_L_F77" != no
; then
15309 # Linking always hardcodes the temporary library directory.
15310 hardcode_action_F77
=relink
15312 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15313 hardcode_action_F77
=immediate
15316 # We cannot hardcode anything, or else we can only hardcode existing
15318 hardcode_action_F77
=unsupported
15320 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15321 echo "${ECHO_T}$hardcode_action_F77" >&6
15323 if test "$hardcode_action_F77" = relink
; then
15324 # Fast installation is not supported
15325 enable_fast_install
=no
15326 elif test "$shlibpath_overrides_runpath" = yes ||
15327 test "$enable_shared" = no
; then
15328 # Fast installation is not necessary
15329 enable_fast_install
=needless
15333 # The else clause should only fire when bootstrapping the
15334 # libtool distribution, otherwise you forgot to ship ltmain.sh
15335 # with your package, and you will get complaints that there are
15336 # no rules to generate ltmain.sh.
15337 if test -f "$ltmain"; then
15338 # See if we are running on zsh, and set the options which allow our commands through
15339 # without removal of \ escapes.
15340 if test -n "${ZSH_VERSION+set}" ; then
15341 setopt NO_GLOB_SUBST
15343 # Now quote all the things that may contain metacharacters while being
15344 # careful not to overquote the AC_SUBSTed values. We take copies of the
15345 # variables and quote the copies for generation of the libtool script.
15346 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15348 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15349 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15350 deplibs_check_method reload_flag reload_cmds need_locks \
15351 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15352 lt_cv_sys_global_symbol_to_c_name_address \
15353 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15354 old_postinstall_cmds old_postuninstall_cmds \
15358 lt_prog_compiler_wl_F77 \
15359 lt_prog_compiler_pic_F77 \
15360 lt_prog_compiler_static_F77 \
15361 lt_prog_compiler_no_builtin_flag_F77 \
15362 export_dynamic_flag_spec_F77 \
15363 thread_safe_flag_spec_F77 \
15364 whole_archive_flag_spec_F77 \
15365 enable_shared_with_static_runtimes_F77 \
15366 old_archive_cmds_F77 \
15367 old_archive_from_new_cmds_F77 \
15368 predep_objects_F77 \
15369 postdep_objects_F77 \
15372 compiler_lib_search_path_F77 \
15374 archive_expsym_cmds_F77 \
15375 postinstall_cmds_F77 \
15376 postuninstall_cmds_F77 \
15377 old_archive_from_expsyms_cmds_F77 \
15378 allow_undefined_flag_F77 \
15379 no_undefined_flag_F77 \
15380 export_symbols_cmds_F77 \
15381 hardcode_libdir_flag_spec_F77 \
15382 hardcode_libdir_flag_spec_ld_F77 \
15383 hardcode_libdir_separator_F77 \
15384 hardcode_automatic_F77 \
15386 module_expsym_cmds_F77 \
15387 lt_cv_prog_compiler_c_o_F77 \
15388 exclude_expsyms_F77 \
15389 include_expsyms_F77
; do
15392 old_archive_cmds_F77 | \
15393 old_archive_from_new_cmds_F77 | \
15394 archive_cmds_F77 | \
15395 archive_expsym_cmds_F77 | \
15396 module_cmds_F77 | \
15397 module_expsym_cmds_F77 | \
15398 old_archive_from_expsyms_cmds_F77 | \
15399 export_symbols_cmds_F77 | \
15400 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15401 postinstall_cmds | postuninstall_cmds | \
15402 old_postinstall_cmds | old_postuninstall_cmds | \
15403 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
15404 # Double-quote double-evaled strings.
15405 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15408 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15414 *'\$0 --fallback-echo"')
15415 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15421 cat <<__EOF__ >> "$cfgfile"
15422 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15424 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15426 # Shell to use when invoking shell scripts.
15429 # Whether or not to build shared libraries.
15430 build_libtool_libs=$enable_shared
15432 # Whether or not to build static libraries.
15433 build_old_libs=$enable_static
15435 # Whether or not to add -lc for building shared libraries.
15436 build_libtool_need_lc=$archive_cmds_need_lc_F77
15438 # Whether or not to disallow shared libs when runtime libs are static
15439 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15441 # Whether or not to optimize for fast installation.
15442 fast_install=$enable_fast_install
15445 host_alias=$host_alias
15449 # The build system.
15450 build_alias=$build_alias
15454 # An echo program that does not interpret backslashes.
15459 AR_FLAGS=$lt_AR_FLAGS
15464 # LTCC compiler flags.
15465 LTCFLAGS=$lt_LTCFLAGS
15467 # A language-specific compiler.
15468 CC=$lt_compiler_F77
15470 # Is the compiler the GNU C compiler?
15473 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15474 gcc_ver=\`gcc -dumpversion\`
15479 # The linker used to build libraries.
15482 # Whether we need hard or soft links.
15485 # A BSD-compatible nm program.
15488 # A symbol stripping program
15491 # Used to examine libraries when file_magic_cmd begins "file"
15492 MAGIC_CMD=$MAGIC_CMD
15494 # Used on cygwin: DLL creation program.
15497 # Used on cygwin: object dumper.
15500 # Used on cygwin: assembler.
15503 # The name of the directory that contains temporary libtool files.
15506 # How to create reloadable object files.
15507 reload_flag=$lt_reload_flag
15508 reload_cmds=$lt_reload_cmds
15510 # How to pass a linker flag through the compiler.
15511 wl=$lt_lt_prog_compiler_wl_F77
15513 # Object file suffix (normally "o").
15514 objext="$ac_objext"
15516 # Old archive suffix (normally "a").
15519 # Shared library suffix (normally ".so").
15520 shrext_cmds='$shrext_cmds'
15522 # Executable file suffix (normally "").
15525 # Additional compiler flags for building library objects.
15526 pic_flag=$lt_lt_prog_compiler_pic_F77
15529 # What is the maximum length of a command?
15530 max_cmd_len=$lt_cv_sys_max_cmd_len
15532 # Does compiler simultaneously support -c and -o options?
15533 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15535 # Must we lock files when doing compilation?
15536 need_locks=$lt_need_locks
15538 # Do we need the lib prefix for modules?
15539 need_lib_prefix=$need_lib_prefix
15541 # Do we need a version for libraries?
15542 need_version=$need_version
15544 # Whether dlopen is supported.
15545 dlopen_support=$enable_dlopen
15547 # Whether dlopen of programs is supported.
15548 dlopen_self=$enable_dlopen_self
15550 # Whether dlopen of statically linked programs is supported.
15551 dlopen_self_static=$enable_dlopen_self_static
15553 # Compiler flag to prevent dynamic linking.
15554 link_static_flag=$lt_lt_prog_compiler_static_F77
15556 # Compiler flag to turn off builtin functions.
15557 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15559 # Compiler flag to allow reflexive dlopens.
15560 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15562 # Compiler flag to generate shared objects directly from archives.
15563 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15565 # Compiler flag to generate thread-safe objects.
15566 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15568 # Library versioning type.
15569 version_type=$version_type
15571 # Format of library name prefix.
15572 libname_spec=$lt_libname_spec
15574 # List of archive names. First name is the real one, the rest are links.
15575 # The last name is the one that the linker finds with -lNAME.
15576 library_names_spec=$lt_library_names_spec
15578 # The coded name of the library, if different from the real name.
15579 soname_spec=$lt_soname_spec
15581 # Commands used to build and install an old-style archive.
15583 old_archive_cmds=$lt_old_archive_cmds_F77
15584 old_postinstall_cmds=$lt_old_postinstall_cmds
15585 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15587 # Create an old-style archive from a shared archive.
15588 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15590 # Create a temporary old-style archive to link instead of a shared archive.
15591 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15593 # Commands used to build and install a shared archive.
15594 archive_cmds=$lt_archive_cmds_F77
15595 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15596 postinstall_cmds=$lt_postinstall_cmds
15597 postuninstall_cmds=$lt_postuninstall_cmds
15599 # Commands used to build a loadable module (assumed same as above if empty)
15600 module_cmds=$lt_module_cmds_F77
15601 module_expsym_cmds=$lt_module_expsym_cmds_F77
15603 # Commands to strip libraries.
15604 old_striplib=$lt_old_striplib
15605 striplib=$lt_striplib
15607 # Dependencies to place before the objects being linked to create a
15609 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15611 # Dependencies to place after the objects being linked to create a
15613 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15615 # Dependencies to place before the objects being linked to create a
15617 predeps=$lt_predeps_F77
15619 # Dependencies to place after the objects being linked to create a
15621 postdeps=$lt_postdeps_F77
15623 # The library search path used internally by the compiler when linking
15624 # a shared library.
15625 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15627 # Method to check whether dependent libraries are shared objects.
15628 deplibs_check_method=$lt_deplibs_check_method
15630 # Command to use when deplibs_check_method == file_magic.
15631 file_magic_cmd=$lt_file_magic_cmd
15633 # Flag that allows shared libraries with undefined symbols to be built.
15634 allow_undefined_flag=$lt_allow_undefined_flag_F77
15636 # Flag that forces no undefined symbols.
15637 no_undefined_flag=$lt_no_undefined_flag_F77
15639 # Commands used to finish a libtool library installation in a directory.
15640 finish_cmds=$lt_finish_cmds
15642 # Same as above, but a single script fragment to be evaled but not shown.
15643 finish_eval=$lt_finish_eval
15645 # Take the output of nm and produce a listing of raw symbols and C names.
15646 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15648 # Transform the output of nm in a proper C declaration
15649 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15651 # Transform the output of nm in a C name address pair
15652 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15654 # This is the shared library runtime path variable.
15655 runpath_var=$runpath_var
15657 # This is the shared library path variable.
15658 shlibpath_var=$shlibpath_var
15660 # Is shlibpath searched before the hard-coded library search path?
15661 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15663 # How to hardcode a shared library path into an executable.
15664 hardcode_action=$hardcode_action_F77
15666 # Whether we should hardcode library paths into libraries.
15667 hardcode_into_libs=$hardcode_into_libs
15669 # Flag to hardcode \$libdir into a binary during linking.
15670 # This must work even if \$libdir does not exist.
15671 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15673 # If ld is used when linking, flag to hardcode \$libdir into
15674 # a binary during linking. This must work even if \$libdir does
15676 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15678 # Whether we need a single -rpath flag with a separated argument.
15679 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15681 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15682 # resulting binary.
15683 hardcode_direct=$hardcode_direct_F77
15685 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15686 # resulting binary.
15687 hardcode_minus_L=$hardcode_minus_L_F77
15689 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15690 # the resulting binary.
15691 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15693 # Set to yes if building a shared library automatically hardcodes DIR into the library
15694 # and all subsequent libraries and executables linked against it.
15695 hardcode_automatic=$hardcode_automatic_F77
15697 # Variables whose values should be saved in libtool wrapper scripts and
15698 # restored at relink time.
15699 variables_saved_for_relink="$variables_saved_for_relink"
15701 # Whether libtool must link a program against all its dependency libraries.
15702 link_all_deplibs=$link_all_deplibs_F77
15704 # Compile-time system search path for libraries
15705 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15707 # Run-time system search path for libraries
15708 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15710 # Fix the shell variable \$srcfile for the compiler.
15711 fix_srcfile_path="$fix_srcfile_path_F77"
15713 # Set to yes if exported symbols are required.
15714 always_export_symbols=$always_export_symbols_F77
15716 # The commands to list exported symbols.
15717 export_symbols_cmds=$lt_export_symbols_cmds_F77
15719 # The commands to extract the exported symbol list from a shared archive.
15720 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15722 # Symbols that should not be listed in the preloaded symbols.
15723 exclude_expsyms=$lt_exclude_expsyms_F77
15725 # Symbols that must always be exported.
15726 include_expsyms=$lt_include_expsyms_F77
15728 # ### END LIBTOOL TAG CONFIG: $tagname
15734 # If there is no Makefile yet, we rely on a make rule to execute
15735 # `config.status --recheck' to rerun these tests and create the
15736 # libtool script then.
15737 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15738 if test -f "$ltmain_in"; then
15739 test -f Makefile
&& make "$ltmain"
15745 ac_cpp
='$CPP $CPPFLAGS'
15746 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15747 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15748 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15758 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15762 # Source file extension for Java test sources.
15765 # Object file extension for compiled Java test sources.
15769 # Code to be used in simple compile tests
15770 lt_simple_compile_test_code
="class foo {}\n"
15772 # Code to be used in simple link tests
15773 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }\n'
15775 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15777 # If no C compiler was specified, use CC.
15780 # If no C compiler flags were specified, use CFLAGS.
15781 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
15783 # Allow CC to be a program name with arguments.
15787 # save warnings/boilerplate of simple test code
15788 ac_outfile
=conftest.
$ac_objext
15789 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
15790 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
15791 _lt_compiler_boilerplate
=`cat conftest.err`
15794 ac_outfile
=conftest.
$ac_objext
15795 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
15796 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
15797 _lt_linker_boilerplate
=`cat conftest.err`
15801 # Allow CC to be a program name with arguments.
15806 for cc_temp
in $compiler""; do
15808 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
15809 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
15814 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15817 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15818 archive_cmds_need_lc_GCJ
=no
15820 old_archive_cmds_GCJ
=$old_archive_cmds
15823 lt_prog_compiler_no_builtin_flag_GCJ
=
15825 if test "$GCC" = yes; then
15826 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
15829 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15830 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15831 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15832 echo $ECHO_N "(cached) $ECHO_C" >&6
15834 lt_cv_prog_compiler_rtti_exceptions
=no
15835 ac_outfile
=conftest.
$ac_objext
15836 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15837 lt_compiler_flag
="-fno-rtti -fno-exceptions"
15838 # Insert the option either (1) after the last *FLAGS variable, or
15839 # (2) before a word containing "conftest.", or (3) at the end.
15840 # Note that $ac_compile itself does not contain backslashes and begins
15841 # with a dollar sign (not a hyphen), so the echo should work correctly.
15842 # The option is referenced via a variable to avoid confusing sed.
15843 lt_compile
=`echo "$ac_compile" | $SED \
15844 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15846 -e 's:$: $lt_compiler_flag:'`
15847 (eval echo "\"\$as_me:15847: $lt_compile\"" >&5)
15848 (eval "$lt_compile" 2>conftest.err
)
15850 cat conftest.err
>&5
15851 echo "$as_me:15851: \$? = $ac_status" >&5
15852 if (exit $ac_status) && test -s "$ac_outfile"; then
15853 # The compiler can only warn and ignore the option if not recognized
15854 # So say no if there are warnings other than the usual output.
15855 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
15856 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
15857 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
15858 lt_cv_prog_compiler_rtti_exceptions
=yes
15864 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15865 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15867 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
15868 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15875 lt_prog_compiler_wl_GCJ
=
15876 lt_prog_compiler_pic_GCJ
=
15877 lt_prog_compiler_static_GCJ
=
15879 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15880 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15882 if test "$GCC" = yes; then
15883 lt_prog_compiler_wl_GCJ
='-Wl,'
15884 lt_prog_compiler_static_GCJ
='-static'
15888 # All AIX code is PIC.
15889 if test "$host_cpu" = ia64
; then
15890 # AIX 5 now supports IA64 processor
15891 lt_prog_compiler_static_GCJ
='-Bstatic'
15896 # FIXME: we need at least 68020 code to build shared libraries, but
15897 # adding the `-m68020' flag to GCC prevents building anything better,
15899 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
15902 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
15903 # PIC is the default for these OSes.
15906 mingw
* | pw32
* | os2
*)
15907 # This hack is so that the source file can tell whether it is being
15908 # built for inclusion in a dll (and should export symbols for example).
15909 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
15912 darwin
* | rhapsody
*)
15913 # PIC is the default on this platform
15914 # Common symbols not allowed in MH_DYLIB files
15915 lt_prog_compiler_pic_GCJ
='-fno-common'
15919 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15920 # Instead, we relocate shared libraries at runtime.
15924 # Just because we use GCC doesn't mean we suddenly get shared libraries
15925 # on systems that don't support them.
15926 lt_prog_compiler_can_build_shared_GCJ
=no
15931 if test -d /usr
/nec
; then
15932 lt_prog_compiler_pic_GCJ
=-Kconform_pic
15937 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15938 # not for PA HP-UX.
15944 lt_prog_compiler_pic_GCJ
='-fPIC'
15950 lt_prog_compiler_pic_GCJ
='-fPIC'
15954 # PORTME Check for flag to pass linker flags through the system compiler.
15957 lt_prog_compiler_wl_GCJ
='-Wl,'
15958 if test "$host_cpu" = ia64
; then
15959 # AIX 5 now supports IA64 processor
15960 lt_prog_compiler_static_GCJ
='-Bstatic'
15962 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
15966 # PIC is the default on this platform
15967 # Common symbols not allowed in MH_DYLIB files
15968 case $cc_basename in
15970 lt_prog_compiler_pic_GCJ
='-qnocommon'
15971 lt_prog_compiler_wl_GCJ
='-Wl,'
15976 mingw
* | pw32
* | os2
*)
15977 # This hack is so that the source file can tell whether it is being
15978 # built for inclusion in a dll (and should export symbols for example).
15979 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
15982 hpux9
* | hpux10
* | hpux11
*)
15983 lt_prog_compiler_wl_GCJ
='-Wl,'
15984 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15985 # not for PA HP-UX.
15991 lt_prog_compiler_pic_GCJ
='+Z'
15994 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15995 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
15998 irix5
* | irix6
* | nonstopux
*)
15999 lt_prog_compiler_wl_GCJ
='-Wl,'
16000 # PIC (with -KPIC) is the default.
16001 lt_prog_compiler_static_GCJ
='-non_shared'
16005 lt_prog_compiler_pic_GCJ
='-KPIC'
16006 lt_prog_compiler_static_GCJ
='-Bstatic'
16010 case $cc_basename in
16012 lt_prog_compiler_wl_GCJ
='-Wl,'
16013 lt_prog_compiler_pic_GCJ
='-KPIC'
16014 lt_prog_compiler_static_GCJ
='-static'
16016 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
16017 # Portland Group compilers (*not* the Pentium gcc compiler,
16018 # which looks to be a dead project)
16019 lt_prog_compiler_wl_GCJ
='-Wl,'
16020 lt_prog_compiler_pic_GCJ
='-fpic'
16021 lt_prog_compiler_static_GCJ
='-Bstatic'
16024 lt_prog_compiler_wl_GCJ
='-Wl,'
16025 # All Alpha code is PIC.
16026 lt_prog_compiler_static_GCJ
='-non_shared'
16031 osf3
* | osf4
* | osf5
*)
16032 lt_prog_compiler_wl_GCJ
='-Wl,'
16033 # All OSF/1 code is PIC.
16034 lt_prog_compiler_static_GCJ
='-non_shared'
16038 lt_prog_compiler_pic_GCJ
='-KPIC'
16039 lt_prog_compiler_static_GCJ
='-Bstatic'
16040 case $cc_basename in
16041 f77
* | f90
* | f95
*)
16042 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
16044 lt_prog_compiler_wl_GCJ
='-Wl,';;
16049 lt_prog_compiler_wl_GCJ
='-Qoption ld '
16050 lt_prog_compiler_pic_GCJ
='-PIC'
16051 lt_prog_compiler_static_GCJ
='-Bstatic'
16054 sysv4 | sysv4.2uw2
* | sysv4.3
*)
16055 lt_prog_compiler_wl_GCJ
='-Wl,'
16056 lt_prog_compiler_pic_GCJ
='-KPIC'
16057 lt_prog_compiler_static_GCJ
='-Bstatic'
16061 if test -d /usr
/nec
;then
16062 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
16063 lt_prog_compiler_static_GCJ
='-Bstatic'
16067 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
16068 lt_prog_compiler_wl_GCJ
='-Wl,'
16069 lt_prog_compiler_pic_GCJ
='-KPIC'
16070 lt_prog_compiler_static_GCJ
='-Bstatic'
16074 lt_prog_compiler_wl_GCJ
='-Wl,'
16075 lt_prog_compiler_can_build_shared_GCJ
=no
16079 lt_prog_compiler_pic_GCJ
='-pic'
16080 lt_prog_compiler_static_GCJ
='-Bstatic'
16084 lt_prog_compiler_can_build_shared_GCJ
=no
16089 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16090 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16093 # Check to make sure the PIC flag actually works.
16095 if test -n "$lt_prog_compiler_pic_GCJ"; then
16097 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16098 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16099 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16100 echo $ECHO_N "(cached) $ECHO_C" >&6
16102 lt_prog_compiler_pic_works_GCJ
=no
16103 ac_outfile
=conftest.
$ac_objext
16104 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16105 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
16106 # Insert the option either (1) after the last *FLAGS variable, or
16107 # (2) before a word containing "conftest.", or (3) at the end.
16108 # Note that $ac_compile itself does not contain backslashes and begins
16109 # with a dollar sign (not a hyphen), so the echo should work correctly.
16110 # The option is referenced via a variable to avoid confusing sed.
16111 lt_compile
=`echo "$ac_compile" | $SED \
16112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16114 -e 's:$: $lt_compiler_flag:'`
16115 (eval echo "\"\$as_me:16115: $lt_compile\"" >&5)
16116 (eval "$lt_compile" 2>conftest.err
)
16118 cat conftest.err
>&5
16119 echo "$as_me:16119: \$? = $ac_status" >&5
16120 if (exit $ac_status) && test -s "$ac_outfile"; then
16121 # The compiler can only warn and ignore the option if not recognized
16122 # So say no if there are warnings other than the usual output.
16123 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16124 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16125 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16126 lt_prog_compiler_pic_works_GCJ
=yes
16132 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16133 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16135 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
16136 case $lt_prog_compiler_pic_GCJ in
16138 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
16141 lt_prog_compiler_pic_GCJ
=
16142 lt_prog_compiler_can_build_shared_GCJ
=no
16147 # For platforms which do not support PIC, -DPIC is meaningless:
16149 lt_prog_compiler_pic_GCJ
=
16152 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
16157 # Check to make sure the static flag actually works.
16159 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
16160 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16161 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16162 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16163 echo $ECHO_N "(cached) $ECHO_C" >&6
16165 lt_prog_compiler_static_works_GCJ
=no
16166 save_LDFLAGS
="$LDFLAGS"
16167 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
16168 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
16169 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16170 # The linker can only warn and ignore the option if not recognized
16171 # So say no if there are warnings
16172 if test -s conftest.err
; then
16173 # Append any errors to the config.log.
16174 cat conftest.err
1>&5
16175 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
16176 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16177 if diff conftest.exp conftest.er2
>/dev
/null
; then
16178 lt_prog_compiler_static_works_GCJ
=yes
16181 lt_prog_compiler_static_works_GCJ
=yes
16185 LDFLAGS
="$save_LDFLAGS"
16188 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16189 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16191 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
16194 lt_prog_compiler_static_GCJ
=
16198 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16199 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16200 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16201 echo $ECHO_N "(cached) $ECHO_C" >&6
16203 lt_cv_prog_compiler_c_o_GCJ
=no
16204 $rm -r conftest
2>/dev
/null
16208 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16210 lt_compiler_flag
="-o out/conftest2.$ac_objext"
16211 # Insert the option either (1) after the last *FLAGS variable, or
16212 # (2) before a word containing "conftest.", or (3) at the end.
16213 # Note that $ac_compile itself does not contain backslashes and begins
16214 # with a dollar sign (not a hyphen), so the echo should work correctly.
16215 lt_compile
=`echo "$ac_compile" | $SED \
16216 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16218 -e 's:$: $lt_compiler_flag:'`
16219 (eval echo "\"\$as_me:16219: $lt_compile\"" >&5)
16220 (eval "$lt_compile" 2>out
/conftest.err
)
16222 cat out
/conftest.err
>&5
16223 echo "$as_me:16223: \$? = $ac_status" >&5
16224 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
16226 # The compiler can only warn and ignore the option if not recognized
16227 # So say no if there are warnings
16228 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
16229 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
16230 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
16231 lt_cv_prog_compiler_c_o_GCJ
=yes
16236 # SGI C++ compiler will create directory out/ii_files/ for
16237 # template instantiation
16238 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
16239 $rm out
/* && rmdir out
16245 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16246 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16249 hard_links
="nottested"
16250 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
16251 # do not overwrite the value of need_locks provided by the user
16252 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16253 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16256 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16258 ln conftest.a conftest.b
2>&5 || hard_links
=no
16259 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16260 echo "$as_me:$LINENO: result: $hard_links" >&5
16261 echo "${ECHO_T}$hard_links" >&6
16262 if test "$hard_links" = no
; then
16263 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16264 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16271 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16272 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16275 allow_undefined_flag_GCJ
=
16276 enable_shared_with_static_runtimes_GCJ
=no
16278 archive_expsym_cmds_GCJ
=
16279 old_archive_From_new_cmds_GCJ
=
16280 old_archive_from_expsyms_cmds_GCJ
=
16281 export_dynamic_flag_spec_GCJ
=
16282 whole_archive_flag_spec_GCJ
=
16283 thread_safe_flag_spec_GCJ
=
16284 hardcode_libdir_flag_spec_GCJ
=
16285 hardcode_libdir_flag_spec_ld_GCJ
=
16286 hardcode_libdir_separator_GCJ
=
16287 hardcode_direct_GCJ
=no
16288 hardcode_minus_L_GCJ
=no
16289 hardcode_shlibpath_var_GCJ
=unsupported
16290 link_all_deplibs_GCJ
=unknown
16291 hardcode_automatic_GCJ
=no
16293 module_expsym_cmds_GCJ
=
16294 always_export_symbols_GCJ
=no
16295 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16296 # include_expsyms should be a list of space-separated symbols to be *always*
16297 # included in the symbol list
16298 include_expsyms_GCJ
=
16299 # exclude_expsyms can be an extended regexp of symbols to exclude
16300 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16301 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16302 # as well as any symbol that contains `d'.
16303 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
16304 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16305 # platforms (ab)use it in PIC code, but their linkers get confused if
16306 # the symbol is explicitly referenced. Since portable code cannot
16307 # rely on this symbol name, it's probably fine to never include it in
16308 # preloaded symbol tables.
16309 extract_expsyms_cmds
=
16310 # Just being paranoid about ensuring that cc_basename is set.
16311 for cc_temp
in $compiler""; do
16313 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16314 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16319 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16322 cygwin
* | mingw
* | pw32
*)
16323 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16324 # When not using gcc, we currently assume that we are using
16325 # Microsoft Visual C++.
16326 if test "$GCC" != yes; then
16331 # we just hope/assume this is gcc and not c89 (= MSVC++)
16340 if test "$with_gnu_ld" = yes; then
16341 # If archive_cmds runs LD, not CC, wlarc should be empty
16344 # Set some defaults for GNU ld with shared library support. These
16345 # are reset later if shared libraries are not supported. Putting them
16346 # here allows them to be overridden if necessary.
16347 runpath_var
=LD_RUN_PATH
16348 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
16349 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
16350 # ancient GNU ld didn't support --whole-archive et. al.
16351 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
16352 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16354 whole_archive_flag_spec_GCJ
=
16356 supports_anon_versioning
=no
16357 case `$LD -v 2>/dev/null` in
16358 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
16359 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
16360 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
16361 *\
2.11.
*) ;; # other 2.11 versions
16362 *) supports_anon_versioning
=yes ;;
16365 # See if GNU ld supports shared libraries.
16367 aix3
* | aix4
* | aix5
*)
16368 # On AIX/PPC, the GNU linker is very broken
16369 if test "$host_cpu" != ia64
; then
16373 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16374 *** to be unable to reliably create shared libraries on AIX.
16375 *** Therefore, libtool is disabling shared libraries support. If you
16376 *** really care for shared libraries, you may want to modify your PATH
16377 *** so that a non-GNU linker is found, and then restart.
16384 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)'
16385 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16386 hardcode_minus_L_GCJ
=yes
16388 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16389 # that the semantics of dynamic libraries on AmigaOS, at least up
16390 # to version 4, is to share data among multiple programs linked
16391 # with the same dynamic library. Since this doesn't match the
16392 # behavior of shared libraries on other platforms, we can't use
16398 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16399 allow_undefined_flag_GCJ
=unsupported
16400 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16401 # support --undefined. This deserves some investigation. FIXME
16402 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16408 cygwin
* | mingw
* | pw32
*)
16409 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16410 # as there is no search path for DLLs.
16411 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16412 allow_undefined_flag_GCJ
=unsupported
16413 always_export_symbols_GCJ
=no
16414 enable_shared_with_static_runtimes_GCJ
=yes
16415 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16417 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
16418 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16419 # If the export-symbols file already is a .def file (1st line
16420 # is EXPORTS), use it as is; otherwise, prepend...
16421 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16422 cp $export_symbols $output_objdir/$soname.def;
16424 echo EXPORTS > $output_objdir/$soname.def;
16425 cat $export_symbols >> $output_objdir/$soname.def;
16427 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16434 hardcode_direct_GCJ
=no
16435 hardcode_shlibpath_var_GCJ
=no
16436 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
16437 export_dynamic_flag_spec_GCJ
='${wl}-E'
16438 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16439 # Instead, shared libraries are loaded at an image base (0x10000000 by
16440 # default) and relocated if they conflict, which is a slow very memory
16441 # consuming and fragmenting process. To avoid this, we pick a random,
16442 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16443 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16444 archive_cmds_GCJ
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16445 archive_expsym_cmds_GCJ
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16449 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16451 case $cc_basename,$host_cpu in
16452 pgcc
*) # Portland Group C compiler
16453 whole_archive_flag_spec_GCJ
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16454 tmp_addflag
=' $pic_flag'
16456 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
16457 whole_archive_flag_spec_GCJ
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16458 tmp_addflag
=' $pic_flag -Mnomain' ;;
16459 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16460 tmp_addflag
=' -i_dynamic' ;;
16461 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16462 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16463 ifc
* | ifort
*) # Intel Fortran compiler
16464 tmp_addflag
=' -nofor_main' ;;
16466 archive_cmds_GCJ
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16468 if test $supports_anon_versioning = yes; then
16469 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
16470 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16471 $echo "local: *; };" >> $output_objdir/$libname.ver~
16472 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16480 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16481 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16484 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16485 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16490 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
16494 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16495 *** create shared libraries on Solaris systems. Therefore, libtool
16496 *** is disabling shared libraries support. We urge you to upgrade GNU
16497 *** binutils to release 2.9.1 or newer. Another option is to modify
16498 *** your PATH or compiler configuration so that the native linker is
16499 *** used, and then restart.
16502 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16503 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16504 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16510 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16511 case `$LD -v 2>&1` in
16512 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16516 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16517 *** reliably create shared libraries on SCO systems. Therefore, libtool
16518 *** is disabling shared libraries support. We urge you to upgrade GNU
16519 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16520 *** your PATH or compiler configuration so that the native linker is
16521 *** used, and then restart.
16526 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16527 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16528 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16529 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16538 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16540 hardcode_direct_GCJ
=yes
16541 hardcode_shlibpath_var_GCJ
=no
16545 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16546 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16547 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16554 if test "$ld_shlibs_GCJ" = no
; then
16556 hardcode_libdir_flag_spec_GCJ
=
16557 export_dynamic_flag_spec_GCJ
=
16558 whole_archive_flag_spec_GCJ
=
16561 # PORTME fill in a description of your system's linker (not GNU ld)
16564 allow_undefined_flag_GCJ
=unsupported
16565 always_export_symbols_GCJ
=yes
16566 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'
16567 # Note: this linker hardcodes the directories in LIBPATH if there
16568 # are no directories specified by -L.
16569 hardcode_minus_L_GCJ
=yes
16570 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16571 # Neither direct hardcoding nor static linking is supported with a
16573 hardcode_direct_GCJ
=unsupported
16578 if test "$host_cpu" = ia64
; then
16579 # On IA64, the linker does run time linking by default, so we don't
16580 # have to do anything special.
16581 aix_use_runtimelinking
=no
16582 exp_sym_flag
='-Bexport'
16585 # If we're using GNU nm, then we don't want the "-C" option.
16586 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16587 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
16588 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'
16590 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'
16592 aix_use_runtimelinking
=no
16594 # Test if we are trying to use run time linking or normal
16595 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16596 # need to do runtime linking.
16597 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
16598 for ld_flag
in $LDFLAGS; do
16599 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16600 aix_use_runtimelinking
=yes
16607 exp_sym_flag
='-bexport'
16608 no_entry_flag
='-bnoentry'
16611 # When large executables or shared objects are built, AIX ld can
16612 # have problems creating the table of contents. If linking a library
16613 # or program results in "error TOC overflow" add -mminimal-toc to
16614 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16615 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16617 archive_cmds_GCJ
=''
16618 hardcode_direct_GCJ
=yes
16619 hardcode_libdir_separator_GCJ
=':'
16620 link_all_deplibs_GCJ
=yes
16622 if test "$GCC" = yes; then
16623 case $host_os in aix4.
[012]|aix4.
[012].
*)
16624 # We only want to do this on AIX 4.2 and lower, the check
16625 # below for broken collect2 doesn't work under 4.3+
16626 collect2name
=`${CC} -print-prog-name=collect2`
16627 if test -f "$collect2name" && \
16628 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
16630 # We have reworked collect2
16631 hardcode_direct_GCJ
=yes
16633 # We have old collect2
16634 hardcode_direct_GCJ
=unsupported
16635 # It fails to find uninstalled libraries when the uninstalled
16636 # path is not listed in the libpath. Setting hardcode_minus_L
16637 # to unsupported forces relinking
16638 hardcode_minus_L_GCJ
=yes
16639 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16640 hardcode_libdir_separator_GCJ
=
16644 shared_flag
='-shared'
16645 if test "$aix_use_runtimelinking" = yes; then
16646 shared_flag
="$shared_flag "'${wl}-G'
16650 if test "$host_cpu" = ia64
; then
16651 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16652 # chokes on -Wl,-G. The following line is correct:
16655 if test "$aix_use_runtimelinking" = yes; then
16656 shared_flag
='${wl}-G'
16658 shared_flag
='${wl}-bM:SRE'
16663 # It seems that -bexpall does not export symbols beginning with
16664 # underscore (_), so it is better to generate a list of symbols to export.
16665 always_export_symbols_GCJ
=yes
16666 if test "$aix_use_runtimelinking" = yes; then
16667 # Warning - without using the other runtime loading flags (-brtl),
16668 # -berok will link without error, but may produce a broken library.
16669 allow_undefined_flag_GCJ
='-berok'
16670 # Determine the default libpath from the value encoded in an empty executable.
16671 cat >conftest.
$ac_ext <<_ACEOF
16674 cat confdefs.h
>>conftest.
$ac_ext
16675 cat >>conftest.
$ac_ext <<_ACEOF
16676 /* end confdefs.h. */
16686 rm -f conftest.
$ac_objext conftest
$ac_exeext
16687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16688 (eval $ac_link) 2>conftest.er1
16690 grep -v '^ *+' conftest.er1
>conftest.err
16692 cat conftest.err
>&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); } &&
16695 { ac_try
='test -z "$ac_c_werror_flag"
16696 || test ! -s conftest.err'
16697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16698 (eval $ac_try) 2>&5
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; } &&
16702 { ac_try
='test -s conftest$ac_exeext'
16703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16704 (eval $ac_try) 2>&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); }; }; then
16709 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16711 # Check for a 64-bit object if we didn't find anything.
16712 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; }
16715 echo "$as_me: failed program was:" >&5
16716 sed 's/^/| /' conftest.
$ac_ext >&5
16719 rm -f conftest.err conftest.
$ac_objext \
16720 conftest
$ac_exeext conftest.
$ac_ext
16721 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16723 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
16724 archive_expsym_cmds_GCJ
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16726 if test "$host_cpu" = ia64
; then
16727 hardcode_libdir_flag_spec_GCJ
='${wl}-R $libdir:/usr/lib:/lib'
16728 allow_undefined_flag_GCJ
="-z nodefs"
16729 archive_expsym_cmds_GCJ
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16731 # Determine the default libpath from the value encoded in an empty executable.
16732 cat >conftest.
$ac_ext <<_ACEOF
16735 cat confdefs.h
>>conftest.
$ac_ext
16736 cat >>conftest.
$ac_ext <<_ACEOF
16737 /* end confdefs.h. */
16747 rm -f conftest.
$ac_objext conftest
$ac_exeext
16748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16749 (eval $ac_link) 2>conftest.er1
16751 grep -v '^ *+' conftest.er1
>conftest.err
16753 cat conftest.err
>&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); } &&
16756 { ac_try
='test -z "$ac_c_werror_flag"
16757 || test ! -s conftest.err'
16758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16759 (eval $ac_try) 2>&5
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); }; } &&
16763 { ac_try
='test -s conftest$ac_exeext'
16764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16765 (eval $ac_try) 2>&5
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); }; }; then
16770 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16772 # Check for a 64-bit object if we didn't find anything.
16773 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; }
16776 echo "$as_me: failed program was:" >&5
16777 sed 's/^/| /' conftest.
$ac_ext >&5
16780 rm -f conftest.err conftest.
$ac_objext \
16781 conftest
$ac_exeext conftest.
$ac_ext
16782 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16784 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
16785 # Warning - without using the other run time loading flags,
16786 # -berok will link without error, but may produce a broken library.
16787 no_undefined_flag_GCJ
=' ${wl}-bernotok'
16788 allow_undefined_flag_GCJ
=' ${wl}-berok'
16789 # Exported symbols can be pulled into shared objects from archives
16790 whole_archive_flag_spec_GCJ
='$convenience'
16791 archive_cmds_need_lc_GCJ
=yes
16792 # This is similar to how AIX traditionally builds its shared libraries.
16793 archive_expsym_cmds_GCJ
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16799 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)'
16800 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16801 hardcode_minus_L_GCJ
=yes
16802 # see comment about different semantics on the GNU ld section
16807 export_dynamic_flag_spec_GCJ
=-rdynamic
16810 cygwin
* | mingw
* | pw32
*)
16811 # When not using gcc, we currently assume that we are using
16812 # Microsoft Visual C++.
16813 # hardcode_libdir_flag_spec is actually meaningless, as there is
16814 # no search path for DLLs.
16815 hardcode_libdir_flag_spec_GCJ
=' '
16816 allow_undefined_flag_GCJ
=unsupported
16817 # Tell ltmain to make .lib files, not .a files.
16819 # Tell ltmain to make .dll files, not .so files.
16821 # FIXME: Setting linknames here is a bad hack.
16822 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16823 # The linker will automatically build a .lib file if we build a DLL.
16824 old_archive_From_new_cmds_GCJ
='true'
16825 # FIXME: Should let the user specify the lib program.
16826 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
16827 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
16828 enable_shared_with_static_runtimes_GCJ
=yes
16831 darwin
* | rhapsody
*)
16833 rhapsody
* | darwin1.
[012])
16834 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
16837 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16838 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16840 case ${MACOSX_DEPLOYMENT_TARGET} in
16842 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16845 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
16851 archive_cmds_need_lc_GCJ
=no
16852 hardcode_direct_GCJ
=no
16853 hardcode_automatic_GCJ
=yes
16854 hardcode_shlibpath_var_GCJ
=unsupported
16855 whole_archive_flag_spec_GCJ
=''
16856 link_all_deplibs_GCJ
=yes
16857 if test "$GCC" = yes ; then
16858 output_verbose_link_cmd
='echo'
16859 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16860 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16861 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16862 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}'
16863 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}'
16865 case $cc_basename in
16867 output_verbose_link_cmd
='echo'
16868 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16869 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16870 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16871 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}'
16872 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}'
16882 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16883 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16884 hardcode_shlibpath_var_GCJ
=no
16891 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16892 # support. Future versions do this automatically, but an explicit c++rt0.o
16893 # does not break anything, and helps significantly (at the cost of a little
16896 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16897 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16898 hardcode_direct_GCJ
=yes
16899 hardcode_shlibpath_var_GCJ
=no
16902 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16904 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16905 hardcode_direct_GCJ
=yes
16906 hardcode_minus_L_GCJ
=yes
16907 hardcode_shlibpath_var_GCJ
=no
16910 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16911 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
16912 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16913 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16914 hardcode_direct_GCJ
=yes
16915 hardcode_shlibpath_var_GCJ
=no
16919 if test "$GCC" = yes; then
16920 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'
16922 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'
16924 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16925 hardcode_libdir_separator_GCJ
=:
16926 hardcode_direct_GCJ
=yes
16928 # hardcode_minus_L: Not really in the search PATH,
16929 # but as the default location of the library.
16930 hardcode_minus_L_GCJ
=yes
16931 export_dynamic_flag_spec_GCJ
='${wl}-E'
16935 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
16936 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16938 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16940 if test "$with_gnu_ld" = no
; then
16941 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16942 hardcode_libdir_separator_GCJ
=:
16944 hardcode_direct_GCJ
=yes
16945 export_dynamic_flag_spec_GCJ
='${wl}-E'
16947 # hardcode_minus_L: Not really in the search PATH,
16948 # but as the default location of the library.
16949 hardcode_minus_L_GCJ
=yes
16954 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
16957 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16960 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16963 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16969 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16972 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16975 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16979 if test "$with_gnu_ld" = no
; then
16980 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16981 hardcode_libdir_separator_GCJ
=:
16985 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
16986 hardcode_direct_GCJ
=no
16987 hardcode_shlibpath_var_GCJ
=no
16990 hardcode_direct_GCJ
=yes
16991 export_dynamic_flag_spec_GCJ
='${wl}-E'
16993 # hardcode_minus_L: Not really in the search PATH,
16994 # but as the default location of the library.
16995 hardcode_minus_L_GCJ
=yes
17001 irix5
* | irix6
* | nonstopux
*)
17002 if test "$GCC" = yes; then
17003 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'
17005 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'
17006 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
17008 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17009 hardcode_libdir_separator_GCJ
=:
17010 link_all_deplibs_GCJ
=yes
17014 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17015 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17017 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17019 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17020 hardcode_direct_GCJ
=yes
17021 hardcode_shlibpath_var_GCJ
=no
17025 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17026 hardcode_direct_GCJ
=yes
17027 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17028 hardcode_libdir_separator_GCJ
=:
17029 hardcode_shlibpath_var_GCJ
=no
17033 hardcode_direct_GCJ
=yes
17034 hardcode_shlibpath_var_GCJ
=no
17035 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17036 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17037 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17038 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17039 export_dynamic_flag_spec_GCJ
='${wl}-E'
17042 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17043 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17044 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17047 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17048 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17055 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17056 hardcode_minus_L_GCJ
=yes
17057 allow_undefined_flag_GCJ
=unsupported
17058 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'
17059 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17063 if test "$GCC" = yes; then
17064 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17065 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'
17067 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17068 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'
17070 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17071 hardcode_libdir_separator_GCJ
=:
17074 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17075 if test "$GCC" = yes; then
17076 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17077 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'
17078 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17080 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17081 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'
17082 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~
17083 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17085 # Both c and cxx compiler support -rpath directly
17086 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
17088 hardcode_libdir_separator_GCJ
=:
17092 no_undefined_flag_GCJ
=' -z text'
17093 if test "$GCC" = yes; then
17095 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17096 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17097 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17100 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17101 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17102 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17104 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17105 hardcode_shlibpath_var_GCJ
=no
17107 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17109 # The compiler driver will combine linker options so we
17110 # cannot just pass the convience library names through
17111 # without $wl, iff we do not link with $LD.
17112 # Luckily, gcc supports the same syntax we need for Sun Studio.
17113 # Supported since Solaris 2.6 (maybe 2.5.1?)
17116 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
17118 whole_archive_flag_spec_GCJ
='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17121 link_all_deplibs_GCJ
=yes
17125 if test "x$host_vendor" = xsequent
; then
17126 # Use $CC to link under sequent, because it throws in some extra .o
17127 # files that make .init and .fini sections work.
17128 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17130 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17132 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17133 hardcode_direct_GCJ
=yes
17134 hardcode_minus_L_GCJ
=yes
17135 hardcode_shlibpath_var_GCJ
=no
17139 case $host_vendor in
17141 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17142 hardcode_direct_GCJ
=yes # is this really true???
17145 ## LD is ld it makes a PLAMLIB
17146 ## CC just makes a GrossModule.
17147 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17148 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
17149 hardcode_direct_GCJ
=no
17152 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17153 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
17156 runpath_var
='LD_RUN_PATH'
17157 hardcode_shlibpath_var_GCJ
=no
17161 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17162 hardcode_shlibpath_var_GCJ
=no
17163 export_dynamic_flag_spec_GCJ
='-Bexport'
17167 if test -d /usr
/nec
; then
17168 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17169 hardcode_shlibpath_var_GCJ
=no
17170 runpath_var
=LD_RUN_PATH
17171 hardcode_runpath_var
=yes
17176 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
17177 no_undefined_flag_GCJ
='${wl}-z,text'
17178 archive_cmds_need_lc_GCJ
=no
17179 hardcode_shlibpath_var_GCJ
=no
17180 runpath_var
='LD_RUN_PATH'
17182 if test "$GCC" = yes; then
17183 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17184 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17186 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17187 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17191 sysv5
* | sco3.2v5
* | sco5v6
*)
17192 # Note: We can NOT use -z defs as we might desire, because we do not
17193 # link with -lc, and that would cause any symbols used from libc to
17194 # always be unresolved, which means just about no library would
17195 # ever link correctly. If we're not using GNU ld we use -z text
17196 # though, which does catch some bad symbols but isn't as heavy-handed
17198 no_undefined_flag_GCJ
='${wl}-z,text'
17199 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
17200 archive_cmds_need_lc_GCJ
=no
17201 hardcode_shlibpath_var_GCJ
=no
17202 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17203 hardcode_libdir_separator_GCJ
=':'
17204 link_all_deplibs_GCJ
=yes
17205 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
17206 runpath_var
='LD_RUN_PATH'
17208 if test "$GCC" = yes; then
17209 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17210 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17212 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17213 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17218 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17219 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17220 hardcode_shlibpath_var_GCJ
=no
17229 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17230 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17231 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
17234 # Do we need to explicitly link libc?
17236 case "x$archive_cmds_need_lc_GCJ" in
17238 # Assume -lc should be added
17239 archive_cmds_need_lc_GCJ
=yes
17241 if test "$enable_shared" = yes && test "$GCC" = yes; then
17242 case $archive_cmds_GCJ in
17244 # FIXME: we may have to deal with multi-command sequences.
17247 # Test whether the compiler implicitly links with -lc since on some
17248 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17249 # to ld, don't add -lc before -lgcc.
17250 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17251 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17253 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
17255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17256 (eval $ac_compile) 2>&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); } 2>conftest.err
; then
17262 libobjs
=conftest.
$ac_objext
17264 wl
=$lt_prog_compiler_wl_GCJ
17265 pic_flag
=$lt_prog_compiler_pic_GCJ
17271 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
17272 allow_undefined_flag_GCJ
=
17273 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17274 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }
17279 archive_cmds_need_lc_GCJ
=no
17281 archive_cmds_need_lc_GCJ
=yes
17283 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
17285 cat conftest.err
1>&5
17288 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17289 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17296 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17297 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17298 library_names_spec
=
17299 libname_spec
='lib$name'
17303 postuninstall_cmds
=
17307 shlibpath_overrides_runpath
=unknown
17309 dynamic_linker
="$host_os ld.so"
17310 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17311 if test "$GCC" = yes; then
17312 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17313 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
17314 # if the path contains ";" then we assume it to be the separator
17315 # otherwise default to the standard path separator (i.e. ":") - it is
17316 # assumed that no part of a normal pathname contains ";" but that should
17317 # okay in the real world where ";" in dirpaths is itself problematic.
17318 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17320 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17323 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17325 need_lib_prefix
=unknown
17326 hardcode_into_libs
=no
17328 # when you set need_version to no, make sure it does not cause -set_version
17329 # flags to be left without arguments
17330 need_version
=unknown
17335 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17336 shlibpath_var
=LIBPATH
17338 # AIX 3 has no versioning support, so we append a major version to the name.
17339 soname_spec
='${libname}${release}${shared_ext}$major'
17346 hardcode_into_libs
=yes
17347 if test "$host_cpu" = ia64
; then
17348 # AIX 5 supports IA64
17349 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17350 shlibpath_var
=LD_LIBRARY_PATH
17352 # With GCC up to 2.95.x, collect2 would create an import file
17353 # for dependence libraries. The import file would start with
17354 # the line `#! .'. This would cause the generated library to
17355 # depend on `.', always an invalid library. This was fixed in
17356 # development snapshots of GCC prior to 3.0.
17358 aix4 | aix4.
[01] | aix4.
[01].
*)
17359 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17361 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
17364 can_build_shared
=no
17368 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17369 # soname into executable. Probably we can add versioning support to
17370 # collect2, so additional links can be useful in future.
17371 if test "$aix_use_runtimelinking" = yes; then
17372 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17373 # instead of lib<name>.a to let people know that these are not
17374 # typical AIX shared libraries.
17375 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17377 # We preserve .a as extension for shared libraries through AIX4.2
17378 # and later when we are not doing run time linking.
17379 library_names_spec
='${libname}${release}.a $libname.a'
17380 soname_spec
='${libname}${release}${shared_ext}$major'
17382 shlibpath_var
=LIBPATH
17387 library_names_spec
='$libname.ixlibrary $libname.a'
17388 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17389 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'
17393 library_names_spec
='${libname}${shared_ext}'
17394 dynamic_linker
="$host_os ld.so"
17395 shlibpath_var
=LIBRARY_PATH
17401 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17402 soname_spec
='${libname}${release}${shared_ext}$major'
17403 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17404 shlibpath_var
=LD_LIBRARY_PATH
17405 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17406 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17407 # the default ld.so.conf also contains /usr/contrib/lib and
17408 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17409 # libtool to hard-code these into programs
17412 cygwin
* | mingw
* | pw32
*)
17413 version_type
=windows
17418 case $GCC,$host_os in
17419 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
17420 library_names_spec
='$libname.dll.a'
17421 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17422 postinstall_cmds
='base_file=`basename \${file}`~
17423 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17424 dldir=$destdir/`dirname \$dlpath`~
17425 test -d \$dldir || mkdir -p \$dldir~
17426 $install_prog $dir/$dlname \$dldir/$dlname~
17427 chmod a+x \$dldir/$dlname'
17428 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17429 dlpath=$dir/\$dldll~
17431 shlibpath_overrides_runpath
=yes
17435 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17436 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17437 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
17440 # MinGW DLLs use traditional 'lib' prefix
17441 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17442 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17443 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
17444 # It is most probably a Windows format PATH printed by
17445 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17446 # path with ; separators, and with drive letters. We can handle the
17447 # drive letters (cygwin fileutils understands them), so leave them,
17448 # especially as we might pass files found there to a mingw objdump,
17449 # which wouldn't understand a cygwinified path. Ahh.
17450 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17452 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17456 # pw32 DLLs use 'pw' prefix rather than 'lib'
17457 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17463 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17466 dynamic_linker
='Win32 ld.exe'
17467 # FIXME: first we should search . and the directory the executable is in
17471 darwin
* | rhapsody
*)
17472 dynamic_linker
="$host_os dyld"
17473 version_type
=darwin
17476 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17477 soname_spec
='${libname}${release}${major}$shared_ext'
17478 shlibpath_overrides_runpath
=yes
17479 shlibpath_var
=DYLD_LIBRARY_PATH
17480 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17481 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17482 if test "$GCC" = yes; then
17483 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"`
17485 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
17487 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17494 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17495 soname_spec
='${libname}${release}${shared_ext}$major'
17496 shlibpath_var
=LD_LIBRARY_PATH
17507 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17508 soname_spec
='${libname}${release}${shared_ext}$major'
17509 shlibpath_var
=LD_LIBRARY_PATH
17510 shlibpath_overrides_runpath
=no
17511 hardcode_into_libs
=yes
17512 dynamic_linker
='GNU ld.so'
17515 freebsd
* | dragonfly
*)
17516 # DragonFly does not have aout. When/if they implement a new
17517 # versioning mechanism, adjust this.
17518 if test -x /usr
/bin
/objformat
; then
17519 objformat
=`/usr/bin/objformat`
17522 freebsd
[123]*) objformat
=aout
;;
17523 *) objformat
=elf
;;
17526 version_type
=freebsd-
$objformat
17527 case $version_type in
17529 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17534 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17538 shlibpath_var
=LD_LIBRARY_PATH
17541 shlibpath_overrides_runpath
=yes
17543 freebsd3.
[01]* | freebsdelf3.
[01]*)
17544 shlibpath_overrides_runpath
=yes
17545 hardcode_into_libs
=yes
17547 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17548 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17549 shlibpath_overrides_runpath
=no
17550 hardcode_into_libs
=yes
17552 freebsd
*) # from 4.6 on
17553 shlibpath_overrides_runpath
=yes
17554 hardcode_into_libs
=yes
17563 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17564 soname_spec
='${libname}${release}${shared_ext}$major'
17565 shlibpath_var
=LD_LIBRARY_PATH
17566 hardcode_into_libs
=yes
17569 hpux9
* | hpux10
* | hpux11
*)
17570 # Give a soname corresponding to the major version so that dld.sl refuses to
17571 # link against other versions.
17578 hardcode_into_libs
=yes
17579 dynamic_linker
="$host_os dld.so"
17580 shlibpath_var
=LD_LIBRARY_PATH
17581 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17582 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17583 soname_spec
='${libname}${release}${shared_ext}$major'
17584 if test "X$HPUX_IA64_MODE" = X32
; then
17585 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17587 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17589 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17593 hardcode_into_libs
=yes
17594 dynamic_linker
="$host_os dld.sl"
17595 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17596 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17597 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17598 soname_spec
='${libname}${release}${shared_ext}$major'
17599 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17600 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17604 dynamic_linker
="$host_os dld.sl"
17605 shlibpath_var
=SHLIB_PATH
17606 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17607 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17608 soname_spec
='${libname}${release}${shared_ext}$major'
17611 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17612 postinstall_cmds
='chmod 555 $lib'
17619 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17620 soname_spec
='${libname}${release}${shared_ext}$major'
17621 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17622 shlibpath_var
=LD_LIBRARY_PATH
17623 shlibpath_overrides_runpath
=no
17624 hardcode_into_libs
=yes
17627 irix5
* | irix6
* | nonstopux
*)
17629 nonstopux
*) version_type
=nonstopux
;;
17631 if test "$lt_cv_prog_gnu_ld" = yes; then
17639 soname_spec
='${libname}${release}${shared_ext}$major'
17640 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17642 irix5
* | nonstopux
*)
17643 libsuff
= shlibsuff
=
17646 case $LD in # libtool.m4 will add one of these switches to LD
17647 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17648 libsuff
= shlibsuff
= libmagic
=32-bit;;
17649 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17650 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17651 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17652 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17653 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17657 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17658 shlibpath_overrides_runpath
=no
17659 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17660 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17661 hardcode_into_libs
=yes
17664 # No shared lib support for Linux oldld, aout, or coff.
17665 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17669 # This must be Linux ELF.
17674 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17675 soname_spec
='${libname}${release}${shared_ext}$major'
17676 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17677 shlibpath_var
=LD_LIBRARY_PATH
17678 shlibpath_overrides_runpath
=no
17679 # This implies no fast_install, which is unacceptable.
17680 # Some rework will be needed to allow for fast_install
17681 # before this can be enabled.
17682 hardcode_into_libs
=yes
17684 # find out which ABI we are using
17686 case "$host_cpu" in
17687 x86_64
*|s390x
*|powerpc64
*)
17688 echo '#line 17688 "configure"' > conftest.
$ac_ext
17689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17690 (eval $ac_compile) 2>&5
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); }; then
17694 case `/usr/bin/file conftest.$ac_objext` in
17697 sys_lib_search_path_spec
="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17705 # Append ld.so.conf contents to the search path
17706 if test -f /etc
/ld.so.conf
; then
17707 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17708 sys_lib_dlsearch_path_spec
="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17711 # We used to test for /lib/ld.so.1 and disable shared libraries on
17712 # powerpc, because MkLinux only supported shared libraries with the
17713 # GNU dynamic linker. Since this was broken with cross compilers,
17714 # most powerpc-linux boxes support dynamic linking these days and
17715 # people can always --disable-shared, the test was removed, and we
17716 # assume the GNU/Linux dynamic linker is in use.
17717 dynamic_linker
='GNU/Linux ld.so'
17724 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17725 soname_spec
='${libname}${release}${shared_ext}$major'
17726 shlibpath_var
=LD_LIBRARY_PATH
17727 shlibpath_overrides_runpath
=no
17728 hardcode_into_libs
=yes
17729 dynamic_linker
='GNU ld.so'
17736 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17737 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17738 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17739 dynamic_linker
='NetBSD (a.out) ld.so'
17741 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17742 soname_spec
='${libname}${release}${shared_ext}$major'
17743 dynamic_linker
='NetBSD ld.elf_so'
17745 shlibpath_var
=LD_LIBRARY_PATH
17746 shlibpath_overrides_runpath
=yes
17747 hardcode_into_libs
=yes
17752 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17753 shlibpath_var
=LD_LIBRARY_PATH
17754 shlibpath_overrides_runpath
=yes
17761 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17762 soname_spec
='${libname}${release}${shared_ext}$major'
17763 shlibpath_var
=LD_LIBRARY_PATH
17764 shlibpath_overrides_runpath
=yes
17769 sys_lib_dlsearch_path_spec
="/usr/lib"
17771 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17773 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17774 *) need_version
=no
;;
17776 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17777 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17778 shlibpath_var
=LD_LIBRARY_PATH
17779 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17781 openbsd2.
[89] | openbsd2.
[89].
*)
17782 shlibpath_overrides_runpath
=no
17785 shlibpath_overrides_runpath
=yes
17789 shlibpath_overrides_runpath
=yes
17794 libname_spec
='$name'
17797 library_names_spec
='$libname${shared_ext} $libname.a'
17798 dynamic_linker
='OS/2 ld.exe'
17799 shlibpath_var
=LIBPATH
17802 osf3
* | osf4
* | osf5
*)
17806 soname_spec
='${libname}${release}${shared_ext}$major'
17807 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17808 shlibpath_var
=LD_LIBRARY_PATH
17809 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17810 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17817 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17818 soname_spec
='${libname}${release}${shared_ext}$major'
17819 shlibpath_var
=LD_LIBRARY_PATH
17820 shlibpath_overrides_runpath
=yes
17821 hardcode_into_libs
=yes
17822 # ldd complains unless libraries are executable
17823 postinstall_cmds
='chmod +x $lib'
17828 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17829 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17830 shlibpath_var
=LD_LIBRARY_PATH
17831 shlibpath_overrides_runpath
=yes
17832 if test "$with_gnu_ld" = yes; then
17840 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17841 soname_spec
='${libname}${release}${shared_ext}$major'
17842 shlibpath_var
=LD_LIBRARY_PATH
17843 case $host_vendor in
17845 shlibpath_overrides_runpath
=no
17847 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17848 runpath_var
=LD_RUN_PATH
17856 shlibpath_overrides_runpath
=no
17857 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17863 if test -d /usr
/nec
;then
17865 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17866 soname_spec
='$libname${shared_ext}.$major'
17867 shlibpath_var
=LD_LIBRARY_PATH
17871 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17872 version_type
=freebsd-elf
17875 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17876 soname_spec
='${libname}${release}${shared_ext}$major'
17877 shlibpath_var
=LD_LIBRARY_PATH
17878 hardcode_into_libs
=yes
17879 if test "$with_gnu_ld" = yes; then
17880 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17881 shlibpath_overrides_runpath
=no
17883 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17884 shlibpath_overrides_runpath
=yes
17887 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17891 sys_lib_dlsearch_path_spec
='/usr/lib'
17896 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17897 soname_spec
='${libname}${release}${shared_ext}$major'
17898 shlibpath_var
=LD_LIBRARY_PATH
17905 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17906 echo "${ECHO_T}$dynamic_linker" >&6
17907 test "$dynamic_linker" = no
&& can_build_shared
=no
17909 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17910 if test "$GCC" = yes; then
17911 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17914 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17915 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17916 hardcode_action_GCJ
=
17917 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17918 test -n "$runpath_var_GCJ" || \
17919 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17921 # We can hardcode non-existant directories.
17922 if test "$hardcode_direct_GCJ" != no
&&
17923 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17924 # have to relink, otherwise we might link with an installed library
17925 # when we should be linking with a yet-to-be-installed one
17926 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17927 test "$hardcode_minus_L_GCJ" != no
; then
17928 # Linking always hardcodes the temporary library directory.
17929 hardcode_action_GCJ
=relink
17931 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17932 hardcode_action_GCJ
=immediate
17935 # We cannot hardcode anything, or else we can only hardcode existing
17937 hardcode_action_GCJ
=unsupported
17939 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17940 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17942 if test "$hardcode_action_GCJ" = relink
; then
17943 # Fast installation is not supported
17944 enable_fast_install
=no
17945 elif test "$shlibpath_overrides_runpath" = yes ||
17946 test "$enable_shared" = no
; then
17947 # Fast installation is not necessary
17948 enable_fast_install
=needless
17952 # The else clause should only fire when bootstrapping the
17953 # libtool distribution, otherwise you forgot to ship ltmain.sh
17954 # with your package, and you will get complaints that there are
17955 # no rules to generate ltmain.sh.
17956 if test -f "$ltmain"; then
17957 # See if we are running on zsh, and set the options which allow our commands through
17958 # without removal of \ escapes.
17959 if test -n "${ZSH_VERSION+set}" ; then
17960 setopt NO_GLOB_SUBST
17962 # Now quote all the things that may contain metacharacters while being
17963 # careful not to overquote the AC_SUBSTed values. We take copies of the
17964 # variables and quote the copies for generation of the libtool script.
17965 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17967 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17968 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17969 deplibs_check_method reload_flag reload_cmds need_locks \
17970 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17971 lt_cv_sys_global_symbol_to_c_name_address \
17972 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17973 old_postinstall_cmds old_postuninstall_cmds \
17977 lt_prog_compiler_wl_GCJ \
17978 lt_prog_compiler_pic_GCJ \
17979 lt_prog_compiler_static_GCJ \
17980 lt_prog_compiler_no_builtin_flag_GCJ \
17981 export_dynamic_flag_spec_GCJ \
17982 thread_safe_flag_spec_GCJ \
17983 whole_archive_flag_spec_GCJ \
17984 enable_shared_with_static_runtimes_GCJ \
17985 old_archive_cmds_GCJ \
17986 old_archive_from_new_cmds_GCJ \
17987 predep_objects_GCJ \
17988 postdep_objects_GCJ \
17991 compiler_lib_search_path_GCJ \
17993 archive_expsym_cmds_GCJ \
17994 postinstall_cmds_GCJ \
17995 postuninstall_cmds_GCJ \
17996 old_archive_from_expsyms_cmds_GCJ \
17997 allow_undefined_flag_GCJ \
17998 no_undefined_flag_GCJ \
17999 export_symbols_cmds_GCJ \
18000 hardcode_libdir_flag_spec_GCJ \
18001 hardcode_libdir_flag_spec_ld_GCJ \
18002 hardcode_libdir_separator_GCJ \
18003 hardcode_automatic_GCJ \
18005 module_expsym_cmds_GCJ \
18006 lt_cv_prog_compiler_c_o_GCJ \
18007 exclude_expsyms_GCJ \
18008 include_expsyms_GCJ
; do
18011 old_archive_cmds_GCJ | \
18012 old_archive_from_new_cmds_GCJ | \
18013 archive_cmds_GCJ | \
18014 archive_expsym_cmds_GCJ | \
18015 module_cmds_GCJ | \
18016 module_expsym_cmds_GCJ | \
18017 old_archive_from_expsyms_cmds_GCJ | \
18018 export_symbols_cmds_GCJ | \
18019 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18020 postinstall_cmds | postuninstall_cmds | \
18021 old_postinstall_cmds | old_postuninstall_cmds | \
18022 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18023 # Double-quote double-evaled strings.
18024 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18027 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18033 *'\$0 --fallback-echo"')
18034 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18040 cat <<__EOF__ >> "$cfgfile"
18041 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18043 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18045 # Shell to use when invoking shell scripts.
18048 # Whether or not to build shared libraries.
18049 build_libtool_libs=$enable_shared
18051 # Whether or not to build static libraries.
18052 build_old_libs=$enable_static
18054 # Whether or not to add -lc for building shared libraries.
18055 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18057 # Whether or not to disallow shared libs when runtime libs are static
18058 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18060 # Whether or not to optimize for fast installation.
18061 fast_install=$enable_fast_install
18064 host_alias=$host_alias
18068 # The build system.
18069 build_alias=$build_alias
18073 # An echo program that does not interpret backslashes.
18078 AR_FLAGS=$lt_AR_FLAGS
18083 # LTCC compiler flags.
18084 LTCFLAGS=$lt_LTCFLAGS
18086 # A language-specific compiler.
18087 CC=$lt_compiler_GCJ
18089 # Is the compiler the GNU C compiler?
18092 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18093 gcc_ver=\`gcc -dumpversion\`
18098 # The linker used to build libraries.
18101 # Whether we need hard or soft links.
18104 # A BSD-compatible nm program.
18107 # A symbol stripping program
18110 # Used to examine libraries when file_magic_cmd begins "file"
18111 MAGIC_CMD=$MAGIC_CMD
18113 # Used on cygwin: DLL creation program.
18116 # Used on cygwin: object dumper.
18119 # Used on cygwin: assembler.
18122 # The name of the directory that contains temporary libtool files.
18125 # How to create reloadable object files.
18126 reload_flag=$lt_reload_flag
18127 reload_cmds=$lt_reload_cmds
18129 # How to pass a linker flag through the compiler.
18130 wl=$lt_lt_prog_compiler_wl_GCJ
18132 # Object file suffix (normally "o").
18133 objext="$ac_objext"
18135 # Old archive suffix (normally "a").
18138 # Shared library suffix (normally ".so").
18139 shrext_cmds='$shrext_cmds'
18141 # Executable file suffix (normally "").
18144 # Additional compiler flags for building library objects.
18145 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18148 # What is the maximum length of a command?
18149 max_cmd_len=$lt_cv_sys_max_cmd_len
18151 # Does compiler simultaneously support -c and -o options?
18152 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18154 # Must we lock files when doing compilation?
18155 need_locks=$lt_need_locks
18157 # Do we need the lib prefix for modules?
18158 need_lib_prefix=$need_lib_prefix
18160 # Do we need a version for libraries?
18161 need_version=$need_version
18163 # Whether dlopen is supported.
18164 dlopen_support=$enable_dlopen
18166 # Whether dlopen of programs is supported.
18167 dlopen_self=$enable_dlopen_self
18169 # Whether dlopen of statically linked programs is supported.
18170 dlopen_self_static=$enable_dlopen_self_static
18172 # Compiler flag to prevent dynamic linking.
18173 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18175 # Compiler flag to turn off builtin functions.
18176 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18178 # Compiler flag to allow reflexive dlopens.
18179 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18181 # Compiler flag to generate shared objects directly from archives.
18182 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18184 # Compiler flag to generate thread-safe objects.
18185 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18187 # Library versioning type.
18188 version_type=$version_type
18190 # Format of library name prefix.
18191 libname_spec=$lt_libname_spec
18193 # List of archive names. First name is the real one, the rest are links.
18194 # The last name is the one that the linker finds with -lNAME.
18195 library_names_spec=$lt_library_names_spec
18197 # The coded name of the library, if different from the real name.
18198 soname_spec=$lt_soname_spec
18200 # Commands used to build and install an old-style archive.
18202 old_archive_cmds=$lt_old_archive_cmds_GCJ
18203 old_postinstall_cmds=$lt_old_postinstall_cmds
18204 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18206 # Create an old-style archive from a shared archive.
18207 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18209 # Create a temporary old-style archive to link instead of a shared archive.
18210 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18212 # Commands used to build and install a shared archive.
18213 archive_cmds=$lt_archive_cmds_GCJ
18214 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18215 postinstall_cmds=$lt_postinstall_cmds
18216 postuninstall_cmds=$lt_postuninstall_cmds
18218 # Commands used to build a loadable module (assumed same as above if empty)
18219 module_cmds=$lt_module_cmds_GCJ
18220 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18222 # Commands to strip libraries.
18223 old_striplib=$lt_old_striplib
18224 striplib=$lt_striplib
18226 # Dependencies to place before the objects being linked to create a
18228 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18230 # Dependencies to place after the objects being linked to create a
18232 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18234 # Dependencies to place before the objects being linked to create a
18236 predeps=$lt_predeps_GCJ
18238 # Dependencies to place after the objects being linked to create a
18240 postdeps=$lt_postdeps_GCJ
18242 # The library search path used internally by the compiler when linking
18243 # a shared library.
18244 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18246 # Method to check whether dependent libraries are shared objects.
18247 deplibs_check_method=$lt_deplibs_check_method
18249 # Command to use when deplibs_check_method == file_magic.
18250 file_magic_cmd=$lt_file_magic_cmd
18252 # Flag that allows shared libraries with undefined symbols to be built.
18253 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18255 # Flag that forces no undefined symbols.
18256 no_undefined_flag=$lt_no_undefined_flag_GCJ
18258 # Commands used to finish a libtool library installation in a directory.
18259 finish_cmds=$lt_finish_cmds
18261 # Same as above, but a single script fragment to be evaled but not shown.
18262 finish_eval=$lt_finish_eval
18264 # Take the output of nm and produce a listing of raw symbols and C names.
18265 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18267 # Transform the output of nm in a proper C declaration
18268 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18270 # Transform the output of nm in a C name address pair
18271 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18273 # This is the shared library runtime path variable.
18274 runpath_var=$runpath_var
18276 # This is the shared library path variable.
18277 shlibpath_var=$shlibpath_var
18279 # Is shlibpath searched before the hard-coded library search path?
18280 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18282 # How to hardcode a shared library path into an executable.
18283 hardcode_action=$hardcode_action_GCJ
18285 # Whether we should hardcode library paths into libraries.
18286 hardcode_into_libs=$hardcode_into_libs
18288 # Flag to hardcode \$libdir into a binary during linking.
18289 # This must work even if \$libdir does not exist.
18290 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18292 # If ld is used when linking, flag to hardcode \$libdir into
18293 # a binary during linking. This must work even if \$libdir does
18295 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18297 # Whether we need a single -rpath flag with a separated argument.
18298 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18300 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18301 # resulting binary.
18302 hardcode_direct=$hardcode_direct_GCJ
18304 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18305 # resulting binary.
18306 hardcode_minus_L=$hardcode_minus_L_GCJ
18308 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18309 # the resulting binary.
18310 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18312 # Set to yes if building a shared library automatically hardcodes DIR into the library
18313 # and all subsequent libraries and executables linked against it.
18314 hardcode_automatic=$hardcode_automatic_GCJ
18316 # Variables whose values should be saved in libtool wrapper scripts and
18317 # restored at relink time.
18318 variables_saved_for_relink="$variables_saved_for_relink"
18320 # Whether libtool must link a program against all its dependency libraries.
18321 link_all_deplibs=$link_all_deplibs_GCJ
18323 # Compile-time system search path for libraries
18324 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18326 # Run-time system search path for libraries
18327 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18329 # Fix the shell variable \$srcfile for the compiler.
18330 fix_srcfile_path="$fix_srcfile_path_GCJ"
18332 # Set to yes if exported symbols are required.
18333 always_export_symbols=$always_export_symbols_GCJ
18335 # The commands to list exported symbols.
18336 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18338 # The commands to extract the exported symbol list from a shared archive.
18339 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18341 # Symbols that should not be listed in the preloaded symbols.
18342 exclude_expsyms=$lt_exclude_expsyms_GCJ
18344 # Symbols that must always be exported.
18345 include_expsyms=$lt_include_expsyms_GCJ
18347 # ### END LIBTOOL TAG CONFIG: $tagname
18353 # If there is no Makefile yet, we rely on a make rule to execute
18354 # `config.status --recheck' to rerun these tests and create the
18355 # libtool script then.
18356 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18357 if test -f "$ltmain_in"; then
18358 test -f Makefile
&& make "$ltmain"
18364 ac_cpp
='$CPP $CPPFLAGS'
18365 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18366 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18367 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18380 # Source file extension for RC test sources.
18383 # Object file extension for compiled RC test sources.
18387 # Code to be used in simple compile tests
18388 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18390 # Code to be used in simple link tests
18391 lt_simple_link_test_code
="$lt_simple_compile_test_code"
18393 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18395 # If no C compiler was specified, use CC.
18398 # If no C compiler flags were specified, use CFLAGS.
18399 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18401 # Allow CC to be a program name with arguments.
18405 # save warnings/boilerplate of simple test code
18406 ac_outfile
=conftest.
$ac_objext
18407 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
18408 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18409 _lt_compiler_boilerplate
=`cat conftest.err`
18412 ac_outfile
=conftest.
$ac_objext
18413 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
18414 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18415 _lt_linker_boilerplate
=`cat conftest.err`
18419 # Allow CC to be a program name with arguments.
18424 for cc_temp
in $compiler""; do
18426 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18427 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18432 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18434 lt_cv_prog_compiler_c_o_RC
=yes
18436 # The else clause should only fire when bootstrapping the
18437 # libtool distribution, otherwise you forgot to ship ltmain.sh
18438 # with your package, and you will get complaints that there are
18439 # no rules to generate ltmain.sh.
18440 if test -f "$ltmain"; then
18441 # See if we are running on zsh, and set the options which allow our commands through
18442 # without removal of \ escapes.
18443 if test -n "${ZSH_VERSION+set}" ; then
18444 setopt NO_GLOB_SUBST
18446 # Now quote all the things that may contain metacharacters while being
18447 # careful not to overquote the AC_SUBSTed values. We take copies of the
18448 # variables and quote the copies for generation of the libtool script.
18449 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18451 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18452 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18453 deplibs_check_method reload_flag reload_cmds need_locks \
18454 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18455 lt_cv_sys_global_symbol_to_c_name_address \
18456 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18457 old_postinstall_cmds old_postuninstall_cmds \
18461 lt_prog_compiler_wl_RC \
18462 lt_prog_compiler_pic_RC \
18463 lt_prog_compiler_static_RC \
18464 lt_prog_compiler_no_builtin_flag_RC \
18465 export_dynamic_flag_spec_RC \
18466 thread_safe_flag_spec_RC \
18467 whole_archive_flag_spec_RC \
18468 enable_shared_with_static_runtimes_RC \
18469 old_archive_cmds_RC \
18470 old_archive_from_new_cmds_RC \
18471 predep_objects_RC \
18472 postdep_objects_RC \
18475 compiler_lib_search_path_RC \
18477 archive_expsym_cmds_RC \
18478 postinstall_cmds_RC \
18479 postuninstall_cmds_RC \
18480 old_archive_from_expsyms_cmds_RC \
18481 allow_undefined_flag_RC \
18482 no_undefined_flag_RC \
18483 export_symbols_cmds_RC \
18484 hardcode_libdir_flag_spec_RC \
18485 hardcode_libdir_flag_spec_ld_RC \
18486 hardcode_libdir_separator_RC \
18487 hardcode_automatic_RC \
18489 module_expsym_cmds_RC \
18490 lt_cv_prog_compiler_c_o_RC \
18491 exclude_expsyms_RC \
18492 include_expsyms_RC
; do
18495 old_archive_cmds_RC | \
18496 old_archive_from_new_cmds_RC | \
18497 archive_cmds_RC | \
18498 archive_expsym_cmds_RC | \
18500 module_expsym_cmds_RC | \
18501 old_archive_from_expsyms_cmds_RC | \
18502 export_symbols_cmds_RC | \
18503 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18504 postinstall_cmds | postuninstall_cmds | \
18505 old_postinstall_cmds | old_postuninstall_cmds | \
18506 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18507 # Double-quote double-evaled strings.
18508 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18511 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18517 *'\$0 --fallback-echo"')
18518 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18524 cat <<__EOF__ >> "$cfgfile"
18525 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18527 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18529 # Shell to use when invoking shell scripts.
18532 # Whether or not to build shared libraries.
18533 build_libtool_libs=$enable_shared
18535 # Whether or not to build static libraries.
18536 build_old_libs=$enable_static
18538 # Whether or not to add -lc for building shared libraries.
18539 build_libtool_need_lc=$archive_cmds_need_lc_RC
18541 # Whether or not to disallow shared libs when runtime libs are static
18542 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18544 # Whether or not to optimize for fast installation.
18545 fast_install=$enable_fast_install
18548 host_alias=$host_alias
18552 # The build system.
18553 build_alias=$build_alias
18557 # An echo program that does not interpret backslashes.
18562 AR_FLAGS=$lt_AR_FLAGS
18567 # LTCC compiler flags.
18568 LTCFLAGS=$lt_LTCFLAGS
18570 # A language-specific compiler.
18573 # Is the compiler the GNU C compiler?
18576 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18577 gcc_ver=\`gcc -dumpversion\`
18582 # The linker used to build libraries.
18585 # Whether we need hard or soft links.
18588 # A BSD-compatible nm program.
18591 # A symbol stripping program
18594 # Used to examine libraries when file_magic_cmd begins "file"
18595 MAGIC_CMD=$MAGIC_CMD
18597 # Used on cygwin: DLL creation program.
18600 # Used on cygwin: object dumper.
18603 # Used on cygwin: assembler.
18606 # The name of the directory that contains temporary libtool files.
18609 # How to create reloadable object files.
18610 reload_flag=$lt_reload_flag
18611 reload_cmds=$lt_reload_cmds
18613 # How to pass a linker flag through the compiler.
18614 wl=$lt_lt_prog_compiler_wl_RC
18616 # Object file suffix (normally "o").
18617 objext="$ac_objext"
18619 # Old archive suffix (normally "a").
18622 # Shared library suffix (normally ".so").
18623 shrext_cmds='$shrext_cmds'
18625 # Executable file suffix (normally "").
18628 # Additional compiler flags for building library objects.
18629 pic_flag=$lt_lt_prog_compiler_pic_RC
18632 # What is the maximum length of a command?
18633 max_cmd_len=$lt_cv_sys_max_cmd_len
18635 # Does compiler simultaneously support -c and -o options?
18636 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18638 # Must we lock files when doing compilation?
18639 need_locks=$lt_need_locks
18641 # Do we need the lib prefix for modules?
18642 need_lib_prefix=$need_lib_prefix
18644 # Do we need a version for libraries?
18645 need_version=$need_version
18647 # Whether dlopen is supported.
18648 dlopen_support=$enable_dlopen
18650 # Whether dlopen of programs is supported.
18651 dlopen_self=$enable_dlopen_self
18653 # Whether dlopen of statically linked programs is supported.
18654 dlopen_self_static=$enable_dlopen_self_static
18656 # Compiler flag to prevent dynamic linking.
18657 link_static_flag=$lt_lt_prog_compiler_static_RC
18659 # Compiler flag to turn off builtin functions.
18660 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18662 # Compiler flag to allow reflexive dlopens.
18663 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18665 # Compiler flag to generate shared objects directly from archives.
18666 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18668 # Compiler flag to generate thread-safe objects.
18669 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18671 # Library versioning type.
18672 version_type=$version_type
18674 # Format of library name prefix.
18675 libname_spec=$lt_libname_spec
18677 # List of archive names. First name is the real one, the rest are links.
18678 # The last name is the one that the linker finds with -lNAME.
18679 library_names_spec=$lt_library_names_spec
18681 # The coded name of the library, if different from the real name.
18682 soname_spec=$lt_soname_spec
18684 # Commands used to build and install an old-style archive.
18686 old_archive_cmds=$lt_old_archive_cmds_RC
18687 old_postinstall_cmds=$lt_old_postinstall_cmds
18688 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18690 # Create an old-style archive from a shared archive.
18691 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18693 # Create a temporary old-style archive to link instead of a shared archive.
18694 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18696 # Commands used to build and install a shared archive.
18697 archive_cmds=$lt_archive_cmds_RC
18698 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18699 postinstall_cmds=$lt_postinstall_cmds
18700 postuninstall_cmds=$lt_postuninstall_cmds
18702 # Commands used to build a loadable module (assumed same as above if empty)
18703 module_cmds=$lt_module_cmds_RC
18704 module_expsym_cmds=$lt_module_expsym_cmds_RC
18706 # Commands to strip libraries.
18707 old_striplib=$lt_old_striplib
18708 striplib=$lt_striplib
18710 # Dependencies to place before the objects being linked to create a
18712 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18714 # Dependencies to place after the objects being linked to create a
18716 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18718 # Dependencies to place before the objects being linked to create a
18720 predeps=$lt_predeps_RC
18722 # Dependencies to place after the objects being linked to create a
18724 postdeps=$lt_postdeps_RC
18726 # The library search path used internally by the compiler when linking
18727 # a shared library.
18728 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18730 # Method to check whether dependent libraries are shared objects.
18731 deplibs_check_method=$lt_deplibs_check_method
18733 # Command to use when deplibs_check_method == file_magic.
18734 file_magic_cmd=$lt_file_magic_cmd
18736 # Flag that allows shared libraries with undefined symbols to be built.
18737 allow_undefined_flag=$lt_allow_undefined_flag_RC
18739 # Flag that forces no undefined symbols.
18740 no_undefined_flag=$lt_no_undefined_flag_RC
18742 # Commands used to finish a libtool library installation in a directory.
18743 finish_cmds=$lt_finish_cmds
18745 # Same as above, but a single script fragment to be evaled but not shown.
18746 finish_eval=$lt_finish_eval
18748 # Take the output of nm and produce a listing of raw symbols and C names.
18749 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18751 # Transform the output of nm in a proper C declaration
18752 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18754 # Transform the output of nm in a C name address pair
18755 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18757 # This is the shared library runtime path variable.
18758 runpath_var=$runpath_var
18760 # This is the shared library path variable.
18761 shlibpath_var=$shlibpath_var
18763 # Is shlibpath searched before the hard-coded library search path?
18764 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18766 # How to hardcode a shared library path into an executable.
18767 hardcode_action=$hardcode_action_RC
18769 # Whether we should hardcode library paths into libraries.
18770 hardcode_into_libs=$hardcode_into_libs
18772 # Flag to hardcode \$libdir into a binary during linking.
18773 # This must work even if \$libdir does not exist.
18774 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18776 # If ld is used when linking, flag to hardcode \$libdir into
18777 # a binary during linking. This must work even if \$libdir does
18779 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18781 # Whether we need a single -rpath flag with a separated argument.
18782 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18784 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18785 # resulting binary.
18786 hardcode_direct=$hardcode_direct_RC
18788 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18789 # resulting binary.
18790 hardcode_minus_L=$hardcode_minus_L_RC
18792 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18793 # the resulting binary.
18794 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18796 # Set to yes if building a shared library automatically hardcodes DIR into the library
18797 # and all subsequent libraries and executables linked against it.
18798 hardcode_automatic=$hardcode_automatic_RC
18800 # Variables whose values should be saved in libtool wrapper scripts and
18801 # restored at relink time.
18802 variables_saved_for_relink="$variables_saved_for_relink"
18804 # Whether libtool must link a program against all its dependency libraries.
18805 link_all_deplibs=$link_all_deplibs_RC
18807 # Compile-time system search path for libraries
18808 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18810 # Run-time system search path for libraries
18811 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18813 # Fix the shell variable \$srcfile for the compiler.
18814 fix_srcfile_path="$fix_srcfile_path_RC"
18816 # Set to yes if exported symbols are required.
18817 always_export_symbols=$always_export_symbols_RC
18819 # The commands to list exported symbols.
18820 export_symbols_cmds=$lt_export_symbols_cmds_RC
18822 # The commands to extract the exported symbol list from a shared archive.
18823 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18825 # Symbols that should not be listed in the preloaded symbols.
18826 exclude_expsyms=$lt_exclude_expsyms_RC
18828 # Symbols that must always be exported.
18829 include_expsyms=$lt_include_expsyms_RC
18831 # ### END LIBTOOL TAG CONFIG: $tagname
18837 # If there is no Makefile yet, we rely on a make rule to execute
18838 # `config.status --recheck' to rerun these tests and create the
18839 # libtool script then.
18840 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18841 if test -f "$ltmain_in"; then
18842 test -f Makefile
&& make "$ltmain"
18848 ac_cpp
='$CPP $CPPFLAGS'
18849 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18850 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18851 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18858 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18859 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18860 { (exit 1); exit 1; }; }
18864 # Append the new tag name to the list of available tags.
18865 if test -n "$tagname" ; then
18866 available_tags
="$available_tags $tagname"
18872 # Now substitute the updated list of available tags.
18873 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18874 mv "${ofile}T" "$ofile"
18878 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18879 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18880 { (exit 1); exit 1; }; }
18886 # This can be used to rebuild libtool when needed
18887 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
18889 # Always use our own libtool.
18890 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
18892 # Prevent multiple expansion
18916 echo "$as_me:$LINENO: checking for dbopen in -ldb" >&5
18917 echo $ECHO_N "checking for dbopen in -ldb... $ECHO_C" >&6
18918 if test "${ac_cv_lib_db_dbopen+set}" = set; then
18919 echo $ECHO_N "(cached) $ECHO_C" >&6
18921 ac_check_lib_save_LIBS
=$LIBS
18923 cat >conftest.
$ac_ext <<_ACEOF
18926 cat confdefs.h
>>conftest.
$ac_ext
18927 cat >>conftest.
$ac_ext <<_ACEOF
18928 /* end confdefs.h. */
18930 /* Override any gcc2 internal prototype to avoid an error. */
18934 /* We use char because int might match the return type of a gcc2
18935 builtin and then its argument prototype would still apply. */
18945 rm -f conftest.
$ac_objext conftest
$ac_exeext
18946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18947 (eval $ac_link) 2>conftest.er1
18949 grep -v '^ *+' conftest.er1
>conftest.err
18951 cat conftest.err
>&5
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); } &&
18954 { ac_try
='test -z "$ac_c_werror_flag"
18955 || test ! -s conftest.err'
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; } &&
18961 { ac_try
='test -s conftest$ac_exeext'
18962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963 (eval $ac_try) 2>&5
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; }; then
18967 ac_cv_lib_db_dbopen
=yes
18969 echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.
$ac_ext >&5
18972 ac_cv_lib_db_dbopen
=no
18974 rm -f conftest.err conftest.
$ac_objext \
18975 conftest
$ac_exeext conftest.
$ac_ext
18976 LIBS
=$ac_check_lib_save_LIBS
18978 echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbopen" >&5
18979 echo "${ECHO_T}$ac_cv_lib_db_dbopen" >&6
18980 if test $ac_cv_lib_db_dbopen = yes; then
18981 LIBDB
=-ldb ; LIBS
="-ldb $LIBS"
18983 echo "$as_me:$LINENO: checking for db_open in -ldb" >&5
18984 echo $ECHO_N "checking for db_open in -ldb... $ECHO_C" >&6
18985 if test "${ac_cv_lib_db_db_open+set}" = set; then
18986 echo $ECHO_N "(cached) $ECHO_C" >&6
18988 ac_check_lib_save_LIBS
=$LIBS
18990 cat >conftest.
$ac_ext <<_ACEOF
18993 cat confdefs.h
>>conftest.
$ac_ext
18994 cat >>conftest.
$ac_ext <<_ACEOF
18995 /* end confdefs.h. */
18997 /* Override any gcc2 internal prototype to avoid an error. */
19001 /* We use char because int might match the return type of a gcc2
19002 builtin and then its argument prototype would still apply. */
19012 rm -f conftest.
$ac_objext conftest
$ac_exeext
19013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19014 (eval $ac_link) 2>conftest.er1
19016 grep -v '^ *+' conftest.er1
>conftest.err
19018 cat conftest.err
>&5
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); } &&
19021 { ac_try
='test -z "$ac_c_werror_flag"
19022 || test ! -s conftest.err'
19023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19024 (eval $ac_try) 2>&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); }; } &&
19028 { ac_try
='test -s conftest$ac_exeext'
19029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030 (eval $ac_try) 2>&5
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; }; then
19034 ac_cv_lib_db_db_open
=yes
19036 echo "$as_me: failed program was:" >&5
19037 sed 's/^/| /' conftest.
$ac_ext >&5
19039 ac_cv_lib_db_db_open
=no
19041 rm -f conftest.err conftest.
$ac_objext \
19042 conftest
$ac_exeext conftest.
$ac_ext
19043 LIBS
=$ac_check_lib_save_LIBS
19045 echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_open" >&5
19046 echo "${ECHO_T}$ac_cv_lib_db_db_open" >&6
19047 if test $ac_cv_lib_db_db_open = yes; then
19048 LIBDB
=-ldb ; LIBS
="-ldb $LIBS"
19050 echo "$as_me:$LINENO: checking for db_env_create in -ldb" >&5
19051 echo $ECHO_N "checking for db_env_create in -ldb... $ECHO_C" >&6
19052 if test "${ac_cv_lib_db_db_env_create+set}" = set; then
19053 echo $ECHO_N "(cached) $ECHO_C" >&6
19055 ac_check_lib_save_LIBS
=$LIBS
19057 cat >conftest.
$ac_ext <<_ACEOF
19060 cat confdefs.h
>>conftest.
$ac_ext
19061 cat >>conftest.
$ac_ext <<_ACEOF
19062 /* end confdefs.h. */
19064 /* Override any gcc2 internal prototype to avoid an error. */
19068 /* We use char because int might match the return type of a gcc2
19069 builtin and then its argument prototype would still apply. */
19070 char db_env_create ();
19079 rm -f conftest.
$ac_objext conftest
$ac_exeext
19080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19081 (eval $ac_link) 2>conftest.er1
19083 grep -v '^ *+' conftest.er1
>conftest.err
19085 cat conftest.err
>&5
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); } &&
19088 { ac_try
='test -z "$ac_c_werror_flag"
19089 || test ! -s conftest.err'
19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091 (eval $ac_try) 2>&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; } &&
19095 { ac_try
='test -s conftest$ac_exeext'
19096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19097 (eval $ac_try) 2>&5
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); }; }; then
19101 ac_cv_lib_db_db_env_create
=yes
19103 echo "$as_me: failed program was:" >&5
19104 sed 's/^/| /' conftest.
$ac_ext >&5
19106 ac_cv_lib_db_db_env_create
=no
19108 rm -f conftest.err conftest.
$ac_objext \
19109 conftest
$ac_exeext conftest.
$ac_ext
19110 LIBS
=$ac_check_lib_save_LIBS
19112 echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_env_create" >&5
19113 echo "${ECHO_T}$ac_cv_lib_db_db_env_create" >&6
19114 if test $ac_cv_lib_db_db_env_create = yes; then
19115 LIBDB
=-ldb; LIBS
="-ldb $LIBS"
19125 echo "$as_me:$LINENO: checking for dbopen" >&5
19126 echo $ECHO_N "checking for dbopen... $ECHO_C" >&6
19127 if test "${ac_cv_func_dbopen+set}" = set; then
19128 echo $ECHO_N "(cached) $ECHO_C" >&6
19130 cat >conftest.
$ac_ext <<_ACEOF
19133 cat confdefs.h
>>conftest.
$ac_ext
19134 cat >>conftest.
$ac_ext <<_ACEOF
19135 /* end confdefs.h. */
19136 /* Define dbopen to an innocuous variant, in case <limits.h> declares dbopen.
19137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19138 #define dbopen innocuous_dbopen
19140 /* System header to define __stub macros and hopefully few prototypes,
19141 which can conflict with char dbopen (); below.
19142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19143 <limits.h> exists even on freestanding compilers. */
19146 # include <limits.h>
19148 # include <assert.h>
19153 /* Override any gcc2 internal prototype to avoid an error. */
19158 /* We use char because int might match the return type of a gcc2
19159 builtin and then its argument prototype would still apply. */
19161 /* The GNU C library defines this for functions which it implements
19162 to always fail with ENOSYS. Some functions are actually named
19163 something starting with __ and the normal name is an alias. */
19164 #if defined (__stub_dbopen) || defined (__stub___dbopen)
19167 char (*f) () = dbopen;
19176 return f != dbopen;
19181 rm -f conftest.
$ac_objext conftest
$ac_exeext
19182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19183 (eval $ac_link) 2>conftest.er1
19185 grep -v '^ *+' conftest.er1
>conftest.err
19187 cat conftest.err
>&5
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); } &&
19190 { ac_try
='test -z "$ac_c_werror_flag"
19191 || test ! -s conftest.err'
19192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193 (eval $ac_try) 2>&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; } &&
19197 { ac_try
='test -s conftest$ac_exeext'
19198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199 (eval $ac_try) 2>&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; }; then
19203 ac_cv_func_dbopen
=yes
19205 echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.
$ac_ext >&5
19208 ac_cv_func_dbopen
=no
19210 rm -f conftest.err conftest.
$ac_objext \
19211 conftest
$ac_exeext conftest.
$ac_ext
19213 echo "$as_me:$LINENO: result: $ac_cv_func_dbopen" >&5
19214 echo "${ECHO_T}$ac_cv_func_dbopen" >&6
19215 if test $ac_cv_func_dbopen = yes; then
19219 echo "$as_me:$LINENO: checking for db_open" >&5
19220 echo $ECHO_N "checking for db_open... $ECHO_C" >&6
19221 if test "${ac_cv_func_db_open+set}" = set; then
19222 echo $ECHO_N "(cached) $ECHO_C" >&6
19224 cat >conftest.
$ac_ext <<_ACEOF
19227 cat confdefs.h
>>conftest.
$ac_ext
19228 cat >>conftest.
$ac_ext <<_ACEOF
19229 /* end confdefs.h. */
19230 /* Define db_open to an innocuous variant, in case <limits.h> declares db_open.
19231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19232 #define db_open innocuous_db_open
19234 /* System header to define __stub macros and hopefully few prototypes,
19235 which can conflict with char db_open (); below.
19236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19237 <limits.h> exists even on freestanding compilers. */
19240 # include <limits.h>
19242 # include <assert.h>
19247 /* Override any gcc2 internal prototype to avoid an error. */
19252 /* We use char because int might match the return type of a gcc2
19253 builtin and then its argument prototype would still apply. */
19255 /* The GNU C library defines this for functions which it implements
19256 to always fail with ENOSYS. Some functions are actually named
19257 something starting with __ and the normal name is an alias. */
19258 #if defined (__stub_db_open) || defined (__stub___db_open)
19261 char (*f) () = db_open;
19270 return f != db_open;
19275 rm -f conftest.
$ac_objext conftest
$ac_exeext
19276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19277 (eval $ac_link) 2>conftest.er1
19279 grep -v '^ *+' conftest.er1
>conftest.err
19281 cat conftest.err
>&5
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); } &&
19284 { ac_try
='test -z "$ac_c_werror_flag"
19285 || test ! -s conftest.err'
19286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287 (eval $ac_try) 2>&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); }; } &&
19291 { ac_try
='test -s conftest$ac_exeext'
19292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293 (eval $ac_try) 2>&5
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); }; }; then
19297 ac_cv_func_db_open
=yes
19299 echo "$as_me: failed program was:" >&5
19300 sed 's/^/| /' conftest.
$ac_ext >&5
19302 ac_cv_func_db_open
=no
19304 rm -f conftest.err conftest.
$ac_objext \
19305 conftest
$ac_exeext conftest.
$ac_ext
19307 echo "$as_me:$LINENO: result: $ac_cv_func_db_open" >&5
19308 echo "${ECHO_T}$ac_cv_func_db_open" >&6
19309 if test $ac_cv_func_db_open = yes; then
19313 echo "$as_me:$LINENO: checking for db_env_create" >&5
19314 echo $ECHO_N "checking for db_env_create... $ECHO_C" >&6
19315 if test "${ac_cv_func_db_env_create+set}" = set; then
19316 echo $ECHO_N "(cached) $ECHO_C" >&6
19318 cat >conftest.
$ac_ext <<_ACEOF
19321 cat confdefs.h
>>conftest.
$ac_ext
19322 cat >>conftest.
$ac_ext <<_ACEOF
19323 /* end confdefs.h. */
19324 /* Define db_env_create to an innocuous variant, in case <limits.h> declares db_env_create.
19325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19326 #define db_env_create innocuous_db_env_create
19328 /* System header to define __stub macros and hopefully few prototypes,
19329 which can conflict with char db_env_create (); below.
19330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19331 <limits.h> exists even on freestanding compilers. */
19334 # include <limits.h>
19336 # include <assert.h>
19339 #undef db_env_create
19341 /* Override any gcc2 internal prototype to avoid an error. */
19346 /* We use char because int might match the return type of a gcc2
19347 builtin and then its argument prototype would still apply. */
19348 char db_env_create ();
19349 /* The GNU C library defines this for functions which it implements
19350 to always fail with ENOSYS. Some functions are actually named
19351 something starting with __ and the normal name is an alias. */
19352 #if defined (__stub_db_env_create) || defined (__stub___db_env_create)
19355 char (*f) () = db_env_create;
19364 return f != db_env_create;
19369 rm -f conftest.
$ac_objext conftest
$ac_exeext
19370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19371 (eval $ac_link) 2>conftest.er1
19373 grep -v '^ *+' conftest.er1
>conftest.err
19375 cat conftest.err
>&5
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); } &&
19378 { ac_try
='test -z "$ac_c_werror_flag"
19379 || test ! -s conftest.err'
19380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381 (eval $ac_try) 2>&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; } &&
19385 { ac_try
='test -s conftest$ac_exeext'
19386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19387 (eval $ac_try) 2>&5
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); }; }; then
19391 ac_cv_func_db_env_create
=yes
19393 echo "$as_me: failed program was:" >&5
19394 sed 's/^/| /' conftest.
$ac_ext >&5
19396 ac_cv_func_db_env_create
=no
19398 rm -f conftest.err conftest.
$ac_objext \
19399 conftest
$ac_exeext conftest.
$ac_ext
19401 echo "$as_me:$LINENO: result: $ac_cv_func_db_env_create" >&5
19402 echo "${ECHO_T}$ac_cv_func_db_env_create" >&6
19403 if test $ac_cv_func_db_env_create = yes; then
19414 if test "$FOUND_DB" != 0; then
19427 for ac_header
in limits.h fcntl.h unistd.h
19429 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19431 echo "$as_me:$LINENO: checking for $ac_header" >&5
19432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19434 echo $ECHO_N "(cached) $ECHO_C" >&6
19436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19439 # Is the header compilable?
19440 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19441 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19442 cat >conftest.
$ac_ext <<_ACEOF
19445 cat confdefs.h
>>conftest.
$ac_ext
19446 cat >>conftest.
$ac_ext <<_ACEOF
19447 /* end confdefs.h. */
19448 $ac_includes_default
19449 #include <$ac_header>
19451 rm -f conftest.
$ac_objext
19452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19453 (eval $ac_compile) 2>conftest.er1
19455 grep -v '^ *+' conftest.er1
>conftest.err
19457 cat conftest.err
>&5
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); } &&
19460 { ac_try
='test -z "$ac_c_werror_flag"
19461 || test ! -s conftest.err'
19462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19463 (eval $ac_try) 2>&5
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); }; } &&
19467 { ac_try
='test -s conftest.$ac_objext'
19468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19469 (eval $ac_try) 2>&5
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); }; }; then
19473 ac_header_compiler
=yes
19475 echo "$as_me: failed program was:" >&5
19476 sed 's/^/| /' conftest.
$ac_ext >&5
19478 ac_header_compiler
=no
19480 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19482 echo "${ECHO_T}$ac_header_compiler" >&6
19484 # Is the header present?
19485 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19487 cat >conftest.
$ac_ext <<_ACEOF
19490 cat confdefs.h
>>conftest.
$ac_ext
19491 cat >>conftest.
$ac_ext <<_ACEOF
19492 /* end confdefs.h. */
19493 #include <$ac_header>
19495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19496 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19498 grep -v '^ *+' conftest.er1
>conftest.err
19500 cat conftest.err
>&5
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); } >/dev
/null
; then
19503 if test -s conftest.err
; then
19504 ac_cpp_err
=$ac_c_preproc_warn_flag
19505 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19512 if test -z "$ac_cpp_err"; then
19513 ac_header_preproc
=yes
19515 echo "$as_me: failed program was:" >&5
19516 sed 's/^/| /' conftest.
$ac_ext >&5
19518 ac_header_preproc
=no
19520 rm -f conftest.err conftest.
$ac_ext
19521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19522 echo "${ECHO_T}$ac_header_preproc" >&6
19524 # So? What about this header?
19525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19531 ac_header_preproc
=yes
19534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19537 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19541 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19548 ## -------------------------------------------------- ##
19549 ## Report this to courier-users@lists.sourceforge.net ##
19550 ## -------------------------------------------------- ##
19553 sed "s/^/$as_me: WARNING: /" >&2
19556 echo "$as_me:$LINENO: checking for $ac_header" >&5
19557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19559 echo $ECHO_N "(cached) $ECHO_C" >&6
19561 eval "$as_ac_Header=\$ac_header_preproc"
19563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19568 cat >>confdefs.h
<<_ACEOF
19569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19577 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19578 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19579 if test "${ac_cv_c_const+set}" = set; then
19580 echo $ECHO_N "(cached) $ECHO_C" >&6
19582 cat >conftest.
$ac_ext <<_ACEOF
19585 cat confdefs.h
>>conftest.
$ac_ext
19586 cat >>conftest.
$ac_ext <<_ACEOF
19587 /* end confdefs.h. */
19592 /* FIXME: Include the comments suggested by Paul. */
19593 #ifndef __cplusplus
19594 /* Ultrix mips cc rejects this. */
19595 typedef int charset[2];
19597 /* SunOS 4.1.1 cc rejects this. */
19598 char const *const *ccp;
19600 /* NEC SVR4.0.2 mips cc rejects this. */
19601 struct point {int x, y;};
19602 static struct point const zero = {0,0};
19603 /* AIX XL C 1.02.0.0 rejects this.
19604 It does not let you subtract one const X* pointer from another in
19605 an arm of an if-expression whose if-part is not a constant
19607 const char *g = "string";
19608 ccp = &g + (g ? g-g : 0);
19609 /* HPUX 7.0 cc rejects these. */
19612 ccp = (char const *const *) p;
19613 { /* SCO 3.2v4 cc rejects this. */
19615 char const *s = 0 ? (char *) 0 : (char const *) 0;
19619 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19620 int x[] = {25, 17};
19621 const int *foo = &x[0];
19624 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19625 typedef const int *iptr;
19629 { /* AIX XL C 1.02.0.0 rejects this saying
19630 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19631 struct s { int j; const int *ap[3]; };
19632 struct s *b; b->j = 5;
19634 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19635 const int foo = 10;
19643 rm -f conftest.
$ac_objext
19644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19645 (eval $ac_compile) 2>conftest.er1
19647 grep -v '^ *+' conftest.er1
>conftest.err
19649 cat conftest.err
>&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); } &&
19652 { ac_try
='test -z "$ac_c_werror_flag"
19653 || test ! -s conftest.err'
19654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19655 (eval $ac_try) 2>&5
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); }; } &&
19659 { ac_try
='test -s conftest.$ac_objext'
19660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661 (eval $ac_try) 2>&5
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); }; }; then
19667 echo "$as_me: failed program was:" >&5
19668 sed 's/^/| /' conftest.
$ac_ext >&5
19672 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19674 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19675 echo "${ECHO_T}$ac_cv_c_const" >&6
19676 if test $ac_cv_c_const = no
; then
19678 cat >>confdefs.h
<<\_ACEOF
19684 echo "$as_me:$LINENO: checking for size_t" >&5
19685 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19686 if test "${ac_cv_type_size_t+set}" = set; then
19687 echo $ECHO_N "(cached) $ECHO_C" >&6
19689 cat >conftest.
$ac_ext <<_ACEOF
19692 cat confdefs.h
>>conftest.
$ac_ext
19693 cat >>conftest.
$ac_ext <<_ACEOF
19694 /* end confdefs.h. */
19695 $ac_includes_default
19701 if (sizeof (size_t))
19707 rm -f conftest.
$ac_objext
19708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19709 (eval $ac_compile) 2>conftest.er1
19711 grep -v '^ *+' conftest.er1
>conftest.err
19713 cat conftest.err
>&5
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); } &&
19716 { ac_try
='test -z "$ac_c_werror_flag"
19717 || test ! -s conftest.err'
19718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19719 (eval $ac_try) 2>&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); }; } &&
19723 { ac_try
='test -s conftest.$ac_objext'
19724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19725 (eval $ac_try) 2>&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; }; then
19729 ac_cv_type_size_t
=yes
19731 echo "$as_me: failed program was:" >&5
19732 sed 's/^/| /' conftest.
$ac_ext >&5
19734 ac_cv_type_size_t
=no
19736 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19738 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19739 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19740 if test $ac_cv_type_size_t = yes; then
19744 cat >>confdefs.h
<<_ACEOF
19745 #define size_t unsigned
19752 ac_cpp
='$CXXCPP $CPPFLAGS'
19753 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19754 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19755 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19757 echo "$as_me:$LINENO: checking if the C++ compiler needs -fhandle-exceptions" >&5
19758 echo $ECHO_N "checking if the C++ compiler needs -fhandle-exceptions... $ECHO_C" >&6
19759 if test "${ac_cxx_need_handlexceptions+set}" = set; then
19760 echo $ECHO_N "(cached) $ECHO_C" >&6
19762 cat >conftest.
$ac_ext <<_ACEOF
19765 cat confdefs.h
>>conftest.
$ac_ext
19766 cat >>conftest.
$ac_ext <<_ACEOF
19767 /* end confdefs.h. */
19779 rm -f conftest.
$ac_objext
19780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19781 (eval $ac_compile) 2>conftest.er1
19783 grep -v '^ *+' conftest.er1
>conftest.err
19785 cat conftest.err
>&5
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); } &&
19788 { ac_try
='test -z "$ac_cxx_werror_flag"
19789 || test ! -s conftest.err'
19790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19791 (eval $ac_try) 2>&5
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); }; } &&
19795 { ac_try
='test -s conftest.$ac_objext'
19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797 (eval $ac_try) 2>&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; }; then
19801 ac_cxx_need_handlexceptions
=no
19803 echo "$as_me: failed program was:" >&5
19804 sed 's/^/| /' conftest.
$ac_ext >&5
19806 ac_cxx_need_handlexceptions
=yes
19808 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19811 echo "$as_me:$LINENO: result: $ac_cxx_need_handlexceptions" >&5
19812 echo "${ECHO_T}$ac_cxx_need_handlexceptions" >&6
19814 if test "$ac_cxx_need_handlexceptions" = "yes"
19816 case "$CXXFLAGS" in
19817 *handle-exceptions
*)
19820 CXXFLAGS
="-fhandle-exceptions $CXXFLAGS"
19821 CXXFLAGS
=`echo "$CXXFLAGS" | sed 's/-O2//'`
19826 if test "$GCC" = "yes"
19828 CFLAGS
="-Wall $CFLAGS"
19831 ac_config_files
="$ac_config_files Makefile"
19832 cat >confcache
<<\_ACEOF
19833 # This file is a shell script that caches the results of configure
19834 # tests run on this system so they can be shared between configure
19835 # scripts and configure runs, see configure's option --config-cache.
19836 # It is not useful on other systems. If it contains results you don't
19837 # want to keep, you may remove or edit it.
19839 # config.status only pays attention to the cache file if you give it
19840 # the --recheck option to rerun configure.
19842 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19843 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19844 # following values.
19848 # The following way of writing the cache mishandles newlines in values,
19849 # but we know of no workaround that is simple, portable, and efficient.
19850 # So, don't put newlines in cache variables' values.
19851 # Ultrix sh set writes to stderr and can't be redirected directly,
19852 # and sets the high bit in the cache file unless we assign to the vars.
19855 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19857 # `set' does not quote correctly, so add quotes (double-quote
19858 # substitution turns \\\\ into \\, and sed turns \\ into \).
19861 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19864 # `set' quotes correctly as required by POSIX, so do not add quotes.
19866 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19873 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19875 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19877 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
19878 if test -w $cache_file; then
19879 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19880 cat confcache
>$cache_file
19882 echo "not updating unwritable cache $cache_file"
19887 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19888 # Let make expand exec_prefix.
19889 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19891 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19892 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19893 # trailing colons and then remove the whole line if VPATH becomes empty
19894 # (actually we leave an empty line to preserve line numbers).
19895 if test "x$srcdir" = x.
; then
19896 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
19897 s/:*\$(srcdir):*/:/;
19898 s/:*\${srcdir}:*/:/;
19900 s/^\([^=]*=[ ]*\):*/\1/;
19906 DEFS
=-DHAVE_CONFIG_H
19910 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19911 # 1. Remove the extension, and $U if already installed.
19912 ac_i
=`echo "$ac_i" |
19913 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19915 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
19916 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
19918 LIBOBJS
=$ac_libobjs
19920 LTLIBOBJS
=$ac_ltlibobjs
19923 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19924 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19925 Usually this means the macro was only invoked conditionally." >&5
19926 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19927 Usually this means the macro was only invoked conditionally." >&2;}
19928 { (exit 1); exit 1; }; }
19930 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19931 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19932 Usually this means the macro was only invoked conditionally." >&5
19933 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19934 Usually this means the macro was only invoked conditionally." >&2;}
19935 { (exit 1); exit 1; }; }
19937 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19938 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19939 Usually this means the macro was only invoked conditionally." >&5
19940 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19941 Usually this means the macro was only invoked conditionally." >&2;}
19942 { (exit 1); exit 1; }; }
19944 if test -z "${FOUND_DB_TRUE}" && test -z "${FOUND_DB_FALSE}"; then
19945 { { echo "$as_me:$LINENO: error: conditional \"FOUND_DB\" was never defined.
19946 Usually this means the macro was only invoked conditionally." >&5
19947 echo "$as_me: error: conditional \"FOUND_DB\" was never defined.
19948 Usually this means the macro was only invoked conditionally." >&2;}
19949 { (exit 1); exit 1; }; }
19952 : ${CONFIG_STATUS=./config.status}
19953 ac_clean_files_save
=$ac_clean_files
19954 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19955 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19956 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19957 cat >$CONFIG_STATUS <<_ACEOF
19959 # Generated by $as_me.
19960 # Run this file to recreate the current configuration.
19961 # Compiler output produced by configure, useful for debugging
19962 # configure, is in config.log if it exists.
19965 ac_cs_recheck=false
19967 SHELL=\${CONFIG_SHELL-$SHELL}
19970 cat >>$CONFIG_STATUS <<\_ACEOF
19971 ## --------------------- ##
19972 ## M4sh Initialization. ##
19973 ## --------------------- ##
19975 # Be Bourne compatible
19976 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19979 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19980 # is contrary to our usage. Disable this feature.
19981 alias -g '${1+"$@"}'='"$@"'
19982 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
19985 DUALCASE
=1; export DUALCASE
# for MKS sh
19987 # Support unset when possible.
19988 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
19995 # Work around bugs in pre-3.0 UWIN ksh.
19996 $as_unset ENV MAIL MAILPATH
20003 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20004 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20005 LC_TELEPHONE LC_TIME
20007 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20008 eval $as_var=C
; export $as_var
20014 # Required to use basename.
20015 if expr a
: '\(a\)' >/dev
/null
2>&1; then
20021 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
20022 as_basename
=basename
20028 # Name of the executable.
20029 as_me
=`$as_basename "$0" ||
20030 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20031 X"$0" : 'X\(//\)$' \| \
20032 X"$0" : 'X\(/\)$' \| \
20033 . : '\(.\)' 2>/dev/null ||
20035 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20036 /^X\/\(\/\/\)$/{ s//\1/; q; }
20037 /^X\/\(\/\).*/{ s//\1/; q; }
20041 # PATH needs CR, and LINENO needs CR and PATH.
20042 # Avoid depending upon Character Ranges.
20043 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20044 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20045 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20046 as_cr_digits
='0123456789'
20047 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20049 # The user is always right.
20050 if test "${PATH_SEPARATOR+set}" != set; then
20051 echo "#! /bin/sh" >conf$$.sh
20052 echo "exit 0" >>conf$$.sh
20054 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
20063 as_lineno_1
=$LINENO
20064 as_lineno_2
=$LINENO
20065 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
20066 test "x$as_lineno_1" != "x$as_lineno_2" &&
20067 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
20068 # Find who we are. Look in the path if we contain no path at all
20071 *[\\/]* ) as_myself
=$0 ;;
20072 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20073 for as_dir
in $PATH
20076 test -z "$as_dir" && as_dir
=.
20077 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
20082 # We did not find ourselves, most probably we were run as `sh COMMAND'
20083 # in which case we are not to be found in the path.
20084 if test "x$as_myself" = x
; then
20087 if test ! -f "$as_myself"; then
20088 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20089 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20090 { (exit 1); exit 1; }; }
20092 case $CONFIG_SHELL in
20094 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20095 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
20098 test -z "$as_dir" && as_dir
=.
20099 for as_base
in sh bash ksh sh5
; do
20102 if ("$as_dir/$as_base" -c '
20103 as_lineno_1=$LINENO
20104 as_lineno_2=$LINENO
20105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20106 test "x$as_lineno_1" != "x$as_lineno_2" &&
20107 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
20108 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
20109 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
20110 CONFIG_SHELL
=$as_dir/$as_base
20111 export CONFIG_SHELL
20112 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20120 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20121 # uniformly replaced by the line number. The first 'sed' inserts a
20122 # line-number line before each line; the second 'sed' does the real
20123 # work. The second script uses 'N' to pair each line-number line
20124 # with the numbered line, and appends trailing '-' during
20125 # substitution so that $LINENO is not a special case at line end.
20126 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20127 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20128 sed '=' <$as_myself |
20133 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20136 s,^['$as_cr_digits']*\n,,
20137 ' >$as_me.lineno
&&
20138 chmod +x
$as_me.lineno ||
20139 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20140 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20141 { (exit 1); exit 1; }; }
20143 # Don't try to exec as it changes $[0], causing all sort of problems
20144 # (the dirname of $[0] is not the place where we might find the
20145 # original and so on. Autoconf is especially sensible to this).
20147 # Exit status is that of the last command.
20152 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20153 *c
*,-n*) ECHO_N
= ECHO_C
='
20155 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
20156 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
20159 if expr a
: '\(a\)' >/dev
/null
2>&1; then
20165 rm -f conf$$ conf$$.exe conf$$.
file
20167 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20168 # We could just check for DJGPP; but this test a) works b) is more generic
20169 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20170 if test -f conf$$.exe
; then
20171 # Don't use ln at all; we don't have any links
20176 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20181 rm -f conf$$ conf$$.exe conf$$.
file
20183 if mkdir
-p .
2>/dev
/null
; then
20186 test -d .
/-p && rmdir .
/-p
20190 as_executable_p
="test -f"
20192 # Sed expression to map a string onto a valid CPP name.
20193 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20195 # Sed expression to map a string onto a valid variable name.
20196 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20200 # We need space, tab and new line, in precisely that order.
20210 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20211 # report actual input values of CONFIG_FILES etc. instead of their
20212 # values after options handling. Logging --version etc. is OK.
20216 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20217 ## Running $as_me. ##
20222 This file was extended by bdbobj $as_me 0.10, which was
20223 generated by GNU Autoconf 2.59. Invocation command line was
20225 CONFIG_FILES = $CONFIG_FILES
20226 CONFIG_HEADERS = $CONFIG_HEADERS
20227 CONFIG_LINKS = $CONFIG_LINKS
20228 CONFIG_COMMANDS = $CONFIG_COMMANDS
20232 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20236 # Files that config.status was made for.
20237 if test -n "$ac_config_files"; then
20238 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20241 if test -n "$ac_config_headers"; then
20242 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20245 if test -n "$ac_config_links"; then
20246 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20249 if test -n "$ac_config_commands"; then
20250 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20253 cat >>$CONFIG_STATUS <<\_ACEOF
20256 \`$as_me' instantiates files from templates according to the
20257 current configuration.
20259 Usage: $0 [OPTIONS] [FILE]...
20261 -h, --help print this help, then exit
20262 -V, --version print version number, then exit
20263 -q, --quiet do not print progress messages
20264 -d, --debug don't remove temporary files
20265 --recheck update $as_me by reconfiguring in the same conditions
20266 --file=FILE[:TEMPLATE]
20267 instantiate the configuration file FILE
20268 --header=FILE[:TEMPLATE]
20269 instantiate the configuration header FILE
20271 Configuration files:
20274 Configuration headers:
20277 Configuration commands:
20280 Report bugs to <bug-autoconf@gnu.org>."
20283 cat >>$CONFIG_STATUS <<_ACEOF
20285 bdbobj config.status 0.10
20286 configured by $0, generated by GNU Autoconf 2.59,
20287 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20289 Copyright (C) 2003 Free Software Foundation, Inc.
20290 This config.status script is free software; the Free Software Foundation
20291 gives unlimited permission to copy, distribute and modify it."
20296 cat >>$CONFIG_STATUS <<\_ACEOF
20297 # If no file are specified by the user, then we need to provide default
20298 # value. By we need to know if files were specified by the user.
20304 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
20305 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
20313 *) # This is not an option, so the user has probably given explicit
20316 ac_need_defaults
=false
;;
20320 # Handling of the options.
20322 cat >>$CONFIG_STATUS <<\_ACEOF
20323 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20325 --version |
--vers* |
-V )
20326 echo "$ac_cs_version"; exit 0 ;;
20328 # Conflict between --help and --header
20329 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20330 Try \`$0 --help' for more information." >&5
20331 echo "$as_me: error: ambiguous option: $1
20332 Try \`$0 --help' for more information." >&2;}
20333 { (exit 1); exit 1; }; };;
20334 --help |
--hel |
-h )
20335 echo "$ac_cs_usage"; exit 0 ;;
20336 --debug |
--d* |
-d )
20338 --file |
--fil |
--fi |
--f )
20340 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
20341 ac_need_defaults
=false
;;
20342 --header |
--heade |
--head |
--hea )
20344 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
20345 ac_need_defaults
=false
;;
20346 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20347 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20350 # This is an error.
20351 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20352 Try \`$0 --help' for more information." >&5
20353 echo "$as_me: error: unrecognized option: $1
20354 Try \`$0 --help' for more information." >&2;}
20355 { (exit 1); exit 1; }; } ;;
20357 *) ac_config_targets
="$ac_config_targets $1" ;;
20363 ac_configure_extra_args
=
20365 if $ac_cs_silent; then
20367 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20371 cat >>$CONFIG_STATUS <<_ACEOF
20372 if \$ac_cs_recheck; then
20373 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20374 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20379 cat >>$CONFIG_STATUS <<_ACEOF
20381 # INIT-COMMANDS section.
20384 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20390 cat >>$CONFIG_STATUS <<\_ACEOF
20391 for ac_config_target
in $ac_config_targets
20393 case "$ac_config_target" in
20394 # Handling of arguments.
20395 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20396 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20397 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
20398 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20399 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20400 { (exit 1); exit 1; }; };;
20404 # If the user did not use the arguments to specify the items to instantiate,
20405 # then the envvar interface is used. Set only those that are not.
20406 # We use the long form for the default assignment because of an extremely
20407 # bizarre bug on SunOS 4.1.3.
20408 if $ac_need_defaults; then
20409 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20410 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20411 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20414 # Have a temporary directory for convenience. Make it in the build tree
20415 # simply because there is no reason to put it here, and in addition,
20416 # creating and moving files from /tmp can sometimes cause problems.
20417 # Create a temporary directory, and hook for its removal unless debugging.
20420 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20421 trap '{ (exit 1); exit 1; }' 1 2 13 15
20424 # Create a (secure) tmp directory for tmp files.
20427 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20428 test -n "$tmp" && test -d "$tmp"
20431 tmp
=.
/confstat$$
-$RANDOM
20432 (umask 077 && mkdir
$tmp)
20435 echo "$me: cannot create a temporary directory in ." >&2
20436 { (exit 1); exit 1; }
20441 cat >>$CONFIG_STATUS <<_ACEOF
20444 # CONFIG_FILES section.
20447 # No need to generate the scripts if there are no CONFIG_FILES.
20448 # This happens for instance when ./config.status config.h
20449 if test -n "\$CONFIG_FILES"; then
20450 # Protect against being on the right side of a sed subst in config.status.
20451 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20452 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20453 s,@SHELL@,$SHELL,;t t
20454 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20455 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20456 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20457 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20458 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20459 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20460 s,@exec_prefix@,$exec_prefix,;t t
20461 s,@prefix@,$prefix,;t t
20462 s,@program_transform_name@,$program_transform_name,;t t
20463 s,@bindir@,$bindir,;t t
20464 s,@sbindir@,$sbindir,;t t
20465 s,@libexecdir@,$libexecdir,;t t
20466 s,@datadir@,$datadir,;t t
20467 s,@sysconfdir@,$sysconfdir,;t t
20468 s,@sharedstatedir@,$sharedstatedir,;t t
20469 s,@localstatedir@,$localstatedir,;t t
20470 s,@libdir@,$libdir,;t t
20471 s,@includedir@,$includedir,;t t
20472 s,@oldincludedir@,$oldincludedir,;t t
20473 s,@infodir@,$infodir,;t t
20474 s,@mandir@,$mandir,;t t
20475 s,@build_alias@,$build_alias,;t t
20476 s,@host_alias@,$host_alias,;t t
20477 s,@target_alias@,$target_alias,;t t
20478 s,@DEFS@,$DEFS,;t t
20479 s,@ECHO_C@,$ECHO_C,;t t
20480 s,@ECHO_N@,$ECHO_N,;t t
20481 s,@ECHO_T@,$ECHO_T,;t t
20482 s,@LIBS@,$LIBS,;t t
20483 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20484 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20485 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20486 s,@CYGPATH_W@,$CYGPATH_W,;t t
20487 s,@PACKAGE@,$PACKAGE,;t t
20488 s,@VERSION@,$VERSION,;t t
20489 s,@ACLOCAL@,$ACLOCAL,;t t
20490 s,@AUTOCONF@,$AUTOCONF,;t t
20491 s,@AUTOMAKE@,$AUTOMAKE,;t t
20492 s,@AUTOHEADER@,$AUTOHEADER,;t t
20493 s,@MAKEINFO@,$MAKEINFO,;t t
20494 s,@install_sh@,$install_sh,;t t
20495 s,@STRIP@,$STRIP,;t t
20496 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20497 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20498 s,@mkdir_p@,$mkdir_p,;t t
20500 s,@SET_MAKE@,$SET_MAKE,;t t
20501 s,@am__leading_dot@,$am__leading_dot,;t t
20502 s,@AMTAR@,$AMTAR,;t t
20503 s,@am__tar@,$am__tar,;t t
20504 s,@am__untar@,$am__untar,;t t
20506 s,@CFLAGS@,$CFLAGS,;t t
20507 s,@LDFLAGS@,$LDFLAGS,;t t
20508 s,@CPPFLAGS@,$CPPFLAGS,;t t
20509 s,@ac_ct_CC@,$ac_ct_CC,;t t
20510 s,@EXEEXT@,$EXEEXT,;t t
20511 s,@OBJEXT@,$OBJEXT,;t t
20512 s,@DEPDIR@,$DEPDIR,;t t
20513 s,@am__include@,$am__include,;t t
20514 s,@am__quote@,$am__quote,;t t
20515 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20516 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20517 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20518 s,@CCDEPMODE@,$CCDEPMODE,;t t
20519 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20520 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20522 s,@EGREP@,$EGREP,;t t
20524 s,@CXXFLAGS@,$CXXFLAGS,;t t
20525 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20526 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20527 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20528 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20529 s,@build@,$build,;t t
20530 s,@build_cpu@,$build_cpu,;t t
20531 s,@build_vendor@,$build_vendor,;t t
20532 s,@build_os@,$build_os,;t t
20533 s,@host@,$host,;t t
20534 s,@host_cpu@,$host_cpu,;t t
20535 s,@host_vendor@,$host_vendor,;t t
20536 s,@host_os@,$host_os,;t t
20538 s,@LN_S@,$LN_S,;t t
20539 s,@ECHO@,$ECHO,;t t
20541 s,@ac_ct_AR@,$ac_ct_AR,;t t
20542 s,@RANLIB@,$RANLIB,;t t
20543 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20544 s,@CXXCPP@,$CXXCPP,;t t
20546 s,@FFLAGS@,$FFLAGS,;t t
20547 s,@ac_ct_F77@,$ac_ct_F77,;t t
20548 s,@LIBTOOL@,$LIBTOOL,;t t
20549 s,@LIBDB@,$LIBDB,;t t
20550 s,@FOUND_DB_TRUE@,$FOUND_DB_TRUE,;t t
20551 s,@FOUND_DB_FALSE@,$FOUND_DB_FALSE,;t t
20552 s,@LIBOBJS@,$LIBOBJS,;t t
20553 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20558 cat >>$CONFIG_STATUS <<\_ACEOF
20559 # Split the substitutions into bite-sized pieces for seds with
20560 # small command number limits, like on Digital OSF/1 and HP-UX.
20561 ac_max_sed_lines
=48
20562 ac_sed_frag
=1 # Number of current file.
20563 ac_beg
=1 # First line for current file.
20564 ac_end
=$ac_max_sed_lines # Line after last line for current file.
20567 while $ac_more_lines; do
20568 if test $ac_beg -gt 1; then
20569 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
20571 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
20573 if test ! -s $tmp/subs.frag
; then
20574 ac_more_lines
=false
20576 # The purpose of the label and of the branching condition is to
20577 # speed up the sed processing (if there are no `@' at all, there
20578 # is no need to browse any of the substitutions).
20579 # These are the two extra sed commands mentioned above.
20581 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
20582 if test -z "$ac_sed_cmds"; then
20583 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
20585 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20587 ac_sed_frag
=`expr $ac_sed_frag + 1`
20589 ac_end
=`expr $ac_end + $ac_max_sed_lines`
20592 if test -z "$ac_sed_cmds"; then
20595 fi # test -n "$CONFIG_FILES"
20598 cat >>$CONFIG_STATUS <<\_ACEOF
20599 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
20600 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20602 - |
*:- |
*:-:* ) # input from stdin
20604 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20605 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20606 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20607 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20608 * ) ac_file_in
=$ac_file.
in ;;
20611 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20612 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20613 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20614 X"$ac_file" : 'X\(//\)[^/]' \| \
20615 X"$ac_file" : 'X\(//\)$' \| \
20616 X"$ac_file" : 'X\(/\)' \| \
20617 . : '\(.\)' 2>/dev/null ||
20619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20620 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20621 /^X\(\/\/\)$/{ s//\1/; q; }
20622 /^X\(\/\).*/{ s//\1/; q; }
20624 { if $as_mkdir_p; then
20629 while test ! -d "$as_dir"; do
20630 as_dirs
="$as_dir $as_dirs"
20631 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20632 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20633 X"$as_dir" : 'X\(//\)[^/]' \| \
20634 X"$as_dir" : 'X\(//\)$' \| \
20635 X"$as_dir" : 'X\(/\)' \| \
20636 . : '\(.\)' 2>/dev/null ||
20638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20639 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20640 /^X\(\/\/\)$/{ s//\1/; q; }
20641 /^X\(\/\).*/{ s//\1/; q; }
20644 test ! -n "$as_dirs" || mkdir
$as_dirs
20645 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20646 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20647 { (exit 1); exit 1; }; }; }
20651 if test "$ac_dir" != .
; then
20652 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20653 # A "../" for each directory in $ac_dir_suffix.
20654 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20656 ac_dir_suffix
= ac_top_builddir
=
20660 .
) # No --srcdir option. We are building in place.
20662 if test -z "$ac_top_builddir"; then
20665 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
20667 [\\/]* | ?
:[\\/]* ) # Absolute path.
20668 ac_srcdir
=$srcdir$ac_dir_suffix;
20669 ac_top_srcdir
=$srcdir ;;
20670 *) # Relative path.
20671 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
20672 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
20675 # Do not use `cd foo && pwd` to compute absolute paths, because
20676 # the directories may not exist.
20678 .
) ac_abs_builddir
="$ac_dir";;
20681 .
) ac_abs_builddir
=`pwd`;;
20682 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
20683 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
20686 case $ac_abs_builddir in
20687 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20689 case ${ac_top_builddir}.
in
20690 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
20691 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20692 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
20695 case $ac_abs_builddir in
20696 .
) ac_abs_srcdir
=$ac_srcdir;;
20699 .
) ac_abs_srcdir
=$ac_abs_builddir;;
20700 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
20701 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
20704 case $ac_abs_builddir in
20705 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
20707 case $ac_top_srcdir in
20708 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
20709 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
20710 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
20716 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20717 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
20720 if test x
"$ac_file" != x-
; then
20721 { echo "$as_me:$LINENO: creating $ac_file" >&5
20722 echo "$as_me: creating $ac_file" >&6;}
20725 # Let's still pretend it is `configure' which instantiates (i.e., don't
20726 # use $as_me), people would be surprised to read:
20727 # /* config.h. Generated by config.status. */
20728 if test x
"$ac_file" = x-
; then
20731 configure_input
="$ac_file. "
20733 configure_input
=$configure_input"Generated from `echo $ac_file_in |
20734 sed 's,.*/,,'` by configure."
20736 # First look for the input files in the build tree, otherwise in the
20738 ac_file_inputs
=`IFS=:
20739 for f in $ac_file_in; do
20741 -) echo $tmp/stdin ;;
20743 # Absolute (can't be DOS-style, as IFS=:)
20744 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20745 echo "$as_me: error: cannot find input file: $f" >&2;}
20746 { (exit 1); exit 1; }; }
20749 if test -f "$f"; then
20752 elif test -f "$srcdir/$f"; then
20757 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20758 echo "$as_me: error: cannot find input file: $f" >&2;}
20759 { (exit 1); exit 1; }; }
20762 done` ||
{ (exit 1); exit 1; }
20764 cat >>$CONFIG_STATUS <<_ACEOF
20768 cat >>$CONFIG_STATUS <<\_ACEOF
20770 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20771 s
,@configure_input@
,$configure_input,;t t
20772 s
,@srcdir@
,$ac_srcdir,;t t
20773 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
20774 s
,@top_srcdir@
,$ac_top_srcdir,;t t
20775 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
20776 s
,@builddir@
,$ac_builddir,;t t
20777 s
,@abs_builddir@
,$ac_abs_builddir,;t t
20778 s
,@top_builddir@
,$ac_top_builddir,;t t
20779 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
20780 s
,@INSTALL@
,$ac_INSTALL,;t t
20781 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20783 if test x"$ac_file" != x-; then
20784 mv $tmp/out $ac_file
20792 cat >>$CONFIG_STATUS <<\_ACEOF
20795 # CONFIG_HEADER section.
20798 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
20799 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20801 # ac_d sets the value in "#define NAME VALUE" lines.
20802 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20803 ac_dB
='[ ].*$,\1#\2'
20806 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20807 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20808 ac_uB
='$,\1#\2define\3'
20812 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
20813 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20815 - |
*:- |
*:-:* ) # input from stdin
20817 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20818 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20819 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20820 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20821 * ) ac_file_in
=$ac_file.
in ;;
20824 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
20825 echo "$as_me: creating $ac_file" >&6;}
20827 # First look for the input files in the build tree, otherwise in the
20829 ac_file_inputs
=`IFS=:
20830 for f in $ac_file_in; do
20832 -) echo $tmp/stdin ;;
20834 # Absolute (can't be DOS-style, as IFS=:)
20835 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20836 echo "$as_me: error: cannot find input file: $f" >&2;}
20837 { (exit 1); exit 1; }; }
20838 # Do quote $f, to prevent DOS paths from being IFS'd.
20841 if test -f "$f"; then
20844 elif test -f "$srcdir/$f"; then
20849 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20850 echo "$as_me: error: cannot find input file: $f" >&2;}
20851 { (exit 1); exit 1; }; }
20854 done` ||
{ (exit 1); exit 1; }
20855 # Remove the trailing spaces.
20856 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20860 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20861 # `conftest.undefs', that substitutes the proper values into
20862 # config.h.in to produce config.h. The first handles `#define'
20863 # templates, and the second `#undef' templates.
20864 # And first: Protect against being on the right side of a sed subst in
20865 # config.status. Protect against being in an unquoted here document
20866 # in config.status.
20867 rm -f conftest.defines conftest.undefs
20868 # Using a here document instead of a string reduces the quoting nightmare.
20869 # Putting comments in sed scripts is not portable.
20871 # `end' is used to avoid that the second main sed command (meant for
20872 # 0-ary CPP macros) applies to n-ary macro definitions.
20873 # See the Autoconf documentation for `clear'.
20874 cat >confdef2sed.
sed <<\_ACEOF
20879 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20881 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20884 # If some macros were called several times there might be several times
20885 # the same #defines, which is useless. Nevertheless, we may not want to
20886 # sort them, since we want the *last* AC-DEFINE to be honored.
20887 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20888 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20889 rm -f confdef2sed.sed
20891 # This sed command replaces #undef with comments. This is necessary, for
20892 # example, in the case of _POSIX_SOURCE, which is predefined and required
20893 # on some systems where configure will not decide to define it.
20894 cat >>conftest.undefs <<\_ACEOF
20895 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20898 # Break up conftest.defines because some shells have a limit on the size
20899 # of here documents, and old seds have small limits too (100 cmds).
20900 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20901 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20902 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20903 echo ' :' >>$CONFIG_STATUS
20904 rm -f conftest.tail
20905 while grep . conftest.defines >/dev/null
20907 # Write a limited-size here document to $tmp/defines.sed.
20908 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20909 # Speed up: don't consider the non `#define' lines.
20910 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20911 # Work around the forget-to-reset-the-flag bug.
20912 echo 't clr' >>$CONFIG_STATUS
20913 echo ': clr' >>$CONFIG_STATUS
20914 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
20916 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20918 mv $tmp/out $tmp/in
20920 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
20921 rm -f conftest.defines
20922 mv conftest.
tail conftest.defines
20924 rm -f conftest.defines
20925 echo ' fi # grep' >>$CONFIG_STATUS
20926 echo >>$CONFIG_STATUS
20928 # Break up conftest.undefs because some shells have a limit on the size
20929 # of here documents, and old seds have small limits too (100 cmds).
20930 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20931 rm -f conftest.
tail
20932 while grep . conftest.undefs
>/dev
/null
20934 # Write a limited-size here document to $tmp/undefs.sed.
20935 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20936 # Speed up: don't consider the non
`#undef'
20937 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20938 # Work around the forget-to-reset-the-flag bug.
20939 echo 't clr' >>$CONFIG_STATUS
20940 echo ': clr' >>$CONFIG_STATUS
20941 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20943 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20945 mv $tmp/out $tmp/in
20947 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20948 rm -f conftest.undefs
20949 mv conftest.tail conftest.undefs
20951 rm -f conftest.undefs
20953 cat >>$CONFIG_STATUS <<\_ACEOF
20954 # Let's still pretend it is `configure
' which instantiates (i.e., don't
20955 # use $as_me), people would be surprised to read:
20956 # /* config.h. Generated by config.status. */
20957 if test x
"$ac_file" = x-
; then
20958 echo "/* Generated by configure. */" >$tmp/config.h
20960 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20962 cat $tmp/in >>$tmp/config.h
20964 if test x
"$ac_file" != x-
; then
20965 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
20966 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20967 echo "$as_me: $ac_file is unchanged" >&6;}
20969 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20970 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20971 X"$ac_file" : 'X\(//\)[^/]' \| \
20972 X"$ac_file" : 'X\(//\)$' \| \
20973 X"$ac_file" : 'X\(/\)' \| \
20974 . : '\(.\)' 2>/dev/null ||
20976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20977 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20978 /^X\(\/\/\)$/{ s//\1/; q; }
20979 /^X\(\/\).*/{ s//\1/; q; }
20981 { if $as_mkdir_p; then
20986 while test ! -d "$as_dir"; do
20987 as_dirs
="$as_dir $as_dirs"
20988 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20989 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20990 X"$as_dir" : 'X\(//\)[^/]' \| \
20991 X"$as_dir" : 'X\(//\)$' \| \
20992 X"$as_dir" : 'X\(/\)' \| \
20993 . : '\(.\)' 2>/dev/null ||
20995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20996 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20997 /^X\(\/\/\)$/{ s//\1/; q; }
20998 /^X\(\/\).*/{ s//\1/; q; }
21001 test ! -n "$as_dirs" || mkdir
$as_dirs
21002 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21003 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21004 { (exit 1); exit 1; }; }; }
21007 mv $tmp/config.h
$ac_file
21011 rm -f $tmp/config.h
21013 # Compute $ac_file's index in $config_headers.
21015 for _am_header
in $config_headers :; do
21016 case $_am_header in
21017 $ac_file |
$ac_file:* )
21020 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
21023 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21024 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21025 X$ac_file : 'X\(//\)[^/]' \| \
21026 X$ac_file : 'X\(//\)$' \| \
21027 X$ac_file : 'X\(/\)' \| \
21028 . : '\(.\)' 2>/dev/null ||
21030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21031 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21032 /^X\(\/\/\)$/{ s//\1/; q; }
21033 /^X\(\/\).*/{ s//\1/; q; }
21034 s/.*/./; q'`/stamp-h
$_am_stamp_count
21037 cat >>$CONFIG_STATUS <<\_ACEOF
21040 # CONFIG_COMMANDS section.
21042 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
21043 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
21044 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21045 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
21046 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21047 X"$ac_dest" : 'X\(//\)[^/]' \| \
21048 X"$ac_dest" : 'X\(//\)$' \| \
21049 X"$ac_dest" : 'X\(/\)' \| \
21050 . : '\(.\)' 2>/dev/null ||
21052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21053 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21054 /^X\(\/\/\)$/{ s//\1/; q; }
21055 /^X\(\/\).*/{ s//\1/; q; }
21057 { if $as_mkdir_p; then
21062 while test ! -d "$as_dir"; do
21063 as_dirs
="$as_dir $as_dirs"
21064 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
21065 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21066 X"$as_dir" : 'X\(//\)[^/]' \| \
21067 X"$as_dir" : 'X\(//\)$' \| \
21068 X"$as_dir" : 'X\(/\)' \| \
21069 . : '\(.\)' 2>/dev/null ||
21071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21072 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21073 /^X\(\/\/\)$/{ s//\1/; q; }
21074 /^X\(\/\).*/{ s//\1/; q; }
21077 test ! -n "$as_dirs" || mkdir
$as_dirs
21078 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21079 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21080 { (exit 1); exit 1; }; }; }
21084 if test "$ac_dir" != .
; then
21085 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21086 # A "../" for each directory in $ac_dir_suffix.
21087 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21089 ac_dir_suffix
= ac_top_builddir
=
21093 .
) # No --srcdir option. We are building in place.
21095 if test -z "$ac_top_builddir"; then
21098 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
21100 [\\/]* | ?
:[\\/]* ) # Absolute path.
21101 ac_srcdir
=$srcdir$ac_dir_suffix;
21102 ac_top_srcdir
=$srcdir ;;
21103 *) # Relative path.
21104 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
21105 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
21108 # Do not use `cd foo && pwd` to compute absolute paths, because
21109 # the directories may not exist.
21111 .
) ac_abs_builddir
="$ac_dir";;
21114 .
) ac_abs_builddir
=`pwd`;;
21115 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
21116 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
21119 case $ac_abs_builddir in
21120 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
21122 case ${ac_top_builddir}.
in
21123 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
21124 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
21125 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
21128 case $ac_abs_builddir in
21129 .
) ac_abs_srcdir
=$ac_srcdir;;
21132 .
) ac_abs_srcdir
=$ac_abs_builddir;;
21133 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
21134 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
21137 case $ac_abs_builddir in
21138 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
21140 case $ac_top_srcdir in
21141 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
21142 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
21143 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
21148 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21149 echo "$as_me: executing $ac_dest commands" >&6;}
21151 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
21152 # Strip MF so we end up with the name of the file.
21153 mf
=`echo "$mf" | sed -e 's/:.*$//'`
21154 # Check whether this is an Automake generated Makefile or not.
21155 # We used to match only the files named `Makefile.in', but
21156 # some people rename them; so instead we look at the file content.
21157 # Grep'ing the first line is not enough: some people post-process
21158 # each Makefile.in and add a new line on top of each file to say so.
21159 # So let's grep whole file.
21160 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
21161 dirpart
=`(dirname "$mf") 2>/dev/null ||
21162 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21163 X"$mf" : 'X\(//\)[^/]' \| \
21164 X"$mf" : 'X\(//\)$' \| \
21165 X"$mf" : 'X\(/\)' \| \
21166 . : '\(.\)' 2>/dev/null ||
21168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21169 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21170 /^X\(\/\/\)$/{ s//\1/; q; }
21171 /^X\(\/\).*/{ s//\1/; q; }
21176 # Extract the definition of DEPDIR, am__include, and am__quote
21177 # from the Makefile without running `make'.
21178 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
21179 test -z "$DEPDIR" && continue
21180 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
21181 test -z "am__include" && continue
21182 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
21183 # When using ansi2knr, U may be empty or an underscore; expand it
21184 U
=`sed -n 's/^U = //p' < "$mf"`
21185 # Find all dependency output files, they are included files with
21186 # $(DEPDIR) in their names. We invoke sed twice because it is the
21187 # simplest approach to changing $(DEPDIR) to its actual value in the
21189 for file in `sed -n "
21190 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21191 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21192 # Make sure the directory exists.
21193 test -f "$dirpart/$file" && continue
21194 fdir
=`(dirname "$file") 2>/dev/null ||
21195 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21196 X"$file" : 'X\(//\)[^/]' \| \
21197 X"$file" : 'X\(//\)$' \| \
21198 X"$file" : 'X\(/\)' \| \
21199 . : '\(.\)' 2>/dev/null ||
21201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21202 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21203 /^X\(\/\/\)$/{ s//\1/; q; }
21204 /^X\(\/\).*/{ s//\1/; q; }
21206 { if $as_mkdir_p; then
21207 mkdir
-p $dirpart/$fdir
21209 as_dir
=$dirpart/$fdir
21211 while test ! -d "$as_dir"; do
21212 as_dirs
="$as_dir $as_dirs"
21213 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
21214 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21215 X"$as_dir" : 'X\(//\)[^/]' \| \
21216 X"$as_dir" : 'X\(//\)$' \| \
21217 X"$as_dir" : 'X\(/\)' \| \
21218 . : '\(.\)' 2>/dev/null ||
21220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21221 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21222 /^X\(\/\/\)$/{ s//\1/; q; }
21223 /^X\(\/\).*/{ s//\1/; q; }
21226 test ! -n "$as_dirs" || mkdir
$as_dirs
21227 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21228 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21229 { (exit 1); exit 1; }; }; }
21231 # echo "creating $dirpart/$file"
21232 echo '# dummy' > "$dirpart/$file"
21240 cat >>$CONFIG_STATUS <<\_ACEOF
21242 { (exit 0); exit 0; }
21244 chmod +x
$CONFIG_STATUS
21245 ac_clean_files
=$ac_clean_files_save
21248 # configure is writing to config.log, and then calls config.status.
21249 # config.status does its own redirection, appending to config.log.
21250 # Unfortunately, on DOS this fails, as config.log is still kept open
21251 # by configure, so config.status won't be able to write to it; its
21252 # output is simply discarded. So we exec the FD to /dev/null,
21253 # effectively closing config.log, so it can be properly (re)opened and
21254 # appended to by config.status. When coming back to configure, we
21255 # need to make the FD available again.
21256 if test "$no_create" != yes; then
21258 ac_config_status_args
=
21259 test "$silent" = yes &&
21260 ac_config_status_args
="$ac_config_status_args --quiet"
21262 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21264 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21265 # would make configure fail if this is the last instruction.
21266 $ac_cs_success ||
{ (exit 1); exit 1; }