2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL
=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec
; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo
; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo
; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset
; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string
="`eval $cmd`") 2>/dev
/null
&&
289 echo_test_string
="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
309 for dir
in $PATH /usr
/ucb
; do
311 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
321 if test "X$echo" = Xecho
; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
328 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL
=/bin
/ksh
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
344 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
350 SHELL
="$CONFIG_SHELL"
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
359 # maybe with a smaller string...
362 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string
=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 # Oops. We lost completely, so just stick with echo.
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames
=${tagnames+${tagnames},}CXX
396 tagnames
=${tagnames+${tagnames},}F77
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix
=/usr
/local
409 ac_config_libobj_dir
=.
414 SHELL
=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file
="configure.ac"
429 # Factoring default headers for most tests.
430 ac_includes_default
="\
433 # include <sys/types.h>
436 # include <sys/stat.h>
447 # if !STDC_HEADERS && HAVE_MEMORY_H
453 # include <strings.h>
456 # include <inttypes.h>
466 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL global_top_auxdir LIBOBJS LTLIBOBJS'
469 # Initialize some variables set by options.
471 ac_init_version
=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
481 program_transform_name
=s
,x
,x
,
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir
='${exec_prefix}/bin'
495 sbindir
='${exec_prefix}/sbin'
496 libexecdir
='${exec_prefix}/libexec'
497 datadir
='${prefix}/share'
498 sysconfdir
='${prefix}/etc'
499 sharedstatedir
='${prefix}/com'
500 localstatedir
='${prefix}/var'
501 libdir
='${exec_prefix}/lib'
502 includedir
='${prefix}/include'
503 oldincludedir
='/usr/include'
504 infodir
='${prefix}/info'
505 mandir
='${prefix}/man'
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
517 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519 # Accept the important Cygnus configure options, so we can diagnose typos.
523 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
525 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
528 -build |
--build |
--buil |
--bui |
--bu)
529 ac_prev
=build_alias
;;
530 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
531 build_alias
=$ac_optarg ;;
533 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
534 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
535 ac_prev
=cache_file
;;
536 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
537 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
538 cache_file
=$ac_optarg ;;
541 cache_file
=config.cache
;;
543 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
545 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
547 datadir
=$ac_optarg ;;
549 -disable-* |
--disable-*)
550 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
558 -enable-* |
--enable-*)
559 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
566 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 eval "enable_$ac_feature='$ac_optarg'" ;;
571 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
572 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
573 |
--exec |
--exe |
--ex)
574 ac_prev
=exec_prefix
;;
575 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
576 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
577 |
--exec=* |
--exe=* |
--ex=*)
578 exec_prefix
=$ac_optarg ;;
580 -gas |
--gas |
--ga |
--g)
581 # Obsolete; use --with-gas.
584 -help |
--help |
--hel |
--he |
-h)
586 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
587 ac_init_help
=recursive
;;
588 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
589 ac_init_help
=short
;;
591 -host |
--host |
--hos |
--ho)
592 ac_prev
=host_alias
;;
593 -host=* |
--host=* |
--hos=* |
--ho=*)
594 host_alias
=$ac_optarg ;;
596 -includedir |
--includedir |
--includedi |
--included |
--include \
597 |
--includ |
--inclu |
--incl |
--inc)
598 ac_prev
=includedir
;;
599 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
600 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
601 includedir
=$ac_optarg ;;
603 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
605 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
606 infodir
=$ac_optarg ;;
608 -libdir |
--libdir |
--libdi |
--libd)
610 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
613 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
614 |
--libexe |
--libex |
--libe)
615 ac_prev
=libexecdir
;;
616 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
617 |
--libexe=* |
--libex=* |
--libe=*)
618 libexecdir
=$ac_optarg ;;
620 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
621 |
--localstate |
--localstat |
--localsta |
--localst \
622 |
--locals |
--local |
--loca |
--loc |
--lo)
623 ac_prev
=localstatedir
;;
624 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
625 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
626 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
627 localstatedir
=$ac_optarg ;;
629 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
631 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
635 # Obsolete; use --without-fp.
638 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
639 |
--no-cr |
--no-c |
-n)
642 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
643 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
646 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
647 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
648 |
--oldin |
--oldi |
--old |
--ol |
--o)
649 ac_prev
=oldincludedir
;;
650 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
651 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
652 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
653 oldincludedir
=$ac_optarg ;;
655 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
657 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
660 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
661 |
--program-pre |
--program-pr |
--program-p)
662 ac_prev
=program_prefix
;;
663 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
664 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
665 program_prefix
=$ac_optarg ;;
667 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
668 |
--program-suf |
--program-su |
--program-s)
669 ac_prev
=program_suffix
;;
670 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
671 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
672 program_suffix
=$ac_optarg ;;
674 -program-transform-name |
--program-transform-name \
675 |
--program-transform-nam |
--program-transform-na \
676 |
--program-transform-n |
--program-transform- \
677 |
--program-transform |
--program-transfor \
678 |
--program-transfo |
--program-transf \
679 |
--program-trans |
--program-tran \
680 |
--progr-tra |
--program-tr |
--program-t)
681 ac_prev
=program_transform_name
;;
682 -program-transform-name=* |
--program-transform-name=* \
683 |
--program-transform-nam=* |
--program-transform-na=* \
684 |
--program-transform-n=* |
--program-transform-=* \
685 |
--program-transform=* |
--program-transfor=* \
686 |
--program-transfo=* |
--program-transf=* \
687 |
--program-trans=* |
--program-tran=* \
688 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
689 program_transform_name
=$ac_optarg ;;
691 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
692 |
-silent |
--silent |
--silen |
--sile |
--sil)
695 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
697 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
699 sbindir
=$ac_optarg ;;
701 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
702 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
703 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
705 ac_prev
=sharedstatedir
;;
706 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
707 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
708 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
710 sharedstatedir
=$ac_optarg ;;
712 -site |
--site |
--sit)
714 -site=* |
--site=* |
--sit=*)
717 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
719 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
722 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
723 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
724 ac_prev
=sysconfdir
;;
725 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
726 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
727 sysconfdir
=$ac_optarg ;;
729 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
730 ac_prev
=target_alias
;;
731 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
732 target_alias
=$ac_optarg ;;
734 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
737 -version |
--version |
--versio |
--versi |
--vers |
-V)
741 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package
=`echo $ac_package| sed 's/-/_/g'`
748 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 eval "with_$ac_package='$ac_optarg'" ;;
753 -without-* |
--without-*)
754 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package
=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
763 # Obsolete; use --with-x.
766 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
767 |
--x-incl |
--x-inc |
--x-in |
--x-i)
768 ac_prev
=x_includes
;;
769 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
770 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
771 x_includes
=$ac_optarg ;;
773 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
774 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
775 ac_prev
=x_libraries
;;
776 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
777 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
778 x_libraries
=$ac_optarg ;;
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
786 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806 if test -n "$ac_prev"; then
807 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
812 # Be sure to have absolute paths.
813 for ac_var
in exec_prefix prefix
815 eval ac_val
=$
`echo $ac_var`
817 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
823 # Be sure to have absolute paths.
824 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
827 eval ac_val
=$
`echo $ac_var`
829 [\\/$
]* | ?
:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x
; then
844 if test "x$build_alias" = x
; then
845 cross_compiling
=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
854 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
856 test "$silent" = yes && exec 6>/dev
/null
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted
=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir
=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
876 if test ! -r $srcdir/$ac_unique_file; then
880 ac_srcdir_defaulted
=no
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
891 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set
=${build_alias+set}
896 ac_env_build_alias_value
=$build_alias
897 ac_cv_env_build_alias_set
=${build_alias+set}
898 ac_cv_env_build_alias_value
=$build_alias
899 ac_env_host_alias_set
=${host_alias+set}
900 ac_env_host_alias_value
=$host_alias
901 ac_cv_env_host_alias_set
=${host_alias+set}
902 ac_cv_env_host_alias_value
=$host_alias
903 ac_env_target_alias_set
=${target_alias+set}
904 ac_env_target_alias_value
=$target_alias
905 ac_cv_env_target_alias_set
=${target_alias+set}
906 ac_cv_env_target_alias_value
=$target_alias
907 ac_env_CC_set
=${CC+set}
909 ac_cv_env_CC_set
=${CC+set}
910 ac_cv_env_CC_value
=$CC
911 ac_env_CFLAGS_set
=${CFLAGS+set}
912 ac_env_CFLAGS_value
=$CFLAGS
913 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value
=$CFLAGS
915 ac_env_LDFLAGS_set
=${LDFLAGS+set}
916 ac_env_LDFLAGS_value
=$LDFLAGS
917 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value
=$LDFLAGS
919 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value
=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
923 ac_env_CPP_set
=${CPP+set}
924 ac_env_CPP_value
=$CPP
925 ac_cv_env_CPP_set
=${CPP+set}
926 ac_cv_env_CPP_value
=$CPP
927 ac_env_CXX_set
=${CXX+set}
928 ac_env_CXX_value
=$CXX
929 ac_cv_env_CXX_set
=${CXX+set}
930 ac_cv_env_CXX_value
=$CXX
931 ac_env_CXXFLAGS_set
=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value
=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set
=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value
=$CXXFLAGS
935 ac_env_CXXCPP_set
=${CXXCPP+set}
936 ac_env_CXXCPP_value
=$CXXCPP
937 ac_cv_env_CXXCPP_set
=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value
=$CXXCPP
939 ac_env_F77_set
=${F77+set}
940 ac_env_F77_value
=$F77
941 ac_cv_env_F77_set
=${F77+set}
942 ac_cv_env_F77_value
=$F77
943 ac_env_FFLAGS_set
=${FFLAGS+set}
944 ac_env_FFLAGS_value
=$FFLAGS
945 ac_cv_env_FFLAGS_set
=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value
=$FFLAGS
949 # Report the --help message.
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
955 \`configure' configures this package to adapt to many kinds of systems.
957 Usage: $0 [OPTION]... [VAR=VALUE]...
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
962 Defaults for the options are specified in brackets.
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
989 For better control, use the options below.
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1014 --build=BUILD configure
for building on BUILD
[guessed
]
1015 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1019 if test -n "$ac_init_help"; then
1024 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1025 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1026 --disable-dependency-tracking speeds up one-time build
1027 --enable-dependency-tracking do not reject slow dependency extractors
1028 --enable-shared[=PKGS
]
1029 build shared libraries
[default
=yes]
1030 --enable-static[=PKGS
]
1031 build static libraries
[default
=yes]
1032 --enable-fast-install[=PKGS
]
1033 optimize
for fast installation
[default
=yes]
1034 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1037 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1038 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1039 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1040 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1043 include additional configurations
[automatic
]
1045 Some influential environment variables
:
1046 CC C compiler
command
1047 CFLAGS C compiler flags
1048 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1049 nonstandard directory
<lib dir
>
1050 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
1051 headers
in a nonstandard directory
<include dir
>
1053 CXX C
++ compiler
command
1054 CXXFLAGS C
++ compiler flags
1055 CXXCPP C
++ preprocessor
1056 F77 Fortran
77 compiler
command
1057 FFLAGS Fortran
77 compiler flags
1059 Use these variables to override the choices made by
`configure' or to help
1060 it to find libraries and programs with nonstandard names/locations.
1065 if test "$ac_init_help" = "recursive"; then
1066 # If there are subdirs, report their specific --help.
1068 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1069 test -d $ac_dir || continue
1072 if test "$ac_dir" != .; then
1073 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1074 # A "../" for each directory in $ac_dir_suffix.
1075 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
1077 ac_dir_suffix= ac_top_builddir=
1081 .) # No --srcdir option. We are building in place.
1083 if test -z "$ac_top_builddir"; then
1086 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1088 [\\/]* | ?:[\\/]* ) # Absolute path.
1089 ac_srcdir=$srcdir$ac_dir_suffix;
1090 ac_top_srcdir=$srcdir ;;
1092 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1093 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1096 # Do not use `cd foo
&& pwd` to compute absolute paths, because
1097 # the directories may not exist.
1099 .) ac_abs_builddir="$ac_dir";;
1102 .) ac_abs_builddir=`pwd`;;
1103 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1104 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1107 case $ac_abs_builddir in
1108 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1110 case ${ac_top_builddir}. in
1111 .) ac_abs_top_builddir=$ac_abs_builddir;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1113 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1116 case $ac_abs_builddir in
1117 .) ac_abs_srcdir=$ac_srcdir;;
1120 .) ac_abs_srcdir=$ac_abs_builddir;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1122 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1125 case $ac_abs_builddir in
1126 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1128 case $ac_top_srcdir in
1129 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1131 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1136 # Check for guested configure; otherwise get Cygnus style configure.
1137 if test -f $ac_srcdir/configure.gnu; then
1139 $SHELL $ac_srcdir/configure.gnu --help=recursive
1140 elif test -f $ac_srcdir/configure; then
1142 $SHELL $ac_srcdir/configure --help=recursive
1143 elif test -f $ac_srcdir/configure.ac ||
1144 test -f $ac_srcdir/configure.in; then
1146 $ac_configure --help
1148 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1154 test -n "$ac_init_help" && exit 0
1155 if $ac_init_version; then
1158 Copyright (C) 2003 Free Software Foundation, Inc.
1159 This configure script is free software; the Free Software Foundation
1160 gives unlimited permission to copy, distribute and modify it.
1166 This file contains any messages produced by compilers while
1167 running configure, to aid debugging if configure makes a mistake.
1169 It was created by $as_me, which was
1170 generated by GNU Autoconf 2.59. Invocation command line was
1181 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1182 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1183 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1184 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1185 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1187 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1188 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1190 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1191 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1192 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1193 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1194 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1195 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1196 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1204 test -z "$as_dir" && as_dir=.
1205 echo "PATH: $as_dir"
1220 # Keep a trace of the command line.
1221 # Strip out --no-create and --no-recursion so they do not pile up.
1222 # Strip out --silent because we don't want to record it for future runs.
1223 # Also quote any args containing shell meta-characters.
1224 # Make two passes to allow for proper duplicate-argument suppression.
1229 ac_must_keep_next=false
1235 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237 | -silent | --silent | --silen | --sile | --sil)
1239 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1240 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1243 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1245 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1246 if test $ac_must_keep_next = true; then
1247 ac_must_keep_next=false # Got value, back to normal.
1250 *=* | --config-cache | -C | -disable-* | --disable-* \
1251 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1252 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1253 | -with-* | --with-* | -without-* | --without-* | --x)
1254 case "$ac_configure_args0 " in
1255 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1258 -* ) ac_must_keep_next=true ;;
1261 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1262 # Get rid of the leading space.
1268 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1269 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1271 # When interrupted or exit'd, cleanup temporary files, and complete
1272 # config.log. We remove comments because anyway the quotes in there
1273 # would cause problems or look ugly.
1274 # WARNING: Be sure not to use single quotes in there, as some shells,
1275 # such as our DU 5.0 friend, will then `close
' the trap.
1276 trap 'exit_status
=$?
1277 # Save into config.log some information that might help in debugging.
1282 ## ---------------- ##
1283 ## Cache variables. ##
1284 ## ---------------- ##
1287 # The following way of writing the cache mishandles newlines in values,
1290 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1293 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1294 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1298 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1305 ## ----------------- ##
1306 ## Output variables. ##
1307 ## ----------------- ##
1310 for ac_var
in $ac_subst_vars
1312 eval ac_val
=$
`echo $ac_var`
1313 echo "$ac_var='"'"'$ac_val'"'"'"
1317 if test -n "$ac_subst_files"; then
1324 for ac_var
in $ac_subst_files
1326 eval ac_val
=$
`echo $ac_var`
1327 echo "$ac_var='"'"'$ac_val'"'"'"
1332 if test -s confdefs.h
; then
1339 sed "/^$/d" confdefs.h |
sort
1342 test "$ac_signal" != 0 &&
1343 echo "$as_me: caught signal $ac_signal"
1344 echo "$as_me: exit $exit_status"
1346 rm -f core
*.core
&&
1347 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1350 for ac_signal in 1 2 13 15; do
1351 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1355 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1356 rm -rf conftest* confdefs.h
1357 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1360 # Predefined preprocessor variables.
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_NAME "$PACKAGE_NAME"
1367 cat >>confdefs.h <<_ACEOF
1368 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1372 cat >>confdefs.h <<_ACEOF
1373 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1377 cat >>confdefs.h <<_ACEOF
1378 #define PACKAGE_STRING "$PACKAGE_STRING"
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1387 # Let the site file select an alternate cache file if it wants to.
1388 # Prefer explicitly selected file to automatically selected ones.
1389 if test -z "$CONFIG_SITE"; then
1390 if test "x$prefix" != xNONE; then
1391 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1393 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1396 for ac_site_file in $CONFIG_SITE; do
1397 if test -r "$ac_site_file"; then
1398 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1399 echo "$as_me: loading site script $ac_site_file" >&6;}
1400 sed 's
/^
/|
/' "$ac_site_file" >&5
1405 if test -r "$cache_file"; then
1406 # Some versions of bash will fail to source /dev/null (special
1407 # files actually), so we avoid doing that.
1408 if test -f "$cache_file"; then
1409 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1410 echo "$as_me: loading cache $cache_file" >&6;}
1412 [\\/]* | ?:[\\/]* ) . $cache_file;;
1413 *) . ./$cache_file;;
1417 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1418 echo "$as_me: creating cache $cache_file" >&6;}
1422 # Check that the precious variables saved in the cache have kept the same
1424 ac_cache_corrupted=false
1425 for ac_var in `(set) 2>&1 |
1426 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1427 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1428 eval ac_new_set=\$ac_env_${ac_var}_set
1429 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1430 eval ac_new_val="\$ac_env_${ac_var}_value"
1431 case $ac_old_set,$ac_new_set in
1433 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1434 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1435 ac_cache_corrupted=: ;;
1437 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1438 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1439 ac_cache_corrupted=: ;;
1442 if test "x$ac_old_val" != "x$ac_new_val"; then
1443 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1444 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1445 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1446 echo "$as_me: former value: $ac_old_val" >&2;}
1447 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1448 echo "$as_me: current value: $ac_new_val" >&2;}
1449 ac_cache_corrupted=:
1452 # Pass precious variables to config.status.
1453 if test "$ac_new_set" = set; then
1455 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1456 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1457 *) ac_arg=$ac_var=$ac_new_val ;;
1459 case " $ac_configure_args " in
1460 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1461 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1465 if $ac_cache_corrupted; then
1466 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1467 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1468 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1469 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1470 { (exit 1); exit 1; }; }
1474 ac_cpp='$CPP $CPPFLAGS'
1475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1476 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1498 for ac_dir in ../../../build-aux $srcdir/../../../build-aux; do
1499 if test -f $ac_dir/install-sh; then
1501 ac_install_sh="$ac_aux_dir/install-sh -c"
1503 elif test -f $ac_dir/install.sh; then
1505 ac_install_sh="$ac_aux_dir/install.sh -c"
1507 elif test -f $ac_dir/shtool; then
1509 ac_install_sh="$ac_aux_dir/shtool install -c"
1513 if test -z "$ac_aux_dir"; then
1514 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../build-aux $srcdir/../../../build-aux" >&5
1515 echo "$as_me: error: cannot find install-sh or install.sh in ../../../build-aux $srcdir/../../../build-aux" >&2;}
1516 { (exit 1); exit 1; }; }
1518 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1519 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1520 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1522 am__api_version="1.9"
1523 # Find a good install program. We prefer a C program (faster),
1524 # so one script is as good as another. But avoid the broken or
1525 # incompatible versions:
1526 # SysV /etc/install, /usr/sbin/install
1527 # SunOS /usr/etc/install
1528 # IRIX /sbin/install
1530 # AmigaOS /C/install, which installs bootblocks on floppy discs
1531 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1532 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1533 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1534 # OS/2's system install, which has a completely different semantic
1535 # ./install, which can be erroneously created by make from ./install.sh.
1536 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1537 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1538 if test -z "$INSTALL"; then
1539 if test "${ac_cv_path_install+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1542 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1546 test -z "$as_dir" && as_dir
=.
1547 # Account for people who put trailing slashes in PATH elements.
1549 .
/ | .
// |
/cC
/* | \
1550 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1551 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1554 # OSF1 and SCO ODT 3.0 have their own names for install.
1555 # Don't use installbsd from OSF since it installs stuff as root
1557 for ac_prog
in ginstall scoinst
install; do
1558 for ac_exec_ext
in '' $ac_executable_extensions; do
1559 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1560 if test $ac_prog = install &&
1561 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1562 # AIX install. It has an incompatible calling convention.
1564 elif test $ac_prog = install &&
1565 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1566 # program-specific install script used by HP pwplus--don't use.
1569 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1581 if test "${ac_cv_path_install+set}" = set; then
1582 INSTALL
=$ac_cv_path_install
1584 # As a last resort, use the slow shell script. We don't cache a
1585 # path for INSTALL within a source directory, because that will
1586 # break other packages using the cache if that directory is
1587 # removed, or if the path is relative.
1588 INSTALL
=$ac_install_sh
1591 echo "$as_me:$LINENO: result: $INSTALL" >&5
1592 echo "${ECHO_T}$INSTALL" >&6
1594 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1595 # It thinks the first close brace ends the variable substitution.
1596 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1598 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1600 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1602 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1603 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1606 echo timestamp
> conftest.
file
1607 # Do `set' in a subshell so we don't clobber the current shell's
1608 # arguments. Must try -L first in case configure is actually a
1609 # symlink; some systems play weird games with the mod time of symlinks
1610 # (eg FreeBSD returns the mod time of the symlink's containing
1613 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1614 if test "$*" = "X"; then
1616 set X
`ls -t $srcdir/configure conftest.file`
1619 if test "$*" != "X $srcdir/configure conftest.file" \
1620 && test "$*" != "X conftest.file $srcdir/configure"; then
1622 # If neither matched, then we have a broken ls. This can happen
1623 # if, for instance, CONFIG_SHELL is bash and it inherits a
1624 # broken ls alias from the environment. This has actually
1625 # happened. Such a system could not be considered "sane".
1626 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1627 alias in your environment" >&5
1628 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1629 alias in your environment" >&2;}
1630 { (exit 1); exit 1; }; }
1633 test "$2" = conftest.
file
1639 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1640 Check your system clock" >&5
1641 echo "$as_me: error: newly created file is older than distributed files!
1642 Check your system clock" >&2;}
1643 { (exit 1); exit 1; }; }
1645 echo "$as_me:$LINENO: result: yes" >&5
1646 echo "${ECHO_T}yes" >&6
1647 test "$program_prefix" != NONE
&&
1648 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1649 # Use a double $ so make ignores it.
1650 test "$program_suffix" != NONE
&&
1651 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1652 # Double any \ or $. echo might interpret backslashes.
1653 # By default was `s,x,x', remove it if useless.
1654 cat <<\_ACEOF
>conftest.
sed
1655 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1657 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1660 # expand $ac_aux_dir to an absolute path
1661 am_aux_dir
=`cd $ac_aux_dir && pwd`
1663 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1664 # Use eval to expand $SHELL
1665 if eval "$MISSING --run true"; then
1666 am_missing_run
="$MISSING --run "
1669 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1670 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1673 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
1674 # We used to keeping the `.' as first argument, in order to
1675 # allow $(mkdir_p) to be used without argument. As in
1676 # $(mkdir_p) $(somedir)
1677 # where $(somedir) is conditionally defined. However this is wrong
1679 # 1. if the package is installed by a user who cannot write `.'
1680 # make install will fail,
1681 # 2. the above comment should most certainly read
1682 # $(mkdir_p) $(DESTDIR)$(somedir)
1683 # so it does not work when $(somedir) is undefined and
1684 # $(DESTDIR) is not.
1685 # To support the latter case, we have to write
1686 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1687 # so the `.' trick is pointless.
1688 mkdir_p
='mkdir -p --'
1690 # On NextStep and OpenStep, the `mkdir' command does not
1691 # recognize any option. It will interpret all options as
1692 # directories to create, and then abort because `.' already
1694 for d
in .
/-p .
/--version;
1696 test -d $d && rmdir $d
1698 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1699 if test -f "$ac_aux_dir/mkinstalldirs"; then
1700 mkdir_p
='$(mkinstalldirs)'
1702 mkdir_p
='$(install_sh) -d'
1706 for ac_prog
in gawk mawk nawk
awk
1708 # Extract the first word of "$ac_prog", so it can be a program name with args.
1709 set dummy
$ac_prog; ac_word
=$2
1710 echo "$as_me:$LINENO: checking for $ac_word" >&5
1711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1712 if test "${ac_cv_prog_AWK+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 if test -n "$AWK"; then
1716 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1722 test -z "$as_dir" && as_dir
=.
1723 for ac_exec_ext
in '' $ac_executable_extensions; do
1724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725 ac_cv_prog_AWK
="$ac_prog"
1726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735 if test -n "$AWK"; then
1736 echo "$as_me:$LINENO: result: $AWK" >&5
1737 echo "${ECHO_T}$AWK" >&6
1739 echo "$as_me:$LINENO: result: no" >&5
1740 echo "${ECHO_T}no" >&6
1743 test -n "$AWK" && break
1746 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1747 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1748 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1749 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1750 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 cat >conftest.
make <<\_ACEOF
1754 @
echo 'ac_maketemp="$(MAKE)"'
1756 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1757 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1758 if test -n "$ac_maketemp"; then
1759 eval ac_cv_prog_make_
${ac_make}_set
=yes
1761 eval ac_cv_prog_make_
${ac_make}_set
=no
1765 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1766 echo "$as_me:$LINENO: result: yes" >&5
1767 echo "${ECHO_T}yes" >&6
1770 echo "$as_me:$LINENO: result: no" >&5
1771 echo "${ECHO_T}no" >&6
1772 SET_MAKE
="MAKE=${MAKE-make}"
1775 rm -rf .tst
2>/dev
/null
1776 mkdir .tst
2>/dev
/null
1777 if test -d .tst
; then
1782 rmdir .tst
2>/dev
/null
1784 # test to see if srcdir already configured
1785 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1786 test -f $srcdir/config.status
; then
1787 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1788 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1789 { (exit 1); exit 1; }; }
1792 # test whether we have cygpath
1793 if test -z "$CYGPATH_W"; then
1794 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
1795 CYGPATH_W
='cygpath -w'
1802 # Define the identity of the package.
1803 PACKAGE
=gettext_rpathx
1807 cat >>confdefs.h
<<_ACEOF
1808 #define PACKAGE "$PACKAGE"
1812 cat >>confdefs.h
<<_ACEOF
1813 #define VERSION "$VERSION"
1816 # Some tools Automake needs.
1818 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1821 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1824 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1827 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1830 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1832 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1834 # Installed binaries are usually stripped using `strip' when the user
1835 # run `make install-strip'. However `strip' might not be the right
1836 # tool to use in cross-compilation environments, therefore Automake
1837 # will honor the `STRIP' environment variable to overrule this program.
1838 if test "$cross_compiling" != no
; then
1839 if test -n "$ac_tool_prefix"; then
1840 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1841 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1842 echo "$as_me:$LINENO: checking for $ac_word" >&5
1843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1844 if test "${ac_cv_prog_STRIP+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 if test -n "$STRIP"; then
1848 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1850 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1854 test -z "$as_dir" && as_dir
=.
1855 for ac_exec_ext
in '' $ac_executable_extensions; do
1856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1857 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866 STRIP
=$ac_cv_prog_STRIP
1867 if test -n "$STRIP"; then
1868 echo "$as_me:$LINENO: result: $STRIP" >&5
1869 echo "${ECHO_T}$STRIP" >&6
1871 echo "$as_me:$LINENO: result: no" >&5
1872 echo "${ECHO_T}no" >&6
1876 if test -z "$ac_cv_prog_STRIP"; then
1878 # Extract the first word of "strip", so it can be a program name with args.
1879 set dummy strip
; ac_word
=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1885 if test -n "$ac_ct_STRIP"; then
1886 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
1888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1892 test -z "$as_dir" && as_dir
=.
1893 for ac_exec_ext
in '' $ac_executable_extensions; do
1894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895 ac_cv_prog_ac_ct_STRIP
="strip"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
1905 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
1906 if test -n "$ac_ct_STRIP"; then
1907 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1908 echo "${ECHO_T}$ac_ct_STRIP" >&6
1910 echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1916 STRIP
="$ac_cv_prog_STRIP"
1920 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1922 # We need awk for the "check" target. The system "awk" is bad on
1924 # Always define AMTAR for backward compatibility.
1926 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1928 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
1935 ac_cpp
='$CPP $CPPFLAGS'
1936 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1937 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1938 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1939 if test -n "$ac_tool_prefix"; then
1940 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1941 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1942 echo "$as_me:$LINENO: checking for $ac_word" >&5
1943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944 if test "${ac_cv_prog_CC+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 if test -n "$CC"; then
1948 ac_cv_prog_CC
="$CC" # Let the user override the test.
1950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1954 test -z "$as_dir" && as_dir
=.
1955 for ac_exec_ext
in '' $ac_executable_extensions; do
1956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1957 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1967 if test -n "$CC"; then
1968 echo "$as_me:$LINENO: result: $CC" >&5
1969 echo "${ECHO_T}$CC" >&6
1971 echo "$as_me:$LINENO: result: no" >&5
1972 echo "${ECHO_T}no" >&6
1976 if test -z "$ac_cv_prog_CC"; then
1978 # Extract the first word of "gcc", so it can be a program name with args.
1979 set dummy gcc
; ac_word
=$2
1980 echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 if test -n "$ac_ct_CC"; then
1986 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1992 test -z "$as_dir" && as_dir
=.
1993 for ac_exec_ext
in '' $ac_executable_extensions; do
1994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1995 ac_cv_prog_ac_ct_CC
="gcc"
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2005 if test -n "$ac_ct_CC"; then
2006 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2007 echo "${ECHO_T}$ac_ct_CC" >&6
2009 echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6
2018 if test -z "$CC"; then
2019 if test -n "$ac_tool_prefix"; then
2020 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2021 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2022 echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024 if test "${ac_cv_prog_CC+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 if test -n "$CC"; then
2028 ac_cv_prog_CC
="$CC" # Let the user override the test.
2030 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2034 test -z "$as_dir" && as_dir
=.
2035 for ac_exec_ext
in '' $ac_executable_extensions; do
2036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047 if test -n "$CC"; then
2048 echo "$as_me:$LINENO: result: $CC" >&5
2049 echo "${ECHO_T}$CC" >&6
2051 echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6
2056 if test -z "$ac_cv_prog_CC"; then
2058 # Extract the first word of "cc", so it can be a program name with args.
2059 set dummy cc
; ac_word
=$2
2060 echo "$as_me:$LINENO: checking for $ac_word" >&5
2061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2062 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 if test -n "$ac_ct_CC"; then
2066 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2072 test -z "$as_dir" && as_dir
=.
2073 for ac_exec_ext
in '' $ac_executable_extensions; do
2074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2075 ac_cv_prog_ac_ct_CC
="cc"
2076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2085 if test -n "$ac_ct_CC"; then
2086 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2087 echo "${ECHO_T}$ac_ct_CC" >&6
2089 echo "$as_me:$LINENO: result: no" >&5
2090 echo "${ECHO_T}no" >&6
2099 if test -z "$CC"; then
2100 # Extract the first word of "cc", so it can be a program name with args.
2101 set dummy cc
; ac_word
=$2
2102 echo "$as_me:$LINENO: checking for $ac_word" >&5
2103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2104 if test "${ac_cv_prog_CC+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 if test -n "$CC"; then
2108 ac_cv_prog_CC
="$CC" # Let the user override the test.
2111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2115 test -z "$as_dir" && as_dir
=.
2116 for ac_exec_ext
in '' $ac_executable_extensions; do
2117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2118 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2119 ac_prog_rejected
=yes
2123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 if test $ac_prog_rejected = yes; then
2130 # We found a bogon in the path, so make sure we never use it.
2131 set dummy
$ac_cv_prog_CC
2133 if test $# != 0; then
2134 # We chose a different compiler from the bogus one.
2135 # However, it has the same basename, so the bogon will be chosen
2136 # first if we set CC to just the basename; use the full file name.
2138 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2144 if test -n "$CC"; then
2145 echo "$as_me:$LINENO: result: $CC" >&5
2146 echo "${ECHO_T}$CC" >&6
2148 echo "$as_me:$LINENO: result: no" >&5
2149 echo "${ECHO_T}no" >&6
2153 if test -z "$CC"; then
2154 if test -n "$ac_tool_prefix"; then
2157 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2158 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2159 echo "$as_me:$LINENO: checking for $ac_word" >&5
2160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2161 if test "${ac_cv_prog_CC+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2164 if test -n "$CC"; then
2165 ac_cv_prog_CC
="$CC" # Let the user override the test.
2167 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2171 test -z "$as_dir" && as_dir
=.
2172 for ac_exec_ext
in '' $ac_executable_extensions; do
2173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2174 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184 if test -n "$CC"; then
2185 echo "$as_me:$LINENO: result: $CC" >&5
2186 echo "${ECHO_T}$CC" >&6
2188 echo "$as_me:$LINENO: result: no" >&5
2189 echo "${ECHO_T}no" >&6
2192 test -n "$CC" && break
2195 if test -z "$CC"; then
2199 # Extract the first word of "$ac_prog", so it can be a program name with args.
2200 set dummy
$ac_prog; ac_word
=$2
2201 echo "$as_me:$LINENO: checking for $ac_word" >&5
2202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2203 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2206 if test -n "$ac_ct_CC"; then
2207 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2213 test -z "$as_dir" && as_dir
=.
2214 for ac_exec_ext
in '' $ac_executable_extensions; do
2215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2216 ac_cv_prog_ac_ct_CC
="$ac_prog"
2217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2226 if test -n "$ac_ct_CC"; then
2227 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2228 echo "${ECHO_T}$ac_ct_CC" >&6
2230 echo "$as_me:$LINENO: result: no" >&5
2231 echo "${ECHO_T}no" >&6
2234 test -n "$ac_ct_CC" && break
2243 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: no acceptable C compiler found in \$PATH
2246 See \`config.log' for more details." >&2;}
2247 { (exit 1); exit 1; }; }
2249 # Provide some information about the compiler.
2250 echo "$as_me:$LINENO:" \
2251 "checking for C compiler version" >&5
2252 ac_compiler
=`set X $ac_compile; echo $2`
2253 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2254 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }
2258 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2259 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }
2263 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2264 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }
2269 cat >conftest.
$ac_ext <<_ACEOF
2272 cat confdefs.h
>>conftest.
$ac_ext
2273 cat >>conftest.
$ac_ext <<_ACEOF
2274 /* end confdefs.h. */
2284 ac_clean_files_save
=$ac_clean_files
2285 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2286 # Try to create an executable without -o first, disregard a.out.
2287 # It will help us diagnose broken compilers, and finding out an intuition
2289 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2290 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2291 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2292 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2293 (eval $ac_link_default) 2>&5
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; then
2297 # Find the output, starting from the most likely. This scheme is
2298 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2301 # Be careful to initialize this variable, since it used to be cached.
2302 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2304 # b.out is created by i960 compilers.
2305 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2307 test -f "$ac_file" ||
continue
2309 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2312 # This is the source file.
2315 # We found the default executable, but exeext='' is most
2319 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2320 # FIXME: I believe we export ac_cv_exeext for Libtool,
2321 # but it would be cool to find out if it's true. Does anybody
2322 # maintain Libtool? --akim.
2330 echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.
$ac_ext >&5
2333 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2334 See \`config.log' for more details." >&5
2335 echo "$as_me: error: C compiler cannot create executables
2336 See \`config.log' for more details." >&2;}
2337 { (exit 77); exit 77; }; }
2340 ac_exeext
=$ac_cv_exeext
2341 echo "$as_me:$LINENO: result: $ac_file" >&5
2342 echo "${ECHO_T}$ac_file" >&6
2344 # Check the compiler produces executables we can run. If not, either
2345 # the compiler is broken, or we cross compile.
2346 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2347 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2348 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2349 # If not cross compiling, check that we can run a simple program.
2350 if test "$cross_compiling" != yes; then
2351 if { ac_try
='./$ac_file'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; }; then
2359 if test "$cross_compiling" = maybe
; then
2362 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2363 If you meant to cross compile, use \`--host'.
2364 See \`config.log' for more details." >&5
2365 echo "$as_me: error: cannot run C compiled programs.
2366 If you meant to cross compile, use \`--host'.
2367 See \`config.log' for more details." >&2;}
2368 { (exit 1); exit 1; }; }
2372 echo "$as_me:$LINENO: result: yes" >&5
2373 echo "${ECHO_T}yes" >&6
2375 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2376 ac_clean_files
=$ac_clean_files_save
2377 # Check the compiler produces executables we can run. If not, either
2378 # the compiler is broken, or we cross compile.
2379 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2380 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2381 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2382 echo "${ECHO_T}$cross_compiling" >&6
2384 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2385 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2387 (eval $ac_link) 2>&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; then
2391 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2392 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2393 # work properly (i.e., refer to `conftest.exe'), while it won't with
2395 for ac_file
in conftest.exe conftest conftest.
*; do
2396 test -f "$ac_file" ||
continue
2398 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2399 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2406 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2407 See \`config.log' for more details." >&5
2408 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2409 See \`config.log' for more details." >&2;}
2410 { (exit 1); exit 1; }; }
2413 rm -f conftest
$ac_cv_exeext
2414 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2415 echo "${ECHO_T}$ac_cv_exeext" >&6
2417 rm -f conftest.
$ac_ext
2418 EXEEXT
=$ac_cv_exeext
2420 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2421 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2422 if test "${ac_cv_objext+set}" = set; then
2423 echo $ECHO_N "(cached) $ECHO_C" >&6
2425 cat >conftest.
$ac_ext <<_ACEOF
2428 cat confdefs.h
>>conftest.
$ac_ext
2429 cat >>conftest.
$ac_ext <<_ACEOF
2430 /* end confdefs.h. */
2440 rm -f conftest.o conftest.obj
2441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2442 (eval $ac_compile) 2>&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; then
2446 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2448 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2449 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2454 echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.
$ac_ext >&5
2457 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2458 See \`config.log' for more details." >&5
2459 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2460 See \`config.log' for more details." >&2;}
2461 { (exit 1); exit 1; }; }
2464 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2466 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2467 echo "${ECHO_T}$ac_cv_objext" >&6
2468 OBJEXT
=$ac_cv_objext
2470 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2471 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2472 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2475 cat >conftest.
$ac_ext <<_ACEOF
2478 cat confdefs.h
>>conftest.
$ac_ext
2479 cat >>conftest.
$ac_ext <<_ACEOF
2480 /* end confdefs.h. */
2493 rm -f conftest.
$ac_objext
2494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495 (eval $ac_compile) 2>conftest.er1
2497 grep -v '^ *+' conftest.er1
>conftest.err
2499 cat conftest.err
>&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } &&
2502 { ac_try
='test -z "$ac_c_werror_flag"
2503 || test ! -s conftest.err'
2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; } &&
2509 { ac_try
='test -s conftest.$ac_objext'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; }; then
2517 echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.
$ac_ext >&5
2522 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2523 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2526 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2527 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2528 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2529 ac_test_CFLAGS
=${CFLAGS+set}
2530 ac_save_CFLAGS
=$CFLAGS
2532 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2533 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2534 if test "${ac_cv_prog_cc_g+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 cat >conftest.
$ac_ext <<_ACEOF
2540 cat confdefs.h
>>conftest.
$ac_ext
2541 cat >>conftest.
$ac_ext <<_ACEOF
2542 /* end confdefs.h. */
2552 rm -f conftest.
$ac_objext
2553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554 (eval $ac_compile) 2>conftest.er1
2556 grep -v '^ *+' conftest.er1
>conftest.err
2558 cat conftest.err
>&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } &&
2561 { ac_try
='test -z "$ac_c_werror_flag"
2562 || test ! -s conftest.err'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; } &&
2568 { ac_try
='test -s conftest.$ac_objext'
2569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; }; then
2576 echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.
$ac_ext >&5
2581 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2583 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2584 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2585 if test "$ac_test_CFLAGS" = set; then
2586 CFLAGS
=$ac_save_CFLAGS
2587 elif test $ac_cv_prog_cc_g = yes; then
2588 if test "$GCC" = yes; then
2594 if test "$GCC" = yes; then
2600 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2601 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2602 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2603 echo $ECHO_N "(cached) $ECHO_C" >&6
2605 ac_cv_prog_cc_stdc
=no
2607 cat >conftest.
$ac_ext <<_ACEOF
2610 cat confdefs.h
>>conftest.
$ac_ext
2611 cat >>conftest.
$ac_ext <<_ACEOF
2612 /* end confdefs.h. */
2615 #include <sys/types.h>
2616 #include <sys/stat.h>
2617 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2618 struct buf { int x; };
2619 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2620 static char *e (p, i)
2626 static char *f (char * (*g) (char **, int), char **p, ...)
2631 s = g (p, va_arg (v,int));
2636 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2637 function prototypes and stuff, but not '\xHH' hex character constants.
2638 These don't provoke an error unfortunately, instead are silently treated
2639 as 'x'. The following induces an error, until -std1 is added to get
2640 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2641 array size at least. It's necessary to write '\x00'==0 to get something
2642 that's true only with -std1. */
2643 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2645 int test (int i, double x);
2646 struct s1 {int (*f) (int a);};
2647 struct s2 {int (*f) (double a);};
2648 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2654 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2659 # Don't try gcc -ansi; that turns off useful extensions and
2660 # breaks some systems' header files.
2661 # AIX -qlanglvl=ansi
2662 # Ultrix and OSF/1 -std1
2663 # HP-UX 10.20 and later -Ae
2664 # HP-UX older versions -Aa -D_HPUX_SOURCE
2665 # SVR4 -Xc -D__EXTENSIONS__
2666 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2668 CC
="$ac_save_CC $ac_arg"
2669 rm -f conftest.
$ac_objext
2670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2671 (eval $ac_compile) 2>conftest.er1
2673 grep -v '^ *+' conftest.er1
>conftest.err
2675 cat conftest.err
>&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); } &&
2678 { ac_try
='test -z "$ac_c_werror_flag"
2679 || test ! -s conftest.err'
2680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; } &&
2685 { ac_try
='test -s conftest.$ac_objext'
2686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }; }; then
2691 ac_cv_prog_cc_stdc
=$ac_arg
2694 echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.
$ac_ext >&5
2698 rm -f conftest.err conftest.
$ac_objext
2700 rm -f conftest.
$ac_ext conftest.
$ac_objext
2705 case "x$ac_cv_prog_cc_stdc" in
2707 echo "$as_me:$LINENO: result: none needed" >&5
2708 echo "${ECHO_T}none needed" >&6 ;;
2710 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2711 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2712 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2715 # Some people use a C++ compiler to compile C. Since we use `exit',
2716 # in C++ we need to declare it. In case someone uses the same compiler
2717 # for both compiling C and C++ we need to have the C++ compiler decide
2718 # the declaration of exit, since it's the most demanding environment.
2719 cat >conftest.
$ac_ext <<_ACEOF
2724 rm -f conftest.
$ac_objext
2725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2726 (eval $ac_compile) 2>conftest.er1
2728 grep -v '^ *+' conftest.er1
>conftest.err
2730 cat conftest.err
>&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); } &&
2733 { ac_try
='test -z "$ac_c_werror_flag"
2734 || test ! -s conftest.err'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; } &&
2740 { ac_try
='test -s conftest.$ac_objext'
2741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; }; then
2746 for ac_declaration
in \
2748 'extern "C" void std::exit (int) throw (); using std::exit;' \
2749 'extern "C" void std::exit (int); using std::exit;' \
2750 'extern "C" void exit (int) throw ();' \
2751 'extern "C" void exit (int);' \
2754 cat >conftest.
$ac_ext <<_ACEOF
2757 cat confdefs.h
>>conftest.
$ac_ext
2758 cat >>conftest.
$ac_ext <<_ACEOF
2759 /* end confdefs.h. */
2770 rm -f conftest.
$ac_objext
2771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2772 (eval $ac_compile) 2>conftest.er1
2774 grep -v '^ *+' conftest.er1
>conftest.err
2776 cat conftest.err
>&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); } &&
2779 { ac_try
='test -z "$ac_c_werror_flag"
2780 || test ! -s conftest.err'
2781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; } &&
2786 { ac_try
='test -s conftest.$ac_objext'
2787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; }; then
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.
$ac_ext >&5
2799 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2800 cat >conftest.
$ac_ext <<_ACEOF
2803 cat confdefs.h
>>conftest.
$ac_ext
2804 cat >>conftest.
$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2815 rm -f conftest.
$ac_objext
2816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2817 (eval $ac_compile) 2>conftest.er1
2819 grep -v '^ *+' conftest.er1
>conftest.err
2821 cat conftest.err
>&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); } &&
2824 { ac_try
='test -z "$ac_c_werror_flag"
2825 || test ! -s conftest.err'
2826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; } &&
2831 { ac_try
='test -s conftest.$ac_objext'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; }; then
2839 echo "$as_me: failed program was:" >&5
2840 sed 's/^/| /' conftest.
$ac_ext >&5
2843 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2846 if test -n "$ac_declaration"; then
2847 echo '#ifdef __cplusplus' >>confdefs.h
2848 echo $ac_declaration >>confdefs.h
2849 echo '#endif' >>confdefs.h
2853 echo "$as_me: failed program was:" >&5
2854 sed 's/^/| /' conftest.
$ac_ext >&5
2857 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2859 ac_cpp
='$CPP $CPPFLAGS'
2860 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2861 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2862 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2863 DEPDIR
="${am__leading_dot}deps"
2865 ac_config_commands
="$ac_config_commands depfiles"
2868 am_make
=${MAKE-make}
2869 cat > confinc
<< 'END'
2874 # If we don't find an include directive, just comment out the code.
2875 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2876 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2880 # First try GNU make style include.
2881 echo "include confinc" > confmf
2882 # We grep out `Entering directory' and `Leaving directory'
2883 # messages which can occur if `w' ends up in MAKEFLAGS.
2884 # In particular we don't look at `^make:' because GNU make might
2885 # be invoked under some other name (usually "gmake"), in which
2886 # case it prints its new name instead of `make'.
2887 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2892 # Now try BSD make style include.
2893 if test "$am__include" = "#"; then
2894 echo '.include "confinc"' > confmf
2895 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2896 am__include
=.include
2903 echo "$as_me:$LINENO: result: $_am_result" >&5
2904 echo "${ECHO_T}$_am_result" >&6
2905 rm -f confinc confmf
2907 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2908 if test "${enable_dependency_tracking+set}" = set; then
2909 enableval
="$enable_dependency_tracking"
2912 if test "x$enable_dependency_tracking" != xno
; then
2913 am_depcomp
="$ac_aux_dir/depcomp"
2918 if test "x$enable_dependency_tracking" != xno; then
2929 depcc
="$CC" am_compiler_list
=
2931 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2932 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2933 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2934 echo $ECHO_N "(cached) $ECHO_C" >&6
2936 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2937 # We make a subdir and do the tests there. Otherwise we can end up
2938 # making bogus files that we don't know about and never remove. For
2939 # instance it was reported that on HP-UX the gcc test will end up
2940 # making a dummy file named `D' -- because `-MD' means `put the output
2943 # Copy depcomp to subdir because otherwise we won't find it if we're
2944 # using a relative directory.
2945 cp "$am_depcomp" conftest.dir
2947 # We will build objects and dependencies in a subdirectory because
2948 # it helps to detect inapplicable dependency modes. For instance
2949 # both Tru64's cc and ICC support -MD to output dependencies as a
2950 # side effect of compilation, but ICC will put the dependencies in
2951 # the current directory while Tru64 will put them in the object
2955 am_cv_CC_dependencies_compiler_type
=none
2956 if test "$am_compiler_list" = ""; then
2957 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2959 for depmode
in $am_compiler_list; do
2960 # Setup a source with many dependencies, because some compilers
2961 # like to wrap large dependency lists on column 80 (with \), and
2962 # we should not choose a depcomp mode which is confused by this.
2964 # We need to recreate these files for each test, as the compiler may
2965 # overwrite some of them when testing with obscure command lines.
2966 # This happens at least with the AIX C compiler.
2968 for i
in 1 2 3 4 5 6; do
2969 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
2970 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2971 # Solaris 8's {/usr,}/bin/sh.
2972 touch sub
/conftst
$i.h
2974 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2978 # after this tag, mechanisms are not by side-effect, so they'll
2979 # only be used when explicitly requested
2980 if test "x$enable_dependency_tracking" = xyes
; then
2988 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2989 # mode. It turns out that the SunPro C++ compiler does not properly
2990 # handle `-M -o', and we need to detect this.
2991 if depmode
=$depmode \
2992 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
2993 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
2994 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
2995 >/dev
/null
2>conftest.err
&&
2996 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
2997 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
2998 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2999 # icc doesn't choke on unknown options, it will just issue warnings
3000 # or remarks (even with -Werror). So we grep stderr for any message
3001 # that says an option was ignored or not supported.
3002 # When given -MP, icc 7.0 and 7.1 complain thusly:
3003 # icc: Command line warning: ignoring option '-M'; no argument required
3004 # The diagnosis changed in icc 8.0:
3005 # icc: Command line remark: option '-MP' not supported
3006 if (grep 'ignoring option' conftest.err ||
3007 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3008 am_cv_CC_dependencies_compiler_type
=$depmode
3017 am_cv_CC_dependencies_compiler_type
=none
3021 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3022 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3023 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3028 test "x$enable_dependency_tracking" != xno \
3029 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3031 am__fastdepCC_FALSE
='#'
3033 am__fastdepCC_TRUE
='#'
3034 am__fastdepCC_FALSE
=
3038 # Check whether --enable-shared or --disable-shared was given.
3039 if test "${enable_shared+set}" = set; then
3040 enableval
="$enable_shared"
3041 p
=${PACKAGE-default}
3043 yes) enable_shared
=yes ;;
3044 no
) enable_shared
=no
;;
3047 # Look at the argument we got. We use all the common list separators.
3048 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3049 for pkg
in $enableval; do
3051 if test "X$pkg" = "X$p"; then
3062 # Check whether --enable-static or --disable-static was given.
3063 if test "${enable_static+set}" = set; then
3064 enableval
="$enable_static"
3065 p
=${PACKAGE-default}
3067 yes) enable_static
=yes ;;
3068 no
) enable_static
=no
;;
3071 # Look at the argument we got. We use all the common list separators.
3072 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3073 for pkg
in $enableval; do
3075 if test "X$pkg" = "X$p"; then
3086 # Check whether --enable-fast-install or --disable-fast-install was given.
3087 if test "${enable_fast_install+set}" = set; then
3088 enableval
="$enable_fast_install"
3089 p
=${PACKAGE-default}
3091 yes) enable_fast_install
=yes ;;
3092 no
) enable_fast_install
=no
;;
3094 enable_fast_install
=no
3095 # Look at the argument we got. We use all the common list separators.
3096 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3097 for pkg
in $enableval; do
3099 if test "X$pkg" = "X$p"; then
3100 enable_fast_install
=yes
3107 enable_fast_install
=yes
3110 # Make sure we can run config.sub.
3111 $ac_config_sub sun4
>/dev
/null
2>&1 ||
3112 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3113 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3114 { (exit 1); exit 1; }; }
3116 echo "$as_me:$LINENO: checking build system type" >&5
3117 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3118 if test "${ac_cv_build+set}" = set; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 ac_cv_build_alias
=$build_alias
3122 test -z "$ac_cv_build_alias" &&
3123 ac_cv_build_alias
=`$ac_config_guess`
3124 test -z "$ac_cv_build_alias" &&
3125 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3126 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3127 { (exit 1); exit 1; }; }
3128 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
3129 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3130 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3131 { (exit 1); exit 1; }; }
3134 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3135 echo "${ECHO_T}$ac_cv_build" >&6
3137 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3138 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3139 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3142 echo "$as_me:$LINENO: checking host system type" >&5
3143 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3144 if test "${ac_cv_host+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 ac_cv_host_alias
=$host_alias
3148 test -z "$ac_cv_host_alias" &&
3149 ac_cv_host_alias
=$ac_cv_build_alias
3150 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
3151 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3152 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3153 { (exit 1); exit 1; }; }
3156 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3157 echo "${ECHO_T}$ac_cv_host" >&6
3159 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3160 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3161 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3164 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3165 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3166 if test "${lt_cv_path_SED+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3169 # Loop through the user's path and test for sed and gsed.
3170 # Then use that list of sed's as ones to test for truncation.
3171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3175 test -z "$as_dir" && as_dir
=.
3176 for lt_ac_prog
in sed gsed
; do
3177 for ac_exec_ext
in '' $ac_executable_extensions; do
3178 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3179 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3186 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3187 # along with /bin/sed that truncates output.
3188 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
3189 test ! -f $lt_ac_sed && continue
3190 cat /dev
/null
> conftest.
in
3192 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
3193 # Check for GNU sed and select it if it is found.
3194 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
3195 lt_cv_path_SED
=$lt_ac_sed
3199 cat conftest.
in conftest.
in >conftest.tmp
3200 mv conftest.tmp conftest.
in
3201 cp conftest.
in conftest.
nl
3203 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
3204 cmp -s conftest.out conftest.
nl ||
break
3205 # 10000 chars as input seems more than enough
3206 test $lt_ac_count -gt 10 && break
3207 lt_ac_count
=`expr $lt_ac_count + 1`
3208 if test $lt_ac_count -gt $lt_ac_max; then
3209 lt_ac_max
=$lt_ac_count
3210 lt_cv_path_SED
=$lt_ac_sed
3218 echo "$as_me:$LINENO: result: $SED" >&5
3219 echo "${ECHO_T}$SED" >&6
3221 echo "$as_me:$LINENO: checking for egrep" >&5
3222 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3223 if test "${ac_cv_prog_egrep+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3227 then ac_cv_prog_egrep
='grep -E'
3228 else ac_cv_prog_egrep
='egrep'
3231 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3232 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3233 EGREP
=$ac_cv_prog_egrep
3237 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3238 if test "${with_gnu_ld+set}" = set; then
3239 withval
="$with_gnu_ld"
3240 test "$withval" = no || with_gnu_ld
=yes
3245 if test "$GCC" = yes; then
3246 # Check if gcc -print-prog-name=ld gives a path.
3247 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3248 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3251 # gcc leaves a trailing carriage return which upsets mingw
3252 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3254 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
3257 # Accept absolute paths.
3259 re_direlt
='/[^/][^/]*/\.\./'
3260 # Canonicalize the pathname of ld
3261 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
3262 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
3263 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3265 test -z "$LD" && LD
="$ac_prog"
3268 # If it fails, then pretend we aren't using GCC.
3272 # If it is relative, then search for the first ld in PATH.
3276 elif test "$with_gnu_ld" = yes; then
3277 echo "$as_me:$LINENO: checking for GNU ld" >&5
3278 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3280 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3281 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3283 if test "${lt_cv_path_LD+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 if test -z "$LD"; then
3287 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3288 for ac_dir
in $PATH; do
3290 test -z "$ac_dir" && ac_dir
=.
3291 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
3292 lt_cv_path_LD
="$ac_dir/$ac_prog"
3293 # Check to see if the program is GNU ld. I'd rather use --version,
3294 # but apparently some GNU ld's only accept -v.
3295 # Break only if it was the GNU/non-GNU ld that we prefer.
3296 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3297 *GNU
* |
*'with BFD'*)
3298 test "$with_gnu_ld" != no
&& break
3301 test "$with_gnu_ld" != yes && break
3308 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
3313 if test -n "$LD"; then
3314 echo "$as_me:$LINENO: result: $LD" >&5
3315 echo "${ECHO_T}$LD" >&6
3317 echo "$as_me:$LINENO: result: no" >&5
3318 echo "${ECHO_T}no" >&6
3320 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3321 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3322 { (exit 1); exit 1; }; }
3323 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3324 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3325 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3329 case `$LD -v 2>&1 </dev/null` in
3330 *GNU
* |
*'with BFD'*)
3331 lt_cv_prog_gnu_ld
=yes
3334 lt_cv_prog_gnu_ld
=no
3338 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3339 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3340 with_gnu_ld
=$lt_cv_prog_gnu_ld
3343 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3344 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3345 if test "${lt_cv_ld_reload_flag+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 lt_cv_ld_reload_flag
='-r'
3350 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3351 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3352 reload_flag
=$lt_cv_ld_reload_flag
3353 case $reload_flag in
3355 *) reload_flag
=" $reload_flag" ;;
3357 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
3360 if test "$GCC" = yes; then
3361 reload_cmds
='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3363 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
3368 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3369 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3370 if test "${lt_cv_path_NM+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3373 if test -n "$NM"; then
3374 # Let the user override the test.
3377 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3378 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
3380 test -z "$ac_dir" && ac_dir
=.
3381 tmp_nm
="$ac_dir/${ac_tool_prefix}nm"
3382 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
3383 # Check to see if the nm accepts a BSD-compat flag.
3384 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3385 # nm: unknown option "B" ignored
3386 # Tru64's nm complains that /dev/null is an invalid object file
3387 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3388 */dev
/null
* |
*'Invalid file or object type'*)
3389 lt_cv_path_NM
="$tmp_nm -B"
3393 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3395 lt_cv_path_NM
="$tmp_nm -p"
3399 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3400 continue # so that we can try to find one that supports BSD flags
3407 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
3410 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3411 echo "${ECHO_T}$lt_cv_path_NM" >&6
3414 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3415 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3417 if test "$LN_S" = "ln -s"; then
3418 echo "$as_me:$LINENO: result: yes" >&5
3419 echo "${ECHO_T}yes" >&6
3421 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3422 echo "${ECHO_T}no, using $LN_S" >&6
3425 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3426 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3427 if test "${lt_cv_deplibs_check_method+set}" = set; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3430 lt_cv_file_magic_cmd
='$MAGIC_CMD'
3431 lt_cv_file_magic_test_file
=
3432 lt_cv_deplibs_check_method
='unknown'
3433 # Need to set the preceding variable on all platforms that support
3434 # interlibrary dependencies.
3435 # 'none' -- dependencies not supported.
3436 # `unknown' -- same as none, but documents that we really don't know.
3437 # 'pass_all' -- all dependencies passed with no checks.
3438 # 'test_compile' -- check by making test program.
3439 # 'file_magic [[regex]]' -- check by looking for files in library path
3440 # which responds to the $file_magic_cmd with a given extended regex.
3441 # If you have `file' or equivalent on your system and you're not sure
3442 # whether `pass_all' will *always* work, you probably want this one.
3446 lt_cv_deplibs_check_method
=pass_all
3450 lt_cv_deplibs_check_method
=pass_all
3454 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3455 lt_cv_file_magic_cmd
='/usr/bin/file -L'
3456 lt_cv_file_magic_test_file
=/shlib
/libc.so
3460 # func_win32_libid is a shell function defined in ltmain.sh
3461 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
3462 lt_cv_file_magic_cmd
='func_win32_libid'
3466 # Base MSYS/MinGW do not provide the 'file' command needed by
3467 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3468 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
3469 lt_cv_file_magic_cmd
='$OBJDUMP -f'
3472 darwin
* | rhapsody
*)
3473 lt_cv_deplibs_check_method
=pass_all
3476 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
3477 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
3480 # Not sure whether the presence of OpenBSD here was a mistake.
3481 # Let's accept both of them until this is cleared up.
3482 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3483 lt_cv_file_magic_cmd
=/usr
/bin
/file
3484 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
3488 lt_cv_deplibs_check_method
=pass_all
3493 lt_cv_deplibs_check_method
=pass_all
3496 hpux10.20
* | hpux11
*)
3497 lt_cv_file_magic_cmd
=/usr
/bin
/file
3500 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3501 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
3504 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]'
3505 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
3508 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3509 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
3514 irix5
* | irix6
* | nonstopux
*)
3516 *-32|
*"-32 ") libmagic
=32-bit;;
3517 *-n32|
*"-n32 ") libmagic
=N32
;;
3518 *-64|
*"-64 ") libmagic
=64-bit;;
3519 *) libmagic
=never-match
;;
3521 lt_cv_deplibs_check_method
=pass_all
3524 # This must be Linux ELF.
3526 lt_cv_deplibs_check_method
=pass_all
3530 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
3531 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3533 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3538 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3539 lt_cv_file_magic_cmd
=/usr
/bin
/file
3540 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
3544 lt_cv_deplibs_check_method
=unknown
3548 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3549 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3551 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3555 osf3
* | osf4
* | osf5
*)
3556 lt_cv_deplibs_check_method
=pass_all
3560 lt_cv_deplibs_check_method
=pass_all
3564 lt_cv_deplibs_check_method
=pass_all
3567 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
3568 case $host_vendor in
3570 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]'
3571 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
3574 lt_cv_deplibs_check_method
=pass_all
3577 lt_cv_file_magic_cmd
='/bin/file'
3578 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3581 lt_cv_file_magic_cmd
='/bin/file'
3582 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3583 lt_cv_file_magic_test_file
=/lib
/libc.so
3586 lt_cv_deplibs_check_method
=pass_all
3591 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
* | sysv4
*uw2
*)
3592 lt_cv_deplibs_check_method
=pass_all
3597 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3598 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3599 file_magic_cmd
=$lt_cv_file_magic_cmd
3600 deplibs_check_method
=$lt_cv_deplibs_check_method
3601 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
3606 # If no C compiler was specified, use CC.
3609 # Allow CC to be a program name with arguments.
3613 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3614 if test "${enable_libtool_lock+set}" = set; then
3615 enableval
="$enable_libtool_lock"
3618 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
3620 # Some flags need to be propagated to the compiler or linker for good
3624 # Find out which ABI we are using.
3625 echo 'int i;' > conftest.
$ac_ext
3626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3627 (eval $ac_compile) 2>&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; then
3631 case `/usr/bin/file conftest.$ac_objext` in
3643 # Find out which ABI we are using.
3644 echo '#line 3644 "configure"' > conftest.
$ac_ext
3645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3646 (eval $ac_compile) 2>&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; then
3650 if test "$lt_cv_prog_gnu_ld" = yes; then
3651 case `/usr/bin/file conftest.$ac_objext` in
3653 LD
="${LD-ld} -melf32bsmip"
3656 LD
="${LD-ld} -melf32bmipn32"
3659 LD
="${LD-ld} -melf64bmip"
3663 case `/usr/bin/file conftest.$ac_objext` in
3679 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
3680 # Find out which ABI we are using.
3681 echo 'int i;' > conftest.
$ac_ext
3682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3683 (eval $ac_compile) 2>&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); }; then
3687 case "`/usr/bin/file conftest.o`" in
3691 LD
="${LD-ld} -m elf_i386"
3693 ppc64-
*linux
*|powerpc64-
*linux
*)
3694 LD
="${LD-ld} -m elf32ppclinux"
3697 LD
="${LD-ld} -m elf_s390"
3700 LD
="${LD-ld} -m elf32_sparc"
3707 LD
="${LD-ld} -m elf_x86_64"
3709 ppc
*-*linux
*|powerpc
*-*linux
*)
3710 LD
="${LD-ld} -m elf64ppc"
3713 LD
="${LD-ld} -m elf64_s390"
3716 LD
="${LD-ld} -m elf64_sparc"
3726 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3727 SAVE_CFLAGS
="$CFLAGS"
3728 CFLAGS
="$CFLAGS -belf"
3729 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3730 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3731 if test "${lt_cv_cc_needs_belf+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 ac_cpp
='$CPP $CPPFLAGS'
3736 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3740 cat >conftest.
$ac_ext <<_ACEOF
3743 cat confdefs.h
>>conftest.
$ac_ext
3744 cat >>conftest.
$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3755 rm -f conftest.
$ac_objext conftest
$ac_exeext
3756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3757 (eval $ac_link) 2>conftest.er1
3759 grep -v '^ *+' conftest.er1
>conftest.err
3761 cat conftest.err
>&5
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); } &&
3764 { ac_try
='test -z "$ac_c_werror_flag"
3765 || test ! -s conftest.err'
3766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }; } &&
3771 { ac_try
='test -s conftest$ac_exeext'
3772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); }; }; then
3777 lt_cv_cc_needs_belf
=yes
3779 echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.
$ac_ext >&5
3782 lt_cv_cc_needs_belf
=no
3784 rm -f conftest.err conftest.
$ac_objext \
3785 conftest
$ac_exeext conftest.
$ac_ext
3787 ac_cpp
='$CPP $CPPFLAGS'
3788 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3793 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3794 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3795 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
3796 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3797 CFLAGS
="$SAVE_CFLAGS"
3803 need_locks
="$enable_libtool_lock"
3807 ac_cpp
='$CPP $CPPFLAGS'
3808 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3811 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3812 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3813 # On Suns, sometimes $CPP names a directory.
3814 if test -n "$CPP" && test -d "$CPP"; then
3817 if test -z "$CPP"; then
3818 if test "${ac_cv_prog_CPP+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 # Double quotes because CPP needs to be expanded
3822 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3825 for ac_c_preproc_warn_flag
in '' yes
3827 # Use a header file that comes with gcc, so configuring glibc
3828 # with a fresh cross-compiler works.
3829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3830 # <limits.h> exists even on freestanding compilers.
3831 # On the NeXT, cc -E runs the code through the compiler's parser,
3832 # not just through cpp. "Syntax error" is here to catch this case.
3833 cat >conftest.
$ac_ext <<_ACEOF
3836 cat confdefs.h
>>conftest.
$ac_ext
3837 cat >>conftest.
$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3840 # include <limits.h>
3842 # include <assert.h>
3846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3847 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3849 grep -v '^ *+' conftest.er1
>conftest.err
3851 cat conftest.err
>&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } >/dev
/null
; then
3854 if test -s conftest.err
; then
3855 ac_cpp_err
=$ac_c_preproc_warn_flag
3856 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3863 if test -z "$ac_cpp_err"; then
3866 echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.
$ac_ext >&5
3869 # Broken: fails on valid input.
3872 rm -f conftest.err conftest.
$ac_ext
3874 # OK, works on sane cases. Now check whether non-existent headers
3875 # can be detected and how.
3876 cat >conftest.
$ac_ext <<_ACEOF
3879 cat confdefs.h
>>conftest.
$ac_ext
3880 cat >>conftest.
$ac_ext <<_ACEOF
3881 /* end confdefs.h. */
3882 #include <ac_nonexistent.h>
3884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3885 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3887 grep -v '^ *+' conftest.er1
>conftest.err
3889 cat conftest.err
>&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); } >/dev
/null
; then
3892 if test -s conftest.err
; then
3893 ac_cpp_err
=$ac_c_preproc_warn_flag
3894 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3901 if test -z "$ac_cpp_err"; then
3902 # Broken: success on invalid input.
3905 echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.
$ac_ext >&5
3908 # Passes both tests.
3912 rm -f conftest.err conftest.
$ac_ext
3915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3916 rm -f conftest.err conftest.
$ac_ext
3917 if $ac_preproc_ok; then
3929 echo "$as_me:$LINENO: result: $CPP" >&5
3930 echo "${ECHO_T}$CPP" >&6
3932 for ac_c_preproc_warn_flag
in '' yes
3934 # Use a header file that comes with gcc, so configuring glibc
3935 # with a fresh cross-compiler works.
3936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3937 # <limits.h> exists even on freestanding compilers.
3938 # On the NeXT, cc -E runs the code through the compiler's parser,
3939 # not just through cpp. "Syntax error" is here to catch this case.
3940 cat >conftest.
$ac_ext <<_ACEOF
3943 cat confdefs.h
>>conftest.
$ac_ext
3944 cat >>conftest.
$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3947 # include <limits.h>
3949 # include <assert.h>
3953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3954 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3956 grep -v '^ *+' conftest.er1
>conftest.err
3958 cat conftest.err
>&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } >/dev
/null
; then
3961 if test -s conftest.err
; then
3962 ac_cpp_err
=$ac_c_preproc_warn_flag
3963 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3970 if test -z "$ac_cpp_err"; then
3973 echo "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.
$ac_ext >&5
3976 # Broken: fails on valid input.
3979 rm -f conftest.err conftest.
$ac_ext
3981 # OK, works on sane cases. Now check whether non-existent headers
3982 # can be detected and how.
3983 cat >conftest.
$ac_ext <<_ACEOF
3986 cat confdefs.h
>>conftest.
$ac_ext
3987 cat >>conftest.
$ac_ext <<_ACEOF
3988 /* end confdefs.h. */
3989 #include <ac_nonexistent.h>
3991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3992 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3994 grep -v '^ *+' conftest.er1
>conftest.err
3996 cat conftest.err
>&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } >/dev
/null
; then
3999 if test -s conftest.err
; then
4000 ac_cpp_err
=$ac_c_preproc_warn_flag
4001 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4008 if test -z "$ac_cpp_err"; then
4009 # Broken: success on invalid input.
4012 echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.
$ac_ext >&5
4015 # Passes both tests.
4019 rm -f conftest.err conftest.
$ac_ext
4022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4023 rm -f conftest.err conftest.
$ac_ext
4024 if $ac_preproc_ok; then
4027 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4028 See \`config.log' for more details." >&5
4029 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4030 See \`config.log' for more details." >&2;}
4031 { (exit 1); exit 1; }; }
4035 ac_cpp
='$CPP $CPPFLAGS'
4036 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4041 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4043 if test "${ac_cv_header_stdc+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 cat >conftest.
$ac_ext <<_ACEOF
4049 cat confdefs.h
>>conftest.
$ac_ext
4050 cat >>conftest.
$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4065 rm -f conftest.
$ac_objext
4066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4067 (eval $ac_compile) 2>conftest.er1
4069 grep -v '^ *+' conftest.er1
>conftest.err
4071 cat conftest.err
>&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } &&
4074 { ac_try
='test -z "$ac_c_werror_flag"
4075 || test ! -s conftest.err'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; } &&
4081 { ac_try
='test -s conftest.$ac_objext'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
4087 ac_cv_header_stdc
=yes
4089 echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.
$ac_ext >&5
4092 ac_cv_header_stdc
=no
4094 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4096 if test $ac_cv_header_stdc = yes; then
4097 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4098 cat >conftest.
$ac_ext <<_ACEOF
4101 cat confdefs.h
>>conftest.
$ac_ext
4102 cat >>conftest.
$ac_ext <<_ACEOF
4103 /* end confdefs.h. */
4107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4108 $EGREP "memchr" >/dev
/null
2>&1; then
4111 ac_cv_header_stdc
=no
4117 if test $ac_cv_header_stdc = yes; then
4118 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4119 cat >conftest.
$ac_ext <<_ACEOF
4122 cat confdefs.h
>>conftest.
$ac_ext
4123 cat >>conftest.
$ac_ext <<_ACEOF
4124 /* end confdefs.h. */
4128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4129 $EGREP "free" >/dev
/null
2>&1; then
4132 ac_cv_header_stdc
=no
4138 if test $ac_cv_header_stdc = yes; then
4139 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4140 if test "$cross_compiling" = yes; then
4143 cat >conftest.
$ac_ext <<_ACEOF
4146 cat confdefs.h
>>conftest.
$ac_ext
4147 cat >>conftest.
$ac_ext <<_ACEOF
4148 /* end confdefs.h. */
4150 #if ((' ' & 0x0FF) == 0x020)
4151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4154 # define ISLOWER(c) \
4155 (('a' <= (c) && (c) <= 'i') \
4156 || ('j' <= (c) && (c) <= 'r') \
4157 || ('s' <= (c) && (c) <= 'z'))
4158 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4166 for (i = 0; i < 256; i++)
4167 if (XOR (islower (i), ISLOWER (i))
4168 || toupper (i) != TOUPPER (i))
4173 rm -f conftest
$ac_exeext
4174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4175 (eval $ac_link) 2>&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
4186 echo "$as_me: program exited with status $ac_status" >&5
4187 echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.
$ac_ext >&5
4191 ac_cv_header_stdc
=no
4193 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4197 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4198 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4199 if test $ac_cv_header_stdc = yes; then
4201 cat >>confdefs.h
<<\_ACEOF
4202 #define STDC_HEADERS 1
4207 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4217 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4218 inttypes.h stdint.h unistd.h
4220 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4221 echo "$as_me:$LINENO: checking for $ac_header" >&5
4222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 cat >conftest.
$ac_ext <<_ACEOF
4229 cat confdefs.h
>>conftest.
$ac_ext
4230 cat >>conftest.
$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4232 $ac_includes_default
4234 #include <$ac_header>
4236 rm -f conftest.
$ac_objext
4237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4238 (eval $ac_compile) 2>conftest.er1
4240 grep -v '^ *+' conftest.er1
>conftest.err
4242 cat conftest.err
>&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); } &&
4245 { ac_try
='test -z "$ac_c_werror_flag"
4246 || test ! -s conftest.err'
4247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); }; } &&
4252 { ac_try
='test -s conftest.$ac_objext'
4253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); }; }; then
4258 eval "$as_ac_Header=yes"
4260 echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.
$ac_ext >&5
4263 eval "$as_ac_Header=no"
4265 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4270 cat >>confdefs.h
<<_ACEOF
4271 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4280 for ac_header
in dlfcn.h
4282 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4284 echo "$as_me:$LINENO: checking for $ac_header" >&5
4285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4292 # Is the header compilable?
4293 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4295 cat >conftest.
$ac_ext <<_ACEOF
4298 cat confdefs.h
>>conftest.
$ac_ext
4299 cat >>conftest.
$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4301 $ac_includes_default
4302 #include <$ac_header>
4304 rm -f conftest.
$ac_objext
4305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4306 (eval $ac_compile) 2>conftest.er1
4308 grep -v '^ *+' conftest.er1
>conftest.err
4310 cat conftest.err
>&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } &&
4313 { ac_try
='test -z "$ac_c_werror_flag"
4314 || test ! -s conftest.err'
4315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; } &&
4320 { ac_try
='test -s conftest.$ac_objext'
4321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; }; then
4326 ac_header_compiler
=yes
4328 echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.
$ac_ext >&5
4331 ac_header_compiler
=no
4333 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4335 echo "${ECHO_T}$ac_header_compiler" >&6
4337 # Is the header present?
4338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4340 cat >conftest.
$ac_ext <<_ACEOF
4343 cat confdefs.h
>>conftest.
$ac_ext
4344 cat >>conftest.
$ac_ext <<_ACEOF
4345 /* end confdefs.h. */
4346 #include <$ac_header>
4348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4349 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4351 grep -v '^ *+' conftest.er1
>conftest.err
4353 cat conftest.err
>&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } >/dev
/null
; then
4356 if test -s conftest.err
; then
4357 ac_cpp_err
=$ac_c_preproc_warn_flag
4358 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4365 if test -z "$ac_cpp_err"; then
4366 ac_header_preproc
=yes
4368 echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.
$ac_ext >&5
4371 ac_header_preproc
=no
4373 rm -f conftest.err conftest.
$ac_ext
4374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4375 echo "${ECHO_T}$ac_header_preproc" >&6
4377 # So? What about this header?
4378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4384 ac_header_preproc
=yes
4387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4390 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4394 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4401 ## ------------------------------------------ ##
4402 ## Report this to the AC_PACKAGE_NAME lists. ##
4403 ## ------------------------------------------ ##
4406 sed "s/^/$as_me: WARNING: /" >&2
4409 echo "$as_me:$LINENO: checking for $ac_header" >&5
4410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 eval "$as_ac_Header=\$ac_header_preproc"
4416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4421 cat >>confdefs.h
<<_ACEOF
4422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4430 ac_cpp
='$CXXCPP $CPPFLAGS'
4431 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4434 if test -n "$ac_tool_prefix"; then
4435 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
4437 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4438 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4439 echo "$as_me:$LINENO: checking for $ac_word" >&5
4440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4441 if test "${ac_cv_prog_CXX+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 if test -n "$CXX"; then
4445 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4451 test -z "$as_dir" && as_dir
=.
4452 for ac_exec_ext
in '' $ac_executable_extensions; do
4453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4454 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4464 if test -n "$CXX"; then
4465 echo "$as_me:$LINENO: result: $CXX" >&5
4466 echo "${ECHO_T}$CXX" >&6
4468 echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6
4472 test -n "$CXX" && break
4475 if test -z "$CXX"; then
4477 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
4479 # Extract the first word of "$ac_prog", so it can be a program name with args.
4480 set dummy
$ac_prog; ac_word
=$2
4481 echo "$as_me:$LINENO: checking for $ac_word" >&5
4482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4483 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 if test -n "$ac_ct_CXX"; then
4487 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4489 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4493 test -z "$as_dir" && as_dir
=.
4494 for ac_exec_ext
in '' $ac_executable_extensions; do
4495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4496 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4505 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4506 if test -n "$ac_ct_CXX"; then
4507 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4508 echo "${ECHO_T}$ac_ct_CXX" >&6
4510 echo "$as_me:$LINENO: result: no" >&5
4511 echo "${ECHO_T}no" >&6
4514 test -n "$ac_ct_CXX" && break
4516 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
4522 # Provide some information about the compiler.
4523 echo "$as_me:$LINENO:" \
4524 "checking for C++ compiler version" >&5
4525 ac_compiler
=`set X $ac_compile; echo $2`
4526 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4527 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }
4531 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4532 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }
4536 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4537 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }
4542 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4543 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4544 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 cat >conftest.
$ac_ext <<_ACEOF
4550 cat confdefs.h
>>conftest.
$ac_ext
4551 cat >>conftest.
$ac_ext <<_ACEOF
4552 /* end confdefs.h. */
4565 rm -f conftest.
$ac_objext
4566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4567 (eval $ac_compile) 2>conftest.er1
4569 grep -v '^ *+' conftest.er1
>conftest.err
4571 cat conftest.err
>&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); } &&
4574 { ac_try
='test -z "$ac_cxx_werror_flag"
4575 || test ! -s conftest.err'
4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }; } &&
4581 { ac_try
='test -s conftest.$ac_objext'
4582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; }; then
4589 echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.
$ac_ext >&5
4594 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4595 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4598 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4599 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4600 GXX
=`test $ac_compiler_gnu = yes && echo yes`
4601 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4602 ac_save_CXXFLAGS
=$CXXFLAGS
4604 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4605 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4606 if test "${ac_cv_prog_cxx_g+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 cat >conftest.
$ac_ext <<_ACEOF
4612 cat confdefs.h
>>conftest.
$ac_ext
4613 cat >>conftest.
$ac_ext <<_ACEOF
4614 /* end confdefs.h. */
4624 rm -f conftest.
$ac_objext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626 (eval $ac_compile) 2>conftest.er1
4628 grep -v '^ *+' conftest.er1
>conftest.err
4630 cat conftest.err
>&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } &&
4633 { ac_try
='test -z "$ac_cxx_werror_flag"
4634 || test ! -s conftest.err'
4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; } &&
4640 { ac_try
='test -s conftest.$ac_objext'
4641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
4646 ac_cv_prog_cxx_g
=yes
4648 echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.
$ac_ext >&5
4653 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4655 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4656 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4657 if test "$ac_test_CXXFLAGS" = set; then
4658 CXXFLAGS
=$ac_save_CXXFLAGS
4659 elif test $ac_cv_prog_cxx_g = yes; then
4660 if test "$GXX" = yes; then
4666 if test "$GXX" = yes; then
4672 for ac_declaration
in \
4674 'extern "C" void std::exit (int) throw (); using std::exit;' \
4675 'extern "C" void std::exit (int); using std::exit;' \
4676 'extern "C" void exit (int) throw ();' \
4677 'extern "C" void exit (int);' \
4680 cat >conftest.
$ac_ext <<_ACEOF
4683 cat confdefs.h
>>conftest.
$ac_ext
4684 cat >>conftest.
$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4696 rm -f conftest.
$ac_objext
4697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4698 (eval $ac_compile) 2>conftest.er1
4700 grep -v '^ *+' conftest.er1
>conftest.err
4702 cat conftest.err
>&5
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); } &&
4705 { ac_try
='test -z "$ac_cxx_werror_flag"
4706 || test ! -s conftest.err'
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; } &&
4712 { ac_try
='test -s conftest.$ac_objext'
4713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }; }; then
4720 echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.
$ac_ext >&5
4725 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4726 cat >conftest.
$ac_ext <<_ACEOF
4729 cat confdefs.h
>>conftest.
$ac_ext
4730 cat >>conftest.
$ac_ext <<_ACEOF
4731 /* end confdefs.h. */
4741 rm -f conftest.
$ac_objext
4742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4743 (eval $ac_compile) 2>conftest.er1
4745 grep -v '^ *+' conftest.er1
>conftest.err
4747 cat conftest.err
>&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } &&
4750 { ac_try
='test -z "$ac_cxx_werror_flag"
4751 || test ! -s conftest.err'
4752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; } &&
4757 { ac_try
='test -s conftest.$ac_objext'
4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; }; then
4765 echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.
$ac_ext >&5
4769 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4772 if test -n "$ac_declaration"; then
4773 echo '#ifdef __cplusplus' >>confdefs.h
4774 echo $ac_declaration >>confdefs.h
4775 echo '#endif' >>confdefs.h
4779 ac_cpp
='$CXXCPP $CPPFLAGS'
4780 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4781 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4782 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4784 depcc
="$CXX" am_compiler_list
=
4786 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4787 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4788 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
4791 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4792 # We make a subdir and do the tests there. Otherwise we can end up
4793 # making bogus files that we don't know about and never remove. For
4794 # instance it was reported that on HP-UX the gcc test will end up
4795 # making a dummy file named `D' -- because `-MD' means `put the output
4798 # Copy depcomp to subdir because otherwise we won't find it if we're
4799 # using a relative directory.
4800 cp "$am_depcomp" conftest.dir
4802 # We will build objects and dependencies in a subdirectory because
4803 # it helps to detect inapplicable dependency modes. For instance
4804 # both Tru64's cc and ICC support -MD to output dependencies as a
4805 # side effect of compilation, but ICC will put the dependencies in
4806 # the current directory while Tru64 will put them in the object
4810 am_cv_CXX_dependencies_compiler_type
=none
4811 if test "$am_compiler_list" = ""; then
4812 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4814 for depmode
in $am_compiler_list; do
4815 # Setup a source with many dependencies, because some compilers
4816 # like to wrap large dependency lists on column 80 (with \), and
4817 # we should not choose a depcomp mode which is confused by this.
4819 # We need to recreate these files for each test, as the compiler may
4820 # overwrite some of them when testing with obscure command lines.
4821 # This happens at least with the AIX C compiler.
4823 for i
in 1 2 3 4 5 6; do
4824 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4825 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4826 # Solaris 8's {/usr,}/bin/sh.
4827 touch sub
/conftst
$i.h
4829 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4833 # after this tag, mechanisms are not by side-effect, so they'll
4834 # only be used when explicitly requested
4835 if test "x$enable_dependency_tracking" = xyes
; then
4843 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4844 # mode. It turns out that the SunPro C++ compiler does not properly
4845 # handle `-M -o', and we need to detect this.
4846 if depmode
=$depmode \
4847 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
4848 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4849 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
4850 >/dev
/null
2>conftest.err
&&
4851 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4852 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
4853 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4854 # icc doesn't choke on unknown options, it will just issue warnings
4855 # or remarks (even with -Werror). So we grep stderr for any message
4856 # that says an option was ignored or not supported.
4857 # When given -MP, icc 7.0 and 7.1 complain thusly:
4858 # icc: Command line warning: ignoring option '-M'; no argument required
4859 # The diagnosis changed in icc 8.0:
4860 # icc: Command line remark: option '-MP' not supported
4861 if (grep 'ignoring option' conftest.err ||
4862 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4863 am_cv_CXX_dependencies_compiler_type
=$depmode
4872 am_cv_CXX_dependencies_compiler_type
=none
4876 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4877 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4878 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
4883 test "x$enable_dependency_tracking" != xno \
4884 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
4885 am__fastdepCXX_TRUE
=
4886 am__fastdepCXX_FALSE
='#'
4888 am__fastdepCXX_TRUE
='#'
4889 am__fastdepCXX_FALSE
=
4895 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4896 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4897 (test "X$CXX" != "Xg++"))) ; then
4899 ac_cpp
='$CXXCPP $CPPFLAGS'
4900 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4901 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4902 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4903 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4904 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4905 if test -z "$CXXCPP"; then
4906 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 # Double quotes because CXXCPP needs to be expanded
4910 for CXXCPP
in "$CXX -E" "/lib/cpp"
4913 for ac_cxx_preproc_warn_flag
in '' yes
4915 # Use a header file that comes with gcc, so configuring glibc
4916 # with a fresh cross-compiler works.
4917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4918 # <limits.h> exists even on freestanding compilers.
4919 # On the NeXT, cc -E runs the code through the compiler's parser,
4920 # not just through cpp. "Syntax error" is here to catch this case.
4921 cat >conftest.
$ac_ext <<_ACEOF
4924 cat confdefs.h
>>conftest.
$ac_ext
4925 cat >>conftest.
$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4928 # include <limits.h>
4930 # include <assert.h>
4934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4935 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4937 grep -v '^ *+' conftest.er1
>conftest.err
4939 cat conftest.err
>&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } >/dev
/null
; then
4942 if test -s conftest.err
; then
4943 ac_cpp_err
=$ac_cxx_preproc_warn_flag
4944 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
4951 if test -z "$ac_cpp_err"; then
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.
$ac_ext >&5
4957 # Broken: fails on valid input.
4960 rm -f conftest.err conftest.
$ac_ext
4962 # OK, works on sane cases. Now check whether non-existent headers
4963 # can be detected and how.
4964 cat >conftest.
$ac_ext <<_ACEOF
4967 cat confdefs.h
>>conftest.
$ac_ext
4968 cat >>conftest.
$ac_ext <<_ACEOF
4969 /* end confdefs.h. */
4970 #include <ac_nonexistent.h>
4972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4973 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4975 grep -v '^ *+' conftest.er1
>conftest.err
4977 cat conftest.err
>&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } >/dev
/null
; then
4980 if test -s conftest.err
; then
4981 ac_cpp_err
=$ac_cxx_preproc_warn_flag
4982 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
4989 if test -z "$ac_cpp_err"; then
4990 # Broken: success on invalid input.
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.
$ac_ext >&5
4996 # Passes both tests.
5000 rm -f conftest.err conftest.
$ac_ext
5003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5004 rm -f conftest.err conftest.
$ac_ext
5005 if $ac_preproc_ok; then
5010 ac_cv_prog_CXXCPP
=$CXXCPP
5013 CXXCPP
=$ac_cv_prog_CXXCPP
5015 ac_cv_prog_CXXCPP
=$CXXCPP
5017 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5018 echo "${ECHO_T}$CXXCPP" >&6
5020 for ac_cxx_preproc_warn_flag
in '' yes
5022 # Use a header file that comes with gcc, so configuring glibc
5023 # with a fresh cross-compiler works.
5024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5025 # <limits.h> exists even on freestanding compilers.
5026 # On the NeXT, cc -E runs the code through the compiler's parser,
5027 # not just through cpp. "Syntax error" is here to catch this case.
5028 cat >conftest.
$ac_ext <<_ACEOF
5031 cat confdefs.h
>>conftest.
$ac_ext
5032 cat >>conftest.
$ac_ext <<_ACEOF
5033 /* end confdefs.h. */
5035 # include <limits.h>
5037 # include <assert.h>
5041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5042 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5044 grep -v '^ *+' conftest.er1
>conftest.err
5046 cat conftest.err
>&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } >/dev
/null
; then
5049 if test -s conftest.err
; then
5050 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5051 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5058 if test -z "$ac_cpp_err"; then
5061 echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.
$ac_ext >&5
5064 # Broken: fails on valid input.
5067 rm -f conftest.err conftest.
$ac_ext
5069 # OK, works on sane cases. Now check whether non-existent headers
5070 # can be detected and how.
5071 cat >conftest.
$ac_ext <<_ACEOF
5074 cat confdefs.h
>>conftest.
$ac_ext
5075 cat >>conftest.
$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5077 #include <ac_nonexistent.h>
5079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5080 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5082 grep -v '^ *+' conftest.er1
>conftest.err
5084 cat conftest.err
>&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } >/dev
/null
; then
5087 if test -s conftest.err
; then
5088 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5089 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5096 if test -z "$ac_cpp_err"; then
5097 # Broken: success on invalid input.
5100 echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.
$ac_ext >&5
5103 # Passes both tests.
5107 rm -f conftest.err conftest.
$ac_ext
5110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5111 rm -f conftest.err conftest.
$ac_ext
5112 if $ac_preproc_ok; then
5115 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5116 See \`config.log' for more details." >&5
5117 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5118 See \`config.log' for more details." >&2;}
5119 { (exit 1); exit 1; }; }
5123 ac_cpp
='$CXXCPP $CPPFLAGS'
5124 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5125 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5126 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5132 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5133 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
5135 if test -n "$ac_tool_prefix"; then
5136 for ac_prog
in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5138 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5139 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5140 echo "$as_me:$LINENO: checking for $ac_word" >&5
5141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142 if test "${ac_cv_prog_F77+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 if test -n "$F77"; then
5146 ac_cv_prog_F77
="$F77" # Let the user override the test.
5148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5152 test -z "$as_dir" && as_dir
=.
5153 for ac_exec_ext
in '' $ac_executable_extensions; do
5154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
5156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 if test -n "$F77"; then
5166 echo "$as_me:$LINENO: result: $F77" >&5
5167 echo "${ECHO_T}$F77" >&6
5169 echo "$as_me:$LINENO: result: no" >&5
5170 echo "${ECHO_T}no" >&6
5173 test -n "$F77" && break
5176 if test -z "$F77"; then
5178 for ac_prog
in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5180 # Extract the first word of "$ac_prog", so it can be a program name with args.
5181 set dummy
$ac_prog; ac_word
=$2
5182 echo "$as_me:$LINENO: checking for $ac_word" >&5
5183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5184 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 if test -n "$ac_ct_F77"; then
5188 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
5190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5194 test -z "$as_dir" && as_dir
=.
5195 for ac_exec_ext
in '' $ac_executable_extensions; do
5196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197 ac_cv_prog_ac_ct_F77
="$ac_prog"
5198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
5207 if test -n "$ac_ct_F77"; then
5208 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5209 echo "${ECHO_T}$ac_ct_F77" >&6
5211 echo "$as_me:$LINENO: result: no" >&5
5212 echo "${ECHO_T}no" >&6
5215 test -n "$ac_ct_F77" && break
5222 # Provide some information about the compiler.
5223 echo "$as_me:5223:" \
5224 "checking for Fortran 77 compiler version" >&5
5225 ac_compiler
=`set X $ac_compile; echo $2`
5226 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5227 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); }
5231 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5232 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }
5236 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5237 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }
5243 # If we don't use `.F' as extension, the preprocessor is not run on the
5244 # input file. (Note that this only needs to work for GNU compilers.)
5247 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5248 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5249 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5250 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 cat >conftest.
$ac_ext <<_ACEOF
5260 rm -f conftest.
$ac_objext
5261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5262 (eval $ac_compile) 2>conftest.er1
5264 grep -v '^ *+' conftest.er1
>conftest.err
5266 cat conftest.err
>&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } &&
5269 { ac_try
='test -z "$ac_f77_werror_flag"
5270 || test ! -s conftest.err'
5271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); }; } &&
5276 { ac_try
='test -s conftest.$ac_objext'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; }; then
5284 echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.
$ac_ext >&5
5289 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5290 ac_cv_f77_compiler_gnu
=$ac_compiler_gnu
5293 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5294 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5296 ac_test_FFLAGS
=${FFLAGS+set}
5297 ac_save_FFLAGS
=$FFLAGS
5299 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5300 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5301 if test "${ac_cv_prog_f77_g+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 cat >conftest.
$ac_ext <<_ACEOF
5310 rm -f conftest.
$ac_objext
5311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5312 (eval $ac_compile) 2>conftest.er1
5314 grep -v '^ *+' conftest.er1
>conftest.err
5316 cat conftest.err
>&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } &&
5319 { ac_try
='test -z "$ac_f77_werror_flag"
5320 || test ! -s conftest.err'
5321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }; } &&
5326 { ac_try
='test -s conftest.$ac_objext'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; }; then
5332 ac_cv_prog_f77_g
=yes
5334 echo "$as_me: failed program was:" >&5
5335 sed 's/^/| /' conftest.
$ac_ext >&5
5339 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5342 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5343 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5344 if test "$ac_test_FFLAGS" = set; then
5345 FFLAGS
=$ac_save_FFLAGS
5346 elif test $ac_cv_prog_f77_g = yes; then
5347 if test "x$ac_cv_f77_compiler_gnu" = xyes
; then
5353 if test "x$ac_cv_f77_compiler_gnu" = xyes
; then
5360 G77
=`test $ac_compiler_gnu = yes && echo yes`
5362 ac_cpp
='$CPP $CPPFLAGS'
5363 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5364 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5365 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5369 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5371 # find the maximum length of command line arguments
5372 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5373 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5374 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 # On DJGPP, this test can blow up pretty badly due to problems in libc
5383 # (any single argument exceeding 2000 bytes causes a buffer overrun
5384 # during glob expansion). Even if it were fixed, the result of this
5385 # check would be larger than it should be.
5386 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5390 # Under GNU Hurd, this test is not required because there is
5391 # no limit to the length of command line arguments.
5392 # Libtool will interpret -1 as no limit whatsoever
5393 lt_cv_sys_max_cmd_len
=-1;
5397 # On Win9x/ME, this test blows up -- it succeeds, but takes
5398 # about 5 minutes as the teststring grows exponentially.
5399 # Worse, since 9x/ME are not pre-emptively multitasking,
5400 # you end up with a "frozen" computer, even though with patience
5401 # the test eventually succeeds (with a max line length of 256k).
5402 # Instead, let's just punt: use the minimum linelength reported by
5403 # all of the supported platforms: 8192 (on NT/2K/XP).
5404 lt_cv_sys_max_cmd_len
=8192;
5408 # On AmigaOS with pdksh, this test takes hours, literally.
5409 # So we just punt and use a minimum line length of 8192.
5410 lt_cv_sys_max_cmd_len
=8192;
5413 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5414 # This has been around since 386BSD, at least. Likely further.
5415 if test -x /sbin
/sysctl
; then
5416 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5417 elif test -x /usr
/sbin
/sysctl
; then
5418 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5420 lt_cv_sys_max_cmd_len
=65536 # usable default for *BSD
5422 # And add a safety zone
5423 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5426 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5427 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5428 # nice to cause kernel panics so lets avoid the loop below.
5429 # First set a reasonable default.
5430 lt_cv_sys_max_cmd_len
=16384
5432 if test -x /sbin
/sysconfig
; then
5433 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5434 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5439 # If test is not a shell built-in, we'll probably end up computing a
5440 # maximum length that is only half of the actual maximum length, but
5442 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5443 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5444 = "XX$teststring") >/dev
/null
2>&1 &&
5445 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
5446 lt_cv_sys_max_cmd_len
=$new_result &&
5447 test $i != 17 # 1/2 MB should be enough
5450 teststring
=$teststring$teststring
5453 # Add a significant safety factor because C++ compilers can tack on massive
5454 # amounts of additional arguments before passing them to the linker.
5455 # It appears as though 1/2 is a usable value.
5456 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5462 if test -n $lt_cv_sys_max_cmd_len ; then
5463 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5464 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5466 echo "$as_me:$LINENO: result: none" >&5
5467 echo "${ECHO_T}none" >&6
5473 # Check for command to grab the raw symbol name followed by C symbol from nm.
5474 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5475 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5476 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5480 # These are sane defaults that work on at least a few old systems.
5481 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5483 # Character class describing NM global symbol codes.
5484 symcode
='[BCDEGRST]'
5486 # Regexp to match symbols that can be accessed directly from C.
5487 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
5489 # Transform an extracted symbol line into a proper C declaration
5490 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5492 # Transform an extracted symbol line into symbol name and symbol address
5493 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'"
5495 # Define system-specific variables.
5500 cygwin
* | mingw
* | pw32
*)
5501 symcode
='[ABCDGISTW]'
5503 hpux
*) # Its linker distinguishes data from code symbols
5504 if test "$host_cpu" = ia64
; then
5505 symcode
='[ABCDEGRST]'
5507 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5508 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'"
5511 if test "$host_cpu" = ia64
; then
5512 symcode
='[ABCDGIRSTW]'
5513 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5514 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'"
5518 symcode
='[BCDEGRST]'
5521 symcode
='[BCDEGQRST]'
5531 # Handle CRLF in mingw tool chain
5535 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5539 # If we're using GNU nm, then use its standard symbol codes.
5540 case `$NM -V 2>&1` in
5541 *GNU
* |
*'with BFD'*)
5542 symcode
='[ABCDGIRSTW]' ;;
5545 # Try without a prefix undercore, then with it.
5546 for ac_symprfx
in "" "_"; do
5548 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5549 symxfrm
="\\1 $ac_symprfx\\2 \\2"
5551 # Write the raw and C identifiers.
5552 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5554 # Check to see that the pipe works correctly.
5558 cat > conftest.
$ac_ext <<EOF
5563 void nm_test_func(){}
5567 int main(){nm_test_var='a';nm_test_func();return(0);}
5570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5571 (eval $ac_compile) 2>&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; then
5575 # Now try to grab the symbols.
5577 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5578 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } && test -s "$nlist"; then
5582 # Try sorting and uniquifying the output.
5583 if sort "$nlist" |
uniq > "$nlist"T
; then
5584 mv -f "$nlist"T
"$nlist"
5589 # Make sure that we snagged all the symbols we need.
5590 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
5591 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
5592 cat <<EOF > conftest.$ac_ext
5598 # Now generate the symbol file.
5599 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5601 cat <<EOF >> conftest.$ac_ext
5602 #if defined (__STDC__) && __STDC__
5603 # define lt_ptr_t void *
5605 # define lt_ptr_t char *
5609 /* The mapping between symbol names and symbols. */
5614 lt_preloaded_symbols[] =
5617 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
5618 cat <<\EOF
>> conftest.
$ac_ext
5626 # Now try linking the two files.
5627 mv conftest.
$ac_objext conftstm.
$ac_objext
5628 lt_save_LIBS
="$LIBS"
5629 lt_save_CFLAGS
="$CFLAGS"
5630 LIBS
="conftstm.$ac_objext"
5631 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5633 (eval $ac_link) 2>&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
5639 LIBS
="$lt_save_LIBS"
5640 CFLAGS
="$lt_save_CFLAGS"
5642 echo "cannot find nm_test_func in $nlist" >&5
5645 echo "cannot find nm_test_var in $nlist" >&5
5648 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5651 echo "$progname: failed program was:" >&5
5652 cat conftest.
$ac_ext >&5
5654 rm -f conftest
* conftst
*
5656 # Do not use the global_symbol_pipe unless it works.
5657 if test "$pipe_works" = yes; then
5660 lt_cv_sys_global_symbol_pipe
=
5666 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5667 lt_cv_sys_global_symbol_to_cdecl
=
5669 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5670 echo "$as_me:$LINENO: result: failed" >&5
5671 echo "${ECHO_T}failed" >&6
5673 echo "$as_me:$LINENO: result: ok" >&5
5674 echo "${ECHO_T}ok" >&6
5677 echo "$as_me:$LINENO: checking for objdir" >&5
5678 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5679 if test "${lt_cv_objdir+set}" = set; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 rm -f .libs
2>/dev
/null
5683 mkdir .libs
2>/dev
/null
5684 if test -d .libs
; then
5687 # MS-DOS does not allow filenames that begin with a dot.
5690 rmdir .libs
2>/dev
/null
5692 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5693 echo "${ECHO_T}$lt_cv_objdir" >&6
5694 objdir
=$lt_cv_objdir
5702 # AIX sometimes has problems with the GCC collect2 program. For some
5703 # reason, if we set the COLLECT_NAMES environment variable, the problems
5704 # vanish in a puff of smoke.
5705 if test "X${COLLECT_NAMES+set}" != Xset
; then
5707 export COLLECT_NAMES
5712 # Sed substitution that helps us do robust quoting. It backslashifies
5713 # metacharacters that are still active within double-quoted strings.
5714 Xsed
='sed -e s/^X//'
5715 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
5717 # Same as above, but do not quote variable references.
5718 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
5720 # Sed substitution to delay expansion of an escaped shell variable in a
5721 # double_quote_subst'ed string.
5722 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5724 # Sed substitution to avoid accidental globbing in evaled expressions
5725 no_glob_subst
='s/\*/\\\*/g'
5731 default_ofile
=libtool
5732 can_build_shared
=yes
5734 # All known linkers require a `.a' archive for static linking (except M$VC,
5735 # which needs '.lib').
5737 ltmain
="$ac_aux_dir/ltmain.sh"
5738 ofile
="$default_ofile"
5739 with_gnu_ld
="$lt_cv_prog_gnu_ld"
5741 if test -n "$ac_tool_prefix"; then
5742 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5743 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5744 echo "$as_me:$LINENO: checking for $ac_word" >&5
5745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5746 if test "${ac_cv_prog_AR+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5749 if test -n "$AR"; then
5750 ac_cv_prog_AR
="$AR" # Let the user override the test.
5752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5756 test -z "$as_dir" && as_dir
=.
5757 for ac_exec_ext
in '' $ac_executable_extensions; do
5758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5759 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5769 if test -n "$AR"; then
5770 echo "$as_me:$LINENO: result: $AR" >&5
5771 echo "${ECHO_T}$AR" >&6
5773 echo "$as_me:$LINENO: result: no" >&5
5774 echo "${ECHO_T}no" >&6
5778 if test -z "$ac_cv_prog_AR"; then
5780 # Extract the first word of "ar", so it can be a program name with args.
5781 set dummy
ar; ac_word
=$2
5782 echo "$as_me:$LINENO: checking for $ac_word" >&5
5783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5784 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5787 if test -n "$ac_ct_AR"; then
5788 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5794 test -z "$as_dir" && as_dir
=.
5795 for ac_exec_ext
in '' $ac_executable_extensions; do
5796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5797 ac_cv_prog_ac_ct_AR
="ar"
5798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5804 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR
="false"
5807 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5808 if test -n "$ac_ct_AR"; then
5809 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5810 echo "${ECHO_T}$ac_ct_AR" >&6
5812 echo "$as_me:$LINENO: result: no" >&5
5813 echo "${ECHO_T}no" >&6
5821 if test -n "$ac_tool_prefix"; then
5822 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5823 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5824 echo "$as_me:$LINENO: checking for $ac_word" >&5
5825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5826 if test "${ac_cv_prog_RANLIB+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 if test -n "$RANLIB"; then
5830 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5836 test -z "$as_dir" && as_dir
=.
5837 for ac_exec_ext
in '' $ac_executable_extensions; do
5838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5839 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5848 RANLIB
=$ac_cv_prog_RANLIB
5849 if test -n "$RANLIB"; then
5850 echo "$as_me:$LINENO: result: $RANLIB" >&5
5851 echo "${ECHO_T}$RANLIB" >&6
5853 echo "$as_me:$LINENO: result: no" >&5
5854 echo "${ECHO_T}no" >&6
5858 if test -z "$ac_cv_prog_RANLIB"; then
5859 ac_ct_RANLIB
=$RANLIB
5860 # Extract the first word of "ranlib", so it can be a program name with args.
5861 set dummy ranlib
; ac_word
=$2
5862 echo "$as_me:$LINENO: checking for $ac_word" >&5
5863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5864 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 if test -n "$ac_ct_RANLIB"; then
5868 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5874 test -z "$as_dir" && as_dir
=.
5875 for ac_exec_ext
in '' $ac_executable_extensions; do
5876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5877 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5884 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
5887 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5888 if test -n "$ac_ct_RANLIB"; then
5889 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5890 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5892 echo "$as_me:$LINENO: result: no" >&5
5893 echo "${ECHO_T}no" >&6
5896 RANLIB
=$ac_ct_RANLIB
5898 RANLIB
="$ac_cv_prog_RANLIB"
5901 if test -n "$ac_tool_prefix"; then
5902 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5903 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5904 echo "$as_me:$LINENO: checking for $ac_word" >&5
5905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5906 if test "${ac_cv_prog_STRIP+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 if test -n "$STRIP"; then
5910 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5912 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5916 test -z "$as_dir" && as_dir
=.
5917 for ac_exec_ext
in '' $ac_executable_extensions; do
5918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5919 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5928 STRIP
=$ac_cv_prog_STRIP
5929 if test -n "$STRIP"; then
5930 echo "$as_me:$LINENO: result: $STRIP" >&5
5931 echo "${ECHO_T}$STRIP" >&6
5933 echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6
5938 if test -z "$ac_cv_prog_STRIP"; then
5940 # Extract the first word of "strip", so it can be a program name with args.
5941 set dummy strip
; ac_word
=$2
5942 echo "$as_me:$LINENO: checking for $ac_word" >&5
5943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5944 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 if test -n "$ac_ct_STRIP"; then
5948 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5954 test -z "$as_dir" && as_dir
=.
5955 for ac_exec_ext
in '' $ac_executable_extensions; do
5956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5957 ac_cv_prog_ac_ct_STRIP
="strip"
5958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
5967 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5968 if test -n "$ac_ct_STRIP"; then
5969 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5970 echo "${ECHO_T}$ac_ct_STRIP" >&6
5972 echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6
5978 STRIP
="$ac_cv_prog_STRIP"
5983 old_CFLAGS
="$CFLAGS"
5985 # Set sane defaults for various variables
5986 test -z "$AR" && AR
=ar
5987 test -z "$AR_FLAGS" && AR_FLAGS
=cru
5988 test -z "$AS" && AS
=as
5989 test -z "$CC" && CC
=cc
5990 test -z "$LTCC" && LTCC
=$CC
5991 test -z "$DLLTOOL" && DLLTOOL
=dlltool
5992 test -z "$LD" && LD
=ld
5993 test -z "$LN_S" && LN_S
="ln -s"
5994 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
5995 test -z "$NM" && NM
=nm
5996 test -z "$SED" && SED
=sed
5997 test -z "$OBJDUMP" && OBJDUMP
=objdump
5998 test -z "$RANLIB" && RANLIB
=:
5999 test -z "$STRIP" && STRIP
=:
6000 test -z "$ac_objext" && ac_objext
=o
6002 # Determine commands to create old-style static archives.
6003 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6004 old_postinstall_cmds
='chmod 644 $oldlib'
6005 old_postuninstall_cmds
=
6007 if test -n "$RANLIB"; then
6010 old_postinstall_cmds
="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6013 old_postinstall_cmds
="\$RANLIB \$oldlib~$old_postinstall_cmds"
6016 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6019 cc_basename
=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6021 # Only perform the check for file, if the check method requires it
6022 case $deplibs_check_method in
6024 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6025 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6026 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6027 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6035 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6036 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6037 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6038 for ac_dir
in $ac_dummy; do
6040 test -z "$ac_dir" && ac_dir
=.
6041 if test -f $ac_dir/${ac_tool_prefix}file; then
6042 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
6043 if test -n "$file_magic_test_file"; then
6044 case $deplibs_check_method in
6046 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6047 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6048 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6049 $EGREP "$file_magic_regex" > /dev
/null
; then
6054 *** Warning: the command libtool uses to detect shared libraries,
6055 *** $file_magic_cmd, produces output that libtool cannot recognize.
6056 *** The result is that libtool may fail to recognize shared libraries
6057 *** as such. This will affect the creation of libtool libraries that
6058 *** depend on shared libraries, but programs linked with such libtool
6059 *** libraries will work regardless of this problem. Nevertheless, you
6060 *** may want to report the problem to your system manager and/or to
6061 *** bug-libtool@gnu.org
6071 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6076 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6077 if test -n "$MAGIC_CMD"; then
6078 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6079 echo "${ECHO_T}$MAGIC_CMD" >&6
6081 echo "$as_me:$LINENO: result: no" >&5
6082 echo "${ECHO_T}no" >&6
6085 if test -z "$lt_cv_path_MAGIC_CMD"; then
6086 if test -n "$ac_tool_prefix"; then
6087 echo "$as_me:$LINENO: checking for file" >&5
6088 echo $ECHO_N "checking for file... $ECHO_C" >&6
6089 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6094 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6097 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6098 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6099 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6100 for ac_dir
in $ac_dummy; do
6102 test -z "$ac_dir" && ac_dir
=.
6103 if test -f $ac_dir/file; then
6104 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
6105 if test -n "$file_magic_test_file"; then
6106 case $deplibs_check_method in
6108 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6109 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6110 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6111 $EGREP "$file_magic_regex" > /dev
/null
; then
6116 *** Warning: the command libtool uses to detect shared libraries,
6117 *** $file_magic_cmd, produces output that libtool cannot recognize.
6118 *** The result is that libtool may fail to recognize shared libraries
6119 *** as such. This will affect the creation of libtool libraries that
6120 *** depend on shared libraries, but programs linked with such libtool
6121 *** libraries will work regardless of this problem. Nevertheless, you
6122 *** may want to report the problem to your system manager and/or to
6123 *** bug-libtool@gnu.org
6133 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6138 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6139 if test -n "$MAGIC_CMD"; then
6140 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6141 echo "${ECHO_T}$MAGIC_CMD" >&6
6143 echo "$as_me:$LINENO: result: no" >&5
6144 echo "${ECHO_T}no" >&6
6159 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6160 if test "${enable_libtool_lock+set}" = set; then
6161 enableval
="$enable_libtool_lock"
6164 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6167 # Check whether --with-pic or --without-pic was given.
6168 if test "${with_pic+set}" = set; then
6174 test -z "$pic_mode" && pic_mode
=default
6176 # Use C for the default configuration in the libtool script
6180 ac_cpp
='$CPP $CPPFLAGS'
6181 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6182 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6183 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6186 # Source file extension for C test sources.
6189 # Object file extension for compiled C test sources.
6193 # Code to be used in simple compile tests
6194 lt_simple_compile_test_code
="int some_variable = 0;\n"
6196 # Code to be used in simple link tests
6197 lt_simple_link_test_code
='int main(){return(0);}\n'
6200 # If no C compiler was specified, use CC.
6203 # Allow CC to be a program name with arguments.
6208 # Check for any special shared library compilation flags.
6211 if test "$GCC" = no
; then
6214 lt_prog_cc_shlib
='-belf'
6218 if test -n "$lt_prog_cc_shlib"; then
6219 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6220 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6221 if echo "$old_CC $old_CFLAGS " |
grep "[ ]$lt_prog_cc_shlib[ ]" >/dev
/null
; then :
6223 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6224 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6225 lt_cv_prog_cc_can_build_shared
=no
6231 # Check to make sure the static flag actually works.
6233 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6234 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6235 if test "${lt_prog_compiler_static_works+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 lt_prog_compiler_static_works
=no
6239 save_LDFLAGS
="$LDFLAGS"
6240 LDFLAGS
="$LDFLAGS $lt_prog_compiler_static"
6241 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
6242 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
6243 # The compiler can only warn and ignore the option if not recognized
6244 # So say no if there are warnings
6245 if test -s conftest.err
; then
6246 # Append any errors to the config.log.
6247 cat conftest.err
1>&5
6249 lt_prog_compiler_static_works
=yes
6253 LDFLAGS
="$save_LDFLAGS"
6256 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6257 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6259 if test x
"$lt_prog_compiler_static_works" = xyes
; then
6262 lt_prog_compiler_static
=
6268 lt_prog_compiler_no_builtin_flag
=
6270 if test "$GCC" = yes; then
6271 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
6274 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6275 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6276 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 lt_cv_prog_compiler_rtti_exceptions
=no
6280 ac_outfile
=conftest.
$ac_objext
6281 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6282 lt_compiler_flag
="-fno-rtti -fno-exceptions"
6283 # Insert the option either (1) after the last *FLAGS variable, or
6284 # (2) before a word containing "conftest.", or (3) at the end.
6285 # Note that $ac_compile itself does not contain backslashes and begins
6286 # with a dollar sign (not a hyphen), so the echo should work correctly.
6287 # The option is referenced via a variable to avoid confusing sed.
6288 lt_compile
=`echo "$ac_compile" | $SED \
6289 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6291 -e 's:$: $lt_compiler_flag:'`
6292 (eval echo "\"\$as_me:6292: $lt_compile\"" >&5)
6293 (eval "$lt_compile" 2>conftest.err
)
6295 cat conftest.err
>&5
6296 echo "$as_me:6296: \$? = $ac_status" >&5
6297 if (exit $ac_status) && test -s "$ac_outfile"; then
6298 # The compiler can only warn and ignore the option if not recognized
6299 # So say no if there are warnings
6300 if test ! -s conftest.err
; then
6301 lt_cv_prog_compiler_rtti_exceptions
=yes
6307 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6308 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6310 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
6311 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6318 lt_prog_compiler_wl
=
6319 lt_prog_compiler_pic
=
6320 lt_prog_compiler_static
=
6322 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6323 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6325 if test "$GCC" = yes; then
6326 lt_prog_compiler_wl
='-Wl,'
6327 lt_prog_compiler_static
='-static'
6331 # All AIX code is PIC.
6332 if test "$host_cpu" = ia64
; then
6333 # AIX 5 now supports IA64 processor
6334 lt_prog_compiler_static
='-Bstatic'
6339 # FIXME: we need at least 68020 code to build shared libraries, but
6340 # adding the `-m68020' flag to GCC prevents building anything better,
6342 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
6345 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
6346 # PIC is the default for these OSes.
6349 mingw
* | pw32
* | os2
*)
6350 # This hack is so that the source file can tell whether it is being
6351 # built for inclusion in a dll (and should export symbols for example).
6352 lt_prog_compiler_pic
='-DDLL_EXPORT'
6355 darwin
* | rhapsody
*)
6356 # PIC is the default on this platform
6357 # Common symbols not allowed in MH_DYLIB files
6358 lt_prog_compiler_pic
='-fno-common'
6362 # Just because we use GCC doesn't mean we suddenly get shared libraries
6363 # on systems that don't support them.
6364 lt_prog_compiler_can_build_shared
=no
6369 if test -d /usr
/nec
; then
6370 lt_prog_compiler_pic
=-Kconform_pic
6375 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6382 lt_prog_compiler_pic
='-fPIC'
6388 lt_prog_compiler_pic
='-fPIC'
6392 # PORTME Check for flag to pass linker flags through the system compiler.
6395 lt_prog_compiler_wl
='-Wl,'
6396 if test "$host_cpu" = ia64
; then
6397 # AIX 5 now supports IA64 processor
6398 lt_prog_compiler_static
='-Bstatic'
6400 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
6404 # PIC is the default on this platform
6405 # Common symbols not allowed in MH_DYLIB files
6406 case "$cc_basename" in
6408 lt_prog_compiler_pic
='-qnocommon'
6409 lt_prog_compiler_wl
='-Wl,'
6414 mingw
* | pw32
* | os2
*)
6415 # This hack is so that the source file can tell whether it is being
6416 # built for inclusion in a dll (and should export symbols for example).
6417 lt_prog_compiler_pic
='-DDLL_EXPORT'
6420 hpux9
* | hpux10
* | hpux11
*)
6421 lt_prog_compiler_wl
='-Wl,'
6422 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6429 lt_prog_compiler_pic
='+Z'
6432 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6433 lt_prog_compiler_static
='${wl}-a ${wl}archive'
6436 irix5
* | irix6
* | nonstopux
*)
6437 lt_prog_compiler_wl
='-Wl,'
6438 # PIC (with -KPIC) is the default.
6439 lt_prog_compiler_static
='-non_shared'
6443 lt_prog_compiler_pic
='-KPIC'
6444 lt_prog_compiler_static
='-Bstatic'
6448 case $cc_basename in
6450 lt_prog_compiler_wl
='-Wl,'
6451 lt_prog_compiler_pic
='-KPIC'
6452 lt_prog_compiler_static
='-static'
6454 pgcc | pgf77 | pgf90
)
6455 # Portland Group compilers (*not* the Pentium gcc compiler,
6456 # which looks to be a dead project)
6457 lt_prog_compiler_wl
='-Wl,'
6458 lt_prog_compiler_pic
='-fpic'
6459 lt_prog_compiler_static
='-static'
6462 lt_prog_compiler_wl
='-Wl,'
6463 # All Alpha code is PIC.
6464 lt_prog_compiler_static
='-non_shared'
6467 lt_prog_compiler_wl
='-lopt='
6472 osf3
* | osf4
* | osf5
*)
6473 lt_prog_compiler_wl
='-Wl,'
6474 # All OSF/1 code is PIC.
6475 lt_prog_compiler_static
='-non_shared'
6479 lt_prog_compiler_pic
='-Kpic'
6480 lt_prog_compiler_static
='-dn'
6484 lt_prog_compiler_wl
='-Wl,'
6485 lt_prog_compiler_pic
='-KPIC'
6486 lt_prog_compiler_static
='-Bstatic'
6490 lt_prog_compiler_wl
='-Qoption ld '
6491 lt_prog_compiler_pic
='-PIC'
6492 lt_prog_compiler_static
='-Bstatic'
6495 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
6496 lt_prog_compiler_wl
='-Wl,'
6497 lt_prog_compiler_pic
='-KPIC'
6498 lt_prog_compiler_static
='-Bstatic'
6502 if test -d /usr
/nec
;then
6503 lt_prog_compiler_pic
='-Kconform_pic'
6504 lt_prog_compiler_static
='-Bstatic'
6509 lt_prog_compiler_wl
='-Wl,'
6510 lt_prog_compiler_can_build_shared
=no
6514 lt_prog_compiler_pic
='-pic'
6515 lt_prog_compiler_static
='-Bstatic'
6519 lt_prog_compiler_can_build_shared
=no
6524 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6525 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6528 # Check to make sure the PIC flag actually works.
6530 if test -n "$lt_prog_compiler_pic"; then
6532 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6533 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6534 if test "${lt_prog_compiler_pic_works+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6537 lt_prog_compiler_pic_works
=no
6538 ac_outfile
=conftest.
$ac_objext
6539 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6540 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
6541 # Insert the option either (1) after the last *FLAGS variable, or
6542 # (2) before a word containing "conftest.", or (3) at the end.
6543 # Note that $ac_compile itself does not contain backslashes and begins
6544 # with a dollar sign (not a hyphen), so the echo should work correctly.
6545 # The option is referenced via a variable to avoid confusing sed.
6546 lt_compile
=`echo "$ac_compile" | $SED \
6547 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6549 -e 's:$: $lt_compiler_flag:'`
6550 (eval echo "\"\$as_me:6550: $lt_compile\"" >&5)
6551 (eval "$lt_compile" 2>conftest.err
)
6553 cat conftest.err
>&5
6554 echo "$as_me:6554: \$? = $ac_status" >&5
6555 if (exit $ac_status) && test -s "$ac_outfile"; then
6556 # The compiler can only warn and ignore the option if not recognized
6557 # So say no if there are warnings
6558 if test ! -s conftest.err
; then
6559 lt_prog_compiler_pic_works
=yes
6565 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6566 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6568 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
6569 case $lt_prog_compiler_pic in
6571 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
6574 lt_prog_compiler_pic
=
6575 lt_prog_compiler_can_build_shared
=no
6580 # For platforms which do not support PIC, -DPIC is meaningless:
6582 lt_prog_compiler_pic
=
6585 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
6589 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6590 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6591 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6594 lt_cv_prog_compiler_c_o
=no
6595 $rm -r conftest
2>/dev
/null
6599 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6601 lt_compiler_flag
="-o out/conftest2.$ac_objext"
6602 # Insert the option either (1) after the last *FLAGS variable, or
6603 # (2) before a word containing "conftest.", or (3) at the end.
6604 # Note that $ac_compile itself does not contain backslashes and begins
6605 # with a dollar sign (not a hyphen), so the echo should work correctly.
6606 lt_compile
=`echo "$ac_compile" | $SED \
6607 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6609 -e 's:$: $lt_compiler_flag:'`
6610 (eval echo "\"\$as_me:6610: $lt_compile\"" >&5)
6611 (eval "$lt_compile" 2>out
/conftest.err
)
6613 cat out
/conftest.err
>&5
6614 echo "$as_me:6614: \$? = $ac_status" >&5
6615 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
6617 # The compiler can only warn and ignore the option if not recognized
6618 # So say no if there are warnings
6619 if test ! -s out
/conftest.err
; then
6620 lt_cv_prog_compiler_c_o
=yes
6625 # SGI C++ compiler will create directory out/ii_files/ for
6626 # template instantiation
6627 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
6628 $rm out
/* && rmdir out
6634 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6635 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6638 hard_links
="nottested"
6639 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
6640 # do not overwrite the value of need_locks provided by the user
6641 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6642 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6645 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
6647 ln conftest.a conftest.b
2>&5 || hard_links
=no
6648 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
6649 echo "$as_me:$LINENO: result: $hard_links" >&5
6650 echo "${ECHO_T}$hard_links" >&6
6651 if test "$hard_links" = no
; then
6652 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6653 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6660 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6661 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6664 allow_undefined_flag
=
6665 enable_shared_with_static_runtimes
=no
6667 archive_expsym_cmds
=
6668 old_archive_From_new_cmds
=
6669 old_archive_from_expsyms_cmds
=
6670 export_dynamic_flag_spec
=
6671 whole_archive_flag_spec
=
6672 thread_safe_flag_spec
=
6673 hardcode_libdir_flag_spec
=
6674 hardcode_libdir_flag_spec_ld
=
6675 hardcode_libdir_separator
=
6678 hardcode_shlibpath_var
=unsupported
6679 link_all_deplibs
=unknown
6680 hardcode_automatic
=no
6683 always_export_symbols
=no
6684 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6685 # include_expsyms should be a list of space-separated symbols to be *always*
6686 # included in the symbol list
6688 # exclude_expsyms can be an extended regexp of symbols to exclude
6689 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6690 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6691 # as well as any symbol that contains `d'.
6692 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
6693 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6694 # platforms (ab)use it in PIC code, but their linkers get confused if
6695 # the symbol is explicitly referenced. Since portable code cannot
6696 # rely on this symbol name, it's probably fine to never include it in
6697 # preloaded symbol tables.
6698 extract_expsyms_cmds
=
6701 cygwin
* | mingw
* | pw32
*)
6702 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6703 # When not using gcc, we currently assume that we are using
6704 # Microsoft Visual C++.
6705 if test "$GCC" != yes; then
6715 if test "$with_gnu_ld" = yes; then
6716 # If archive_cmds runs LD, not CC, wlarc should be empty
6719 # See if GNU ld supports shared libraries.
6721 aix3
* | aix4
* | aix5
*)
6722 # On AIX/PPC, the GNU linker is very broken
6723 if test "$host_cpu" != ia64
; then
6727 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6728 *** to be unable to reliably create shared libraries on AIX.
6729 *** Therefore, libtool is disabling shared libraries support. If you
6730 *** really care for shared libraries, you may want to modify your PATH
6731 *** so that a non-GNU linker is found, and then restart.
6738 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)'
6739 hardcode_libdir_flag_spec
='-L$libdir'
6740 hardcode_minus_L
=yes
6742 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6743 # that the semantics of dynamic libraries on AmigaOS, at least up
6744 # to version 4, is to share data among multiple programs linked
6745 # with the same dynamic library. Since this doesn't match the
6746 # behavior of shared libraries on other platforms, we can't use
6752 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
6753 allow_undefined_flag
=unsupported
6754 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6755 # support --undefined. This deserves some investigation. FIXME
6756 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6762 cygwin
* | mingw
* | pw32
*)
6763 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6764 # as there is no search path for DLLs.
6765 hardcode_libdir_flag_spec
='-L$libdir'
6766 allow_undefined_flag
=unsupported
6767 always_export_symbols
=no
6768 enable_shared_with_static_runtimes
=yes
6769 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6771 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
6772 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6773 # If the export-symbols file already is a .def file (1st line
6774 # is EXPORTS), use it as is; otherwise, prepend...
6775 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6776 cp $export_symbols $output_objdir/$soname.def;
6778 echo EXPORTS > $output_objdir/$soname.def;
6779 cat $export_symbols >> $output_objdir/$soname.def;
6781 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6788 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
6789 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6792 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6793 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6798 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
6802 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6803 *** create shared libraries on Solaris systems. Therefore, libtool
6804 *** is disabling shared libraries support. We urge you to upgrade GNU
6805 *** binutils to release 2.9.1 or newer. Another option is to modify
6806 *** your PATH or compiler configuration so that the native linker is
6807 *** used, and then restart.
6810 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
6811 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6812 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6819 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6822 hardcode_shlibpath_var
=no
6826 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
6828 case $CC,$host_cpu in
6829 pgf77
* | pgf90
* ) # Portland Group f77 and f90 compilers
6830 tmp_addflag
=' -fpic' ;;
6831 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
6832 tmp_addflag
=' -i_dynamic' ;;
6833 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
6834 tmp_addflag
=' -i_dynamic -nofor_main' ;;
6835 ifc
* | ifort
*) # Intel Fortran compiler
6836 tmp_addflag
=' -nofor_main' ;;
6838 archive_cmds
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6839 supports_anon_versioning
=no
6840 case `$LD -v 2>/dev/null` in
6841 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
6842 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
6843 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
6844 *\
2.11.
*) ;; # other 2.11 versions
6845 *) supports_anon_versioning
=yes ;;
6847 if test $supports_anon_versioning = yes; then
6848 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
6849 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6850 $echo "local: *; };" >> $output_objdir/$libname.ver~
6851 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6853 archive_expsym_cmds
=$archive_cmds
6861 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
6862 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6863 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6870 if test "$ld_shlibs" = yes; then
6871 runpath_var
=LD_RUN_PATH
6872 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
6873 export_dynamic_flag_spec
='${wl}--export-dynamic'
6874 # ancient GNU ld didn't support --whole-archive et. al.
6875 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
6876 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6878 whole_archive_flag_spec
=
6882 # PORTME fill in a description of your system's linker (not GNU ld)
6885 allow_undefined_flag
=unsupported
6886 always_export_symbols
=yes
6887 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'
6888 # Note: this linker hardcodes the directories in LIBPATH if there
6889 # are no directories specified by -L.
6890 hardcode_minus_L
=yes
6891 if test "$GCC" = yes && test -z "$link_static_flag"; then
6892 # Neither direct hardcoding nor static linking is supported with a
6894 hardcode_direct
=unsupported
6899 if test "$host_cpu" = ia64
; then
6900 # On IA64, the linker does run time linking by default, so we don't
6901 # have to do anything special.
6902 aix_use_runtimelinking
=no
6903 exp_sym_flag
='-Bexport'
6906 # If we're using GNU nm, then we don't want the "-C" option.
6907 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6908 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
6909 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'
6911 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'
6913 aix_use_runtimelinking
=no
6915 # Test if we are trying to use run time linking or normal
6916 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6917 # need to do runtime linking.
6918 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
6919 for ld_flag
in $LDFLAGS; do
6920 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
6921 aix_use_runtimelinking
=yes
6927 exp_sym_flag
='-bexport'
6928 no_entry_flag
='-bnoentry'
6931 # When large executables or shared objects are built, AIX ld can
6932 # have problems creating the table of contents. If linking a library
6933 # or program results in "error TOC overflow" add -mminimal-toc to
6934 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6935 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6939 hardcode_libdir_separator
=':'
6940 link_all_deplibs
=yes
6942 if test "$GCC" = yes; then
6943 case $host_os in aix4.
[012]|aix4.
[012].
*)
6944 # We only want to do this on AIX 4.2 and lower, the check
6945 # below for broken collect2 doesn't work under 4.3+
6946 collect2name
=`${CC} -print-prog-name=collect2`
6947 if test -f "$collect2name" && \
6948 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
6950 # We have reworked collect2
6953 # We have old collect2
6954 hardcode_direct
=unsupported
6955 # It fails to find uninstalled libraries when the uninstalled
6956 # path is not listed in the libpath. Setting hardcode_minus_L
6957 # to unsupported forces relinking
6958 hardcode_minus_L
=yes
6959 hardcode_libdir_flag_spec
='-L$libdir'
6960 hardcode_libdir_separator
=
6963 shared_flag
='-shared'
6964 if test "$aix_use_runtimelinking" = yes; then
6965 shared_flag
="$shared_flag "'${wl}-G'
6969 if test "$host_cpu" = ia64
; then
6970 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6971 # chokes on -Wl,-G. The following line is correct:
6974 if test "$aix_use_runtimelinking" = yes; then
6975 shared_flag
='${wl}-G'
6977 shared_flag
='${wl}-bM:SRE'
6982 # It seems that -bexpall does not export symbols beginning with
6983 # underscore (_), so it is better to generate a list of symbols to export.
6984 always_export_symbols
=yes
6985 if test "$aix_use_runtimelinking" = yes; then
6986 # Warning - without using the other runtime loading flags (-brtl),
6987 # -berok will link without error, but may produce a broken library.
6988 allow_undefined_flag
='-berok'
6989 # Determine the default libpath from the value encoded in an empty executable.
6990 cat >conftest.
$ac_ext <<_ACEOF
6993 cat confdefs.h
>>conftest.
$ac_ext
6994 cat >>conftest.
$ac_ext <<_ACEOF
6995 /* end confdefs.h. */
7005 rm -f conftest.
$ac_objext conftest
$ac_exeext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7007 (eval $ac_link) 2>conftest.er1
7009 grep -v '^ *+' conftest.er1
>conftest.err
7011 cat conftest.err
>&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } &&
7014 { ac_try
='test -z "$ac_c_werror_flag"
7015 || test ! -s conftest.err'
7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; } &&
7021 { ac_try
='test -s conftest$ac_exeext'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; }; then
7028 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7030 # Check for a 64-bit object if we didn't find anything.
7031 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; }
7034 echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.
$ac_ext >&5
7038 rm -f conftest.err conftest.
$ac_objext \
7039 conftest
$ac_exeext conftest.
$ac_ext
7040 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
7042 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
7043 archive_expsym_cmds
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7045 if test "$host_cpu" = ia64; then
7046 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr
/lib
:/lib
'
7047 allow_undefined_flag="-z nodefs"
7048 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\
$export_symbols"
7050 # Determine the default libpath from the value encoded in an empty executable.
7051 cat >conftest.$ac_ext <<_ACEOF
7054 cat confdefs.h >>conftest.$ac_ext
7055 cat >>conftest.$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7066 rm -f conftest.$ac_objext conftest$ac_exeext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7068 (eval $ac_link) 2>conftest.er1
7070 grep -v '^ *+' conftest.er1 >conftest.err
7072 cat conftest.err >&5
7073 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7074 (exit $ac_status); } &&
7075 { ac_try='test -z "$ac_c_werror_flag"
7076 || test ! -s conftest.err'
7077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7081 (exit $ac_status); }; } &&
7082 { ac_try='test -s conftest$ac_exeext'
7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7087 (exit $ac_status); }; }; then
7089 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7091 # Check for a 64-bit object if we didn't find anything.
7092 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; }
7095 echo "$as_me: failed program was
:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7099 rm -f conftest.err conftest.$ac_objext \
7100 conftest$ac_exeext conftest.$ac_ext
7101 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
7103 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7104 # Warning - without using the other run time loading flags,
7105 # -berok will link without error, but may produce a broken library.
7106 no_undefined_flag=' ${wl}-bernotok'
7107 allow_undefined_flag=' ${wl}-berok'
7108 # -bexpall does not export symbols beginning with underscore (_)
7109 always_export_symbols=yes
7110 # Exported symbols can be pulled into shared objects from archives
7111 whole_archive_flag_spec=' '
7112 archive_cmds_need_lc=yes
7113 # This is similar to how AIX traditionally builds it's shared libraries.
7114 archive_expsym_cmds="\
$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7120 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)'
7121 hardcode_libdir_flag_spec
='-L$libdir'
7122 hardcode_minus_L
=yes
7123 # see comment about different semantics on the GNU ld section
7128 export_dynamic_flag_spec
=-rdynamic
7131 cygwin
* | mingw
* | pw32
*)
7132 # When not using gcc, we currently assume that we are using
7133 # Microsoft Visual C++.
7134 # hardcode_libdir_flag_spec is actually meaningless, as there is
7135 # no search path for DLLs.
7136 hardcode_libdir_flag_spec
=' '
7137 allow_undefined_flag
=unsupported
7138 # Tell ltmain to make .lib files, not .a files.
7140 # Tell ltmain to make .dll files, not .so files.
7142 # FIXME: Setting linknames here is a bad hack.
7143 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7144 # The linker will automatically build a .lib file if we build a DLL.
7145 old_archive_From_new_cmds
='true'
7146 # FIXME: Should let the user specify the lib program.
7147 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
7148 fix_srcfile_path
='`cygpath -w "$srcfile"`'
7149 enable_shared_with_static_runtimes
=yes
7152 darwin
* | rhapsody
*)
7154 rhapsody
* | darwin1.
[012])
7155 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
7158 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7159 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7161 case ${MACOSX_DEPLOYMENT_TARGET} in
7163 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7166 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
7172 archive_cmds_need_lc
=no
7174 hardcode_automatic
=yes
7175 hardcode_shlibpath_var
=unsupported
7176 whole_archive_flag_spec
=''
7177 link_all_deplibs
=yes
7178 if test "$GCC" = yes ; then
7179 output_verbose_link_cmd
='echo'
7180 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7181 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7182 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7183 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}'
7184 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}'
7186 case "$cc_basename" in
7188 output_verbose_link_cmd
='echo'
7189 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7190 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7191 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7192 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}'
7193 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}'
7203 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7204 hardcode_libdir_flag_spec
='-L$libdir'
7205 hardcode_shlibpath_var
=no
7212 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7213 # support. Future versions do this automatically, but an explicit c++rt0.o
7214 # does not break anything, and helps significantly (at the cost of a little
7217 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7218 hardcode_libdir_flag_spec
='-R$libdir'
7220 hardcode_shlibpath_var
=no
7223 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7225 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7227 hardcode_minus_L
=yes
7228 hardcode_shlibpath_var
=no
7231 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7232 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
7233 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7234 hardcode_libdir_flag_spec
='-R$libdir'
7236 hardcode_shlibpath_var
=no
7240 if test "$GCC" = yes; then
7241 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'
7243 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'
7245 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7246 hardcode_libdir_separator
=:
7249 # hardcode_minus_L: Not really in the search PATH,
7250 # but as the default location of the library.
7251 hardcode_minus_L
=yes
7252 export_dynamic_flag_spec
='${wl}-E'
7256 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
7259 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7262 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7268 archive_cmds
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7271 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7275 if test "$with_gnu_ld" = no
; then
7278 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7279 hardcode_libdir_flag_spec_ld
='+b $libdir'
7280 hardcode_libdir_separator
=:
7282 hardcode_shlibpath_var
=no
7285 hardcode_libdir_flag_spec
='-L$libdir'
7287 hardcode_shlibpath_var
=no
7289 # hardcode_minus_L: Not really in the search PATH,
7290 # but as the default location of the library.
7291 hardcode_minus_L
=yes
7294 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7295 hardcode_libdir_separator
=:
7297 export_dynamic_flag_spec
='${wl}-E'
7299 # hardcode_minus_L: Not really in the search PATH,
7300 # but as the default location of the library.
7301 hardcode_minus_L
=yes
7307 irix5
* | irix6
* | nonstopux
*)
7308 if test "$GCC" = yes; then
7309 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'
7311 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'
7312 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
7314 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7315 hardcode_libdir_separator
=:
7316 link_all_deplibs
=yes
7320 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7321 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7323 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7325 hardcode_libdir_flag_spec
='-R$libdir'
7327 hardcode_shlibpath_var
=no
7331 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7333 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7334 hardcode_libdir_separator
=:
7335 hardcode_shlibpath_var
=no
7340 hardcode_shlibpath_var
=no
7341 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7342 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7343 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7344 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7345 export_dynamic_flag_spec
='${wl}-E'
7348 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
7349 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7350 hardcode_libdir_flag_spec
='-R$libdir'
7353 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7354 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7361 hardcode_libdir_flag_spec
='-L$libdir'
7362 hardcode_minus_L
=yes
7363 allow_undefined_flag
=unsupported
7364 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'
7365 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7369 if test "$GCC" = yes; then
7370 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
7371 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'
7373 allow_undefined_flag
=' -expect_unresolved \*'
7374 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'
7376 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7377 hardcode_libdir_separator
=:
7380 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
7381 if test "$GCC" = yes; then
7382 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
7383 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'
7384 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7386 allow_undefined_flag
=' -expect_unresolved \*'
7387 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'
7388 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7389 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7391 # Both c and cxx compiler support -rpath directly
7392 hardcode_libdir_flag_spec
='-rpath $libdir'
7394 hardcode_libdir_separator
=:
7398 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7399 hardcode_shlibpath_var
=no
7400 export_dynamic_flag_spec
='${wl}-Bexport'
7401 runpath_var
=LD_RUN_PATH
7402 hardcode_runpath_var
=yes
7406 no_undefined_flag
=' -z text'
7407 if test "$GCC" = yes; then
7408 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7409 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7410 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7412 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7413 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7414 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7416 hardcode_libdir_flag_spec
='-R$libdir'
7417 hardcode_shlibpath_var
=no
7419 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
7420 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7421 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
7423 link_all_deplibs
=yes
7427 if test "x$host_vendor" = xsequent
; then
7428 # Use $CC to link under sequent, because it throws in some extra .o
7429 # files that make .init and .fini sections work.
7430 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7432 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7434 hardcode_libdir_flag_spec
='-L$libdir'
7436 hardcode_minus_L
=yes
7437 hardcode_shlibpath_var
=no
7441 case $host_vendor in
7443 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7444 hardcode_direct
=yes # is this really true???
7447 ## LD is ld it makes a PLAMLIB
7448 ## CC just makes a GrossModule.
7449 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7450 reload_cmds
='$CC -r -o $output$reload_objs'
7454 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7455 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
7458 runpath_var
='LD_RUN_PATH'
7459 hardcode_shlibpath_var
=no
7463 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7464 hardcode_shlibpath_var
=no
7465 export_dynamic_flag_spec
='-Bexport'
7469 if test -d /usr
/nec
; then
7470 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7471 hardcode_shlibpath_var
=no
7472 runpath_var
=LD_RUN_PATH
7473 hardcode_runpath_var
=yes
7479 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7482 hardcode_shlibpath_var
=no
7483 hardcode_runpath_var
=yes
7484 runpath_var
=LD_RUN_PATH
7487 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
7488 no_undefined_flag
='${wl}-z ${wl}text'
7489 if test "$GCC" = yes; then
7490 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7492 archive_cmds
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7494 runpath_var
='LD_RUN_PATH'
7495 hardcode_shlibpath_var
=no
7499 no_undefined_flag
=' -z text'
7500 # $CC -shared without GNU ld will not create a library from C++
7501 # object files and a static libstdc++, better avoid it by now
7502 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7503 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7504 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7505 hardcode_libdir_flag_spec
=
7506 hardcode_shlibpath_var
=no
7507 runpath_var
='LD_RUN_PATH'
7511 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7512 hardcode_libdir_flag_spec
='-L$libdir'
7513 hardcode_shlibpath_var
=no
7522 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7523 echo "${ECHO_T}$ld_shlibs" >&6
7524 test "$ld_shlibs" = no
&& can_build_shared
=no
7526 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
7527 if test "$GCC" = yes; then
7528 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7532 # Do we need to explicitly link libc?
7534 case "x$archive_cmds_need_lc" in
7536 # Assume -lc should be added
7537 archive_cmds_need_lc
=yes
7539 if test "$enable_shared" = yes && test "$GCC" = yes; then
7540 case $archive_cmds in
7542 # FIXME: we may have to deal with multi-command sequences.
7545 # Test whether the compiler implicitly links with -lc since on some
7546 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7547 # to ld, don't add -lc before -lgcc.
7548 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7549 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7551 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7554 (eval $ac_compile) 2>&5
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); } 2>conftest.err
; then
7560 libobjs
=conftest.
$ac_objext
7562 wl
=$lt_prog_compiler_wl
7568 lt_save_allow_undefined_flag
=$allow_undefined_flag
7569 allow_undefined_flag
=
7570 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7571 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); }
7576 archive_cmds_need_lc
=no
7578 archive_cmds_need_lc
=yes
7580 allow_undefined_flag
=$lt_save_allow_undefined_flag
7582 cat conftest.err
1>&5
7585 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7586 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7593 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7594 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7596 libname_spec
='lib$name'
7604 shlibpath_overrides_runpath
=unknown
7606 dynamic_linker
="$host_os ld.so"
7607 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
7608 if test "$GCC" = yes; then
7609 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7610 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
7611 # if the path contains ";" then we assume it to be the separator
7612 # otherwise default to the standard path separator (i.e. ":") - it is
7613 # assumed that no part of a normal pathname contains ";" but that should
7614 # okay in the real world where ";" in dirpaths is itself problematic.
7615 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7617 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7620 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
7622 need_lib_prefix
=unknown
7623 hardcode_into_libs
=no
7625 # when you set need_version to no, make sure it does not cause -set_version
7626 # flags to be left without arguments
7627 need_version
=unknown
7632 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
7633 shlibpath_var
=LIBPATH
7635 # AIX 3 has no versioning support, so we append a major version to the name.
7636 soname_spec
='${libname}${release}${shared_ext}$major'
7643 hardcode_into_libs
=yes
7644 if test "$host_cpu" = ia64
; then
7645 # AIX 5 supports IA64
7646 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7647 shlibpath_var
=LD_LIBRARY_PATH
7649 # With GCC up to 2.95.x, collect2 would create an import file
7650 # for dependence libraries. The import file would start with
7651 # the line `#! .'. This would cause the generated library to
7652 # depend on `.', always an invalid library. This was fixed in
7653 # development snapshots of GCC prior to 3.0.
7655 aix4 | aix4.
[01] | aix4.
[01].
*)
7656 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7658 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
7665 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7666 # soname into executable. Probably we can add versioning support to
7667 # collect2, so additional links can be useful in future.
7668 if test "$aix_use_runtimelinking" = yes; then
7669 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7670 # instead of lib<name>.a to let people know that these are not
7671 # typical AIX shared libraries.
7672 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7674 # We preserve .a as extension for shared libraries through AIX4.2
7675 # and later when we are not doing run time linking.
7676 library_names_spec
='${libname}${release}.a $libname.a'
7677 soname_spec
='${libname}${release}${shared_ext}$major'
7679 shlibpath_var
=LIBPATH
7684 library_names_spec
='$libname.ixlibrary $libname.a'
7685 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7686 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'
7690 library_names_spec
='${libname}${shared_ext}'
7691 dynamic_linker
="$host_os ld.so"
7692 shlibpath_var
=LIBRARY_PATH
7698 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7699 soname_spec
='${libname}${release}${shared_ext}$major'
7700 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
7701 shlibpath_var
=LD_LIBRARY_PATH
7702 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7703 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
7704 # the default ld.so.conf also contains /usr/contrib/lib and
7705 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7706 # libtool to hard-code these into programs
7709 cygwin
* | mingw
* | pw32
*)
7710 version_type
=windows
7715 case $GCC,$host_os in
7716 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
7717 library_names_spec
='$libname.dll.a'
7718 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7719 postinstall_cmds
='base_file=`basename \${file}`~
7720 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7721 dldir=$destdir/`dirname \$dlpath`~
7722 test -d \$dldir || mkdir -p \$dldir~
7723 $install_prog $dir/$dlname \$dldir/$dlname'
7724 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7725 dlpath=$dir/\$dldll~
7727 shlibpath_overrides_runpath
=yes
7731 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7732 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7733 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
7736 # MinGW DLLs use traditional 'lib' prefix
7737 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7738 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7739 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
7740 # It is most probably a Windows format PATH printed by
7741 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7742 # path with ; separators, and with drive letters. We can handle the
7743 # drive letters (cygwin fileutils understands them), so leave them,
7744 # especially as we might pass files found there to a mingw objdump,
7745 # which wouldn't understand a cygwinified path. Ahh.
7746 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7748 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7752 # pw32 DLLs use 'pw' prefix rather than 'lib'
7753 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7759 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7762 dynamic_linker
='Win32 ld.exe'
7763 # FIXME: first we should search . and the directory the executable is in
7767 darwin
* | rhapsody
*)
7768 dynamic_linker
="$host_os dyld"
7772 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7773 soname_spec
='${libname}${release}${major}$shared_ext'
7774 shlibpath_overrides_runpath
=yes
7775 shlibpath_var
=DYLD_LIBRARY_PATH
7776 shrext_cmds
='$(test .$module = .yes && echo .so || echo .dylib)'
7777 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7778 if test "$GCC" = yes; then
7779 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"`
7781 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
7783 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
7790 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7791 soname_spec
='${libname}${release}${shared_ext}$major'
7792 shlibpath_var
=LD_LIBRARY_PATH
7803 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7804 soname_spec
='${libname}${release}${shared_ext}$major'
7805 shlibpath_var
=LD_LIBRARY_PATH
7806 shlibpath_overrides_runpath
=no
7807 hardcode_into_libs
=yes
7808 dynamic_linker
='GNU ld.so'
7811 freebsd
* | dragonfly
*)
7812 # DragonFly does not have aout. When/if they implement a new
7813 # versioning mechanism, adjust this.
7814 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7815 version_type
=freebsd-
$objformat
7816 case $version_type in
7818 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7823 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7827 shlibpath_var
=LD_LIBRARY_PATH
7830 shlibpath_overrides_runpath
=yes
7832 freebsd3.
[01]* | freebsdelf3.
[01]*)
7833 shlibpath_overrides_runpath
=yes
7834 hardcode_into_libs
=yes
7837 shlibpath_overrides_runpath
=no
7838 hardcode_into_libs
=yes
7847 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7848 soname_spec
='${libname}${release}${shared_ext}$major'
7849 shlibpath_var
=LD_LIBRARY_PATH
7850 hardcode_into_libs
=yes
7853 hpux9
* | hpux10
* | hpux11
*)
7854 # Give a soname corresponding to the major version so that dld.sl refuses to
7855 # link against other versions.
7862 hardcode_into_libs
=yes
7863 dynamic_linker
="$host_os dld.so"
7864 shlibpath_var
=LD_LIBRARY_PATH
7865 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
7866 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7867 soname_spec
='${libname}${release}${shared_ext}$major'
7868 if test "X$HPUX_IA64_MODE" = X32
; then
7869 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7871 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
7873 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
7877 hardcode_into_libs
=yes
7878 dynamic_linker
="$host_os dld.sl"
7879 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
7880 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
7881 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7882 soname_spec
='${libname}${release}${shared_ext}$major'
7883 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7884 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
7888 dynamic_linker
="$host_os dld.sl"
7889 shlibpath_var
=SHLIB_PATH
7890 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
7891 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7892 soname_spec
='${libname}${release}${shared_ext}$major'
7895 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7896 postinstall_cmds
='chmod 555 $lib'
7899 irix5
* | irix6
* | nonstopux
*)
7901 nonstopux
*) version_type
=nonstopux
;;
7903 if test "$lt_cv_prog_gnu_ld" = yes; then
7911 soname_spec
='${libname}${release}${shared_ext}$major'
7912 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7914 irix5
* | nonstopux
*)
7918 case $LD in # libtool.m4 will add one of these switches to LD
7919 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
7920 libsuff
= shlibsuff
= libmagic
=32-bit;;
7921 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
7922 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
7923 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
7924 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
7925 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
7929 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
7930 shlibpath_overrides_runpath
=no
7931 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7932 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
7933 hardcode_into_libs
=yes
7936 # No shared lib support for Linux oldld, aout, or coff.
7937 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
7941 # This must be Linux ELF.
7946 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7947 soname_spec
='${libname}${release}${shared_ext}$major'
7948 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7949 shlibpath_var
=LD_LIBRARY_PATH
7950 shlibpath_overrides_runpath
=no
7951 # This implies no fast_install, which is unacceptable.
7952 # Some rework will be needed to allow for fast_install
7953 # before this can be enabled.
7954 hardcode_into_libs
=yes
7956 # Append ld.so.conf contents to the search path
7957 if test -f /etc
/ld.so.conf
; then
7958 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
7959 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
7962 # We used to test for /lib/ld.so.1 and disable shared libraries on
7963 # powerpc, because MkLinux only supported shared libraries with the
7964 # GNU dynamic linker. Since this was broken with cross compilers,
7965 # most powerpc-linux boxes support dynamic linking these days and
7966 # people can always --disable-shared, the test was removed, and we
7967 # assume the GNU/Linux dynamic linker is in use.
7968 dynamic_linker
='GNU/Linux ld.so'
7975 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7976 soname_spec
='${libname}${release}${shared_ext}$major'
7977 shlibpath_var
=LD_LIBRARY_PATH
7978 shlibpath_overrides_runpath
=no
7979 hardcode_into_libs
=yes
7980 dynamic_linker
='GNU ld.so'
7987 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7988 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7989 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7990 dynamic_linker
='NetBSD (a.out) ld.so'
7992 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7993 soname_spec
='${libname}${release}${shared_ext}$major'
7994 dynamic_linker
='NetBSD ld.elf_so'
7996 shlibpath_var
=LD_LIBRARY_PATH
7997 shlibpath_overrides_runpath
=yes
7998 hardcode_into_libs
=yes
8003 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8004 shlibpath_var
=LD_LIBRARY_PATH
8005 shlibpath_overrides_runpath
=yes
8012 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8013 soname_spec
='${libname}${release}${shared_ext}$major'
8014 shlibpath_var
=LD_LIBRARY_PATH
8015 shlibpath_overrides_runpath
=yes
8022 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8023 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8024 shlibpath_var
=LD_LIBRARY_PATH
8025 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8027 openbsd2.
[89] | openbsd2.
[89].
*)
8028 shlibpath_overrides_runpath
=no
8031 shlibpath_overrides_runpath
=yes
8035 shlibpath_overrides_runpath
=yes
8040 libname_spec
='$name'
8043 library_names_spec
='$libname${shared_ext} $libname.a'
8044 dynamic_linker
='OS/2 ld.exe'
8045 shlibpath_var
=LIBPATH
8048 osf3
* | osf4
* | osf5
*)
8052 soname_spec
='${libname}${release}${shared_ext}$major'
8053 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8054 shlibpath_var
=LD_LIBRARY_PATH
8055 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8056 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
8061 soname_spec
='${libname}${release}${shared_ext}$major'
8062 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8063 shlibpath_var
=LD_LIBRARY_PATH
8070 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8071 soname_spec
='${libname}${release}${shared_ext}$major'
8072 shlibpath_var
=LD_LIBRARY_PATH
8073 shlibpath_overrides_runpath
=yes
8074 hardcode_into_libs
=yes
8075 # ldd complains unless libraries are executable
8076 postinstall_cmds
='chmod +x $lib'
8081 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8082 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8083 shlibpath_var
=LD_LIBRARY_PATH
8084 shlibpath_overrides_runpath
=yes
8085 if test "$with_gnu_ld" = yes; then
8091 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
8093 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8094 soname_spec
='${libname}${release}${shared_ext}$major'
8095 shlibpath_var
=LD_LIBRARY_PATH
8096 case $host_vendor in
8098 shlibpath_overrides_runpath
=no
8100 export_dynamic_flag_spec
='${wl}-Blargedynsym'
8101 runpath_var
=LD_RUN_PATH
8109 shlibpath_overrides_runpath
=no
8110 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
8116 if test -d /usr
/nec
;then
8118 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8119 soname_spec
='$libname${shared_ext}.$major'
8120 shlibpath_var
=LD_LIBRARY_PATH
8126 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8127 soname_spec
='${libname}${release}${shared_ext}$major'
8128 shlibpath_var
=LD_LIBRARY_PATH
8135 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8136 echo "${ECHO_T}$dynamic_linker" >&6
8137 test "$dynamic_linker" = no
&& can_build_shared
=no
8139 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8140 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8142 if test -n "$hardcode_libdir_flag_spec" || \
8143 test -n "$runpath_var" || \
8144 test "X$hardcode_automatic" = "Xyes" ; then
8146 # We can hardcode non-existant directories.
8147 if test "$hardcode_direct" != no
&&
8148 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8149 # have to relink, otherwise we might link with an installed library
8150 # when we should be linking with a yet-to-be-installed one
8151 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8152 test "$hardcode_minus_L" != no
; then
8153 # Linking always hardcodes the temporary library directory.
8154 hardcode_action
=relink
8156 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8157 hardcode_action
=immediate
8160 # We cannot hardcode anything, or else we can only hardcode existing
8162 hardcode_action
=unsupported
8164 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8165 echo "${ECHO_T}$hardcode_action" >&6
8167 if test "$hardcode_action" = relink
; then
8168 # Fast installation is not supported
8169 enable_fast_install
=no
8170 elif test "$shlibpath_overrides_runpath" = yes ||
8171 test "$enable_shared" = no
; then
8172 # Fast installation is not necessary
8173 enable_fast_install
=needless
8178 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8179 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8180 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
8181 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
8182 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
8183 echo "$as_me:$LINENO: result: yes" >&5
8184 echo "${ECHO_T}yes" >&6
8186 # FIXME - insert some real tests, host_os isn't really good enough
8189 if test -n "$STRIP" ; then
8190 striplib
="$STRIP -x"
8191 echo "$as_me:$LINENO: result: yes" >&5
8192 echo "${ECHO_T}yes" >&6
8194 echo "$as_me:$LINENO: result: no" >&5
8195 echo "${ECHO_T}no" >&6
8199 echo "$as_me:$LINENO: result: no" >&5
8200 echo "${ECHO_T}no" >&6
8205 if test "x$enable_dlopen" != xyes
; then
8206 enable_dlopen
=unknown
8207 enable_dlopen_self
=unknown
8208 enable_dlopen_self_static
=unknown
8215 lt_cv_dlopen
="load_add_on"
8217 lt_cv_dlopen_self
=yes
8221 lt_cv_dlopen
="LoadLibrary"
8226 lt_cv_dlopen
="dlopen"
8231 # if libdl is installed we need to link against it
8232 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8233 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8234 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 ac_check_lib_save_LIBS
=$LIBS
8239 cat >conftest.
$ac_ext <<_ACEOF
8242 cat confdefs.h
>>conftest.
$ac_ext
8243 cat >>conftest.
$ac_ext <<_ACEOF
8244 /* end confdefs.h. */
8246 /* Override any gcc2 internal prototype to avoid an error. */
8250 /* We use char because int might match the return type of a gcc2
8251 builtin and then its argument prototype would still apply. */
8261 rm -f conftest.
$ac_objext conftest
$ac_exeext
8262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8263 (eval $ac_link) 2>conftest.er1
8265 grep -v '^ *+' conftest.er1
>conftest.err
8267 cat conftest.err
>&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } &&
8270 { ac_try
='test -z "$ac_c_werror_flag"
8271 || test ! -s conftest.err'
8272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); }; } &&
8277 { ac_try
='test -s conftest$ac_exeext'
8278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; }; then
8283 ac_cv_lib_dl_dlopen
=yes
8285 echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.
$ac_ext >&5
8288 ac_cv_lib_dl_dlopen
=no
8290 rm -f conftest.err conftest.
$ac_objext \
8291 conftest
$ac_exeext conftest.
$ac_ext
8292 LIBS
=$ac_check_lib_save_LIBS
8294 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8295 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8296 if test $ac_cv_lib_dl_dlopen = yes; then
8297 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
8302 lt_cv_dlopen_self
=yes
8309 echo "$as_me:$LINENO: checking for shl_load" >&5
8310 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8311 if test "${ac_cv_func_shl_load+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 cat >conftest.
$ac_ext <<_ACEOF
8317 cat confdefs.h
>>conftest.
$ac_ext
8318 cat >>conftest.
$ac_ext <<_ACEOF
8319 /* end confdefs.h. */
8320 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8322 #define shl_load innocuous_shl_load
8324 /* System header to define __stub macros and hopefully few prototypes,
8325 which can conflict with char shl_load (); below.
8326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8327 <limits.h> exists even on freestanding compilers. */
8330 # include <limits.h>
8332 # include <assert.h>
8337 /* Override any gcc2 internal prototype to avoid an error. */
8342 /* We use char because int might match the return type of a gcc2
8343 builtin and then its argument prototype would still apply. */
8345 /* The GNU C library defines this for functions which it implements
8346 to always fail with ENOSYS. Some functions are actually named
8347 something starting with __ and the normal name is an alias. */
8348 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8351 char (*f) () = shl_load;
8360 return f != shl_load;
8365 rm -f conftest.
$ac_objext conftest
$ac_exeext
8366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8367 (eval $ac_link) 2>conftest.er1
8369 grep -v '^ *+' conftest.er1
>conftest.err
8371 cat conftest.err
>&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } &&
8374 { ac_try
='test -z "$ac_c_werror_flag"
8375 || test ! -s conftest.err'
8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; } &&
8381 { ac_try
='test -s conftest$ac_exeext'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; }; then
8387 ac_cv_func_shl_load
=yes
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.
$ac_ext >&5
8392 ac_cv_func_shl_load
=no
8394 rm -f conftest.err conftest.
$ac_objext \
8395 conftest
$ac_exeext conftest.
$ac_ext
8397 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8398 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8399 if test $ac_cv_func_shl_load = yes; then
8400 lt_cv_dlopen
="shl_load"
8402 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8403 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8404 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
8407 ac_check_lib_save_LIBS
=$LIBS
8409 cat >conftest.
$ac_ext <<_ACEOF
8412 cat confdefs.h
>>conftest.
$ac_ext
8413 cat >>conftest.
$ac_ext <<_ACEOF
8414 /* end confdefs.h. */
8416 /* Override any gcc2 internal prototype to avoid an error. */
8420 /* We use char because int might match the return type of a gcc2
8421 builtin and then its argument prototype would still apply. */
8431 rm -f conftest.
$ac_objext conftest
$ac_exeext
8432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8433 (eval $ac_link) 2>conftest.er1
8435 grep -v '^ *+' conftest.er1
>conftest.err
8437 cat conftest.err
>&5
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); } &&
8440 { ac_try
='test -z "$ac_c_werror_flag"
8441 || test ! -s conftest.err'
8442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); }; } &&
8447 { ac_try
='test -s conftest$ac_exeext'
8448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; }; then
8453 ac_cv_lib_dld_shl_load
=yes
8455 echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.
$ac_ext >&5
8458 ac_cv_lib_dld_shl_load
=no
8460 rm -f conftest.err conftest.
$ac_objext \
8461 conftest
$ac_exeext conftest.
$ac_ext
8462 LIBS
=$ac_check_lib_save_LIBS
8464 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8465 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8466 if test $ac_cv_lib_dld_shl_load = yes; then
8467 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
8469 echo "$as_me:$LINENO: checking for dlopen" >&5
8470 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8471 if test "${ac_cv_func_dlopen+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8474 cat >conftest.
$ac_ext <<_ACEOF
8477 cat confdefs.h
>>conftest.
$ac_ext
8478 cat >>conftest.
$ac_ext <<_ACEOF
8479 /* end confdefs.h. */
8480 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8482 #define dlopen innocuous_dlopen
8484 /* System header to define __stub macros and hopefully few prototypes,
8485 which can conflict with char dlopen (); below.
8486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8487 <limits.h> exists even on freestanding compilers. */
8490 # include <limits.h>
8492 # include <assert.h>
8497 /* Override any gcc2 internal prototype to avoid an error. */
8502 /* We use char because int might match the return type of a gcc2
8503 builtin and then its argument prototype would still apply. */
8505 /* The GNU C library defines this for functions which it implements
8506 to always fail with ENOSYS. Some functions are actually named
8507 something starting with __ and the normal name is an alias. */
8508 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8511 char (*f) () = dlopen;
8525 rm -f conftest.
$ac_objext conftest
$ac_exeext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8527 (eval $ac_link) 2>conftest.er1
8529 grep -v '^ *+' conftest.er1
>conftest.err
8531 cat conftest.err
>&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } &&
8534 { ac_try
='test -z "$ac_c_werror_flag"
8535 || test ! -s conftest.err'
8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; } &&
8541 { ac_try
='test -s conftest$ac_exeext'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
8547 ac_cv_func_dlopen
=yes
8549 echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.
$ac_ext >&5
8552 ac_cv_func_dlopen
=no
8554 rm -f conftest.err conftest.
$ac_objext \
8555 conftest
$ac_exeext conftest.
$ac_ext
8557 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8558 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8559 if test $ac_cv_func_dlopen = yes; then
8560 lt_cv_dlopen
="dlopen"
8562 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8563 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8564 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
8567 ac_check_lib_save_LIBS
=$LIBS
8569 cat >conftest.
$ac_ext <<_ACEOF
8572 cat confdefs.h
>>conftest.
$ac_ext
8573 cat >>conftest.
$ac_ext <<_ACEOF
8574 /* end confdefs.h. */
8576 /* Override any gcc2 internal prototype to avoid an error. */
8580 /* We use char because int might match the return type of a gcc2
8581 builtin and then its argument prototype would still apply. */
8591 rm -f conftest.
$ac_objext conftest
$ac_exeext
8592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8593 (eval $ac_link) 2>conftest.er1
8595 grep -v '^ *+' conftest.er1
>conftest.err
8597 cat conftest.err
>&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } &&
8600 { ac_try
='test -z "$ac_c_werror_flag"
8601 || test ! -s conftest.err'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; } &&
8607 { ac_try
='test -s conftest$ac_exeext'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
8613 ac_cv_lib_dl_dlopen
=yes
8615 echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.
$ac_ext >&5
8618 ac_cv_lib_dl_dlopen
=no
8620 rm -f conftest.err conftest.
$ac_objext \
8621 conftest
$ac_exeext conftest.
$ac_ext
8622 LIBS
=$ac_check_lib_save_LIBS
8624 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8625 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8626 if test $ac_cv_lib_dl_dlopen = yes; then
8627 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
8629 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8630 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8631 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8634 ac_check_lib_save_LIBS
=$LIBS
8636 cat >conftest.
$ac_ext <<_ACEOF
8639 cat confdefs.h
>>conftest.
$ac_ext
8640 cat >>conftest.
$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8643 /* Override any gcc2 internal prototype to avoid an error. */
8647 /* We use char because int might match the return type of a gcc2
8648 builtin and then its argument prototype would still apply. */
8658 rm -f conftest.
$ac_objext conftest
$ac_exeext
8659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8660 (eval $ac_link) 2>conftest.er1
8662 grep -v '^ *+' conftest.er1
>conftest.err
8664 cat conftest.err
>&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); } &&
8667 { ac_try
='test -z "$ac_c_werror_flag"
8668 || test ! -s conftest.err'
8669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }; } &&
8674 { ac_try
='test -s conftest$ac_exeext'
8675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); }; }; then
8680 ac_cv_lib_svld_dlopen
=yes
8682 echo "$as_me: failed program was:" >&5
8683 sed 's/^/| /' conftest.
$ac_ext >&5
8685 ac_cv_lib_svld_dlopen
=no
8687 rm -f conftest.err conftest.
$ac_objext \
8688 conftest
$ac_exeext conftest.
$ac_ext
8689 LIBS
=$ac_check_lib_save_LIBS
8691 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8692 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8693 if test $ac_cv_lib_svld_dlopen = yes; then
8694 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
8696 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8697 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8698 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8699 echo $ECHO_N "(cached) $ECHO_C" >&6
8701 ac_check_lib_save_LIBS
=$LIBS
8703 cat >conftest.
$ac_ext <<_ACEOF
8706 cat confdefs.h
>>conftest.
$ac_ext
8707 cat >>conftest.
$ac_ext <<_ACEOF
8708 /* end confdefs.h. */
8710 /* Override any gcc2 internal prototype to avoid an error. */
8714 /* We use char because int might match the return type of a gcc2
8715 builtin and then its argument prototype would still apply. */
8725 rm -f conftest.
$ac_objext conftest
$ac_exeext
8726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8727 (eval $ac_link) 2>conftest.er1
8729 grep -v '^ *+' conftest.er1
>conftest.err
8731 cat conftest.err
>&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); } &&
8734 { ac_try
='test -z "$ac_c_werror_flag"
8735 || test ! -s conftest.err'
8736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); }; } &&
8741 { ac_try
='test -s conftest$ac_exeext'
8742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); }; }; then
8747 ac_cv_lib_dld_dld_link
=yes
8749 echo "$as_me: failed program was:" >&5
8750 sed 's/^/| /' conftest.
$ac_ext >&5
8752 ac_cv_lib_dld_dld_link
=no
8754 rm -f conftest.err conftest.
$ac_objext \
8755 conftest
$ac_exeext conftest.
$ac_ext
8756 LIBS
=$ac_check_lib_save_LIBS
8758 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8759 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8760 if test $ac_cv_lib_dld_dld_link = yes; then
8761 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
8782 if test "x$lt_cv_dlopen" != xno
; then
8788 case $lt_cv_dlopen in
8790 save_CPPFLAGS
="$CPPFLAGS"
8791 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
8793 save_LDFLAGS
="$LDFLAGS"
8794 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
8797 LIBS
="$lt_cv_dlopen_libs $LIBS"
8799 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8800 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8801 if test "${lt_cv_dlopen_self+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 if test "$cross_compiling" = yes; then :
8805 lt_cv_dlopen_self
=cross
8807 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
8808 lt_status
=$lt_dlunknown
8809 cat > conftest.
$ac_ext <<EOF
8810 #line 8810 "configure"
8811 #include "confdefs.h"
8820 # define LT_DLGLOBAL RTLD_GLOBAL
8823 # define LT_DLGLOBAL DL_GLOBAL
8825 # define LT_DLGLOBAL 0
8829 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8830 find out it does not work in some platform. */
8831 #ifndef LT_DLLAZY_OR_NOW
8833 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8836 # define LT_DLLAZY_OR_NOW DL_LAZY
8839 # define LT_DLLAZY_OR_NOW RTLD_NOW
8842 # define LT_DLLAZY_OR_NOW DL_NOW
8844 # define LT_DLLAZY_OR_NOW 0
8852 extern "C" void exit (int);
8855 void fnord() { int i=42;}
8858 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8859 int status = $lt_dlunknown;
8863 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8864 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8865 /* dlclose (self); */
8871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8872 (eval $ac_link) 2>&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
8876 (.
/conftest
; exit; ) 2>/dev
/null
8879 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
8880 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
8881 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
8884 # compilation failed
8885 lt_cv_dlopen_self
=no
8892 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8893 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8895 if test "x$lt_cv_dlopen_self" = xyes
; then
8896 LDFLAGS
="$LDFLAGS $link_static_flag"
8897 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8898 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8899 if test "${lt_cv_dlopen_self_static+set}" = set; then
8900 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 if test "$cross_compiling" = yes; then :
8903 lt_cv_dlopen_self_static
=cross
8905 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
8906 lt_status
=$lt_dlunknown
8907 cat > conftest.
$ac_ext <<EOF
8908 #line 8908 "configure"
8909 #include "confdefs.h"
8918 # define LT_DLGLOBAL RTLD_GLOBAL
8921 # define LT_DLGLOBAL DL_GLOBAL
8923 # define LT_DLGLOBAL 0
8927 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8928 find out it does not work in some platform. */
8929 #ifndef LT_DLLAZY_OR_NOW
8931 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8934 # define LT_DLLAZY_OR_NOW DL_LAZY
8937 # define LT_DLLAZY_OR_NOW RTLD_NOW
8940 # define LT_DLLAZY_OR_NOW DL_NOW
8942 # define LT_DLLAZY_OR_NOW 0
8950 extern "C" void exit (int);
8953 void fnord() { int i=42;}
8956 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8957 int status = $lt_dlunknown;
8961 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8962 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8963 /* dlclose (self); */
8969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8970 (eval $ac_link) 2>&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
8974 (.
/conftest
; exit; ) 2>/dev
/null
8977 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
8978 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
8979 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
8982 # compilation failed
8983 lt_cv_dlopen_self_static
=no
8990 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8991 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8994 CPPFLAGS
="$save_CPPFLAGS"
8995 LDFLAGS
="$save_LDFLAGS"
9000 case $lt_cv_dlopen_self in
9001 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
9002 *) enable_dlopen_self
=unknown
;;
9005 case $lt_cv_dlopen_self_static in
9006 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
9007 *) enable_dlopen_self_static
=unknown
;;
9012 # Report which librarie types wil actually be built
9013 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9014 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9015 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9016 echo "${ECHO_T}$can_build_shared" >&6
9018 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9019 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9020 test "$can_build_shared" = "no" && enable_shared
=no
9022 # On AIX, shared libraries and static libraries use the same namespace, and
9023 # are all built from PIC.
9026 test "$enable_shared" = yes && enable_static
=no
9027 if test -n "$RANLIB"; then
9028 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
9029 postinstall_cmds
='$RANLIB $lib'
9034 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
9035 test "$enable_shared" = yes && enable_static
=no
9039 echo "$as_me:$LINENO: result: $enable_shared" >&5
9040 echo "${ECHO_T}$enable_shared" >&6
9042 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9043 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9044 # Make sure either enable_shared or enable_static is yes.
9045 test "$enable_shared" = yes || enable_static
=yes
9046 echo "$as_me:$LINENO: result: $enable_static" >&5
9047 echo "${ECHO_T}$enable_static" >&6
9049 # The else clause should only fire when bootstrapping the
9050 # libtool distribution, otherwise you forgot to ship ltmain.sh
9051 # with your package, and you will get complaints that there are
9052 # no rules to generate ltmain.sh.
9053 if test -f "$ltmain"; then
9054 # See if we are running on zsh, and set the options which allow our commands through
9055 # without removal of \ escapes.
9056 if test -n "${ZSH_VERSION+set}" ; then
9057 setopt NO_GLOB_SUBST
9059 # Now quote all the things that may contain metacharacters while being
9060 # careful not to overquote the AC_SUBSTed values. We take copies of the
9061 # variables and quote the copies for generation of the libtool script.
9062 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9064 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9065 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9066 deplibs_check_method reload_flag reload_cmds need_locks \
9067 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9068 lt_cv_sys_global_symbol_to_c_name_address \
9069 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9070 old_postinstall_cmds old_postuninstall_cmds \
9074 lt_prog_compiler_wl \
9075 lt_prog_compiler_pic \
9076 lt_prog_compiler_static \
9077 lt_prog_compiler_no_builtin_flag \
9078 export_dynamic_flag_spec \
9079 thread_safe_flag_spec \
9080 whole_archive_flag_spec \
9081 enable_shared_with_static_runtimes \
9083 old_archive_from_new_cmds \
9088 compiler_lib_search_path \
9090 archive_expsym_cmds \
9092 postuninstall_cmds \
9093 old_archive_from_expsyms_cmds \
9094 allow_undefined_flag \
9096 export_symbols_cmds \
9097 hardcode_libdir_flag_spec \
9098 hardcode_libdir_flag_spec_ld \
9099 hardcode_libdir_separator \
9100 hardcode_automatic \
9102 module_expsym_cmds \
9103 lt_cv_prog_compiler_c_o \
9108 old_archive_cmds | \
9109 old_archive_from_new_cmds | \
9111 archive_expsym_cmds | \
9113 module_expsym_cmds | \
9114 old_archive_from_expsyms_cmds | \
9115 export_symbols_cmds | \
9116 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9117 postinstall_cmds | postuninstall_cmds | \
9118 old_postinstall_cmds | old_postuninstall_cmds | \
9119 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
9120 # Double-quote double-evaled strings.
9121 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9124 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9130 *'\$0 --fallback-echo"')
9131 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9136 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9138 { echo "$as_me:$LINENO: creating $ofile" >&5
9139 echo "$as_me: creating $ofile" >&6;}
9141 cat <<__EOF__ >> "$cfgfile"
9144 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9145 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9146 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9148 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9149 # Free Software Foundation, Inc.
9151 # This file is part of GNU Libtool:
9152 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9154 # This program is free software; you can redistribute it and/or modify
9155 # it under the terms of the GNU General Public License as published by
9156 # the Free Software Foundation; either version 2 of the License, or
9157 # (at your option) any later version.
9159 # This program is distributed in the hope that it will be useful, but
9160 # WITHOUT ANY WARRANTY; without even the implied warranty of
9161 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9162 # General Public License for more details.
9164 # You should have received a copy of the GNU General Public License
9165 # along with this program; if not, write to the Free Software
9166 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9168 # As a special exception to the GNU General Public License, if you
9169 # distribute this file as part of a program that contains a
9170 # configuration script generated by Autoconf, you may include it under
9171 # the same distribution terms that you use for the rest of that program.
9173 # A sed program that does not truncate output.
9176 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9177 Xsed="$SED -e s/^X//"
9179 # The HP-UX ksh and POSIX shell print the target directory to stdout
9181 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9183 # The names of the tagged configurations supported by this script.
9186 # ### BEGIN LIBTOOL CONFIG
9188 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9190 # Shell to use when invoking shell scripts.
9193 # Whether or not to build shared libraries.
9194 build_libtool_libs=$enable_shared
9196 # Whether or not to build static libraries.
9197 build_old_libs=$enable_static
9199 # Whether or not to add -lc for building shared libraries.
9200 build_libtool_need_lc=$archive_cmds_need_lc
9202 # Whether or not to disallow shared libs when runtime libs are static
9203 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9205 # Whether or not to optimize for fast installation.
9206 fast_install=$enable_fast_install
9209 host_alias=$host_alias
9214 build_alias=$build_alias
9218 # An echo program that does not interpret backslashes.
9223 AR_FLAGS=$lt_AR_FLAGS
9228 # A language-specific compiler.
9231 # Is the compiler the GNU C compiler?
9237 # The linker used to build libraries.
9240 # Whether we need hard or soft links.
9243 # A BSD-compatible nm program.
9246 # A symbol stripping program
9249 # Used to examine libraries when file_magic_cmd begins "file"
9250 MAGIC_CMD=$MAGIC_CMD
9252 # Used on cygwin: DLL creation program.
9255 # Used on cygwin: object dumper.
9258 # Used on cygwin: assembler.
9261 # The name of the directory that contains temporary libtool files.
9264 # How to create reloadable object files.
9265 reload_flag=$lt_reload_flag
9266 reload_cmds=$lt_reload_cmds
9268 # How to pass a linker flag through the compiler.
9269 wl=$lt_lt_prog_compiler_wl
9271 # Object file suffix (normally "o").
9274 # Old archive suffix (normally "a").
9277 # Shared library suffix (normally ".so").
9278 shrext_cmds='$shrext_cmds'
9280 # Executable file suffix (normally "").
9283 # Additional compiler flags for building library objects.
9284 pic_flag=$lt_lt_prog_compiler_pic
9287 # What is the maximum length of a command?
9288 max_cmd_len=$lt_cv_sys_max_cmd_len
9290 # Does compiler simultaneously support -c and -o options?
9291 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9293 # Must we lock files when doing compilation ?
9294 need_locks=$lt_need_locks
9296 # Do we need the lib prefix for modules?
9297 need_lib_prefix=$need_lib_prefix
9299 # Do we need a version for libraries?
9300 need_version=$need_version
9302 # Whether dlopen is supported.
9303 dlopen_support=$enable_dlopen
9305 # Whether dlopen of programs is supported.
9306 dlopen_self=$enable_dlopen_self
9308 # Whether dlopen of statically linked programs is supported.
9309 dlopen_self_static=$enable_dlopen_self_static
9311 # Compiler flag to prevent dynamic linking.
9312 link_static_flag=$lt_lt_prog_compiler_static
9314 # Compiler flag to turn off builtin functions.
9315 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9317 # Compiler flag to allow reflexive dlopens.
9318 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9320 # Compiler flag to generate shared objects directly from archives.
9321 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9323 # Compiler flag to generate thread-safe objects.
9324 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9326 # Library versioning type.
9327 version_type=$version_type
9329 # Format of library name prefix.
9330 libname_spec=$lt_libname_spec
9332 # List of archive names. First name is the real one, the rest are links.
9333 # The last name is the one that the linker finds with -lNAME.
9334 library_names_spec=$lt_library_names_spec
9336 # The coded name of the library, if different from the real name.
9337 soname_spec=$lt_soname_spec
9339 # Commands used to build and install an old-style archive.
9341 old_archive_cmds=$lt_old_archive_cmds
9342 old_postinstall_cmds=$lt_old_postinstall_cmds
9343 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9345 # Create an old-style archive from a shared archive.
9346 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9348 # Create a temporary old-style archive to link instead of a shared archive.
9349 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9351 # Commands used to build and install a shared archive.
9352 archive_cmds=$lt_archive_cmds
9353 archive_expsym_cmds=$lt_archive_expsym_cmds
9354 postinstall_cmds=$lt_postinstall_cmds
9355 postuninstall_cmds=$lt_postuninstall_cmds
9357 # Commands used to build a loadable module (assumed same as above if empty)
9358 module_cmds=$lt_module_cmds
9359 module_expsym_cmds=$lt_module_expsym_cmds
9361 # Commands to strip libraries.
9362 old_striplib=$lt_old_striplib
9363 striplib=$lt_striplib
9365 # Dependencies to place before the objects being linked to create a
9367 predep_objects=$lt_predep_objects
9369 # Dependencies to place after the objects being linked to create a
9371 postdep_objects=$lt_postdep_objects
9373 # Dependencies to place before the objects being linked to create a
9377 # Dependencies to place after the objects being linked to create a
9379 postdeps=$lt_postdeps
9381 # The library search path used internally by the compiler when linking
9383 compiler_lib_search_path=$lt_compiler_lib_search_path
9385 # Method to check whether dependent libraries are shared objects.
9386 deplibs_check_method=$lt_deplibs_check_method
9388 # Command to use when deplibs_check_method == file_magic.
9389 file_magic_cmd=$lt_file_magic_cmd
9391 # Flag that allows shared libraries with undefined symbols to be built.
9392 allow_undefined_flag=$lt_allow_undefined_flag
9394 # Flag that forces no undefined symbols.
9395 no_undefined_flag=$lt_no_undefined_flag
9397 # Commands used to finish a libtool library installation in a directory.
9398 finish_cmds=$lt_finish_cmds
9400 # Same as above, but a single script fragment to be evaled but not shown.
9401 finish_eval=$lt_finish_eval
9403 # Take the output of nm and produce a listing of raw symbols and C names.
9404 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9406 # Transform the output of nm in a proper C declaration
9407 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9409 # Transform the output of nm in a C name address pair
9410 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9412 # This is the shared library runtime path variable.
9413 runpath_var=$runpath_var
9415 # This is the shared library path variable.
9416 shlibpath_var=$shlibpath_var
9418 # Is shlibpath searched before the hard-coded library search path?
9419 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9421 # How to hardcode a shared library path into an executable.
9422 hardcode_action=$hardcode_action
9424 # Whether we should hardcode library paths into libraries.
9425 hardcode_into_libs=$hardcode_into_libs
9427 # Flag to hardcode \$libdir into a binary during linking.
9428 # This must work even if \$libdir does not exist.
9429 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9431 # If ld is used when linking, flag to hardcode \$libdir into
9432 # a binary during linking. This must work even if \$libdir does
9434 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9436 # Whether we need a single -rpath flag with a separated argument.
9437 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9439 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9441 hardcode_direct=$hardcode_direct
9443 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9445 hardcode_minus_L=$hardcode_minus_L
9447 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9448 # the resulting binary.
9449 hardcode_shlibpath_var=$hardcode_shlibpath_var
9451 # Set to yes if building a shared library automatically hardcodes DIR into the library
9452 # and all subsequent libraries and executables linked against it.
9453 hardcode_automatic=$hardcode_automatic
9455 # Variables whose values should be saved in libtool wrapper scripts and
9456 # restored at relink time.
9457 variables_saved_for_relink="$variables_saved_for_relink"
9459 # Whether libtool must link a program against all its dependency libraries.
9460 link_all_deplibs=$link_all_deplibs
9462 # Compile-time system search path for libraries
9463 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9465 # Run-time system search path for libraries
9466 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9468 # Fix the shell variable \$srcfile for the compiler.
9469 fix_srcfile_path="$fix_srcfile_path"
9471 # Set to yes if exported symbols are required.
9472 always_export_symbols=$always_export_symbols
9474 # The commands to list exported symbols.
9475 export_symbols_cmds=$lt_export_symbols_cmds
9477 # The commands to extract the exported symbol list from a shared archive.
9478 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9480 # Symbols that should not be listed in the preloaded symbols.
9481 exclude_expsyms=$lt_exclude_expsyms
9483 # Symbols that must always be exported.
9484 include_expsyms=$lt_include_expsyms
9486 # ### END LIBTOOL CONFIG
9493 cat <<\EOF
>> "$cfgfile"
9495 # AIX sometimes has problems with the GCC collect2 program. For some
9496 # reason, if we set the COLLECT_NAMES environment variable, the problems
9497 # vanish in a puff of smoke.
9498 if test "X${COLLECT_NAMES+set}" != Xset
; then
9500 export COLLECT_NAMES
9506 # We use sed instead of cat because bash on DJGPP gets confused if
9507 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9508 # text mode, it properly converts lines to CR/LF. This bash problem
9509 # is reportedly fixed, but why not run on old versions too?
9510 sed '$q' "$ltmain" >> "$cfgfile" ||
(rm -f "$cfgfile"; exit 1)
9512 mv -f "$cfgfile" "$ofile" || \
9513 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9517 # If there is no Makefile yet, we rely on a make rule to execute
9518 # `config.status --recheck' to rerun these tests and create the
9519 # libtool script then.
9520 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9521 if test -f "$ltmain_in"; then
9522 test -f Makefile
&& make "$ltmain"
9528 ac_cpp
='$CPP $CPPFLAGS'
9529 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9530 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9531 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9536 # Check whether --with-tags or --without-tags was given.
9537 if test "${with_tags+set}" = set; then
9538 withval
="$with_tags"
9542 if test -f "$ltmain" && test -n "$tagnames"; then
9543 if test ! -f "${ofile}"; then
9544 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9545 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9548 if test -z "$LTCC"; then
9549 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9550 if test -z "$LTCC"; then
9551 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9552 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9554 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9555 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9559 # Extract list of available tagged configurations in $ofile.
9560 # Note that this assumes the entire list is on one line.
9561 available_tags
=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9563 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
9564 for tagname
in $tagnames; do
9566 # Check whether tagname contains only valid characters
9567 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9569 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9570 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9571 { (exit 1); exit 1; }; }
9575 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev
/null
9577 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9578 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9579 { (exit 1); exit 1; }; }
9582 # Update the list of available tags.
9583 if test -n "$tagname"; then
9584 echo appending configuration tag
\"$tagname\" to
$ofile
9588 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9589 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9590 (test "X$CXX" != "Xg++"))) ; then
9592 ac_cpp
='$CXXCPP $CPPFLAGS'
9593 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9594 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9595 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9600 archive_cmds_need_lc_CXX
=no
9601 allow_undefined_flag_CXX
=
9602 always_export_symbols_CXX
=no
9603 archive_expsym_cmds_CXX
=
9604 export_dynamic_flag_spec_CXX
=
9605 hardcode_direct_CXX
=no
9606 hardcode_libdir_flag_spec_CXX
=
9607 hardcode_libdir_flag_spec_ld_CXX
=
9608 hardcode_libdir_separator_CXX
=
9609 hardcode_minus_L_CXX
=no
9610 hardcode_automatic_CXX
=no
9612 module_expsym_cmds_CXX
=
9613 link_all_deplibs_CXX
=unknown
9614 old_archive_cmds_CXX
=$old_archive_cmds
9615 no_undefined_flag_CXX
=
9616 whole_archive_flag_spec_CXX
=
9617 enable_shared_with_static_runtimes_CXX
=no
9619 # Dependencies to place before and after the object being linked:
9621 postdep_objects_CXX
=
9624 compiler_lib_search_path_CXX
=
9626 # Source file extension for C++ test sources.
9629 # Object file extension for compiled C++ test sources.
9633 # Code to be used in simple compile tests
9634 lt_simple_compile_test_code
="int some_variable = 0;\n"
9636 # Code to be used in simple link tests
9637 lt_simple_link_test_code
='int main(int, char *) { return(0); }\n'
9639 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9641 # If no C compiler was specified, use CC.
9644 # Allow CC to be a program name with arguments.
9648 # Allow CC to be a program name with arguments.
9653 lt_save_with_gnu_ld
=$with_gnu_ld
9654 lt_save_path_LD
=$lt_cv_path_LD
9655 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9656 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
9658 unset lt_cv_prog_gnu_ld
9660 if test -n "${lt_cv_path_LDCXX+set}"; then
9661 lt_cv_path_LD
=$lt_cv_path_LDCXX
9665 test -z "${LDCXX+set}" || LD
=$LDCXX
9669 cc_basename
=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9671 # We don't want -fno-exception wen compiling C++ code, so set the
9672 # no_builtin_flag separately
9673 if test "$GXX" = yes; then
9674 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
9676 lt_prog_compiler_no_builtin_flag_CXX
=
9679 if test "$GXX" = yes; then
9680 # Set up default GNU C++ configuration
9683 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9684 if test "${with_gnu_ld+set}" = set; then
9685 withval
="$with_gnu_ld"
9686 test "$withval" = no || with_gnu_ld
=yes
9691 if test "$GCC" = yes; then
9692 # Check if gcc -print-prog-name=ld gives a path.
9693 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9694 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9697 # gcc leaves a trailing carriage return which upsets mingw
9698 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9700 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9703 # Accept absolute paths.
9705 re_direlt
='/[^/][^/]*/\.\./'
9706 # Canonicalize the pathname of ld
9707 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
9708 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9709 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9711 test -z "$LD" && LD
="$ac_prog"
9714 # If it fails, then pretend we aren't using GCC.
9718 # If it is relative, then search for the first ld in PATH.
9722 elif test "$with_gnu_ld" = yes; then
9723 echo "$as_me:$LINENO: checking for GNU ld" >&5
9724 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9726 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9727 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9729 if test "${lt_cv_path_LD+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9732 if test -z "$LD"; then
9733 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
9734 for ac_dir
in $PATH; do
9736 test -z "$ac_dir" && ac_dir
=.
9737 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9738 lt_cv_path_LD
="$ac_dir/$ac_prog"
9739 # Check to see if the program is GNU ld. I'd rather use --version,
9740 # but apparently some GNU ld's only accept -v.
9741 # Break only if it was the GNU/non-GNU ld that we prefer.
9742 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9743 *GNU
* |
*'with BFD'*)
9744 test "$with_gnu_ld" != no
&& break
9747 test "$with_gnu_ld" != yes && break
9754 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
9759 if test -n "$LD"; then
9760 echo "$as_me:$LINENO: result: $LD" >&5
9761 echo "${ECHO_T}$LD" >&6
9763 echo "$as_me:$LINENO: result: no" >&5
9764 echo "${ECHO_T}no" >&6
9766 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9767 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9768 { (exit 1); exit 1; }; }
9769 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9770 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9771 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9775 case `$LD -v 2>&1 </dev/null` in
9776 *GNU
* |
*'with BFD'*)
9777 lt_cv_prog_gnu_ld
=yes
9780 lt_cv_prog_gnu_ld
=no
9784 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9785 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9786 with_gnu_ld
=$lt_cv_prog_gnu_ld
9790 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9791 # archiving commands below assume that GNU ld is being used.
9792 if test "$with_gnu_ld" = yes; then
9793 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9794 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'
9796 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
9797 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
9799 # If archive_cmds runs LD, not CC, wlarc should be empty
9800 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9801 # investigate it a little bit more. (MM)
9804 # ancient GNU ld didn't support --whole-archive et. al.
9805 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9806 grep 'no-whole-archive' > /dev
/null
; then
9807 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9809 whole_archive_flag_spec_CXX
=
9815 # A generic and very simple default shared library creation
9816 # command for GNU C++ for the case where it uses the native
9817 # linker, instead of GNU ld. If possible, this setting should
9818 # overridden to take advantage of the native linker features on
9819 # the platform it is being used on.
9820 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9823 # Commands to make compiler produce verbose output that lists
9824 # what "hidden" libraries, object files and flags are used when
9825 # linking a shared library.
9826 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9834 # PORTME: fill in a description of your system's C++ link characteristics
9835 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9836 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9840 # FIXME: insert proper C++ library support
9844 if test "$host_cpu" = ia64
; then
9845 # On IA64, the linker does run time linking by default, so we don't
9846 # have to do anything special.
9847 aix_use_runtimelinking
=no
9848 exp_sym_flag
='-Bexport'
9851 aix_use_runtimelinking
=no
9853 # Test if we are trying to use run time linking or normal
9854 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9855 # need to do runtime linking.
9856 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
9857 for ld_flag
in $LDFLAGS; do
9860 aix_use_runtimelinking
=yes
9867 exp_sym_flag
='-bexport'
9868 no_entry_flag
='-bnoentry'
9871 # When large executables or shared objects are built, AIX ld can
9872 # have problems creating the table of contents. If linking a library
9873 # or program results in "error TOC overflow" add -mminimal-toc to
9874 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9875 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9878 hardcode_direct_CXX
=yes
9879 hardcode_libdir_separator_CXX
=':'
9880 link_all_deplibs_CXX
=yes
9882 if test "$GXX" = yes; then
9883 case $host_os in aix4.
[012]|aix4.
[012].
*)
9884 # We only want to do this on AIX 4.2 and lower, the check
9885 # below for broken collect2 doesn't work under 4.3+
9886 collect2name
=`${CC} -print-prog-name=collect2`
9887 if test -f "$collect2name" && \
9888 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
9890 # We have reworked collect2
9891 hardcode_direct_CXX
=yes
9893 # We have old collect2
9894 hardcode_direct_CXX
=unsupported
9895 # It fails to find uninstalled libraries when the uninstalled
9896 # path is not listed in the libpath. Setting hardcode_minus_L
9897 # to unsupported forces relinking
9898 hardcode_minus_L_CXX
=yes
9899 hardcode_libdir_flag_spec_CXX
='-L$libdir'
9900 hardcode_libdir_separator_CXX
=
9903 shared_flag
='-shared'
9904 if test "$aix_use_runtimelinking" = yes; then
9905 shared_flag
="$shared_flag "'${wl}-G'
9909 if test "$host_cpu" = ia64
; then
9910 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9911 # chokes on -Wl,-G. The following line is correct:
9914 if test "$aix_use_runtimelinking" = yes; then
9915 shared_flag
='${wl}-G'
9917 shared_flag
='${wl}-bM:SRE'
9922 # It seems that -bexpall does not export symbols beginning with
9923 # underscore (_), so it is better to generate a list of symbols to export.
9924 always_export_symbols_CXX
=yes
9925 if test "$aix_use_runtimelinking" = yes; then
9926 # Warning - without using the other runtime loading flags (-brtl),
9927 # -berok will link without error, but may produce a broken library.
9928 allow_undefined_flag_CXX
='-berok'
9929 # Determine the default libpath from the value encoded in an empty executable.
9930 cat >conftest.
$ac_ext <<_ACEOF
9933 cat confdefs.h
>>conftest.
$ac_ext
9934 cat >>conftest.
$ac_ext <<_ACEOF
9935 /* end confdefs.h. */
9945 rm -f conftest.
$ac_objext conftest
$ac_exeext
9946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9947 (eval $ac_link) 2>conftest.er1
9949 grep -v '^ *+' conftest.er1
>conftest.err
9951 cat conftest.err
>&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } &&
9954 { ac_try
='test -z "$ac_cxx_werror_flag"
9955 || test ! -s conftest.err'
9956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; } &&
9961 { ac_try
='test -s conftest$ac_exeext'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; }; then
9968 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9970 # Check for a 64-bit object if we didn't find anything.
9971 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; }
9974 echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.
$ac_ext >&5
9978 rm -f conftest.err conftest.
$ac_objext \
9979 conftest
$ac_exeext conftest.
$ac_ext
9980 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9982 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
9984 archive_expsym_cmds_CXX
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9986 if test "$host_cpu" = ia64; then
9987 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr
/lib
:/lib
'
9988 allow_undefined_flag_CXX="-z nodefs"
9989 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\
$export_symbols"
9991 # Determine the default libpath from the value encoded in an empty executable.
9992 cat >conftest.$ac_ext <<_ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
10007 rm -f conftest.$ac_objext conftest$ac_exeext
10008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10009 (eval $ac_link) 2>conftest.er1
10011 grep -v '^ *+' conftest.er1 >conftest.err
10013 cat conftest.err >&5
10014 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10015 (exit $ac_status); } &&
10016 { ac_try='test -z "$ac_cxx_werror_flag"
10017 || test ! -s conftest.err'
10018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10019 (eval $ac_try) 2>&5
10021 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10022 (exit $ac_status); }; } &&
10023 { ac_try='test -s conftest$ac_exeext'
10024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025 (eval $ac_try) 2>&5
10027 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10028 (exit $ac_status); }; }; then
10030 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10032 # Check for a 64-bit object if we didn't find anything.
10033 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; }
10036 echo "$as_me: failed program was
:" >&5
10037 sed 's/^/| /' conftest.$ac_ext >&5
10040 rm -f conftest.err conftest.$ac_objext \
10041 conftest$ac_exeext conftest.$ac_ext
10042 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
10044 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10045 # Warning - without using the other run time loading flags,
10046 # -berok will link without error, but may produce a broken library.
10047 no_undefined_flag_CXX=' ${wl}-bernotok'
10048 allow_undefined_flag_CXX=' ${wl}-berok'
10049 # -bexpall does not export symbols beginning with underscore (_)
10050 always_export_symbols_CXX=yes
10051 # Exported symbols can be pulled into shared objects from archives
10052 whole_archive_flag_spec_CXX=' '
10053 archive_cmds_need_lc_CXX=yes
10054 # This is similar to how AIX traditionally builds it's shared libraries.
10055 archive_expsym_cmds_CXX="\
$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10060 case $cc_basename in
10062 # FIXME: insert proper C++ library support
10069 cygwin* | mingw* | pw32*)
10070 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10071 # as there is no search path for DLLs.
10072 hardcode_libdir_flag_spec_CXX='-L$libdir'
10073 allow_undefined_flag_CXX=unsupported
10074 always_export_symbols_CXX=no
10075 enable_shared_with_static_runtimes_CXX=yes
10077 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10078 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10079 # If the export-symbols file already is a .def file (1st line
10080 # is EXPORTS), use it as is; otherwise, prepend...
10081 archive_expsym_cmds_CXX='if test "x
`$SED 1q $export_symbols`" = xEXPORTS; then
10082 cp $export_symbols $output_objdir/$soname.def;
10084 echo EXPORTS > $output_objdir/$soname.def;
10085 cat $export_symbols >> $output_objdir/$soname.def;
10087 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10092 darwin* | rhapsody*)
10094 rhapsody* | darwin1.[012])
10095 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10098 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10099 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10101 case ${MACOSX_DEPLOYMENT_TARGET} in
10103 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10106 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10112 archive_cmds_need_lc_CXX=no
10113 hardcode_direct_CXX=no
10114 hardcode_automatic_CXX=yes
10115 hardcode_shlibpath_var_CXX=unsupported
10116 whole_archive_flag_spec_CXX=''
10117 link_all_deplibs_CXX=yes
10119 if test "$GXX" = yes ; then
10120 lt_int_apple_cc_single_mod=no
10121 output_verbose_link_cmd='echo'
10122 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10123 lt_int_apple_cc_single_mod=yes
10125 if test "X
$lt_int_apple_cc_single_mod" = Xyes ; then
10126 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10128 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'
10130 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10131 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10132 if test "X
$lt_int_apple_cc_single_mod" = Xyes ; then
10133 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}'
10135 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}'
10137 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}'
10139 case "$cc_basename" in
10141 output_verbose_link_cmd
='echo'
10142 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'
10143 module_cmds_CXX
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10144 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10145 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}'
10146 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}'
10156 case $cc_basename in
10158 # FIXME: insert proper C++ library support
10162 # Green Hills C++ Compiler
10163 # FIXME: insert proper C++ library support
10167 # FIXME: insert proper C++ library support
10173 # C++ shared libraries reported to be fairly broken before switch to ELF
10177 archive_cmds_need_lc_CXX
=no
10179 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
10180 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10187 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10188 hardcode_libdir_separator_CXX
=:
10189 export_dynamic_flag_spec_CXX
='${wl}-E'
10190 hardcode_direct_CXX
=yes
10191 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10192 # but as the default
10193 # location of the library.
10195 case $cc_basename in
10197 # FIXME: insert proper C++ library support
10201 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'
10202 # Commands to make compiler produce verbose output that lists
10203 # what "hidden" libraries, object files and flags are used when
10204 # linking a shared library.
10206 # There doesn't appear to be a way to prevent this compiler from
10207 # explicitly linking system object files so we need to strip them
10208 # from the output so that they don't get included in the library
10210 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'
10213 if test "$GXX" = yes; then
10214 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'
10216 # FIXME: insert proper C++ library support
10223 if test $with_gnu_ld = no
; then
10224 case "$host_cpu" in
10226 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10227 hardcode_libdir_flag_spec_ld_CXX
='+b $libdir'
10228 hardcode_libdir_separator_CXX
=:
10231 hardcode_libdir_flag_spec_CXX
='-L$libdir'
10234 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10235 hardcode_libdir_separator_CXX
=:
10236 export_dynamic_flag_spec_CXX
='${wl}-E'
10240 case "$host_cpu" in
10242 hardcode_direct_CXX
=no
10243 hardcode_shlibpath_var_CXX
=no
10246 hardcode_direct_CXX
=no
10247 hardcode_shlibpath_var_CXX
=no
10248 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10249 # but as the default
10250 # location of the library.
10253 hardcode_direct_CXX
=yes
10254 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10255 # but as the default
10256 # location of the library.
10260 case $cc_basename in
10262 # FIXME: insert proper C++ library support
10266 case "$host_cpu" in
10268 archive_cmds_CXX
='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10271 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10274 # Commands to make compiler produce verbose output that lists
10275 # what "hidden" libraries, object files and flags are used when
10276 # linking a shared library.
10278 # There doesn't appear to be a way to prevent this compiler from
10279 # explicitly linking system object files so we need to strip them
10280 # from the output so that they don't get included in the library
10282 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'
10285 if test "$GXX" = yes; then
10286 if test $with_gnu_ld = no
; then
10287 case "$host_cpu" in
10289 archive_cmds_CXX
='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10292 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'
10297 # FIXME: insert proper C++ library support
10304 case $cc_basename in
10307 archive_cmds_CXX
='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10309 # Archives containing C++ object files must be created using
10310 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10311 # necessary to make sure instantiated templates are included
10313 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
10316 if test "$GXX" = yes; then
10317 if test "$with_gnu_ld" = no
; then
10318 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10320 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'
10323 link_all_deplibs_CXX
=yes
10326 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10327 hardcode_libdir_separator_CXX
=:
10330 case $cc_basename in
10332 # Kuck and Associates, Inc. (KAI) C++ Compiler
10334 # KCC will only create a shared library if the output file
10335 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10336 # to its proper name (with version) after linking.
10337 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'
10338 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'
10339 # Commands to make compiler produce verbose output that lists
10340 # what "hidden" libraries, object files and flags are used when
10341 # linking a shared library.
10343 # There doesn't appear to be a way to prevent this compiler from
10344 # explicitly linking system object files so we need to strip them
10345 # from the output so that they don't get included in the library
10347 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'
10349 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
10350 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
10352 # Archives containing C++ object files must be created using
10353 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10354 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
10359 # version 8.0 and above of icpc choke on multiply defined symbols
10360 # if we add $predep_objects and $postdep_objects, however 7.1 and
10361 # earlier do not add the objects themselves.
10362 case `$CC -V 2>&1` in
10364 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10365 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'
10367 *) # Version 8.0 or newer
10370 ia64
*) tmp_idyn
=' -i_dynamic';;
10372 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10373 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'
10376 archive_cmds_need_lc_CXX
=no
10377 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10378 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
10379 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10382 # Portland Group C++ compiler
10383 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10384 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'
10386 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
10387 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
10391 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10392 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'
10394 runpath_var
=LD_RUN_PATH
10395 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
10396 hardcode_libdir_separator_CXX
=:
10398 # Commands to make compiler produce verbose output that lists
10399 # what "hidden" libraries, object files and flags are used when
10400 # linking a shared library.
10402 # There doesn't appear to be a way to prevent this compiler from
10403 # explicitly linking system object files so we need to strip them
10404 # from the output so that they don't get included in the library
10406 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'
10411 # FIXME: insert proper C++ library support
10415 # FIXME: insert proper C++ library support
10419 case $cc_basename in
10421 # FIXME: insert proper C++ library support
10425 # FIXME: insert proper C++ library support
10431 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
10432 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10434 hardcode_libdir_flag_spec_CXX
='-R$libdir'
10435 hardcode_direct_CXX
=yes
10436 hardcode_shlibpath_var_CXX
=no
10438 # Workaround some broken pre-1.5 toolchains
10439 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10442 # C++ shared libraries are fairly broken
10446 hardcode_direct_CXX
=yes
10447 hardcode_shlibpath_var_CXX
=no
10448 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10449 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10450 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10451 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10452 export_dynamic_flag_spec_CXX
='${wl}-E'
10453 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10455 output_verbose_link_cmd
='echo'
10458 case $cc_basename in
10460 # Kuck and Associates, Inc. (KAI) C++ Compiler
10462 # KCC will only create a shared library if the output file
10463 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10464 # to its proper name (with version) after linking.
10465 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'
10467 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10468 hardcode_libdir_separator_CXX
=:
10470 # Archives containing C++ object files must be created using
10471 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10472 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
10476 # Rational C++ 2.4.1
10477 # FIXME: insert proper C++ library support
10481 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
10482 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10484 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10485 hardcode_libdir_separator_CXX
=:
10487 # Commands to make compiler produce verbose output that lists
10488 # what "hidden" libraries, object files and flags are used when
10489 # linking a shared library.
10491 # There doesn't appear to be a way to prevent this compiler from
10492 # explicitly linking system object files so we need to strip them
10493 # from the output so that they don't get included in the library
10495 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'
10498 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
10499 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
10500 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10502 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10503 hardcode_libdir_separator_CXX
=:
10505 # Commands to make compiler produce verbose output that lists
10506 # what "hidden" libraries, object files and flags are used when
10507 # linking a shared library.
10508 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10511 # FIXME: insert proper C++ library support
10518 case $cc_basename in
10520 # Kuck and Associates, Inc. (KAI) C++ Compiler
10522 # KCC will only create a shared library if the output file
10523 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10524 # to its proper name (with version) after linking.
10525 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'
10527 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10528 hardcode_libdir_separator_CXX
=:
10530 # Archives containing C++ object files must be created using
10531 # the KAI C++ compiler.
10532 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
10535 # Rational C++ 2.4.1
10536 # FIXME: insert proper C++ library support
10540 allow_undefined_flag_CXX
=' -expect_unresolved \*'
10541 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10542 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10543 echo "-hidden">> $lib.exp~
10544 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10547 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
10548 hardcode_libdir_separator_CXX
=:
10550 # Commands to make compiler produce verbose output that lists
10551 # what "hidden" libraries, object files and flags are used when
10552 # linking a shared library.
10554 # There doesn't appear to be a way to prevent this compiler from
10555 # explicitly linking system object files so we need to strip them
10556 # from the output so that they don't get included in the library
10558 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'
10561 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
10562 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
10563 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10565 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10566 hardcode_libdir_separator_CXX
=:
10568 # Commands to make compiler produce verbose output that lists
10569 # what "hidden" libraries, object files and flags are used when
10570 # linking a shared library.
10571 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10574 # FIXME: insert proper C++ library support
10581 # FIXME: insert proper C++ library support
10585 archive_cmds_need_lc_CXX
=no
10586 case $cc_basename in
10588 # FIXME: insert proper C++ library support
10592 # FIXME: insert proper C++ library support
10598 case $cc_basename in
10601 # FIXME: insert proper C++ library support
10606 # FIXME: insert proper C++ library support
10610 # FIXME: insert proper C++ library support
10616 case $cc_basename in
10618 # Sun C++ 4.2, 5.x and Centerline C++
10619 no_undefined_flag_CXX
=' -zdefs'
10620 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10621 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10622 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10624 hardcode_libdir_flag_spec_CXX
='-R$libdir'
10625 hardcode_shlibpath_var_CXX
=no
10627 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10629 # The C++ compiler is used as linker so we must use $wl
10630 # flag to pass the commands to the underlying system
10632 # Supported since Solaris 2.6 (maybe 2.5.1?)
10633 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10636 link_all_deplibs_CXX
=yes
10638 # Commands to make compiler produce verbose output that lists
10639 # what "hidden" libraries, object files and flags are used when
10640 # linking a shared library.
10642 # There doesn't appear to be a way to prevent this compiler from
10643 # explicitly linking system object files so we need to strip them
10644 # from the output so that they don't get included in the library
10646 output_verbose_link_cmd
='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10648 # Archives containing C++ object files must be created using
10649 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10650 # necessary to make sure instantiated templates are included
10652 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
10655 # Green Hills C++ Compiler
10656 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10658 # The C++ compiler must be used to create the archive.
10659 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10662 # GNU C++ compiler with Solaris linker
10663 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
10664 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
10665 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
10666 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10667 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10668 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10670 # Commands to make compiler produce verbose output that lists
10671 # what "hidden" libraries, object files and flags are used when
10672 # linking a shared library.
10673 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10675 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10677 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10678 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10679 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10681 # Commands to make compiler produce verbose output that lists
10682 # what "hidden" libraries, object files and flags are used when
10683 # linking a shared library.
10684 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10687 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
10692 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
10693 archive_cmds_need_lc_CXX
=no
10696 case $cc_basename in
10698 # NonStop-UX NCC 3.20
10699 # FIXME: insert proper C++ library support
10703 # FIXME: insert proper C++ library support
10709 # FIXME: insert proper C++ library support
10713 # FIXME: insert proper C++ library support
10717 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10718 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10719 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
10725 cat > conftest.
$ac_ext <<EOF
10729 Foo (void) { a = 0; }
10735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10736 (eval $ac_compile) 2>&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; then
10740 # Parse the compiler output and extract the necessary
10741 # objects, libraries and library flags.
10743 # Sentinel used to keep track of whether or not we are before
10744 # the conftest object file.
10745 pre_test_object_deps_done
=no
10747 # The `*' in the case matches for architectures that use `case' in
10748 # $output_verbose_cmd can trigger glob expansion during the loop
10749 # eval without this substitution.
10750 output_verbose_link_cmd
="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10752 for p
in `eval $output_verbose_link_cmd`; do
10756 # Some compilers place space between "-{L,R}" and the path.
10757 # Remove the space.
10758 if test $p = "-L" \
10759 ||
test $p = "-R"; then
10766 if test "$pre_test_object_deps_done" = no
; then
10769 # Internal compiler library paths should come after those
10770 # provided the user. The postdeps already come after the
10771 # user supplied libs so there is no need to process them.
10772 if test -z "$compiler_lib_search_path_CXX"; then
10773 compiler_lib_search_path_CXX
="${prev}${p}"
10775 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
10778 # The "-l" case would never come before the object being
10779 # linked, so don't bother handling this case.
10782 if test -z "$postdeps_CXX"; then
10783 postdeps_CXX
="${prev}${p}"
10785 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
10791 # This assumes that the test object file only shows up
10792 # once in the compiler output.
10793 if test "$p" = "conftest.$objext"; then
10794 pre_test_object_deps_done
=yes
10798 if test "$pre_test_object_deps_done" = no
; then
10799 if test -z "$predep_objects_CXX"; then
10800 predep_objects_CXX
="$p"
10802 predep_objects_CXX
="$predep_objects_CXX $p"
10805 if test -z "$postdep_objects_CXX"; then
10806 postdep_objects_CXX
="$p"
10808 postdep_objects_CXX
="$postdep_objects_CXX $p"
10813 *) ;; # Ignore the rest.
10821 echo "libtool.m4: error: problem compiling CXX test program"
10824 $rm -f confest.
$objext
10826 case " $postdeps_CXX " in
10827 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
10830 lt_prog_compiler_wl_CXX
=
10831 lt_prog_compiler_pic_CXX
=
10832 lt_prog_compiler_static_CXX
=
10834 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10835 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10837 # C++ specific cases for pic, static, wl, etc.
10838 if test "$GXX" = yes; then
10839 lt_prog_compiler_wl_CXX
='-Wl,'
10840 lt_prog_compiler_static_CXX
='-static'
10844 # All AIX code is PIC.
10845 if test "$host_cpu" = ia64
; then
10846 # AIX 5 now supports IA64 processor
10847 lt_prog_compiler_static_CXX
='-Bstatic'
10851 # FIXME: we need at least 68020 code to build shared libraries, but
10852 # adding the `-m68020' flag to GCC prevents building anything better,
10854 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
10856 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
10857 # PIC is the default for these OSes.
10859 mingw
* | os2
* | pw32
*)
10860 # This hack is so that the source file can tell whether it is being
10861 # built for inclusion in a dll (and should export symbols for example).
10862 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
10864 darwin
* | rhapsody
*)
10865 # PIC is the default on this platform
10866 # Common symbols not allowed in MH_DYLIB files
10867 lt_prog_compiler_pic_CXX
='-fno-common'
10870 # DJGPP does not support shared libraries at all
10871 lt_prog_compiler_pic_CXX
=
10874 if test -d /usr
/nec
; then
10875 lt_prog_compiler_pic_CXX
=-Kconform_pic
10879 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10880 # not for PA HP-UX.
10881 case "$host_cpu" in
10885 lt_prog_compiler_pic_CXX
='-fPIC'
10890 lt_prog_compiler_pic_CXX
='-fPIC'
10896 # All AIX code is PIC.
10897 if test "$host_cpu" = ia64
; then
10898 # AIX 5 now supports IA64 processor
10899 lt_prog_compiler_static_CXX
='-Bstatic'
10901 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
10905 case $cc_basename in
10907 # Green Hills C++ Compiler
10908 # _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"
10913 # PIC is the default on this platform
10914 # Common symbols not allowed in MH_DYLIB files
10915 case "$cc_basename" in
10917 lt_prog_compiler_pic_CXX
='-qnocommon'
10918 lt_prog_compiler_wl_CXX
='-Wl,'
10923 case $cc_basename in
10925 lt_prog_compiler_pic_CXX
='-KPIC'
10928 # Green Hills C++ Compiler
10929 lt_prog_compiler_pic_CXX
='-pic'
10935 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
10936 # FreeBSD uses GNU C++
10938 hpux9
* | hpux10
* | hpux11
*)
10939 case $cc_basename in
10941 lt_prog_compiler_wl_CXX
='-Wl,'
10942 lt_prog_compiler_static_CXX
="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10943 if test "$host_cpu" != ia64
; then
10944 lt_prog_compiler_pic_CXX
='+Z'
10948 lt_prog_compiler_wl_CXX
='-Wl,'
10949 lt_prog_compiler_static_CXX
="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10950 case "$host_cpu" in
10955 lt_prog_compiler_pic_CXX
='+Z'
10963 irix5
* | irix6
* | nonstopux
*)
10964 case $cc_basename in
10966 lt_prog_compiler_wl_CXX
='-Wl,'
10967 lt_prog_compiler_static_CXX
='-non_shared'
10968 # CC pic flag -KPIC is the default.
10975 case $cc_basename in
10978 lt_prog_compiler_wl_CXX
='--backend -Wl,'
10979 lt_prog_compiler_pic_CXX
='-fPIC'
10983 lt_prog_compiler_wl_CXX
='-Wl,'
10984 lt_prog_compiler_pic_CXX
='-KPIC'
10985 lt_prog_compiler_static_CXX
='-static'
10988 # Portland Group C++ compiler.
10989 lt_prog_compiler_wl_CXX
='-Wl,'
10990 lt_prog_compiler_pic_CXX
='-fpic'
10991 lt_prog_compiler_static_CXX
='-static'
10995 # Make sure the PIC flag is empty. It appears that all Alpha
10996 # Linux and Compaq Tru64 Unix objects are PIC.
10997 lt_prog_compiler_pic_CXX
=
10998 lt_prog_compiler_static_CXX
='-non_shared'
11009 case $cc_basename in
11011 lt_prog_compiler_pic_CXX
='-W c,exportall'
11019 osf3
* | osf4
* | osf5
*)
11020 case $cc_basename in
11022 lt_prog_compiler_wl_CXX
='--backend -Wl,'
11025 # Rational C++ 2.4.1
11026 lt_prog_compiler_pic_CXX
='-pic'
11029 # Digital/Compaq C++
11030 lt_prog_compiler_wl_CXX
='-Wl,'
11031 # Make sure the PIC flag is empty. It appears that all Alpha
11032 # Linux and Compaq Tru64 Unix objects are PIC.
11033 lt_prog_compiler_pic_CXX
=
11034 lt_prog_compiler_static_CXX
='-non_shared'
11043 case $cc_basename in
11045 lt_prog_compiler_pic_CXX
='-fPIC'
11052 case $cc_basename in
11054 # Sun C++ 4.2, 5.x and Centerline C++
11055 lt_prog_compiler_pic_CXX
='-KPIC'
11056 lt_prog_compiler_static_CXX
='-Bstatic'
11057 lt_prog_compiler_wl_CXX
='-Qoption ld '
11060 # Green Hills C++ Compiler
11061 lt_prog_compiler_pic_CXX
='-PIC'
11068 case $cc_basename in
11071 lt_prog_compiler_pic_CXX
='-pic'
11072 lt_prog_compiler_static_CXX
='-Bstatic'
11076 lt_prog_compiler_pic_CXX
='-pic'
11083 case $cc_basename in
11085 # NonStop-UX NCC 3.20
11086 lt_prog_compiler_pic_CXX
='-KPIC'
11097 lt_prog_compiler_can_build_shared_CXX
=no
11102 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11103 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11106 # Check to make sure the PIC flag actually works.
11108 if test -n "$lt_prog_compiler_pic_CXX"; then
11110 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11111 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11112 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11115 lt_prog_compiler_pic_works_CXX
=no
11116 ac_outfile
=conftest.
$ac_objext
11117 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11118 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
11119 # Insert the option either (1) after the last *FLAGS variable, or
11120 # (2) before a word containing "conftest.", or (3) at the end.
11121 # Note that $ac_compile itself does not contain backslashes and begins
11122 # with a dollar sign (not a hyphen), so the echo should work correctly.
11123 # The option is referenced via a variable to avoid confusing sed.
11124 lt_compile
=`echo "$ac_compile" | $SED \
11125 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11127 -e 's:$: $lt_compiler_flag:'`
11128 (eval echo "\"\$as_me:11128: $lt_compile\"" >&5)
11129 (eval "$lt_compile" 2>conftest.err
)
11131 cat conftest.err
>&5
11132 echo "$as_me:11132: \$? = $ac_status" >&5
11133 if (exit $ac_status) && test -s "$ac_outfile"; then
11134 # The compiler can only warn and ignore the option if not recognized
11135 # So say no if there are warnings
11136 if test ! -s conftest.err
; then
11137 lt_prog_compiler_pic_works_CXX
=yes
11143 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11144 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11146 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
11147 case $lt_prog_compiler_pic_CXX in
11149 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
11152 lt_prog_compiler_pic_CXX
=
11153 lt_prog_compiler_can_build_shared_CXX
=no
11158 # For platforms which do not support PIC, -DPIC is meaningless:
11160 lt_prog_compiler_pic_CXX
=
11163 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
11167 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11168 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11169 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11172 lt_cv_prog_compiler_c_o_CXX
=no
11173 $rm -r conftest
2>/dev
/null
11177 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11179 lt_compiler_flag
="-o out/conftest2.$ac_objext"
11180 # Insert the option either (1) after the last *FLAGS variable, or
11181 # (2) before a word containing "conftest.", or (3) at the end.
11182 # Note that $ac_compile itself does not contain backslashes and begins
11183 # with a dollar sign (not a hyphen), so the echo should work correctly.
11184 lt_compile
=`echo "$ac_compile" | $SED \
11185 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11186 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11187 -e 's:$: $lt_compiler_flag:'`
11188 (eval echo "\"\$as_me:11188: $lt_compile\"" >&5)
11189 (eval "$lt_compile" 2>out
/conftest.err
)
11191 cat out
/conftest.err
>&5
11192 echo "$as_me:11192: \$? = $ac_status" >&5
11193 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
11195 # The compiler can only warn and ignore the option if not recognized
11196 # So say no if there are warnings
11197 if test ! -s out
/conftest.err
; then
11198 lt_cv_prog_compiler_c_o_CXX
=yes
11203 # SGI C++ compiler will create directory out/ii_files/ for
11204 # template instantiation
11205 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
11206 $rm out
/* && rmdir out
11212 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11213 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11216 hard_links
="nottested"
11217 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
11218 # do not overwrite the value of need_locks provided by the user
11219 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11220 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11223 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
11225 ln conftest.a conftest.b
2>&5 || hard_links
=no
11226 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
11227 echo "$as_me:$LINENO: result: $hard_links" >&5
11228 echo "${ECHO_T}$hard_links" >&6
11229 if test "$hard_links" = no
; then
11230 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11231 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11238 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11239 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11241 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11244 # If we're using GNU nm, then we don't want the "-C" option.
11245 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11246 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
11247 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'
11249 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'
11253 export_symbols_cmds_CXX
="$ltdll_cmds"
11256 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'
11259 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11263 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11264 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11265 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
11267 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11268 if test "$GCC" = yes; then
11269 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11273 # Do we need to explicitly link libc?
11275 case "x$archive_cmds_need_lc_CXX" in
11277 # Assume -lc should be added
11278 archive_cmds_need_lc_CXX
=yes
11280 if test "$enable_shared" = yes && test "$GCC" = yes; then
11281 case $archive_cmds_CXX in
11283 # FIXME: we may have to deal with multi-command sequences.
11286 # Test whether the compiler implicitly links with -lc since on some
11287 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11288 # to ld, don't add -lc before -lgcc.
11289 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11290 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11292 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11295 (eval $ac_compile) 2>&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } 2>conftest.err
; then
11301 libobjs
=conftest.
$ac_objext
11303 wl
=$lt_prog_compiler_wl_CXX
11309 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
11310 allow_undefined_flag_CXX
=
11311 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11312 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); }
11317 archive_cmds_need_lc_CXX
=no
11319 archive_cmds_need_lc_CXX
=yes
11321 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
11323 cat conftest.err
1>&5
11326 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11327 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11334 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11335 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11336 library_names_spec
=
11337 libname_spec
='lib$name'
11341 postuninstall_cmds
=
11345 shlibpath_overrides_runpath
=unknown
11347 dynamic_linker
="$host_os ld.so"
11348 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
11349 if test "$GCC" = yes; then
11350 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11351 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
11352 # if the path contains ";" then we assume it to be the separator
11353 # otherwise default to the standard path separator (i.e. ":") - it is
11354 # assumed that no part of a normal pathname contains ";" but that should
11355 # okay in the real world where ";" in dirpaths is itself problematic.
11356 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11358 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11361 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11363 need_lib_prefix
=unknown
11364 hardcode_into_libs
=no
11366 # when you set need_version to no, make sure it does not cause -set_version
11367 # flags to be left without arguments
11368 need_version
=unknown
11373 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
11374 shlibpath_var
=LIBPATH
11376 # AIX 3 has no versioning support, so we append a major version to the name.
11377 soname_spec
='${libname}${release}${shared_ext}$major'
11384 hardcode_into_libs
=yes
11385 if test "$host_cpu" = ia64
; then
11386 # AIX 5 supports IA64
11387 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11388 shlibpath_var
=LD_LIBRARY_PATH
11390 # With GCC up to 2.95.x, collect2 would create an import file
11391 # for dependence libraries. The import file would start with
11392 # the line `#! .'. This would cause the generated library to
11393 # depend on `.', always an invalid library. This was fixed in
11394 # development snapshots of GCC prior to 3.0.
11396 aix4 | aix4.
[01] | aix4.
[01].
*)
11397 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11399 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
11402 can_build_shared
=no
11406 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11407 # soname into executable. Probably we can add versioning support to
11408 # collect2, so additional links can be useful in future.
11409 if test "$aix_use_runtimelinking" = yes; then
11410 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11411 # instead of lib<name>.a to let people know that these are not
11412 # typical AIX shared libraries.
11413 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11415 # We preserve .a as extension for shared libraries through AIX4.2
11416 # and later when we are not doing run time linking.
11417 library_names_spec
='${libname}${release}.a $libname.a'
11418 soname_spec
='${libname}${release}${shared_ext}$major'
11420 shlibpath_var
=LIBPATH
11425 library_names_spec
='$libname.ixlibrary $libname.a'
11426 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11427 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'
11431 library_names_spec
='${libname}${shared_ext}'
11432 dynamic_linker
="$host_os ld.so"
11433 shlibpath_var
=LIBRARY_PATH
11439 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11440 soname_spec
='${libname}${release}${shared_ext}$major'
11441 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
11442 shlibpath_var
=LD_LIBRARY_PATH
11443 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11444 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
11445 # the default ld.so.conf also contains /usr/contrib/lib and
11446 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11447 # libtool to hard-code these into programs
11450 cygwin
* | mingw
* | pw32
*)
11451 version_type
=windows
11456 case $GCC,$host_os in
11457 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
11458 library_names_spec
='$libname.dll.a'
11459 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11460 postinstall_cmds
='base_file=`basename \${file}`~
11461 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11462 dldir=$destdir/`dirname \$dlpath`~
11463 test -d \$dldir || mkdir -p \$dldir~
11464 $install_prog $dir/$dlname \$dldir/$dlname'
11465 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11466 dlpath=$dir/\$dldll~
11468 shlibpath_overrides_runpath
=yes
11472 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11473 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11474 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
11477 # MinGW DLLs use traditional 'lib' prefix
11478 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11479 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11480 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
11481 # It is most probably a Windows format PATH printed by
11482 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11483 # path with ; separators, and with drive letters. We can handle the
11484 # drive letters (cygwin fileutils understands them), so leave them,
11485 # especially as we might pass files found there to a mingw objdump,
11486 # which wouldn't understand a cygwinified path. Ahh.
11487 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11489 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11493 # pw32 DLLs use 'pw' prefix rather than 'lib'
11494 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11500 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11503 dynamic_linker
='Win32 ld.exe'
11504 # FIXME: first we should search . and the directory the executable is in
11508 darwin
* | rhapsody
*)
11509 dynamic_linker
="$host_os dyld"
11510 version_type
=darwin
11513 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11514 soname_spec
='${libname}${release}${major}$shared_ext'
11515 shlibpath_overrides_runpath
=yes
11516 shlibpath_var
=DYLD_LIBRARY_PATH
11517 shrext_cmds
='$(test .$module = .yes && echo .so || echo .dylib)'
11518 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11519 if test "$GCC" = yes; then
11520 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"`
11522 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
11524 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11531 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11532 soname_spec
='${libname}${release}${shared_ext}$major'
11533 shlibpath_var
=LD_LIBRARY_PATH
11544 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11545 soname_spec
='${libname}${release}${shared_ext}$major'
11546 shlibpath_var
=LD_LIBRARY_PATH
11547 shlibpath_overrides_runpath
=no
11548 hardcode_into_libs
=yes
11549 dynamic_linker
='GNU ld.so'
11552 freebsd
* | dragonfly
*)
11553 # DragonFly does not have aout. When/if they implement a new
11554 # versioning mechanism, adjust this.
11555 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11556 version_type
=freebsd-
$objformat
11557 case $version_type in
11559 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11564 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11568 shlibpath_var
=LD_LIBRARY_PATH
11571 shlibpath_overrides_runpath
=yes
11573 freebsd3.
[01]* | freebsdelf3.
[01]*)
11574 shlibpath_overrides_runpath
=yes
11575 hardcode_into_libs
=yes
11578 shlibpath_overrides_runpath
=no
11579 hardcode_into_libs
=yes
11588 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11589 soname_spec
='${libname}${release}${shared_ext}$major'
11590 shlibpath_var
=LD_LIBRARY_PATH
11591 hardcode_into_libs
=yes
11594 hpux9
* | hpux10
* | hpux11
*)
11595 # Give a soname corresponding to the major version so that dld.sl refuses to
11596 # link against other versions.
11600 case "$host_cpu" in
11603 hardcode_into_libs
=yes
11604 dynamic_linker
="$host_os dld.so"
11605 shlibpath_var
=LD_LIBRARY_PATH
11606 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11607 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11608 soname_spec
='${libname}${release}${shared_ext}$major'
11609 if test "X$HPUX_IA64_MODE" = X32
; then
11610 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11612 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11614 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11618 hardcode_into_libs
=yes
11619 dynamic_linker
="$host_os dld.sl"
11620 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11621 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11622 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11623 soname_spec
='${libname}${release}${shared_ext}$major'
11624 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11625 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11629 dynamic_linker
="$host_os dld.sl"
11630 shlibpath_var
=SHLIB_PATH
11631 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11632 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11633 soname_spec
='${libname}${release}${shared_ext}$major'
11636 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11637 postinstall_cmds
='chmod 555 $lib'
11640 irix5
* | irix6
* | nonstopux
*)
11642 nonstopux
*) version_type
=nonstopux
;;
11644 if test "$lt_cv_prog_gnu_ld" = yes; then
11652 soname_spec
='${libname}${release}${shared_ext}$major'
11653 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11655 irix5
* | nonstopux
*)
11656 libsuff
= shlibsuff
=
11659 case $LD in # libtool.m4 will add one of these switches to LD
11660 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11661 libsuff
= shlibsuff
= libmagic
=32-bit;;
11662 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11663 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11664 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11665 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11666 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11670 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11671 shlibpath_overrides_runpath
=no
11672 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11673 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
11674 hardcode_into_libs
=yes
11677 # No shared lib support for Linux oldld, aout, or coff.
11678 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11682 # This must be Linux ELF.
11687 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11688 soname_spec
='${libname}${release}${shared_ext}$major'
11689 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11690 shlibpath_var
=LD_LIBRARY_PATH
11691 shlibpath_overrides_runpath
=no
11692 # This implies no fast_install, which is unacceptable.
11693 # Some rework will be needed to allow for fast_install
11694 # before this can be enabled.
11695 hardcode_into_libs
=yes
11697 # Append ld.so.conf contents to the search path
11698 if test -f /etc
/ld.so.conf
; then
11699 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11700 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11703 # We used to test for /lib/ld.so.1 and disable shared libraries on
11704 # powerpc, because MkLinux only supported shared libraries with the
11705 # GNU dynamic linker. Since this was broken with cross compilers,
11706 # most powerpc-linux boxes support dynamic linking these days and
11707 # people can always --disable-shared, the test was removed, and we
11708 # assume the GNU/Linux dynamic linker is in use.
11709 dynamic_linker
='GNU/Linux ld.so'
11716 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11717 soname_spec
='${libname}${release}${shared_ext}$major'
11718 shlibpath_var
=LD_LIBRARY_PATH
11719 shlibpath_overrides_runpath
=no
11720 hardcode_into_libs
=yes
11721 dynamic_linker
='GNU ld.so'
11728 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11729 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11730 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11731 dynamic_linker
='NetBSD (a.out) ld.so'
11733 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11734 soname_spec
='${libname}${release}${shared_ext}$major'
11735 dynamic_linker
='NetBSD ld.elf_so'
11737 shlibpath_var
=LD_LIBRARY_PATH
11738 shlibpath_overrides_runpath
=yes
11739 hardcode_into_libs
=yes
11744 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11745 shlibpath_var
=LD_LIBRARY_PATH
11746 shlibpath_overrides_runpath
=yes
11753 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11754 soname_spec
='${libname}${release}${shared_ext}$major'
11755 shlibpath_var
=LD_LIBRARY_PATH
11756 shlibpath_overrides_runpath
=yes
11763 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11764 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11765 shlibpath_var
=LD_LIBRARY_PATH
11766 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11768 openbsd2.
[89] | openbsd2.
[89].
*)
11769 shlibpath_overrides_runpath
=no
11772 shlibpath_overrides_runpath
=yes
11776 shlibpath_overrides_runpath
=yes
11781 libname_spec
='$name'
11784 library_names_spec
='$libname${shared_ext} $libname.a'
11785 dynamic_linker
='OS/2 ld.exe'
11786 shlibpath_var
=LIBPATH
11789 osf3
* | osf4
* | osf5
*)
11793 soname_spec
='${libname}${release}${shared_ext}$major'
11794 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11795 shlibpath_var
=LD_LIBRARY_PATH
11796 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11797 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11802 soname_spec
='${libname}${release}${shared_ext}$major'
11803 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11804 shlibpath_var
=LD_LIBRARY_PATH
11811 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11812 soname_spec
='${libname}${release}${shared_ext}$major'
11813 shlibpath_var
=LD_LIBRARY_PATH
11814 shlibpath_overrides_runpath
=yes
11815 hardcode_into_libs
=yes
11816 # ldd complains unless libraries are executable
11817 postinstall_cmds
='chmod +x $lib'
11822 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11823 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11824 shlibpath_var
=LD_LIBRARY_PATH
11825 shlibpath_overrides_runpath
=yes
11826 if test "$with_gnu_ld" = yes; then
11832 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
11834 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11835 soname_spec
='${libname}${release}${shared_ext}$major'
11836 shlibpath_var
=LD_LIBRARY_PATH
11837 case $host_vendor in
11839 shlibpath_overrides_runpath
=no
11841 export_dynamic_flag_spec
='${wl}-Blargedynsym'
11842 runpath_var
=LD_RUN_PATH
11850 shlibpath_overrides_runpath
=no
11851 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11857 if test -d /usr
/nec
;then
11859 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11860 soname_spec
='$libname${shared_ext}.$major'
11861 shlibpath_var
=LD_LIBRARY_PATH
11867 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11868 soname_spec
='${libname}${release}${shared_ext}$major'
11869 shlibpath_var
=LD_LIBRARY_PATH
11876 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11877 echo "${ECHO_T}$dynamic_linker" >&6
11878 test "$dynamic_linker" = no
&& can_build_shared
=no
11880 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11881 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11882 hardcode_action_CXX
=
11883 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11884 test -n "$runpath_var_CXX" || \
11885 test "X$hardcode_automatic_CXX" = "Xyes" ; then
11887 # We can hardcode non-existant directories.
11888 if test "$hardcode_direct_CXX" != no
&&
11889 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11890 # have to relink, otherwise we might link with an installed library
11891 # when we should be linking with a yet-to-be-installed one
11892 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11893 test "$hardcode_minus_L_CXX" != no
; then
11894 # Linking always hardcodes the temporary library directory.
11895 hardcode_action_CXX
=relink
11897 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11898 hardcode_action_CXX
=immediate
11901 # We cannot hardcode anything, or else we can only hardcode existing
11903 hardcode_action_CXX
=unsupported
11905 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11906 echo "${ECHO_T}$hardcode_action_CXX" >&6
11908 if test "$hardcode_action_CXX" = relink
; then
11909 # Fast installation is not supported
11910 enable_fast_install
=no
11911 elif test "$shlibpath_overrides_runpath" = yes ||
11912 test "$enable_shared" = no
; then
11913 # Fast installation is not necessary
11914 enable_fast_install
=needless
11919 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11920 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11921 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
11922 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11923 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11924 echo "$as_me:$LINENO: result: yes" >&5
11925 echo "${ECHO_T}yes" >&6
11927 # FIXME - insert some real tests, host_os isn't really good enough
11930 if test -n "$STRIP" ; then
11931 striplib
="$STRIP -x"
11932 echo "$as_me:$LINENO: result: yes" >&5
11933 echo "${ECHO_T}yes" >&6
11935 echo "$as_me:$LINENO: result: no" >&5
11936 echo "${ECHO_T}no" >&6
11940 echo "$as_me:$LINENO: result: no" >&5
11941 echo "${ECHO_T}no" >&6
11946 if test "x$enable_dlopen" != xyes
; then
11947 enable_dlopen
=unknown
11948 enable_dlopen_self
=unknown
11949 enable_dlopen_self_static
=unknown
11956 lt_cv_dlopen
="load_add_on"
11958 lt_cv_dlopen_self
=yes
11962 lt_cv_dlopen
="LoadLibrary"
11967 lt_cv_dlopen
="dlopen"
11972 # if libdl is installed we need to link against it
11973 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11974 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11975 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11978 ac_check_lib_save_LIBS
=$LIBS
11980 cat >conftest.
$ac_ext <<_ACEOF
11983 cat confdefs.h
>>conftest.
$ac_ext
11984 cat >>conftest.
$ac_ext <<_ACEOF
11985 /* end confdefs.h. */
11987 /* Override any gcc2 internal prototype to avoid an error. */
11991 /* We use char because int might match the return type of a gcc2
11992 builtin and then its argument prototype would still apply. */
12002 rm -f conftest.
$ac_objext conftest
$ac_exeext
12003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12004 (eval $ac_link) 2>conftest.er1
12006 grep -v '^ *+' conftest.er1
>conftest.err
12008 cat conftest.err
>&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } &&
12011 { ac_try
='test -z "$ac_cxx_werror_flag"
12012 || test ! -s conftest.err'
12013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014 (eval $ac_try) 2>&5
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); }; } &&
12018 { ac_try
='test -s conftest$ac_exeext'
12019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020 (eval $ac_try) 2>&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; }; then
12024 ac_cv_lib_dl_dlopen
=yes
12026 echo "$as_me: failed program was:" >&5
12027 sed 's/^/| /' conftest.
$ac_ext >&5
12029 ac_cv_lib_dl_dlopen
=no
12031 rm -f conftest.err conftest.
$ac_objext \
12032 conftest
$ac_exeext conftest.
$ac_ext
12033 LIBS
=$ac_check_lib_save_LIBS
12035 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12036 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12037 if test $ac_cv_lib_dl_dlopen = yes; then
12038 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12041 lt_cv_dlopen
="dyld"
12043 lt_cv_dlopen_self
=yes
12050 echo "$as_me:$LINENO: checking for shl_load" >&5
12051 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12052 if test "${ac_cv_func_shl_load+set}" = set; then
12053 echo $ECHO_N "(cached) $ECHO_C" >&6
12055 cat >conftest.
$ac_ext <<_ACEOF
12058 cat confdefs.h
>>conftest.
$ac_ext
12059 cat >>conftest.
$ac_ext <<_ACEOF
12060 /* end confdefs.h. */
12061 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12063 #define shl_load innocuous_shl_load
12065 /* System header to define __stub macros and hopefully few prototypes,
12066 which can conflict with char shl_load (); below.
12067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12068 <limits.h> exists even on freestanding compilers. */
12071 # include <limits.h>
12073 # include <assert.h>
12078 /* Override any gcc2 internal prototype to avoid an error. */
12083 /* We use char because int might match the return type of a gcc2
12084 builtin and then its argument prototype would still apply. */
12086 /* The GNU C library defines this for functions which it implements
12087 to always fail with ENOSYS. Some functions are actually named
12088 something starting with __ and the normal name is an alias. */
12089 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12092 char (*f) () = shl_load;
12101 return f != shl_load;
12106 rm -f conftest.
$ac_objext conftest
$ac_exeext
12107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12108 (eval $ac_link) 2>conftest.er1
12110 grep -v '^ *+' conftest.er1
>conftest.err
12112 cat conftest.err
>&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); } &&
12115 { ac_try
='test -z "$ac_cxx_werror_flag"
12116 || test ! -s conftest.err'
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; } &&
12122 { ac_try
='test -s conftest$ac_exeext'
12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124 (eval $ac_try) 2>&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; }; then
12128 ac_cv_func_shl_load
=yes
12130 echo "$as_me: failed program was:" >&5
12131 sed 's/^/| /' conftest.
$ac_ext >&5
12133 ac_cv_func_shl_load
=no
12135 rm -f conftest.err conftest.
$ac_objext \
12136 conftest
$ac_exeext conftest.
$ac_ext
12138 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12139 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12140 if test $ac_cv_func_shl_load = yes; then
12141 lt_cv_dlopen
="shl_load"
12143 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12144 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12145 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 ac_check_lib_save_LIBS
=$LIBS
12150 cat >conftest.
$ac_ext <<_ACEOF
12153 cat confdefs.h
>>conftest.
$ac_ext
12154 cat >>conftest.
$ac_ext <<_ACEOF
12155 /* end confdefs.h. */
12157 /* Override any gcc2 internal prototype to avoid an error. */
12161 /* We use char because int might match the return type of a gcc2
12162 builtin and then its argument prototype would still apply. */
12172 rm -f conftest.
$ac_objext conftest
$ac_exeext
12173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12174 (eval $ac_link) 2>conftest.er1
12176 grep -v '^ *+' conftest.er1
>conftest.err
12178 cat conftest.err
>&5
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); } &&
12181 { ac_try
='test -z "$ac_cxx_werror_flag"
12182 || test ! -s conftest.err'
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; } &&
12188 { ac_try
='test -s conftest$ac_exeext'
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; }; then
12194 ac_cv_lib_dld_shl_load
=yes
12196 echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.
$ac_ext >&5
12199 ac_cv_lib_dld_shl_load
=no
12201 rm -f conftest.err conftest.
$ac_objext \
12202 conftest
$ac_exeext conftest.
$ac_ext
12203 LIBS
=$ac_check_lib_save_LIBS
12205 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12206 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12207 if test $ac_cv_lib_dld_shl_load = yes; then
12208 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
12210 echo "$as_me:$LINENO: checking for dlopen" >&5
12211 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12212 if test "${ac_cv_func_dlopen+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12215 cat >conftest.
$ac_ext <<_ACEOF
12218 cat confdefs.h
>>conftest.
$ac_ext
12219 cat >>conftest.
$ac_ext <<_ACEOF
12220 /* end confdefs.h. */
12221 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12223 #define dlopen innocuous_dlopen
12225 /* System header to define __stub macros and hopefully few prototypes,
12226 which can conflict with char dlopen (); below.
12227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12228 <limits.h> exists even on freestanding compilers. */
12231 # include <limits.h>
12233 # include <assert.h>
12238 /* Override any gcc2 internal prototype to avoid an error. */
12243 /* We use char because int might match the return type of a gcc2
12244 builtin and then its argument prototype would still apply. */
12246 /* The GNU C library defines this for functions which it implements
12247 to always fail with ENOSYS. Some functions are actually named
12248 something starting with __ and the normal name is an alias. */
12249 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12252 char (*f) () = dlopen;
12261 return f != dlopen;
12266 rm -f conftest.
$ac_objext conftest
$ac_exeext
12267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12268 (eval $ac_link) 2>conftest.er1
12270 grep -v '^ *+' conftest.er1
>conftest.err
12272 cat conftest.err
>&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } &&
12275 { ac_try
='test -z "$ac_cxx_werror_flag"
12276 || test ! -s conftest.err'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; } &&
12282 { ac_try
='test -s conftest$ac_exeext'
12283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; }; then
12288 ac_cv_func_dlopen
=yes
12290 echo "$as_me: failed program was:" >&5
12291 sed 's/^/| /' conftest.
$ac_ext >&5
12293 ac_cv_func_dlopen
=no
12295 rm -f conftest.err conftest.
$ac_objext \
12296 conftest
$ac_exeext conftest.
$ac_ext
12298 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12299 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12300 if test $ac_cv_func_dlopen = yes; then
12301 lt_cv_dlopen
="dlopen"
12303 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12304 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12305 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12306 echo $ECHO_N "(cached) $ECHO_C" >&6
12308 ac_check_lib_save_LIBS
=$LIBS
12310 cat >conftest.
$ac_ext <<_ACEOF
12313 cat confdefs.h
>>conftest.
$ac_ext
12314 cat >>conftest.
$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12317 /* Override any gcc2 internal prototype to avoid an error. */
12321 /* We use char because int might match the return type of a gcc2
12322 builtin and then its argument prototype would still apply. */
12332 rm -f conftest.
$ac_objext conftest
$ac_exeext
12333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12334 (eval $ac_link) 2>conftest.er1
12336 grep -v '^ *+' conftest.er1
>conftest.err
12338 cat conftest.err
>&5
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); } &&
12341 { ac_try
='test -z "$ac_cxx_werror_flag"
12342 || test ! -s conftest.err'
12343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344 (eval $ac_try) 2>&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }; } &&
12348 { ac_try
='test -s conftest$ac_exeext'
12349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350 (eval $ac_try) 2>&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; }; then
12354 ac_cv_lib_dl_dlopen
=yes
12356 echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.
$ac_ext >&5
12359 ac_cv_lib_dl_dlopen
=no
12361 rm -f conftest.err conftest.
$ac_objext \
12362 conftest
$ac_exeext conftest.
$ac_ext
12363 LIBS
=$ac_check_lib_save_LIBS
12365 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12366 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12367 if test $ac_cv_lib_dl_dlopen = yes; then
12368 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12370 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12371 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12372 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12373 echo $ECHO_N "(cached) $ECHO_C" >&6
12375 ac_check_lib_save_LIBS
=$LIBS
12376 LIBS
="-lsvld $LIBS"
12377 cat >conftest.
$ac_ext <<_ACEOF
12380 cat confdefs.h
>>conftest.
$ac_ext
12381 cat >>conftest.
$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12384 /* Override any gcc2 internal prototype to avoid an error. */
12388 /* We use char because int might match the return type of a gcc2
12389 builtin and then its argument prototype would still apply. */
12399 rm -f conftest.
$ac_objext conftest
$ac_exeext
12400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12401 (eval $ac_link) 2>conftest.er1
12403 grep -v '^ *+' conftest.er1
>conftest.err
12405 cat conftest.err
>&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } &&
12408 { ac_try
='test -z "$ac_cxx_werror_flag"
12409 || test ! -s conftest.err'
12410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; } &&
12415 { ac_try
='test -s conftest$ac_exeext'
12416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417 (eval $ac_try) 2>&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; }; then
12421 ac_cv_lib_svld_dlopen
=yes
12423 echo "$as_me: failed program was:" >&5
12424 sed 's/^/| /' conftest.
$ac_ext >&5
12426 ac_cv_lib_svld_dlopen
=no
12428 rm -f conftest.err conftest.
$ac_objext \
12429 conftest
$ac_exeext conftest.
$ac_ext
12430 LIBS
=$ac_check_lib_save_LIBS
12432 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12433 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12434 if test $ac_cv_lib_svld_dlopen = yes; then
12435 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
12437 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12438 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12439 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12440 echo $ECHO_N "(cached) $ECHO_C" >&6
12442 ac_check_lib_save_LIBS
=$LIBS
12444 cat >conftest.
$ac_ext <<_ACEOF
12447 cat confdefs.h
>>conftest.
$ac_ext
12448 cat >>conftest.
$ac_ext <<_ACEOF
12449 /* end confdefs.h. */
12451 /* Override any gcc2 internal prototype to avoid an error. */
12455 /* We use char because int might match the return type of a gcc2
12456 builtin and then its argument prototype would still apply. */
12466 rm -f conftest.
$ac_objext conftest
$ac_exeext
12467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12468 (eval $ac_link) 2>conftest.er1
12470 grep -v '^ *+' conftest.er1
>conftest.err
12472 cat conftest.err
>&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } &&
12475 { ac_try
='test -z "$ac_cxx_werror_flag"
12476 || test ! -s conftest.err'
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; } &&
12482 { ac_try
='test -s conftest$ac_exeext'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; }; then
12488 ac_cv_lib_dld_dld_link
=yes
12490 echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.
$ac_ext >&5
12493 ac_cv_lib_dld_dld_link
=no
12495 rm -f conftest.err conftest.
$ac_objext \
12496 conftest
$ac_exeext conftest.
$ac_ext
12497 LIBS
=$ac_check_lib_save_LIBS
12499 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12500 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12501 if test $ac_cv_lib_dld_dld_link = yes; then
12502 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
12523 if test "x$lt_cv_dlopen" != xno
; then
12529 case $lt_cv_dlopen in
12531 save_CPPFLAGS
="$CPPFLAGS"
12532 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
12534 save_LDFLAGS
="$LDFLAGS"
12535 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
12538 LIBS
="$lt_cv_dlopen_libs $LIBS"
12540 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12541 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12542 if test "${lt_cv_dlopen_self+set}" = set; then
12543 echo $ECHO_N "(cached) $ECHO_C" >&6
12545 if test "$cross_compiling" = yes; then :
12546 lt_cv_dlopen_self
=cross
12548 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12549 lt_status
=$lt_dlunknown
12550 cat > conftest.
$ac_ext <<EOF
12551 #line 12551 "configure"
12552 #include "confdefs.h"
12561 # define LT_DLGLOBAL RTLD_GLOBAL
12564 # define LT_DLGLOBAL DL_GLOBAL
12566 # define LT_DLGLOBAL 0
12570 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12571 find out it does not work in some platform. */
12572 #ifndef LT_DLLAZY_OR_NOW
12574 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12577 # define LT_DLLAZY_OR_NOW DL_LAZY
12580 # define LT_DLLAZY_OR_NOW RTLD_NOW
12583 # define LT_DLLAZY_OR_NOW DL_NOW
12585 # define LT_DLLAZY_OR_NOW 0
12593 extern "C" void exit (int);
12596 void fnord() { int i=42;}
12599 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12600 int status = $lt_dlunknown;
12604 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12605 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12606 /* dlclose (self); */
12612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12613 (eval $ac_link) 2>&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12617 (.
/conftest
; exit; ) 2>/dev
/null
12619 case x
$lt_status in
12620 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12621 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12622 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
12625 # compilation failed
12626 lt_cv_dlopen_self
=no
12633 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12634 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12636 if test "x$lt_cv_dlopen_self" = xyes
; then
12637 LDFLAGS
="$LDFLAGS $link_static_flag"
12638 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12639 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12640 if test "${lt_cv_dlopen_self_static+set}" = set; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12643 if test "$cross_compiling" = yes; then :
12644 lt_cv_dlopen_self_static
=cross
12646 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12647 lt_status
=$lt_dlunknown
12648 cat > conftest.
$ac_ext <<EOF
12649 #line 12649 "configure"
12650 #include "confdefs.h"
12659 # define LT_DLGLOBAL RTLD_GLOBAL
12662 # define LT_DLGLOBAL DL_GLOBAL
12664 # define LT_DLGLOBAL 0
12668 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12669 find out it does not work in some platform. */
12670 #ifndef LT_DLLAZY_OR_NOW
12672 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12675 # define LT_DLLAZY_OR_NOW DL_LAZY
12678 # define LT_DLLAZY_OR_NOW RTLD_NOW
12681 # define LT_DLLAZY_OR_NOW DL_NOW
12683 # define LT_DLLAZY_OR_NOW 0
12691 extern "C" void exit (int);
12694 void fnord() { int i=42;}
12697 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12698 int status = $lt_dlunknown;
12702 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12703 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12704 /* dlclose (self); */
12710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12711 (eval $ac_link) 2>&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12715 (.
/conftest
; exit; ) 2>/dev
/null
12717 case x
$lt_status in
12718 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12719 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12720 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
12723 # compilation failed
12724 lt_cv_dlopen_self_static
=no
12731 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12732 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12735 CPPFLAGS
="$save_CPPFLAGS"
12736 LDFLAGS
="$save_LDFLAGS"
12741 case $lt_cv_dlopen_self in
12742 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12743 *) enable_dlopen_self
=unknown
;;
12746 case $lt_cv_dlopen_self_static in
12747 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12748 *) enable_dlopen_self_static
=unknown
;;
12753 # The else clause should only fire when bootstrapping the
12754 # libtool distribution, otherwise you forgot to ship ltmain.sh
12755 # with your package, and you will get complaints that there are
12756 # no rules to generate ltmain.sh.
12757 if test -f "$ltmain"; then
12758 # See if we are running on zsh, and set the options which allow our commands through
12759 # without removal of \ escapes.
12760 if test -n "${ZSH_VERSION+set}" ; then
12761 setopt NO_GLOB_SUBST
12763 # Now quote all the things that may contain metacharacters while being
12764 # careful not to overquote the AC_SUBSTed values. We take copies of the
12765 # variables and quote the copies for generation of the libtool script.
12766 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12768 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12769 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12770 deplibs_check_method reload_flag reload_cmds need_locks \
12771 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12772 lt_cv_sys_global_symbol_to_c_name_address \
12773 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12774 old_postinstall_cmds old_postuninstall_cmds \
12778 lt_prog_compiler_wl_CXX \
12779 lt_prog_compiler_pic_CXX \
12780 lt_prog_compiler_static_CXX \
12781 lt_prog_compiler_no_builtin_flag_CXX \
12782 export_dynamic_flag_spec_CXX \
12783 thread_safe_flag_spec_CXX \
12784 whole_archive_flag_spec_CXX \
12785 enable_shared_with_static_runtimes_CXX \
12786 old_archive_cmds_CXX \
12787 old_archive_from_new_cmds_CXX \
12788 predep_objects_CXX \
12789 postdep_objects_CXX \
12792 compiler_lib_search_path_CXX \
12794 archive_expsym_cmds_CXX \
12795 postinstall_cmds_CXX \
12796 postuninstall_cmds_CXX \
12797 old_archive_from_expsyms_cmds_CXX \
12798 allow_undefined_flag_CXX \
12799 no_undefined_flag_CXX \
12800 export_symbols_cmds_CXX \
12801 hardcode_libdir_flag_spec_CXX \
12802 hardcode_libdir_flag_spec_ld_CXX \
12803 hardcode_libdir_separator_CXX \
12804 hardcode_automatic_CXX \
12806 module_expsym_cmds_CXX \
12807 lt_cv_prog_compiler_c_o_CXX \
12808 exclude_expsyms_CXX \
12809 include_expsyms_CXX
; do
12812 old_archive_cmds_CXX | \
12813 old_archive_from_new_cmds_CXX | \
12814 archive_cmds_CXX | \
12815 archive_expsym_cmds_CXX | \
12816 module_cmds_CXX | \
12817 module_expsym_cmds_CXX | \
12818 old_archive_from_expsyms_cmds_CXX | \
12819 export_symbols_cmds_CXX | \
12820 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12821 postinstall_cmds | postuninstall_cmds | \
12822 old_postinstall_cmds | old_postuninstall_cmds | \
12823 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
12824 # Double-quote double-evaled strings.
12825 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12828 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12834 *'\$0 --fallback-echo"')
12835 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12841 cat <<__EOF__ >> "$cfgfile"
12842 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12844 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12846 # Shell to use when invoking shell scripts.
12849 # Whether or not to build shared libraries.
12850 build_libtool_libs=$enable_shared
12852 # Whether or not to build static libraries.
12853 build_old_libs=$enable_static
12855 # Whether or not to add -lc for building shared libraries.
12856 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12858 # Whether or not to disallow shared libs when runtime libs are static
12859 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12861 # Whether or not to optimize for fast installation.
12862 fast_install=$enable_fast_install
12865 host_alias=$host_alias
12869 # The build system.
12870 build_alias=$build_alias
12874 # An echo program that does not interpret backslashes.
12879 AR_FLAGS=$lt_AR_FLAGS
12884 # A language-specific compiler.
12885 CC=$lt_compiler_CXX
12887 # Is the compiler the GNU C compiler?
12893 # The linker used to build libraries.
12896 # Whether we need hard or soft links.
12899 # A BSD-compatible nm program.
12902 # A symbol stripping program
12905 # Used to examine libraries when file_magic_cmd begins "file"
12906 MAGIC_CMD=$MAGIC_CMD
12908 # Used on cygwin: DLL creation program.
12911 # Used on cygwin: object dumper.
12914 # Used on cygwin: assembler.
12917 # The name of the directory that contains temporary libtool files.
12920 # How to create reloadable object files.
12921 reload_flag=$lt_reload_flag
12922 reload_cmds=$lt_reload_cmds
12924 # How to pass a linker flag through the compiler.
12925 wl=$lt_lt_prog_compiler_wl_CXX
12927 # Object file suffix (normally "o").
12928 objext="$ac_objext"
12930 # Old archive suffix (normally "a").
12933 # Shared library suffix (normally ".so").
12934 shrext_cmds='$shrext_cmds'
12936 # Executable file suffix (normally "").
12939 # Additional compiler flags for building library objects.
12940 pic_flag=$lt_lt_prog_compiler_pic_CXX
12943 # What is the maximum length of a command?
12944 max_cmd_len=$lt_cv_sys_max_cmd_len
12946 # Does compiler simultaneously support -c and -o options?
12947 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12949 # Must we lock files when doing compilation ?
12950 need_locks=$lt_need_locks
12952 # Do we need the lib prefix for modules?
12953 need_lib_prefix=$need_lib_prefix
12955 # Do we need a version for libraries?
12956 need_version=$need_version
12958 # Whether dlopen is supported.
12959 dlopen_support=$enable_dlopen
12961 # Whether dlopen of programs is supported.
12962 dlopen_self=$enable_dlopen_self
12964 # Whether dlopen of statically linked programs is supported.
12965 dlopen_self_static=$enable_dlopen_self_static
12967 # Compiler flag to prevent dynamic linking.
12968 link_static_flag=$lt_lt_prog_compiler_static_CXX
12970 # Compiler flag to turn off builtin functions.
12971 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12973 # Compiler flag to allow reflexive dlopens.
12974 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12976 # Compiler flag to generate shared objects directly from archives.
12977 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12979 # Compiler flag to generate thread-safe objects.
12980 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12982 # Library versioning type.
12983 version_type=$version_type
12985 # Format of library name prefix.
12986 libname_spec=$lt_libname_spec
12988 # List of archive names. First name is the real one, the rest are links.
12989 # The last name is the one that the linker finds with -lNAME.
12990 library_names_spec=$lt_library_names_spec
12992 # The coded name of the library, if different from the real name.
12993 soname_spec=$lt_soname_spec
12995 # Commands used to build and install an old-style archive.
12997 old_archive_cmds=$lt_old_archive_cmds_CXX
12998 old_postinstall_cmds=$lt_old_postinstall_cmds
12999 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13001 # Create an old-style archive from a shared archive.
13002 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13004 # Create a temporary old-style archive to link instead of a shared archive.
13005 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13007 # Commands used to build and install a shared archive.
13008 archive_cmds=$lt_archive_cmds_CXX
13009 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13010 postinstall_cmds=$lt_postinstall_cmds
13011 postuninstall_cmds=$lt_postuninstall_cmds
13013 # Commands used to build a loadable module (assumed same as above if empty)
13014 module_cmds=$lt_module_cmds_CXX
13015 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13017 # Commands to strip libraries.
13018 old_striplib=$lt_old_striplib
13019 striplib=$lt_striplib
13021 # Dependencies to place before the objects being linked to create a
13023 predep_objects=$lt_predep_objects_CXX
13025 # Dependencies to place after the objects being linked to create a
13027 postdep_objects=$lt_postdep_objects_CXX
13029 # Dependencies to place before the objects being linked to create a
13031 predeps=$lt_predeps_CXX
13033 # Dependencies to place after the objects being linked to create a
13035 postdeps=$lt_postdeps_CXX
13037 # The library search path used internally by the compiler when linking
13038 # a shared library.
13039 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13041 # Method to check whether dependent libraries are shared objects.
13042 deplibs_check_method=$lt_deplibs_check_method
13044 # Command to use when deplibs_check_method == file_magic.
13045 file_magic_cmd=$lt_file_magic_cmd
13047 # Flag that allows shared libraries with undefined symbols to be built.
13048 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13050 # Flag that forces no undefined symbols.
13051 no_undefined_flag=$lt_no_undefined_flag_CXX
13053 # Commands used to finish a libtool library installation in a directory.
13054 finish_cmds=$lt_finish_cmds
13056 # Same as above, but a single script fragment to be evaled but not shown.
13057 finish_eval=$lt_finish_eval
13059 # Take the output of nm and produce a listing of raw symbols and C names.
13060 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13062 # Transform the output of nm in a proper C declaration
13063 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13065 # Transform the output of nm in a C name address pair
13066 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13068 # This is the shared library runtime path variable.
13069 runpath_var=$runpath_var
13071 # This is the shared library path variable.
13072 shlibpath_var=$shlibpath_var
13074 # Is shlibpath searched before the hard-coded library search path?
13075 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13077 # How to hardcode a shared library path into an executable.
13078 hardcode_action=$hardcode_action_CXX
13080 # Whether we should hardcode library paths into libraries.
13081 hardcode_into_libs=$hardcode_into_libs
13083 # Flag to hardcode \$libdir into a binary during linking.
13084 # This must work even if \$libdir does not exist.
13085 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13087 # If ld is used when linking, flag to hardcode \$libdir into
13088 # a binary during linking. This must work even if \$libdir does
13090 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13092 # Whether we need a single -rpath flag with a separated argument.
13093 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13095 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13096 # resulting binary.
13097 hardcode_direct=$hardcode_direct_CXX
13099 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13100 # resulting binary.
13101 hardcode_minus_L=$hardcode_minus_L_CXX
13103 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13104 # the resulting binary.
13105 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13107 # Set to yes if building a shared library automatically hardcodes DIR into the library
13108 # and all subsequent libraries and executables linked against it.
13109 hardcode_automatic=$hardcode_automatic_CXX
13111 # Variables whose values should be saved in libtool wrapper scripts and
13112 # restored at relink time.
13113 variables_saved_for_relink="$variables_saved_for_relink"
13115 # Whether libtool must link a program against all its dependency libraries.
13116 link_all_deplibs=$link_all_deplibs_CXX
13118 # Compile-time system search path for libraries
13119 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13121 # Run-time system search path for libraries
13122 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13124 # Fix the shell variable \$srcfile for the compiler.
13125 fix_srcfile_path="$fix_srcfile_path_CXX"
13127 # Set to yes if exported symbols are required.
13128 always_export_symbols=$always_export_symbols_CXX
13130 # The commands to list exported symbols.
13131 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13133 # The commands to extract the exported symbol list from a shared archive.
13134 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13136 # Symbols that should not be listed in the preloaded symbols.
13137 exclude_expsyms=$lt_exclude_expsyms_CXX
13139 # Symbols that must always be exported.
13140 include_expsyms=$lt_include_expsyms_CXX
13142 # ### END LIBTOOL TAG CONFIG: $tagname
13148 # If there is no Makefile yet, we rely on a make rule to execute
13149 # `config.status --recheck' to rerun these tests and create the
13150 # libtool script then.
13151 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13152 if test -f "$ltmain_in"; then
13153 test -f Makefile
&& make "$ltmain"
13159 ac_cpp
='$CPP $CPPFLAGS'
13160 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13161 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13162 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13168 with_gnu_ldcxx
=$with_gnu_ld
13169 with_gnu_ld
=$lt_save_with_gnu_ld
13170 lt_cv_path_LDCXX
=$lt_cv_path_LD
13171 lt_cv_path_LD
=$lt_save_path_LD
13172 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
13173 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
13181 if test -n "$F77" && test "X$F77" != "Xno"; then
13184 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13185 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13186 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
13189 archive_cmds_need_lc_F77
=no
13190 allow_undefined_flag_F77
=
13191 always_export_symbols_F77
=no
13192 archive_expsym_cmds_F77
=
13193 export_dynamic_flag_spec_F77
=
13194 hardcode_direct_F77
=no
13195 hardcode_libdir_flag_spec_F77
=
13196 hardcode_libdir_flag_spec_ld_F77
=
13197 hardcode_libdir_separator_F77
=
13198 hardcode_minus_L_F77
=no
13199 hardcode_automatic_F77
=no
13201 module_expsym_cmds_F77
=
13202 link_all_deplibs_F77
=unknown
13203 old_archive_cmds_F77
=$old_archive_cmds
13204 no_undefined_flag_F77
=
13205 whole_archive_flag_spec_F77
=
13206 enable_shared_with_static_runtimes_F77
=no
13208 # Source file extension for f77 test sources.
13211 # Object file extension for compiled f77 test sources.
13215 # Code to be used in simple compile tests
13216 lt_simple_compile_test_code
=" subroutine t\n return\n end\n"
13218 # Code to be used in simple link tests
13219 lt_simple_link_test_code
=" program t\n end\n"
13221 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13223 # If no C compiler was specified, use CC.
13226 # Allow CC to be a program name with arguments.
13230 # Allow CC to be a program name with arguments.
13235 cc_basename
=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13237 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13238 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13239 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13240 echo "${ECHO_T}$can_build_shared" >&6
13242 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13243 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13244 test "$can_build_shared" = "no" && enable_shared
=no
13246 # On AIX, shared libraries and static libraries use the same namespace, and
13247 # are all built from PIC.
13250 test "$enable_shared" = yes && enable_static
=no
13251 if test -n "$RANLIB"; then
13252 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
13253 postinstall_cmds
='$RANLIB $lib'
13257 test "$enable_shared" = yes && enable_static
=no
13260 echo "$as_me:$LINENO: result: $enable_shared" >&5
13261 echo "${ECHO_T}$enable_shared" >&6
13263 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13264 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13265 # Make sure either enable_shared or enable_static is yes.
13266 test "$enable_shared" = yes || enable_static
=yes
13267 echo "$as_me:$LINENO: result: $enable_static" >&5
13268 echo "${ECHO_T}$enable_static" >&6
13270 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
13275 lt_prog_compiler_wl_F77
=
13276 lt_prog_compiler_pic_F77
=
13277 lt_prog_compiler_static_F77
=
13279 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13280 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13282 if test "$GCC" = yes; then
13283 lt_prog_compiler_wl_F77
='-Wl,'
13284 lt_prog_compiler_static_F77
='-static'
13288 # All AIX code is PIC.
13289 if test "$host_cpu" = ia64
; then
13290 # AIX 5 now supports IA64 processor
13291 lt_prog_compiler_static_F77
='-Bstatic'
13296 # FIXME: we need at least 68020 code to build shared libraries, but
13297 # adding the `-m68020' flag to GCC prevents building anything better,
13299 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
13302 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13303 # PIC is the default for these OSes.
13306 mingw
* | pw32
* | os2
*)
13307 # This hack is so that the source file can tell whether it is being
13308 # built for inclusion in a dll (and should export symbols for example).
13309 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13312 darwin
* | rhapsody
*)
13313 # PIC is the default on this platform
13314 # Common symbols not allowed in MH_DYLIB files
13315 lt_prog_compiler_pic_F77
='-fno-common'
13319 # Just because we use GCC doesn't mean we suddenly get shared libraries
13320 # on systems that don't support them.
13321 lt_prog_compiler_can_build_shared_F77
=no
13326 if test -d /usr
/nec
; then
13327 lt_prog_compiler_pic_F77
=-Kconform_pic
13332 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13333 # not for PA HP-UX.
13334 case "$host_cpu" in
13339 lt_prog_compiler_pic_F77
='-fPIC'
13345 lt_prog_compiler_pic_F77
='-fPIC'
13349 # PORTME Check for flag to pass linker flags through the system compiler.
13352 lt_prog_compiler_wl_F77
='-Wl,'
13353 if test "$host_cpu" = ia64
; then
13354 # AIX 5 now supports IA64 processor
13355 lt_prog_compiler_static_F77
='-Bstatic'
13357 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
13361 # PIC is the default on this platform
13362 # Common symbols not allowed in MH_DYLIB files
13363 case "$cc_basename" in
13365 lt_prog_compiler_pic_F77
='-qnocommon'
13366 lt_prog_compiler_wl_F77
='-Wl,'
13371 mingw
* | pw32
* | os2
*)
13372 # This hack is so that the source file can tell whether it is being
13373 # built for inclusion in a dll (and should export symbols for example).
13374 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13377 hpux9
* | hpux10
* | hpux11
*)
13378 lt_prog_compiler_wl_F77
='-Wl,'
13379 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13380 # not for PA HP-UX.
13381 case "$host_cpu" in
13386 lt_prog_compiler_pic_F77
='+Z'
13389 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13390 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
13393 irix5
* | irix6
* | nonstopux
*)
13394 lt_prog_compiler_wl_F77
='-Wl,'
13395 # PIC (with -KPIC) is the default.
13396 lt_prog_compiler_static_F77
='-non_shared'
13400 lt_prog_compiler_pic_F77
='-KPIC'
13401 lt_prog_compiler_static_F77
='-Bstatic'
13405 case $cc_basename in
13407 lt_prog_compiler_wl_F77
='-Wl,'
13408 lt_prog_compiler_pic_F77
='-KPIC'
13409 lt_prog_compiler_static_F77
='-static'
13411 pgcc | pgf77 | pgf90
)
13412 # Portland Group compilers (*not* the Pentium gcc compiler,
13413 # which looks to be a dead project)
13414 lt_prog_compiler_wl_F77
='-Wl,'
13415 lt_prog_compiler_pic_F77
='-fpic'
13416 lt_prog_compiler_static_F77
='-static'
13419 lt_prog_compiler_wl_F77
='-Wl,'
13420 # All Alpha code is PIC.
13421 lt_prog_compiler_static_F77
='-non_shared'
13424 lt_prog_compiler_wl_F77
='-lopt='
13429 osf3
* | osf4
* | osf5
*)
13430 lt_prog_compiler_wl_F77
='-Wl,'
13431 # All OSF/1 code is PIC.
13432 lt_prog_compiler_static_F77
='-non_shared'
13436 lt_prog_compiler_pic_F77
='-Kpic'
13437 lt_prog_compiler_static_F77
='-dn'
13441 lt_prog_compiler_wl_F77
='-Wl,'
13442 lt_prog_compiler_pic_F77
='-KPIC'
13443 lt_prog_compiler_static_F77
='-Bstatic'
13447 lt_prog_compiler_wl_F77
='-Qoption ld '
13448 lt_prog_compiler_pic_F77
='-PIC'
13449 lt_prog_compiler_static_F77
='-Bstatic'
13452 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13453 lt_prog_compiler_wl_F77
='-Wl,'
13454 lt_prog_compiler_pic_F77
='-KPIC'
13455 lt_prog_compiler_static_F77
='-Bstatic'
13459 if test -d /usr
/nec
;then
13460 lt_prog_compiler_pic_F77
='-Kconform_pic'
13461 lt_prog_compiler_static_F77
='-Bstatic'
13466 lt_prog_compiler_wl_F77
='-Wl,'
13467 lt_prog_compiler_can_build_shared_F77
=no
13471 lt_prog_compiler_pic_F77
='-pic'
13472 lt_prog_compiler_static_F77
='-Bstatic'
13476 lt_prog_compiler_can_build_shared_F77
=no
13481 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13482 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13485 # Check to make sure the PIC flag actually works.
13487 if test -n "$lt_prog_compiler_pic_F77"; then
13489 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13490 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13491 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13494 lt_prog_compiler_pic_works_F77
=no
13495 ac_outfile
=conftest.
$ac_objext
13496 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13497 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
13498 # Insert the option either (1) after the last *FLAGS variable, or
13499 # (2) before a word containing "conftest.", or (3) at the end.
13500 # Note that $ac_compile itself does not contain backslashes and begins
13501 # with a dollar sign (not a hyphen), so the echo should work correctly.
13502 # The option is referenced via a variable to avoid confusing sed.
13503 lt_compile
=`echo "$ac_compile" | $SED \
13504 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13506 -e 's:$: $lt_compiler_flag:'`
13507 (eval echo "\"\$as_me:13507: $lt_compile\"" >&5)
13508 (eval "$lt_compile" 2>conftest.err
)
13510 cat conftest.err
>&5
13511 echo "$as_me:13511: \$? = $ac_status" >&5
13512 if (exit $ac_status) && test -s "$ac_outfile"; then
13513 # The compiler can only warn and ignore the option if not recognized
13514 # So say no if there are warnings
13515 if test ! -s conftest.err
; then
13516 lt_prog_compiler_pic_works_F77
=yes
13522 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13523 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13525 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
13526 case $lt_prog_compiler_pic_F77 in
13528 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
13531 lt_prog_compiler_pic_F77
=
13532 lt_prog_compiler_can_build_shared_F77
=no
13537 # For platforms which do not support PIC, -DPIC is meaningless:
13539 lt_prog_compiler_pic_F77
=
13542 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
13546 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13547 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13548 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13549 echo $ECHO_N "(cached) $ECHO_C" >&6
13551 lt_cv_prog_compiler_c_o_F77
=no
13552 $rm -r conftest
2>/dev
/null
13556 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13558 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13559 # Insert the option either (1) after the last *FLAGS variable, or
13560 # (2) before a word containing "conftest.", or (3) at the end.
13561 # Note that $ac_compile itself does not contain backslashes and begins
13562 # with a dollar sign (not a hyphen), so the echo should work correctly.
13563 lt_compile
=`echo "$ac_compile" | $SED \
13564 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13566 -e 's:$: $lt_compiler_flag:'`
13567 (eval echo "\"\$as_me:13567: $lt_compile\"" >&5)
13568 (eval "$lt_compile" 2>out
/conftest.err
)
13570 cat out
/conftest.err
>&5
13571 echo "$as_me:13571: \$? = $ac_status" >&5
13572 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13574 # The compiler can only warn and ignore the option if not recognized
13575 # So say no if there are warnings
13576 if test ! -s out
/conftest.err
; then
13577 lt_cv_prog_compiler_c_o_F77
=yes
13582 # SGI C++ compiler will create directory out/ii_files/ for
13583 # template instantiation
13584 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
13585 $rm out
/* && rmdir out
13591 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13592 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13595 hard_links
="nottested"
13596 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
13597 # do not overwrite the value of need_locks provided by the user
13598 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13599 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13602 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13604 ln conftest.a conftest.b
2>&5 || hard_links
=no
13605 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13606 echo "$as_me:$LINENO: result: $hard_links" >&5
13607 echo "${ECHO_T}$hard_links" >&6
13608 if test "$hard_links" = no
; then
13609 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13610 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13617 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13618 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13621 allow_undefined_flag_F77
=
13622 enable_shared_with_static_runtimes_F77
=no
13624 archive_expsym_cmds_F77
=
13625 old_archive_From_new_cmds_F77
=
13626 old_archive_from_expsyms_cmds_F77
=
13627 export_dynamic_flag_spec_F77
=
13628 whole_archive_flag_spec_F77
=
13629 thread_safe_flag_spec_F77
=
13630 hardcode_libdir_flag_spec_F77
=
13631 hardcode_libdir_flag_spec_ld_F77
=
13632 hardcode_libdir_separator_F77
=
13633 hardcode_direct_F77
=no
13634 hardcode_minus_L_F77
=no
13635 hardcode_shlibpath_var_F77
=unsupported
13636 link_all_deplibs_F77
=unknown
13637 hardcode_automatic_F77
=no
13639 module_expsym_cmds_F77
=
13640 always_export_symbols_F77
=no
13641 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13642 # include_expsyms should be a list of space-separated symbols to be *always*
13643 # included in the symbol list
13644 include_expsyms_F77
=
13645 # exclude_expsyms can be an extended regexp of symbols to exclude
13646 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13647 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13648 # as well as any symbol that contains `d'.
13649 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
13650 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13651 # platforms (ab)use it in PIC code, but their linkers get confused if
13652 # the symbol is explicitly referenced. Since portable code cannot
13653 # rely on this symbol name, it's probably fine to never include it in
13654 # preloaded symbol tables.
13655 extract_expsyms_cmds
=
13658 cygwin
* | mingw
* | pw32
*)
13659 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13660 # When not using gcc, we currently assume that we are using
13661 # Microsoft Visual C++.
13662 if test "$GCC" != yes; then
13672 if test "$with_gnu_ld" = yes; then
13673 # If archive_cmds runs LD, not CC, wlarc should be empty
13676 # See if GNU ld supports shared libraries.
13678 aix3
* | aix4
* | aix5
*)
13679 # On AIX/PPC, the GNU linker is very broken
13680 if test "$host_cpu" != ia64
; then
13684 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13685 *** to be unable to reliably create shared libraries on AIX.
13686 *** Therefore, libtool is disabling shared libraries support. If you
13687 *** really care for shared libraries, you may want to modify your PATH
13688 *** so that a non-GNU linker is found, and then restart.
13695 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)'
13696 hardcode_libdir_flag_spec_F77
='-L$libdir'
13697 hardcode_minus_L_F77
=yes
13699 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13700 # that the semantics of dynamic libraries on AmigaOS, at least up
13701 # to version 4, is to share data among multiple programs linked
13702 # with the same dynamic library. Since this doesn't match the
13703 # behavior of shared libraries on other platforms, we can't use
13709 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13710 allow_undefined_flag_F77
=unsupported
13711 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13712 # support --undefined. This deserves some investigation. FIXME
13713 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13719 cygwin
* | mingw
* | pw32
*)
13720 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13721 # as there is no search path for DLLs.
13722 hardcode_libdir_flag_spec_F77
='-L$libdir'
13723 allow_undefined_flag_F77
=unsupported
13724 always_export_symbols_F77
=no
13725 enable_shared_with_static_runtimes_F77
=yes
13726 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13728 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
13729 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13730 # If the export-symbols file already is a .def file (1st line
13731 # is EXPORTS), use it as is; otherwise, prepend...
13732 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13733 cp $export_symbols $output_objdir/$soname.def;
13735 echo EXPORTS > $output_objdir/$soname.def;
13736 cat $export_symbols >> $output_objdir/$soname.def;
13738 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13745 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
13746 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13749 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13750 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13755 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
13759 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13760 *** create shared libraries on Solaris systems. Therefore, libtool
13761 *** is disabling shared libraries support. We urge you to upgrade GNU
13762 *** binutils to release 2.9.1 or newer. Another option is to modify
13763 *** your PATH or compiler configuration so that the native linker is
13764 *** used, and then restart.
13767 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13768 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13769 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13776 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13778 hardcode_direct_F77
=yes
13779 hardcode_shlibpath_var_F77
=no
13783 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13785 case $CC,$host_cpu in
13786 pgf77
* | pgf90
* ) # Portland Group f77 and f90 compilers
13787 tmp_addflag
=' -fpic' ;;
13788 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
13789 tmp_addflag
=' -i_dynamic' ;;
13790 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
13791 tmp_addflag
=' -i_dynamic -nofor_main' ;;
13792 ifc
* | ifort
*) # Intel Fortran compiler
13793 tmp_addflag
=' -nofor_main' ;;
13795 archive_cmds_F77
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13796 supports_anon_versioning
=no
13797 case `$LD -v 2>/dev/null` in
13798 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
13799 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
13800 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
13801 *\
2.11.
*) ;; # other 2.11 versions
13802 *) supports_anon_versioning
=yes ;;
13804 if test $supports_anon_versioning = yes; then
13805 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
13806 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13807 $echo "local: *; };" >> $output_objdir/$libname.ver~
13808 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13810 archive_expsym_cmds_F77
=$archive_cmds_F77
13818 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13819 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13820 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13827 if test "$ld_shlibs_F77" = yes; then
13828 runpath_var
=LD_RUN_PATH
13829 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
13830 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
13831 # ancient GNU ld didn't support --whole-archive et. al.
13832 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
13833 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13835 whole_archive_flag_spec_F77
=
13839 # PORTME fill in a description of your system's linker (not GNU ld)
13842 allow_undefined_flag_F77
=unsupported
13843 always_export_symbols_F77
=yes
13844 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'
13845 # Note: this linker hardcodes the directories in LIBPATH if there
13846 # are no directories specified by -L.
13847 hardcode_minus_L_F77
=yes
13848 if test "$GCC" = yes && test -z "$link_static_flag"; then
13849 # Neither direct hardcoding nor static linking is supported with a
13851 hardcode_direct_F77
=unsupported
13856 if test "$host_cpu" = ia64
; then
13857 # On IA64, the linker does run time linking by default, so we don't
13858 # have to do anything special.
13859 aix_use_runtimelinking
=no
13860 exp_sym_flag
='-Bexport'
13863 # If we're using GNU nm, then we don't want the "-C" option.
13864 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13865 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
13866 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'
13868 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'
13870 aix_use_runtimelinking
=no
13872 # Test if we are trying to use run time linking or normal
13873 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13874 # need to do runtime linking.
13875 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
13876 for ld_flag
in $LDFLAGS; do
13877 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
13878 aix_use_runtimelinking
=yes
13884 exp_sym_flag
='-bexport'
13885 no_entry_flag
='-bnoentry'
13888 # When large executables or shared objects are built, AIX ld can
13889 # have problems creating the table of contents. If linking a library
13890 # or program results in "error TOC overflow" add -mminimal-toc to
13891 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13892 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13894 archive_cmds_F77
=''
13895 hardcode_direct_F77
=yes
13896 hardcode_libdir_separator_F77
=':'
13897 link_all_deplibs_F77
=yes
13899 if test "$GCC" = yes; then
13900 case $host_os in aix4.
[012]|aix4.
[012].
*)
13901 # We only want to do this on AIX 4.2 and lower, the check
13902 # below for broken collect2 doesn't work under 4.3+
13903 collect2name
=`${CC} -print-prog-name=collect2`
13904 if test -f "$collect2name" && \
13905 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
13907 # We have reworked collect2
13908 hardcode_direct_F77
=yes
13910 # We have old collect2
13911 hardcode_direct_F77
=unsupported
13912 # It fails to find uninstalled libraries when the uninstalled
13913 # path is not listed in the libpath. Setting hardcode_minus_L
13914 # to unsupported forces relinking
13915 hardcode_minus_L_F77
=yes
13916 hardcode_libdir_flag_spec_F77
='-L$libdir'
13917 hardcode_libdir_separator_F77
=
13920 shared_flag
='-shared'
13921 if test "$aix_use_runtimelinking" = yes; then
13922 shared_flag
="$shared_flag "'${wl}-G'
13926 if test "$host_cpu" = ia64
; then
13927 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13928 # chokes on -Wl,-G. The following line is correct:
13931 if test "$aix_use_runtimelinking" = yes; then
13932 shared_flag
='${wl}-G'
13934 shared_flag
='${wl}-bM:SRE'
13939 # It seems that -bexpall does not export symbols beginning with
13940 # underscore (_), so it is better to generate a list of symbols to export.
13941 always_export_symbols_F77
=yes
13942 if test "$aix_use_runtimelinking" = yes; then
13943 # Warning - without using the other runtime loading flags (-brtl),
13944 # -berok will link without error, but may produce a broken library.
13945 allow_undefined_flag_F77
='-berok'
13946 # Determine the default libpath from the value encoded in an empty executable.
13947 cat >conftest.
$ac_ext <<_ACEOF
13952 rm -f conftest.
$ac_objext conftest
$ac_exeext
13953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13954 (eval $ac_link) 2>conftest.er1
13956 grep -v '^ *+' conftest.er1
>conftest.err
13958 cat conftest.err
>&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); } &&
13961 { ac_try
='test -z "$ac_f77_werror_flag"
13962 || test ! -s conftest.err'
13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964 (eval $ac_try) 2>&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; } &&
13968 { ac_try
='test -s conftest$ac_exeext'
13969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970 (eval $ac_try) 2>&5
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }; }; then
13975 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13977 # Check for a 64-bit object if we didn't find anything.
13978 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; }
13981 echo "$as_me: failed program was:" >&5
13982 sed 's/^/| /' conftest.
$ac_ext >&5
13985 rm -f conftest.err conftest.
$ac_objext \
13986 conftest
$ac_exeext conftest.
$ac_ext
13987 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13989 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
13990 archive_expsym_cmds_F77
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13992 if test "$host_cpu" = ia64; then
13993 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr
/lib
:/lib
'
13994 allow_undefined_flag_F77="-z nodefs"
13995 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\
$export_symbols"
13997 # Determine the default libpath from the value encoded in an empty executable.
13998 cat >conftest.$ac_ext <<_ACEOF
14003 rm -f conftest.$ac_objext conftest$ac_exeext
14004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14005 (eval $ac_link) 2>conftest.er1
14007 grep -v '^ *+' conftest.er1 >conftest.err
14009 cat conftest.err >&5
14010 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14011 (exit $ac_status); } &&
14012 { ac_try='test -z "$ac_f77_werror_flag"
14013 || test ! -s conftest.err'
14014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14017 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14018 (exit $ac_status); }; } &&
14019 { ac_try='test -s conftest$ac_exeext'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14023 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14024 (exit $ac_status); }; }; then
14026 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14028 # Check for a 64-bit object if we didn't find anything.
14029 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; }
14032 echo "$as_me: failed program was
:" >&5
14033 sed 's/^/| /' conftest.$ac_ext >&5
14036 rm -f conftest.err conftest.$ac_objext \
14037 conftest$ac_exeext conftest.$ac_ext
14038 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
14040 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14041 # Warning - without using the other run time loading flags,
14042 # -berok will link without error, but may produce a broken library.
14043 no_undefined_flag_F77=' ${wl}-bernotok'
14044 allow_undefined_flag_F77=' ${wl}-berok'
14045 # -bexpall does not export symbols beginning with underscore (_)
14046 always_export_symbols_F77=yes
14047 # Exported symbols can be pulled into shared objects from archives
14048 whole_archive_flag_spec_F77=' '
14049 archive_cmds_need_lc_F77=yes
14050 # This is similar to how AIX traditionally builds it's shared libraries.
14051 archive_expsym_cmds_F77="\
$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14057 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)'
14058 hardcode_libdir_flag_spec_F77
='-L$libdir'
14059 hardcode_minus_L_F77
=yes
14060 # see comment about different semantics on the GNU ld section
14065 export_dynamic_flag_spec_F77
=-rdynamic
14068 cygwin
* | mingw
* | pw32
*)
14069 # When not using gcc, we currently assume that we are using
14070 # Microsoft Visual C++.
14071 # hardcode_libdir_flag_spec is actually meaningless, as there is
14072 # no search path for DLLs.
14073 hardcode_libdir_flag_spec_F77
=' '
14074 allow_undefined_flag_F77
=unsupported
14075 # Tell ltmain to make .lib files, not .a files.
14077 # Tell ltmain to make .dll files, not .so files.
14079 # FIXME: Setting linknames here is a bad hack.
14080 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14081 # The linker will automatically build a .lib file if we build a DLL.
14082 old_archive_From_new_cmds_F77
='true'
14083 # FIXME: Should let the user specify the lib program.
14084 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
14085 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
14086 enable_shared_with_static_runtimes_F77
=yes
14089 darwin
* | rhapsody
*)
14091 rhapsody
* | darwin1.
[012])
14092 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
14095 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14096 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14098 case ${MACOSX_DEPLOYMENT_TARGET} in
14100 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14103 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
14109 archive_cmds_need_lc_F77
=no
14110 hardcode_direct_F77
=no
14111 hardcode_automatic_F77
=yes
14112 hardcode_shlibpath_var_F77
=unsupported
14113 whole_archive_flag_spec_F77
=''
14114 link_all_deplibs_F77
=yes
14115 if test "$GCC" = yes ; then
14116 output_verbose_link_cmd
='echo'
14117 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14118 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14119 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14120 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}'
14121 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}'
14123 case "$cc_basename" in
14125 output_verbose_link_cmd
='echo'
14126 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14127 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14128 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14129 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}'
14130 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}'
14140 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14141 hardcode_libdir_flag_spec_F77
='-L$libdir'
14142 hardcode_shlibpath_var_F77
=no
14149 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14150 # support. Future versions do this automatically, but an explicit c++rt0.o
14151 # does not break anything, and helps significantly (at the cost of a little
14154 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14155 hardcode_libdir_flag_spec_F77
='-R$libdir'
14156 hardcode_direct_F77
=yes
14157 hardcode_shlibpath_var_F77
=no
14160 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14162 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14163 hardcode_direct_F77
=yes
14164 hardcode_minus_L_F77
=yes
14165 hardcode_shlibpath_var_F77
=no
14168 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14169 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
14170 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14171 hardcode_libdir_flag_spec_F77
='-R$libdir'
14172 hardcode_direct_F77
=yes
14173 hardcode_shlibpath_var_F77
=no
14177 if test "$GCC" = yes; then
14178 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'
14180 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'
14182 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14183 hardcode_libdir_separator_F77
=:
14184 hardcode_direct_F77
=yes
14186 # hardcode_minus_L: Not really in the search PATH,
14187 # but as the default location of the library.
14188 hardcode_minus_L_F77
=yes
14189 export_dynamic_flag_spec_F77
='${wl}-E'
14193 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14194 case "$host_cpu" in
14196 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14199 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14203 case "$host_cpu" in
14205 archive_cmds_F77
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14208 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14212 if test "$with_gnu_ld" = no
; then
14213 case "$host_cpu" in
14215 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14216 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
14217 hardcode_libdir_separator_F77
=:
14218 hardcode_direct_F77
=no
14219 hardcode_shlibpath_var_F77
=no
14222 hardcode_libdir_flag_spec_F77
='-L$libdir'
14223 hardcode_direct_F77
=no
14224 hardcode_shlibpath_var_F77
=no
14226 # hardcode_minus_L: Not really in the search PATH,
14227 # but as the default location of the library.
14228 hardcode_minus_L_F77
=yes
14231 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14232 hardcode_libdir_separator_F77
=:
14233 hardcode_direct_F77
=yes
14234 export_dynamic_flag_spec_F77
='${wl}-E'
14236 # hardcode_minus_L: Not really in the search PATH,
14237 # but as the default location of the library.
14238 hardcode_minus_L_F77
=yes
14244 irix5
* | irix6
* | nonstopux
*)
14245 if test "$GCC" = yes; then
14246 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'
14248 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'
14249 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
14251 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14252 hardcode_libdir_separator_F77
=:
14253 link_all_deplibs_F77
=yes
14257 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14258 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14260 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14262 hardcode_libdir_flag_spec_F77
='-R$libdir'
14263 hardcode_direct_F77
=yes
14264 hardcode_shlibpath_var_F77
=no
14268 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14269 hardcode_direct_F77
=yes
14270 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14271 hardcode_libdir_separator_F77
=:
14272 hardcode_shlibpath_var_F77
=no
14276 hardcode_direct_F77
=yes
14277 hardcode_shlibpath_var_F77
=no
14278 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14279 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14280 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14281 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14282 export_dynamic_flag_spec_F77
='${wl}-E'
14285 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
14286 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14287 hardcode_libdir_flag_spec_F77
='-R$libdir'
14290 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14291 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14298 hardcode_libdir_flag_spec_F77
='-L$libdir'
14299 hardcode_minus_L_F77
=yes
14300 allow_undefined_flag_F77
=unsupported
14301 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'
14302 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14306 if test "$GCC" = yes; then
14307 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14308 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'
14310 allow_undefined_flag_F77
=' -expect_unresolved \*'
14311 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'
14313 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14314 hardcode_libdir_separator_F77
=:
14317 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
14318 if test "$GCC" = yes; then
14319 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14320 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'
14321 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14323 allow_undefined_flag_F77
=' -expect_unresolved \*'
14324 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'
14325 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~
14326 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14328 # Both c and cxx compiler support -rpath directly
14329 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
14331 hardcode_libdir_separator_F77
=:
14335 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14336 hardcode_shlibpath_var_F77
=no
14337 export_dynamic_flag_spec_F77
='${wl}-Bexport'
14338 runpath_var
=LD_RUN_PATH
14339 hardcode_runpath_var
=yes
14343 no_undefined_flag_F77
=' -z text'
14344 if test "$GCC" = yes; then
14345 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14346 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14347 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14349 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14350 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14351 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14353 hardcode_libdir_flag_spec_F77
='-R$libdir'
14354 hardcode_shlibpath_var_F77
=no
14356 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
14357 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14358 whole_archive_flag_spec_F77
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
14360 link_all_deplibs_F77
=yes
14364 if test "x$host_vendor" = xsequent
; then
14365 # Use $CC to link under sequent, because it throws in some extra .o
14366 # files that make .init and .fini sections work.
14367 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14369 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14371 hardcode_libdir_flag_spec_F77
='-L$libdir'
14372 hardcode_direct_F77
=yes
14373 hardcode_minus_L_F77
=yes
14374 hardcode_shlibpath_var_F77
=no
14378 case $host_vendor in
14380 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14381 hardcode_direct_F77
=yes # is this really true???
14384 ## LD is ld it makes a PLAMLIB
14385 ## CC just makes a GrossModule.
14386 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14387 reload_cmds_F77
='$CC -r -o $output$reload_objs'
14388 hardcode_direct_F77
=no
14391 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14392 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
14395 runpath_var
='LD_RUN_PATH'
14396 hardcode_shlibpath_var_F77
=no
14400 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14401 hardcode_shlibpath_var_F77
=no
14402 export_dynamic_flag_spec_F77
='-Bexport'
14406 if test -d /usr
/nec
; then
14407 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14408 hardcode_shlibpath_var_F77
=no
14409 runpath_var
=LD_RUN_PATH
14410 hardcode_runpath_var
=yes
14416 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14417 hardcode_direct_F77
=yes
14418 hardcode_minus_L_F77
=no
14419 hardcode_shlibpath_var_F77
=no
14420 hardcode_runpath_var
=yes
14421 runpath_var
=LD_RUN_PATH
14424 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
14425 no_undefined_flag_F77
='${wl}-z ${wl}text'
14426 if test "$GCC" = yes; then
14427 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14429 archive_cmds_F77
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14431 runpath_var
='LD_RUN_PATH'
14432 hardcode_shlibpath_var_F77
=no
14436 no_undefined_flag_F77
=' -z text'
14437 # $CC -shared without GNU ld will not create a library from C++
14438 # object files and a static libstdc++, better avoid it by now
14439 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14440 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14441 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14442 hardcode_libdir_flag_spec_F77
=
14443 hardcode_shlibpath_var_F77
=no
14444 runpath_var
='LD_RUN_PATH'
14448 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14449 hardcode_libdir_flag_spec_F77
='-L$libdir'
14450 hardcode_shlibpath_var_F77
=no
14459 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14460 echo "${ECHO_T}$ld_shlibs_F77" >&6
14461 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
14463 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14464 if test "$GCC" = yes; then
14465 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14469 # Do we need to explicitly link libc?
14471 case "x$archive_cmds_need_lc_F77" in
14473 # Assume -lc should be added
14474 archive_cmds_need_lc_F77
=yes
14476 if test "$enable_shared" = yes && test "$GCC" = yes; then
14477 case $archive_cmds_F77 in
14479 # FIXME: we may have to deal with multi-command sequences.
14482 # Test whether the compiler implicitly links with -lc since on some
14483 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14484 # to ld, don't add -lc before -lgcc.
14485 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14486 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14488 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
14490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14491 (eval $ac_compile) 2>&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); } 2>conftest.err
; then
14497 libobjs
=conftest.
$ac_objext
14499 wl
=$lt_prog_compiler_wl_F77
14505 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
14506 allow_undefined_flag_F77
=
14507 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14508 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }
14513 archive_cmds_need_lc_F77
=no
14515 archive_cmds_need_lc_F77
=yes
14517 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
14519 cat conftest.err
1>&5
14522 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14523 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14530 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14531 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14532 library_names_spec
=
14533 libname_spec
='lib$name'
14537 postuninstall_cmds
=
14541 shlibpath_overrides_runpath
=unknown
14543 dynamic_linker
="$host_os ld.so"
14544 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14545 if test "$GCC" = yes; then
14546 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14547 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
14548 # if the path contains ";" then we assume it to be the separator
14549 # otherwise default to the standard path separator (i.e. ":") - it is
14550 # assumed that no part of a normal pathname contains ";" but that should
14551 # okay in the real world where ";" in dirpaths is itself problematic.
14552 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14554 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14557 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
14559 need_lib_prefix
=unknown
14560 hardcode_into_libs
=no
14562 # when you set need_version to no, make sure it does not cause -set_version
14563 # flags to be left without arguments
14564 need_version
=unknown
14569 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14570 shlibpath_var
=LIBPATH
14572 # AIX 3 has no versioning support, so we append a major version to the name.
14573 soname_spec
='${libname}${release}${shared_ext}$major'
14580 hardcode_into_libs
=yes
14581 if test "$host_cpu" = ia64
; then
14582 # AIX 5 supports IA64
14583 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14584 shlibpath_var
=LD_LIBRARY_PATH
14586 # With GCC up to 2.95.x, collect2 would create an import file
14587 # for dependence libraries. The import file would start with
14588 # the line `#! .'. This would cause the generated library to
14589 # depend on `.', always an invalid library. This was fixed in
14590 # development snapshots of GCC prior to 3.0.
14592 aix4 | aix4.
[01] | aix4.
[01].
*)
14593 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14595 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
14598 can_build_shared
=no
14602 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14603 # soname into executable. Probably we can add versioning support to
14604 # collect2, so additional links can be useful in future.
14605 if test "$aix_use_runtimelinking" = yes; then
14606 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14607 # instead of lib<name>.a to let people know that these are not
14608 # typical AIX shared libraries.
14609 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14611 # We preserve .a as extension for shared libraries through AIX4.2
14612 # and later when we are not doing run time linking.
14613 library_names_spec
='${libname}${release}.a $libname.a'
14614 soname_spec
='${libname}${release}${shared_ext}$major'
14616 shlibpath_var
=LIBPATH
14621 library_names_spec
='$libname.ixlibrary $libname.a'
14622 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14623 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'
14627 library_names_spec
='${libname}${shared_ext}'
14628 dynamic_linker
="$host_os ld.so"
14629 shlibpath_var
=LIBRARY_PATH
14635 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14636 soname_spec
='${libname}${release}${shared_ext}$major'
14637 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14638 shlibpath_var
=LD_LIBRARY_PATH
14639 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14640 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14641 # the default ld.so.conf also contains /usr/contrib/lib and
14642 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14643 # libtool to hard-code these into programs
14646 cygwin
* | mingw
* | pw32
*)
14647 version_type
=windows
14652 case $GCC,$host_os in
14653 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
14654 library_names_spec
='$libname.dll.a'
14655 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14656 postinstall_cmds
='base_file=`basename \${file}`~
14657 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14658 dldir=$destdir/`dirname \$dlpath`~
14659 test -d \$dldir || mkdir -p \$dldir~
14660 $install_prog $dir/$dlname \$dldir/$dlname'
14661 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14662 dlpath=$dir/\$dldll~
14664 shlibpath_overrides_runpath
=yes
14668 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14669 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14670 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
14673 # MinGW DLLs use traditional 'lib' prefix
14674 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14675 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14676 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
14677 # It is most probably a Windows format PATH printed by
14678 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14679 # path with ; separators, and with drive letters. We can handle the
14680 # drive letters (cygwin fileutils understands them), so leave them,
14681 # especially as we might pass files found there to a mingw objdump,
14682 # which wouldn't understand a cygwinified path. Ahh.
14683 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14685 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14689 # pw32 DLLs use 'pw' prefix rather than 'lib'
14690 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14696 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14699 dynamic_linker
='Win32 ld.exe'
14700 # FIXME: first we should search . and the directory the executable is in
14704 darwin
* | rhapsody
*)
14705 dynamic_linker
="$host_os dyld"
14706 version_type
=darwin
14709 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14710 soname_spec
='${libname}${release}${major}$shared_ext'
14711 shlibpath_overrides_runpath
=yes
14712 shlibpath_var
=DYLD_LIBRARY_PATH
14713 shrext_cmds
='$(test .$module = .yes && echo .so || echo .dylib)'
14714 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14715 if test "$GCC" = yes; then
14716 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"`
14718 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
14720 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14727 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14728 soname_spec
='${libname}${release}${shared_ext}$major'
14729 shlibpath_var
=LD_LIBRARY_PATH
14740 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14741 soname_spec
='${libname}${release}${shared_ext}$major'
14742 shlibpath_var
=LD_LIBRARY_PATH
14743 shlibpath_overrides_runpath
=no
14744 hardcode_into_libs
=yes
14745 dynamic_linker
='GNU ld.so'
14748 freebsd
* | dragonfly
*)
14749 # DragonFly does not have aout. When/if they implement a new
14750 # versioning mechanism, adjust this.
14751 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14752 version_type
=freebsd-
$objformat
14753 case $version_type in
14755 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14760 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14764 shlibpath_var
=LD_LIBRARY_PATH
14767 shlibpath_overrides_runpath
=yes
14769 freebsd3.
[01]* | freebsdelf3.
[01]*)
14770 shlibpath_overrides_runpath
=yes
14771 hardcode_into_libs
=yes
14774 shlibpath_overrides_runpath
=no
14775 hardcode_into_libs
=yes
14784 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14785 soname_spec
='${libname}${release}${shared_ext}$major'
14786 shlibpath_var
=LD_LIBRARY_PATH
14787 hardcode_into_libs
=yes
14790 hpux9
* | hpux10
* | hpux11
*)
14791 # Give a soname corresponding to the major version so that dld.sl refuses to
14792 # link against other versions.
14796 case "$host_cpu" in
14799 hardcode_into_libs
=yes
14800 dynamic_linker
="$host_os dld.so"
14801 shlibpath_var
=LD_LIBRARY_PATH
14802 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14803 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14804 soname_spec
='${libname}${release}${shared_ext}$major'
14805 if test "X$HPUX_IA64_MODE" = X32
; then
14806 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14808 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14810 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14814 hardcode_into_libs
=yes
14815 dynamic_linker
="$host_os dld.sl"
14816 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14817 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14818 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14819 soname_spec
='${libname}${release}${shared_ext}$major'
14820 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14821 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14825 dynamic_linker
="$host_os dld.sl"
14826 shlibpath_var
=SHLIB_PATH
14827 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14828 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14829 soname_spec
='${libname}${release}${shared_ext}$major'
14832 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14833 postinstall_cmds
='chmod 555 $lib'
14836 irix5
* | irix6
* | nonstopux
*)
14838 nonstopux
*) version_type
=nonstopux
;;
14840 if test "$lt_cv_prog_gnu_ld" = yes; then
14848 soname_spec
='${libname}${release}${shared_ext}$major'
14849 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14851 irix5
* | nonstopux
*)
14852 libsuff
= shlibsuff
=
14855 case $LD in # libtool.m4 will add one of these switches to LD
14856 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14857 libsuff
= shlibsuff
= libmagic
=32-bit;;
14858 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14859 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14860 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14861 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14862 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14866 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14867 shlibpath_overrides_runpath
=no
14868 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14869 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14870 hardcode_into_libs
=yes
14873 # No shared lib support for Linux oldld, aout, or coff.
14874 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14878 # This must be Linux ELF.
14883 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14884 soname_spec
='${libname}${release}${shared_ext}$major'
14885 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14886 shlibpath_var
=LD_LIBRARY_PATH
14887 shlibpath_overrides_runpath
=no
14888 # This implies no fast_install, which is unacceptable.
14889 # Some rework will be needed to allow for fast_install
14890 # before this can be enabled.
14891 hardcode_into_libs
=yes
14893 # Append ld.so.conf contents to the search path
14894 if test -f /etc
/ld.so.conf
; then
14895 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14896 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14899 # We used to test for /lib/ld.so.1 and disable shared libraries on
14900 # powerpc, because MkLinux only supported shared libraries with the
14901 # GNU dynamic linker. Since this was broken with cross compilers,
14902 # most powerpc-linux boxes support dynamic linking these days and
14903 # people can always --disable-shared, the test was removed, and we
14904 # assume the GNU/Linux dynamic linker is in use.
14905 dynamic_linker
='GNU/Linux ld.so'
14912 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14913 soname_spec
='${libname}${release}${shared_ext}$major'
14914 shlibpath_var
=LD_LIBRARY_PATH
14915 shlibpath_overrides_runpath
=no
14916 hardcode_into_libs
=yes
14917 dynamic_linker
='GNU ld.so'
14924 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14925 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14926 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14927 dynamic_linker
='NetBSD (a.out) ld.so'
14929 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14930 soname_spec
='${libname}${release}${shared_ext}$major'
14931 dynamic_linker
='NetBSD ld.elf_so'
14933 shlibpath_var
=LD_LIBRARY_PATH
14934 shlibpath_overrides_runpath
=yes
14935 hardcode_into_libs
=yes
14940 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14941 shlibpath_var
=LD_LIBRARY_PATH
14942 shlibpath_overrides_runpath
=yes
14949 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14950 soname_spec
='${libname}${release}${shared_ext}$major'
14951 shlibpath_var
=LD_LIBRARY_PATH
14952 shlibpath_overrides_runpath
=yes
14959 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14960 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14961 shlibpath_var
=LD_LIBRARY_PATH
14962 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14964 openbsd2.
[89] | openbsd2.
[89].
*)
14965 shlibpath_overrides_runpath
=no
14968 shlibpath_overrides_runpath
=yes
14972 shlibpath_overrides_runpath
=yes
14977 libname_spec
='$name'
14980 library_names_spec
='$libname${shared_ext} $libname.a'
14981 dynamic_linker
='OS/2 ld.exe'
14982 shlibpath_var
=LIBPATH
14985 osf3
* | osf4
* | osf5
*)
14989 soname_spec
='${libname}${release}${shared_ext}$major'
14990 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14991 shlibpath_var
=LD_LIBRARY_PATH
14992 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14993 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14998 soname_spec
='${libname}${release}${shared_ext}$major'
14999 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15000 shlibpath_var
=LD_LIBRARY_PATH
15007 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15008 soname_spec
='${libname}${release}${shared_ext}$major'
15009 shlibpath_var
=LD_LIBRARY_PATH
15010 shlibpath_overrides_runpath
=yes
15011 hardcode_into_libs
=yes
15012 # ldd complains unless libraries are executable
15013 postinstall_cmds
='chmod +x $lib'
15018 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15019 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15020 shlibpath_var
=LD_LIBRARY_PATH
15021 shlibpath_overrides_runpath
=yes
15022 if test "$with_gnu_ld" = yes; then
15028 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
15030 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15031 soname_spec
='${libname}${release}${shared_ext}$major'
15032 shlibpath_var
=LD_LIBRARY_PATH
15033 case $host_vendor in
15035 shlibpath_overrides_runpath
=no
15037 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15038 runpath_var
=LD_RUN_PATH
15046 shlibpath_overrides_runpath
=no
15047 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15053 if test -d /usr
/nec
;then
15055 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15056 soname_spec
='$libname${shared_ext}.$major'
15057 shlibpath_var
=LD_LIBRARY_PATH
15063 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15064 soname_spec
='${libname}${release}${shared_ext}$major'
15065 shlibpath_var
=LD_LIBRARY_PATH
15072 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15073 echo "${ECHO_T}$dynamic_linker" >&6
15074 test "$dynamic_linker" = no
&& can_build_shared
=no
15076 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15077 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15078 hardcode_action_F77
=
15079 if test -n "$hardcode_libdir_flag_spec_F77" || \
15080 test -n "$runpath_var_F77" || \
15081 test "X$hardcode_automatic_F77" = "Xyes" ; then
15083 # We can hardcode non-existant directories.
15084 if test "$hardcode_direct_F77" != no
&&
15085 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15086 # have to relink, otherwise we might link with an installed library
15087 # when we should be linking with a yet-to-be-installed one
15088 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15089 test "$hardcode_minus_L_F77" != no
; then
15090 # Linking always hardcodes the temporary library directory.
15091 hardcode_action_F77
=relink
15093 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15094 hardcode_action_F77
=immediate
15097 # We cannot hardcode anything, or else we can only hardcode existing
15099 hardcode_action_F77
=unsupported
15101 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15102 echo "${ECHO_T}$hardcode_action_F77" >&6
15104 if test "$hardcode_action_F77" = relink
; then
15105 # Fast installation is not supported
15106 enable_fast_install
=no
15107 elif test "$shlibpath_overrides_runpath" = yes ||
15108 test "$enable_shared" = no
; then
15109 # Fast installation is not necessary
15110 enable_fast_install
=needless
15115 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15116 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15117 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
15118 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
15119 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
15120 echo "$as_me:$LINENO: result: yes" >&5
15121 echo "${ECHO_T}yes" >&6
15123 # FIXME - insert some real tests, host_os isn't really good enough
15126 if test -n "$STRIP" ; then
15127 striplib
="$STRIP -x"
15128 echo "$as_me:$LINENO: result: yes" >&5
15129 echo "${ECHO_T}yes" >&6
15131 echo "$as_me:$LINENO: result: no" >&5
15132 echo "${ECHO_T}no" >&6
15136 echo "$as_me:$LINENO: result: no" >&5
15137 echo "${ECHO_T}no" >&6
15144 # The else clause should only fire when bootstrapping the
15145 # libtool distribution, otherwise you forgot to ship ltmain.sh
15146 # with your package, and you will get complaints that there are
15147 # no rules to generate ltmain.sh.
15148 if test -f "$ltmain"; then
15149 # See if we are running on zsh, and set the options which allow our commands through
15150 # without removal of \ escapes.
15151 if test -n "${ZSH_VERSION+set}" ; then
15152 setopt NO_GLOB_SUBST
15154 # Now quote all the things that may contain metacharacters while being
15155 # careful not to overquote the AC_SUBSTed values. We take copies of the
15156 # variables and quote the copies for generation of the libtool script.
15157 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15159 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15160 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15161 deplibs_check_method reload_flag reload_cmds need_locks \
15162 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15163 lt_cv_sys_global_symbol_to_c_name_address \
15164 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15165 old_postinstall_cmds old_postuninstall_cmds \
15169 lt_prog_compiler_wl_F77 \
15170 lt_prog_compiler_pic_F77 \
15171 lt_prog_compiler_static_F77 \
15172 lt_prog_compiler_no_builtin_flag_F77 \
15173 export_dynamic_flag_spec_F77 \
15174 thread_safe_flag_spec_F77 \
15175 whole_archive_flag_spec_F77 \
15176 enable_shared_with_static_runtimes_F77 \
15177 old_archive_cmds_F77 \
15178 old_archive_from_new_cmds_F77 \
15179 predep_objects_F77 \
15180 postdep_objects_F77 \
15183 compiler_lib_search_path_F77 \
15185 archive_expsym_cmds_F77 \
15186 postinstall_cmds_F77 \
15187 postuninstall_cmds_F77 \
15188 old_archive_from_expsyms_cmds_F77 \
15189 allow_undefined_flag_F77 \
15190 no_undefined_flag_F77 \
15191 export_symbols_cmds_F77 \
15192 hardcode_libdir_flag_spec_F77 \
15193 hardcode_libdir_flag_spec_ld_F77 \
15194 hardcode_libdir_separator_F77 \
15195 hardcode_automatic_F77 \
15197 module_expsym_cmds_F77 \
15198 lt_cv_prog_compiler_c_o_F77 \
15199 exclude_expsyms_F77 \
15200 include_expsyms_F77
; do
15203 old_archive_cmds_F77 | \
15204 old_archive_from_new_cmds_F77 | \
15205 archive_cmds_F77 | \
15206 archive_expsym_cmds_F77 | \
15207 module_cmds_F77 | \
15208 module_expsym_cmds_F77 | \
15209 old_archive_from_expsyms_cmds_F77 | \
15210 export_symbols_cmds_F77 | \
15211 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15212 postinstall_cmds | postuninstall_cmds | \
15213 old_postinstall_cmds | old_postuninstall_cmds | \
15214 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
15215 # Double-quote double-evaled strings.
15216 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15219 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15225 *'\$0 --fallback-echo"')
15226 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15232 cat <<__EOF__ >> "$cfgfile"
15233 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15235 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15237 # Shell to use when invoking shell scripts.
15240 # Whether or not to build shared libraries.
15241 build_libtool_libs=$enable_shared
15243 # Whether or not to build static libraries.
15244 build_old_libs=$enable_static
15246 # Whether or not to add -lc for building shared libraries.
15247 build_libtool_need_lc=$archive_cmds_need_lc_F77
15249 # Whether or not to disallow shared libs when runtime libs are static
15250 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15252 # Whether or not to optimize for fast installation.
15253 fast_install=$enable_fast_install
15256 host_alias=$host_alias
15260 # The build system.
15261 build_alias=$build_alias
15265 # An echo program that does not interpret backslashes.
15270 AR_FLAGS=$lt_AR_FLAGS
15275 # A language-specific compiler.
15276 CC=$lt_compiler_F77
15278 # Is the compiler the GNU C compiler?
15284 # The linker used to build libraries.
15287 # Whether we need hard or soft links.
15290 # A BSD-compatible nm program.
15293 # A symbol stripping program
15296 # Used to examine libraries when file_magic_cmd begins "file"
15297 MAGIC_CMD=$MAGIC_CMD
15299 # Used on cygwin: DLL creation program.
15302 # Used on cygwin: object dumper.
15305 # Used on cygwin: assembler.
15308 # The name of the directory that contains temporary libtool files.
15311 # How to create reloadable object files.
15312 reload_flag=$lt_reload_flag
15313 reload_cmds=$lt_reload_cmds
15315 # How to pass a linker flag through the compiler.
15316 wl=$lt_lt_prog_compiler_wl_F77
15318 # Object file suffix (normally "o").
15319 objext="$ac_objext"
15321 # Old archive suffix (normally "a").
15324 # Shared library suffix (normally ".so").
15325 shrext_cmds='$shrext_cmds'
15327 # Executable file suffix (normally "").
15330 # Additional compiler flags for building library objects.
15331 pic_flag=$lt_lt_prog_compiler_pic_F77
15334 # What is the maximum length of a command?
15335 max_cmd_len=$lt_cv_sys_max_cmd_len
15337 # Does compiler simultaneously support -c and -o options?
15338 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15340 # Must we lock files when doing compilation ?
15341 need_locks=$lt_need_locks
15343 # Do we need the lib prefix for modules?
15344 need_lib_prefix=$need_lib_prefix
15346 # Do we need a version for libraries?
15347 need_version=$need_version
15349 # Whether dlopen is supported.
15350 dlopen_support=$enable_dlopen
15352 # Whether dlopen of programs is supported.
15353 dlopen_self=$enable_dlopen_self
15355 # Whether dlopen of statically linked programs is supported.
15356 dlopen_self_static=$enable_dlopen_self_static
15358 # Compiler flag to prevent dynamic linking.
15359 link_static_flag=$lt_lt_prog_compiler_static_F77
15361 # Compiler flag to turn off builtin functions.
15362 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15364 # Compiler flag to allow reflexive dlopens.
15365 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15367 # Compiler flag to generate shared objects directly from archives.
15368 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15370 # Compiler flag to generate thread-safe objects.
15371 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15373 # Library versioning type.
15374 version_type=$version_type
15376 # Format of library name prefix.
15377 libname_spec=$lt_libname_spec
15379 # List of archive names. First name is the real one, the rest are links.
15380 # The last name is the one that the linker finds with -lNAME.
15381 library_names_spec=$lt_library_names_spec
15383 # The coded name of the library, if different from the real name.
15384 soname_spec=$lt_soname_spec
15386 # Commands used to build and install an old-style archive.
15388 old_archive_cmds=$lt_old_archive_cmds_F77
15389 old_postinstall_cmds=$lt_old_postinstall_cmds
15390 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15392 # Create an old-style archive from a shared archive.
15393 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15395 # Create a temporary old-style archive to link instead of a shared archive.
15396 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15398 # Commands used to build and install a shared archive.
15399 archive_cmds=$lt_archive_cmds_F77
15400 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15401 postinstall_cmds=$lt_postinstall_cmds
15402 postuninstall_cmds=$lt_postuninstall_cmds
15404 # Commands used to build a loadable module (assumed same as above if empty)
15405 module_cmds=$lt_module_cmds_F77
15406 module_expsym_cmds=$lt_module_expsym_cmds_F77
15408 # Commands to strip libraries.
15409 old_striplib=$lt_old_striplib
15410 striplib=$lt_striplib
15412 # Dependencies to place before the objects being linked to create a
15414 predep_objects=$lt_predep_objects_F77
15416 # Dependencies to place after the objects being linked to create a
15418 postdep_objects=$lt_postdep_objects_F77
15420 # Dependencies to place before the objects being linked to create a
15422 predeps=$lt_predeps_F77
15424 # Dependencies to place after the objects being linked to create a
15426 postdeps=$lt_postdeps_F77
15428 # The library search path used internally by the compiler when linking
15429 # a shared library.
15430 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15432 # Method to check whether dependent libraries are shared objects.
15433 deplibs_check_method=$lt_deplibs_check_method
15435 # Command to use when deplibs_check_method == file_magic.
15436 file_magic_cmd=$lt_file_magic_cmd
15438 # Flag that allows shared libraries with undefined symbols to be built.
15439 allow_undefined_flag=$lt_allow_undefined_flag_F77
15441 # Flag that forces no undefined symbols.
15442 no_undefined_flag=$lt_no_undefined_flag_F77
15444 # Commands used to finish a libtool library installation in a directory.
15445 finish_cmds=$lt_finish_cmds
15447 # Same as above, but a single script fragment to be evaled but not shown.
15448 finish_eval=$lt_finish_eval
15450 # Take the output of nm and produce a listing of raw symbols and C names.
15451 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15453 # Transform the output of nm in a proper C declaration
15454 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15456 # Transform the output of nm in a C name address pair
15457 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15459 # This is the shared library runtime path variable.
15460 runpath_var=$runpath_var
15462 # This is the shared library path variable.
15463 shlibpath_var=$shlibpath_var
15465 # Is shlibpath searched before the hard-coded library search path?
15466 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15468 # How to hardcode a shared library path into an executable.
15469 hardcode_action=$hardcode_action_F77
15471 # Whether we should hardcode library paths into libraries.
15472 hardcode_into_libs=$hardcode_into_libs
15474 # Flag to hardcode \$libdir into a binary during linking.
15475 # This must work even if \$libdir does not exist.
15476 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15478 # If ld is used when linking, flag to hardcode \$libdir into
15479 # a binary during linking. This must work even if \$libdir does
15481 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15483 # Whether we need a single -rpath flag with a separated argument.
15484 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15486 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15487 # resulting binary.
15488 hardcode_direct=$hardcode_direct_F77
15490 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15491 # resulting binary.
15492 hardcode_minus_L=$hardcode_minus_L_F77
15494 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15495 # the resulting binary.
15496 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15498 # Set to yes if building a shared library automatically hardcodes DIR into the library
15499 # and all subsequent libraries and executables linked against it.
15500 hardcode_automatic=$hardcode_automatic_F77
15502 # Variables whose values should be saved in libtool wrapper scripts and
15503 # restored at relink time.
15504 variables_saved_for_relink="$variables_saved_for_relink"
15506 # Whether libtool must link a program against all its dependency libraries.
15507 link_all_deplibs=$link_all_deplibs_F77
15509 # Compile-time system search path for libraries
15510 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15512 # Run-time system search path for libraries
15513 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15515 # Fix the shell variable \$srcfile for the compiler.
15516 fix_srcfile_path="$fix_srcfile_path_F77"
15518 # Set to yes if exported symbols are required.
15519 always_export_symbols=$always_export_symbols_F77
15521 # The commands to list exported symbols.
15522 export_symbols_cmds=$lt_export_symbols_cmds_F77
15524 # The commands to extract the exported symbol list from a shared archive.
15525 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15527 # Symbols that should not be listed in the preloaded symbols.
15528 exclude_expsyms=$lt_exclude_expsyms_F77
15530 # Symbols that must always be exported.
15531 include_expsyms=$lt_include_expsyms_F77
15533 # ### END LIBTOOL TAG CONFIG: $tagname
15539 # If there is no Makefile yet, we rely on a make rule to execute
15540 # `config.status --recheck' to rerun these tests and create the
15541 # libtool script then.
15542 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15543 if test -f "$ltmain_in"; then
15544 test -f Makefile
&& make "$ltmain"
15550 ac_cpp
='$CPP $CPPFLAGS'
15551 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15552 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15553 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15563 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15567 # Source file extension for Java test sources.
15570 # Object file extension for compiled Java test sources.
15574 # Code to be used in simple compile tests
15575 lt_simple_compile_test_code
="class foo {}\n"
15577 # Code to be used in simple link tests
15578 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }\n'
15580 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15582 # If no C compiler was specified, use CC.
15585 # Allow CC to be a program name with arguments.
15589 # Allow CC to be a program name with arguments.
15595 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15596 archive_cmds_need_lc_GCJ
=no
15599 lt_prog_compiler_no_builtin_flag_GCJ
=
15601 if test "$GCC" = yes; then
15602 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
15605 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15606 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15607 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15608 echo $ECHO_N "(cached) $ECHO_C" >&6
15610 lt_cv_prog_compiler_rtti_exceptions
=no
15611 ac_outfile
=conftest.
$ac_objext
15612 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15613 lt_compiler_flag
="-fno-rtti -fno-exceptions"
15614 # Insert the option either (1) after the last *FLAGS variable, or
15615 # (2) before a word containing "conftest.", or (3) at the end.
15616 # Note that $ac_compile itself does not contain backslashes and begins
15617 # with a dollar sign (not a hyphen), so the echo should work correctly.
15618 # The option is referenced via a variable to avoid confusing sed.
15619 lt_compile
=`echo "$ac_compile" | $SED \
15620 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15622 -e 's:$: $lt_compiler_flag:'`
15623 (eval echo "\"\$as_me:15623: $lt_compile\"" >&5)
15624 (eval "$lt_compile" 2>conftest.err
)
15626 cat conftest.err
>&5
15627 echo "$as_me:15627: \$? = $ac_status" >&5
15628 if (exit $ac_status) && test -s "$ac_outfile"; then
15629 # The compiler can only warn and ignore the option if not recognized
15630 # So say no if there are warnings
15631 if test ! -s conftest.err
; then
15632 lt_cv_prog_compiler_rtti_exceptions
=yes
15638 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15639 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15641 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
15642 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15649 lt_prog_compiler_wl_GCJ
=
15650 lt_prog_compiler_pic_GCJ
=
15651 lt_prog_compiler_static_GCJ
=
15653 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15654 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15656 if test "$GCC" = yes; then
15657 lt_prog_compiler_wl_GCJ
='-Wl,'
15658 lt_prog_compiler_static_GCJ
='-static'
15662 # All AIX code is PIC.
15663 if test "$host_cpu" = ia64
; then
15664 # AIX 5 now supports IA64 processor
15665 lt_prog_compiler_static_GCJ
='-Bstatic'
15670 # FIXME: we need at least 68020 code to build shared libraries, but
15671 # adding the `-m68020' flag to GCC prevents building anything better,
15673 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
15676 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
15677 # PIC is the default for these OSes.
15680 mingw
* | pw32
* | os2
*)
15681 # This hack is so that the source file can tell whether it is being
15682 # built for inclusion in a dll (and should export symbols for example).
15683 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
15686 darwin
* | rhapsody
*)
15687 # PIC is the default on this platform
15688 # Common symbols not allowed in MH_DYLIB files
15689 lt_prog_compiler_pic_GCJ
='-fno-common'
15693 # Just because we use GCC doesn't mean we suddenly get shared libraries
15694 # on systems that don't support them.
15695 lt_prog_compiler_can_build_shared_GCJ
=no
15700 if test -d /usr
/nec
; then
15701 lt_prog_compiler_pic_GCJ
=-Kconform_pic
15706 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15707 # not for PA HP-UX.
15708 case "$host_cpu" in
15713 lt_prog_compiler_pic_GCJ
='-fPIC'
15719 lt_prog_compiler_pic_GCJ
='-fPIC'
15723 # PORTME Check for flag to pass linker flags through the system compiler.
15726 lt_prog_compiler_wl_GCJ
='-Wl,'
15727 if test "$host_cpu" = ia64
; then
15728 # AIX 5 now supports IA64 processor
15729 lt_prog_compiler_static_GCJ
='-Bstatic'
15731 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
15735 # PIC is the default on this platform
15736 # Common symbols not allowed in MH_DYLIB files
15737 case "$cc_basename" in
15739 lt_prog_compiler_pic_GCJ
='-qnocommon'
15740 lt_prog_compiler_wl_GCJ
='-Wl,'
15745 mingw
* | pw32
* | os2
*)
15746 # This hack is so that the source file can tell whether it is being
15747 # built for inclusion in a dll (and should export symbols for example).
15748 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
15751 hpux9
* | hpux10
* | hpux11
*)
15752 lt_prog_compiler_wl_GCJ
='-Wl,'
15753 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15754 # not for PA HP-UX.
15755 case "$host_cpu" in
15760 lt_prog_compiler_pic_GCJ
='+Z'
15763 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15764 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
15767 irix5
* | irix6
* | nonstopux
*)
15768 lt_prog_compiler_wl_GCJ
='-Wl,'
15769 # PIC (with -KPIC) is the default.
15770 lt_prog_compiler_static_GCJ
='-non_shared'
15774 lt_prog_compiler_pic_GCJ
='-KPIC'
15775 lt_prog_compiler_static_GCJ
='-Bstatic'
15779 case $cc_basename in
15781 lt_prog_compiler_wl_GCJ
='-Wl,'
15782 lt_prog_compiler_pic_GCJ
='-KPIC'
15783 lt_prog_compiler_static_GCJ
='-static'
15785 pgcc | pgf77 | pgf90
)
15786 # Portland Group compilers (*not* the Pentium gcc compiler,
15787 # which looks to be a dead project)
15788 lt_prog_compiler_wl_GCJ
='-Wl,'
15789 lt_prog_compiler_pic_GCJ
='-fpic'
15790 lt_prog_compiler_static_GCJ
='-static'
15793 lt_prog_compiler_wl_GCJ
='-Wl,'
15794 # All Alpha code is PIC.
15795 lt_prog_compiler_static_GCJ
='-non_shared'
15798 lt_prog_compiler_wl_GCJ
='-lopt='
15803 osf3
* | osf4
* | osf5
*)
15804 lt_prog_compiler_wl_GCJ
='-Wl,'
15805 # All OSF/1 code is PIC.
15806 lt_prog_compiler_static_GCJ
='-non_shared'
15810 lt_prog_compiler_pic_GCJ
='-Kpic'
15811 lt_prog_compiler_static_GCJ
='-dn'
15815 lt_prog_compiler_wl_GCJ
='-Wl,'
15816 lt_prog_compiler_pic_GCJ
='-KPIC'
15817 lt_prog_compiler_static_GCJ
='-Bstatic'
15821 lt_prog_compiler_wl_GCJ
='-Qoption ld '
15822 lt_prog_compiler_pic_GCJ
='-PIC'
15823 lt_prog_compiler_static_GCJ
='-Bstatic'
15826 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
15827 lt_prog_compiler_wl_GCJ
='-Wl,'
15828 lt_prog_compiler_pic_GCJ
='-KPIC'
15829 lt_prog_compiler_static_GCJ
='-Bstatic'
15833 if test -d /usr
/nec
;then
15834 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
15835 lt_prog_compiler_static_GCJ
='-Bstatic'
15840 lt_prog_compiler_wl_GCJ
='-Wl,'
15841 lt_prog_compiler_can_build_shared_GCJ
=no
15845 lt_prog_compiler_pic_GCJ
='-pic'
15846 lt_prog_compiler_static_GCJ
='-Bstatic'
15850 lt_prog_compiler_can_build_shared_GCJ
=no
15855 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15856 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15859 # Check to make sure the PIC flag actually works.
15861 if test -n "$lt_prog_compiler_pic_GCJ"; then
15863 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15864 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15865 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15866 echo $ECHO_N "(cached) $ECHO_C" >&6
15868 lt_prog_compiler_pic_works_GCJ
=no
15869 ac_outfile
=conftest.
$ac_objext
15870 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15871 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
15872 # Insert the option either (1) after the last *FLAGS variable, or
15873 # (2) before a word containing "conftest.", or (3) at the end.
15874 # Note that $ac_compile itself does not contain backslashes and begins
15875 # with a dollar sign (not a hyphen), so the echo should work correctly.
15876 # The option is referenced via a variable to avoid confusing sed.
15877 lt_compile
=`echo "$ac_compile" | $SED \
15878 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15879 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15880 -e 's:$: $lt_compiler_flag:'`
15881 (eval echo "\"\$as_me:15881: $lt_compile\"" >&5)
15882 (eval "$lt_compile" 2>conftest.err
)
15884 cat conftest.err
>&5
15885 echo "$as_me:15885: \$? = $ac_status" >&5
15886 if (exit $ac_status) && test -s "$ac_outfile"; then
15887 # The compiler can only warn and ignore the option if not recognized
15888 # So say no if there are warnings
15889 if test ! -s conftest.err
; then
15890 lt_prog_compiler_pic_works_GCJ
=yes
15896 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15897 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15899 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
15900 case $lt_prog_compiler_pic_GCJ in
15902 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
15905 lt_prog_compiler_pic_GCJ
=
15906 lt_prog_compiler_can_build_shared_GCJ
=no
15911 # For platforms which do not support PIC, -DPIC is meaningless:
15913 lt_prog_compiler_pic_GCJ
=
15916 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
15920 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15921 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15922 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15923 echo $ECHO_N "(cached) $ECHO_C" >&6
15925 lt_cv_prog_compiler_c_o_GCJ
=no
15926 $rm -r conftest
2>/dev
/null
15930 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15932 lt_compiler_flag
="-o out/conftest2.$ac_objext"
15933 # Insert the option either (1) after the last *FLAGS variable, or
15934 # (2) before a word containing "conftest.", or (3) at the end.
15935 # Note that $ac_compile itself does not contain backslashes and begins
15936 # with a dollar sign (not a hyphen), so the echo should work correctly.
15937 lt_compile
=`echo "$ac_compile" | $SED \
15938 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15940 -e 's:$: $lt_compiler_flag:'`
15941 (eval echo "\"\$as_me:15941: $lt_compile\"" >&5)
15942 (eval "$lt_compile" 2>out
/conftest.err
)
15944 cat out
/conftest.err
>&5
15945 echo "$as_me:15945: \$? = $ac_status" >&5
15946 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
15948 # The compiler can only warn and ignore the option if not recognized
15949 # So say no if there are warnings
15950 if test ! -s out
/conftest.err
; then
15951 lt_cv_prog_compiler_c_o_GCJ
=yes
15956 # SGI C++ compiler will create directory out/ii_files/ for
15957 # template instantiation
15958 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
15959 $rm out
/* && rmdir out
15965 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15966 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15969 hard_links
="nottested"
15970 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
15971 # do not overwrite the value of need_locks provided by the user
15972 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15973 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15976 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
15978 ln conftest.a conftest.b
2>&5 || hard_links
=no
15979 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
15980 echo "$as_me:$LINENO: result: $hard_links" >&5
15981 echo "${ECHO_T}$hard_links" >&6
15982 if test "$hard_links" = no
; then
15983 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15984 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15991 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15992 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15995 allow_undefined_flag_GCJ
=
15996 enable_shared_with_static_runtimes_GCJ
=no
15998 archive_expsym_cmds_GCJ
=
15999 old_archive_From_new_cmds_GCJ
=
16000 old_archive_from_expsyms_cmds_GCJ
=
16001 export_dynamic_flag_spec_GCJ
=
16002 whole_archive_flag_spec_GCJ
=
16003 thread_safe_flag_spec_GCJ
=
16004 hardcode_libdir_flag_spec_GCJ
=
16005 hardcode_libdir_flag_spec_ld_GCJ
=
16006 hardcode_libdir_separator_GCJ
=
16007 hardcode_direct_GCJ
=no
16008 hardcode_minus_L_GCJ
=no
16009 hardcode_shlibpath_var_GCJ
=unsupported
16010 link_all_deplibs_GCJ
=unknown
16011 hardcode_automatic_GCJ
=no
16013 module_expsym_cmds_GCJ
=
16014 always_export_symbols_GCJ
=no
16015 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16016 # include_expsyms should be a list of space-separated symbols to be *always*
16017 # included in the symbol list
16018 include_expsyms_GCJ
=
16019 # exclude_expsyms can be an extended regexp of symbols to exclude
16020 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16021 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16022 # as well as any symbol that contains `d'.
16023 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
16024 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16025 # platforms (ab)use it in PIC code, but their linkers get confused if
16026 # the symbol is explicitly referenced. Since portable code cannot
16027 # rely on this symbol name, it's probably fine to never include it in
16028 # preloaded symbol tables.
16029 extract_expsyms_cmds
=
16032 cygwin
* | mingw
* | pw32
*)
16033 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16034 # When not using gcc, we currently assume that we are using
16035 # Microsoft Visual C++.
16036 if test "$GCC" != yes; then
16046 if test "$with_gnu_ld" = yes; then
16047 # If archive_cmds runs LD, not CC, wlarc should be empty
16050 # See if GNU ld supports shared libraries.
16052 aix3
* | aix4
* | aix5
*)
16053 # On AIX/PPC, the GNU linker is very broken
16054 if test "$host_cpu" != ia64
; then
16058 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16059 *** to be unable to reliably create shared libraries on AIX.
16060 *** Therefore, libtool is disabling shared libraries support. If you
16061 *** really care for shared libraries, you may want to modify your PATH
16062 *** so that a non-GNU linker is found, and then restart.
16069 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)'
16070 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16071 hardcode_minus_L_GCJ
=yes
16073 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16074 # that the semantics of dynamic libraries on AmigaOS, at least up
16075 # to version 4, is to share data among multiple programs linked
16076 # with the same dynamic library. Since this doesn't match the
16077 # behavior of shared libraries on other platforms, we can't use
16083 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16084 allow_undefined_flag_GCJ
=unsupported
16085 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16086 # support --undefined. This deserves some investigation. FIXME
16087 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16093 cygwin
* | mingw
* | pw32
*)
16094 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16095 # as there is no search path for DLLs.
16096 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16097 allow_undefined_flag_GCJ
=unsupported
16098 always_export_symbols_GCJ
=no
16099 enable_shared_with_static_runtimes_GCJ
=yes
16100 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16102 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
16103 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16104 # If the export-symbols file already is a .def file (1st line
16105 # is EXPORTS), use it as is; otherwise, prepend...
16106 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16107 cp $export_symbols $output_objdir/$soname.def;
16109 echo EXPORTS > $output_objdir/$soname.def;
16110 cat $export_symbols >> $output_objdir/$soname.def;
16112 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16119 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16120 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16123 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16124 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16129 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
16133 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16134 *** create shared libraries on Solaris systems. Therefore, libtool
16135 *** is disabling shared libraries support. We urge you to upgrade GNU
16136 *** binutils to release 2.9.1 or newer. Another option is to modify
16137 *** your PATH or compiler configuration so that the native linker is
16138 *** used, and then restart.
16141 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16142 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16143 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16150 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16152 hardcode_direct_GCJ
=yes
16153 hardcode_shlibpath_var_GCJ
=no
16157 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16159 case $CC,$host_cpu in
16160 pgf77
* | pgf90
* ) # Portland Group f77 and f90 compilers
16161 tmp_addflag
=' -fpic' ;;
16162 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16163 tmp_addflag
=' -i_dynamic' ;;
16164 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16165 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16166 ifc
* | ifort
*) # Intel Fortran compiler
16167 tmp_addflag
=' -nofor_main' ;;
16169 archive_cmds_GCJ
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16170 supports_anon_versioning
=no
16171 case `$LD -v 2>/dev/null` in
16172 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
16173 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
16174 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
16175 *\
2.11.
*) ;; # other 2.11 versions
16176 *) supports_anon_versioning
=yes ;;
16178 if test $supports_anon_versioning = yes; then
16179 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
16180 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16181 $echo "local: *; };" >> $output_objdir/$libname.ver~
16182 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16184 archive_expsym_cmds_GCJ
=$archive_cmds_GCJ
16192 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16193 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16194 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16201 if test "$ld_shlibs_GCJ" = yes; then
16202 runpath_var
=LD_RUN_PATH
16203 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
16204 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
16205 # ancient GNU ld didn't support --whole-archive et. al.
16206 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
16207 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16209 whole_archive_flag_spec_GCJ
=
16213 # PORTME fill in a description of your system's linker (not GNU ld)
16216 allow_undefined_flag_GCJ
=unsupported
16217 always_export_symbols_GCJ
=yes
16218 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'
16219 # Note: this linker hardcodes the directories in LIBPATH if there
16220 # are no directories specified by -L.
16221 hardcode_minus_L_GCJ
=yes
16222 if test "$GCC" = yes && test -z "$link_static_flag"; then
16223 # Neither direct hardcoding nor static linking is supported with a
16225 hardcode_direct_GCJ
=unsupported
16230 if test "$host_cpu" = ia64
; then
16231 # On IA64, the linker does run time linking by default, so we don't
16232 # have to do anything special.
16233 aix_use_runtimelinking
=no
16234 exp_sym_flag
='-Bexport'
16237 # If we're using GNU nm, then we don't want the "-C" option.
16238 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16239 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
16240 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'
16242 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'
16244 aix_use_runtimelinking
=no
16246 # Test if we are trying to use run time linking or normal
16247 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16248 # need to do runtime linking.
16249 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
16250 for ld_flag
in $LDFLAGS; do
16251 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16252 aix_use_runtimelinking
=yes
16258 exp_sym_flag
='-bexport'
16259 no_entry_flag
='-bnoentry'
16262 # When large executables or shared objects are built, AIX ld can
16263 # have problems creating the table of contents. If linking a library
16264 # or program results in "error TOC overflow" add -mminimal-toc to
16265 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16266 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16268 archive_cmds_GCJ
=''
16269 hardcode_direct_GCJ
=yes
16270 hardcode_libdir_separator_GCJ
=':'
16271 link_all_deplibs_GCJ
=yes
16273 if test "$GCC" = yes; then
16274 case $host_os in aix4.
[012]|aix4.
[012].
*)
16275 # We only want to do this on AIX 4.2 and lower, the check
16276 # below for broken collect2 doesn't work under 4.3+
16277 collect2name
=`${CC} -print-prog-name=collect2`
16278 if test -f "$collect2name" && \
16279 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
16281 # We have reworked collect2
16282 hardcode_direct_GCJ
=yes
16284 # We have old collect2
16285 hardcode_direct_GCJ
=unsupported
16286 # It fails to find uninstalled libraries when the uninstalled
16287 # path is not listed in the libpath. Setting hardcode_minus_L
16288 # to unsupported forces relinking
16289 hardcode_minus_L_GCJ
=yes
16290 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16291 hardcode_libdir_separator_GCJ
=
16294 shared_flag
='-shared'
16295 if test "$aix_use_runtimelinking" = yes; then
16296 shared_flag
="$shared_flag "'${wl}-G'
16300 if test "$host_cpu" = ia64
; then
16301 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16302 # chokes on -Wl,-G. The following line is correct:
16305 if test "$aix_use_runtimelinking" = yes; then
16306 shared_flag
='${wl}-G'
16308 shared_flag
='${wl}-bM:SRE'
16313 # It seems that -bexpall does not export symbols beginning with
16314 # underscore (_), so it is better to generate a list of symbols to export.
16315 always_export_symbols_GCJ
=yes
16316 if test "$aix_use_runtimelinking" = yes; then
16317 # Warning - without using the other runtime loading flags (-brtl),
16318 # -berok will link without error, but may produce a broken library.
16319 allow_undefined_flag_GCJ
='-berok'
16320 # Determine the default libpath from the value encoded in an empty executable.
16321 cat >conftest.
$ac_ext <<_ACEOF
16324 cat confdefs.h
>>conftest.
$ac_ext
16325 cat >>conftest.
$ac_ext <<_ACEOF
16326 /* end confdefs.h. */
16336 rm -f conftest.
$ac_objext conftest
$ac_exeext
16337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16338 (eval $ac_link) 2>conftest.er1
16340 grep -v '^ *+' conftest.er1
>conftest.err
16342 cat conftest.err
>&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } &&
16345 { ac_try
='test -z "$ac_c_werror_flag"
16346 || test ! -s conftest.err'
16347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348 (eval $ac_try) 2>&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; } &&
16352 { ac_try
='test -s conftest$ac_exeext'
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; }; then
16359 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16361 # Check for a 64-bit object if we didn't find anything.
16362 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; }
16365 echo "$as_me: failed program was:" >&5
16366 sed 's/^/| /' conftest.
$ac_ext >&5
16369 rm -f conftest.err conftest.
$ac_objext \
16370 conftest
$ac_exeext conftest.
$ac_ext
16371 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16373 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
16374 archive_expsym_cmds_GCJ
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16376 if test "$host_cpu" = ia64; then
16377 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr
/lib
:/lib
'
16378 allow_undefined_flag_GCJ="-z nodefs"
16379 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\
$export_symbols"
16381 # Determine the default libpath from the value encoded in an empty executable.
16382 cat >conftest.$ac_ext <<_ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h. */
16397 rm -f conftest.$ac_objext conftest$ac_exeext
16398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16399 (eval $ac_link) 2>conftest.er1
16401 grep -v '^ *+' conftest.er1 >conftest.err
16403 cat conftest.err >&5
16404 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16405 (exit $ac_status); } &&
16406 { ac_try='test -z "$ac_c_werror_flag"
16407 || test ! -s conftest.err'
16408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409 (eval $ac_try) 2>&5
16411 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16412 (exit $ac_status); }; } &&
16413 { ac_try='test -s conftest$ac_exeext'
16414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16415 (eval $ac_try) 2>&5
16417 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16418 (exit $ac_status); }; }; then
16420 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16422 # Check for a 64-bit object if we didn't find anything.
16423 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; }
16426 echo "$as_me: failed program was
:" >&5
16427 sed 's/^/| /' conftest.$ac_ext >&5
16430 rm -f conftest.err conftest.$ac_objext \
16431 conftest$ac_exeext conftest.$ac_ext
16432 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
16434 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16435 # Warning - without using the other run time loading flags,
16436 # -berok will link without error, but may produce a broken library.
16437 no_undefined_flag_GCJ=' ${wl}-bernotok'
16438 allow_undefined_flag_GCJ=' ${wl}-berok'
16439 # -bexpall does not export symbols beginning with underscore (_)
16440 always_export_symbols_GCJ=yes
16441 # Exported symbols can be pulled into shared objects from archives
16442 whole_archive_flag_spec_GCJ=' '
16443 archive_cmds_need_lc_GCJ=yes
16444 # This is similar to how AIX traditionally builds it's shared libraries.
16445 archive_expsym_cmds_GCJ="\
$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16451 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)'
16452 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16453 hardcode_minus_L_GCJ
=yes
16454 # see comment about different semantics on the GNU ld section
16459 export_dynamic_flag_spec_GCJ
=-rdynamic
16462 cygwin
* | mingw
* | pw32
*)
16463 # When not using gcc, we currently assume that we are using
16464 # Microsoft Visual C++.
16465 # hardcode_libdir_flag_spec is actually meaningless, as there is
16466 # no search path for DLLs.
16467 hardcode_libdir_flag_spec_GCJ
=' '
16468 allow_undefined_flag_GCJ
=unsupported
16469 # Tell ltmain to make .lib files, not .a files.
16471 # Tell ltmain to make .dll files, not .so files.
16473 # FIXME: Setting linknames here is a bad hack.
16474 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16475 # The linker will automatically build a .lib file if we build a DLL.
16476 old_archive_From_new_cmds_GCJ
='true'
16477 # FIXME: Should let the user specify the lib program.
16478 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
16479 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
16480 enable_shared_with_static_runtimes_GCJ
=yes
16483 darwin
* | rhapsody
*)
16485 rhapsody
* | darwin1.
[012])
16486 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
16489 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16490 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16492 case ${MACOSX_DEPLOYMENT_TARGET} in
16494 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16497 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
16503 archive_cmds_need_lc_GCJ
=no
16504 hardcode_direct_GCJ
=no
16505 hardcode_automatic_GCJ
=yes
16506 hardcode_shlibpath_var_GCJ
=unsupported
16507 whole_archive_flag_spec_GCJ
=''
16508 link_all_deplibs_GCJ
=yes
16509 if test "$GCC" = yes ; then
16510 output_verbose_link_cmd
='echo'
16511 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16512 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16513 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16514 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}'
16515 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}'
16517 case "$cc_basename" in
16519 output_verbose_link_cmd
='echo'
16520 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16521 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16522 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16523 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}'
16524 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}'
16534 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16535 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16536 hardcode_shlibpath_var_GCJ
=no
16543 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16544 # support. Future versions do this automatically, but an explicit c++rt0.o
16545 # does not break anything, and helps significantly (at the cost of a little
16548 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16549 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16550 hardcode_direct_GCJ
=yes
16551 hardcode_shlibpath_var_GCJ
=no
16554 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16556 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16557 hardcode_direct_GCJ
=yes
16558 hardcode_minus_L_GCJ
=yes
16559 hardcode_shlibpath_var_GCJ
=no
16562 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16563 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
16564 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16565 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16566 hardcode_direct_GCJ
=yes
16567 hardcode_shlibpath_var_GCJ
=no
16571 if test "$GCC" = yes; then
16572 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'
16574 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'
16576 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16577 hardcode_libdir_separator_GCJ
=:
16578 hardcode_direct_GCJ
=yes
16580 # hardcode_minus_L: Not really in the search PATH,
16581 # but as the default location of the library.
16582 hardcode_minus_L_GCJ
=yes
16583 export_dynamic_flag_spec_GCJ
='${wl}-E'
16587 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
16588 case "$host_cpu" in
16590 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16593 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16597 case "$host_cpu" in
16599 archive_cmds_GCJ
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16602 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16606 if test "$with_gnu_ld" = no
; then
16607 case "$host_cpu" in
16609 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16610 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
16611 hardcode_libdir_separator_GCJ
=:
16612 hardcode_direct_GCJ
=no
16613 hardcode_shlibpath_var_GCJ
=no
16616 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16617 hardcode_direct_GCJ
=no
16618 hardcode_shlibpath_var_GCJ
=no
16620 # hardcode_minus_L: Not really in the search PATH,
16621 # but as the default location of the library.
16622 hardcode_minus_L_GCJ
=yes
16625 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16626 hardcode_libdir_separator_GCJ
=:
16627 hardcode_direct_GCJ
=yes
16628 export_dynamic_flag_spec_GCJ
='${wl}-E'
16630 # hardcode_minus_L: Not really in the search PATH,
16631 # but as the default location of the library.
16632 hardcode_minus_L_GCJ
=yes
16638 irix5
* | irix6
* | nonstopux
*)
16639 if test "$GCC" = yes; then
16640 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'
16642 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'
16643 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
16645 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16646 hardcode_libdir_separator_GCJ
=:
16647 link_all_deplibs_GCJ
=yes
16651 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16652 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16654 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16656 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16657 hardcode_direct_GCJ
=yes
16658 hardcode_shlibpath_var_GCJ
=no
16662 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16663 hardcode_direct_GCJ
=yes
16664 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16665 hardcode_libdir_separator_GCJ
=:
16666 hardcode_shlibpath_var_GCJ
=no
16670 hardcode_direct_GCJ
=yes
16671 hardcode_shlibpath_var_GCJ
=no
16672 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16673 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16674 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16675 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
16676 export_dynamic_flag_spec_GCJ
='${wl}-E'
16679 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16680 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16681 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16684 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16685 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
16692 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16693 hardcode_minus_L_GCJ
=yes
16694 allow_undefined_flag_GCJ
=unsupported
16695 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'
16696 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16700 if test "$GCC" = yes; then
16701 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
16702 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'
16704 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
16705 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'
16707 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16708 hardcode_libdir_separator_GCJ
=:
16711 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16712 if test "$GCC" = yes; then
16713 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
16714 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'
16715 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16717 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
16718 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'
16719 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~
16720 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16722 # Both c and cxx compiler support -rpath directly
16723 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
16725 hardcode_libdir_separator_GCJ
=:
16729 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16730 hardcode_shlibpath_var_GCJ
=no
16731 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
16732 runpath_var
=LD_RUN_PATH
16733 hardcode_runpath_var
=yes
16737 no_undefined_flag_GCJ
=' -z text'
16738 if test "$GCC" = yes; then
16739 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16740 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16741 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16743 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16744 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16745 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16747 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16748 hardcode_shlibpath_var_GCJ
=no
16750 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16751 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16752 whole_archive_flag_spec_GCJ
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
16754 link_all_deplibs_GCJ
=yes
16758 if test "x$host_vendor" = xsequent
; then
16759 # Use $CC to link under sequent, because it throws in some extra .o
16760 # files that make .init and .fini sections work.
16761 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16763 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16765 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16766 hardcode_direct_GCJ
=yes
16767 hardcode_minus_L_GCJ
=yes
16768 hardcode_shlibpath_var_GCJ
=no
16772 case $host_vendor in
16774 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16775 hardcode_direct_GCJ
=yes # is this really true???
16778 ## LD is ld it makes a PLAMLIB
16779 ## CC just makes a GrossModule.
16780 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16781 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
16782 hardcode_direct_GCJ
=no
16785 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16786 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
16789 runpath_var
='LD_RUN_PATH'
16790 hardcode_shlibpath_var_GCJ
=no
16794 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16795 hardcode_shlibpath_var_GCJ
=no
16796 export_dynamic_flag_spec_GCJ
='-Bexport'
16800 if test -d /usr
/nec
; then
16801 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16802 hardcode_shlibpath_var_GCJ
=no
16803 runpath_var
=LD_RUN_PATH
16804 hardcode_runpath_var
=yes
16810 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16811 hardcode_direct_GCJ
=yes
16812 hardcode_minus_L_GCJ
=no
16813 hardcode_shlibpath_var_GCJ
=no
16814 hardcode_runpath_var
=yes
16815 runpath_var
=LD_RUN_PATH
16818 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
16819 no_undefined_flag_GCJ
='${wl}-z ${wl}text'
16820 if test "$GCC" = yes; then
16821 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16823 archive_cmds_GCJ
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16825 runpath_var
='LD_RUN_PATH'
16826 hardcode_shlibpath_var_GCJ
=no
16830 no_undefined_flag_GCJ
=' -z text'
16831 # $CC -shared without GNU ld will not create a library from C++
16832 # object files and a static libstdc++, better avoid it by now
16833 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16834 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16835 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16836 hardcode_libdir_flag_spec_GCJ
=
16837 hardcode_shlibpath_var_GCJ
=no
16838 runpath_var
='LD_RUN_PATH'
16842 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16843 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16844 hardcode_shlibpath_var_GCJ
=no
16853 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16854 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16855 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
16857 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16858 if test "$GCC" = yes; then
16859 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16863 # Do we need to explicitly link libc?
16865 case "x$archive_cmds_need_lc_GCJ" in
16867 # Assume -lc should be added
16868 archive_cmds_need_lc_GCJ
=yes
16870 if test "$enable_shared" = yes && test "$GCC" = yes; then
16871 case $archive_cmds_GCJ in
16873 # FIXME: we may have to deal with multi-command sequences.
16876 # Test whether the compiler implicitly links with -lc since on some
16877 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16878 # to ld, don't add -lc before -lgcc.
16879 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16880 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16882 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16885 (eval $ac_compile) 2>&5
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); } 2>conftest.err
; then
16891 libobjs
=conftest.
$ac_objext
16893 wl
=$lt_prog_compiler_wl_GCJ
16899 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
16900 allow_undefined_flag_GCJ
=
16901 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16902 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); }
16907 archive_cmds_need_lc_GCJ
=no
16909 archive_cmds_need_lc_GCJ
=yes
16911 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
16913 cat conftest.err
1>&5
16916 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16917 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16924 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16925 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16926 library_names_spec
=
16927 libname_spec
='lib$name'
16931 postuninstall_cmds
=
16935 shlibpath_overrides_runpath
=unknown
16937 dynamic_linker
="$host_os ld.so"
16938 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16939 if test "$GCC" = yes; then
16940 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16941 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
16942 # if the path contains ";" then we assume it to be the separator
16943 # otherwise default to the standard path separator (i.e. ":") - it is
16944 # assumed that no part of a normal pathname contains ";" but that should
16945 # okay in the real world where ";" in dirpaths is itself problematic.
16946 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16948 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16951 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16953 need_lib_prefix
=unknown
16954 hardcode_into_libs
=no
16956 # when you set need_version to no, make sure it does not cause -set_version
16957 # flags to be left without arguments
16958 need_version
=unknown
16963 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16964 shlibpath_var
=LIBPATH
16966 # AIX 3 has no versioning support, so we append a major version to the name.
16967 soname_spec
='${libname}${release}${shared_ext}$major'
16974 hardcode_into_libs
=yes
16975 if test "$host_cpu" = ia64
; then
16976 # AIX 5 supports IA64
16977 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16978 shlibpath_var
=LD_LIBRARY_PATH
16980 # With GCC up to 2.95.x, collect2 would create an import file
16981 # for dependence libraries. The import file would start with
16982 # the line `#! .'. This would cause the generated library to
16983 # depend on `.', always an invalid library. This was fixed in
16984 # development snapshots of GCC prior to 3.0.
16986 aix4 | aix4.
[01] | aix4.
[01].
*)
16987 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16989 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
16992 can_build_shared
=no
16996 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16997 # soname into executable. Probably we can add versioning support to
16998 # collect2, so additional links can be useful in future.
16999 if test "$aix_use_runtimelinking" = yes; then
17000 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17001 # instead of lib<name>.a to let people know that these are not
17002 # typical AIX shared libraries.
17003 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17005 # We preserve .a as extension for shared libraries through AIX4.2
17006 # and later when we are not doing run time linking.
17007 library_names_spec
='${libname}${release}.a $libname.a'
17008 soname_spec
='${libname}${release}${shared_ext}$major'
17010 shlibpath_var
=LIBPATH
17015 library_names_spec
='$libname.ixlibrary $libname.a'
17016 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17017 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'
17021 library_names_spec
='${libname}${shared_ext}'
17022 dynamic_linker
="$host_os ld.so"
17023 shlibpath_var
=LIBRARY_PATH
17029 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17030 soname_spec
='${libname}${release}${shared_ext}$major'
17031 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17032 shlibpath_var
=LD_LIBRARY_PATH
17033 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17034 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17035 # the default ld.so.conf also contains /usr/contrib/lib and
17036 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17037 # libtool to hard-code these into programs
17040 cygwin
* | mingw
* | pw32
*)
17041 version_type
=windows
17046 case $GCC,$host_os in
17047 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
17048 library_names_spec
='$libname.dll.a'
17049 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17050 postinstall_cmds
='base_file=`basename \${file}`~
17051 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17052 dldir=$destdir/`dirname \$dlpath`~
17053 test -d \$dldir || mkdir -p \$dldir~
17054 $install_prog $dir/$dlname \$dldir/$dlname'
17055 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17056 dlpath=$dir/\$dldll~
17058 shlibpath_overrides_runpath
=yes
17062 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17063 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17064 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
17067 # MinGW DLLs use traditional 'lib' prefix
17068 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17069 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17070 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
17071 # It is most probably a Windows format PATH printed by
17072 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17073 # path with ; separators, and with drive letters. We can handle the
17074 # drive letters (cygwin fileutils understands them), so leave them,
17075 # especially as we might pass files found there to a mingw objdump,
17076 # which wouldn't understand a cygwinified path. Ahh.
17077 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17079 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17083 # pw32 DLLs use 'pw' prefix rather than 'lib'
17084 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17090 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17093 dynamic_linker
='Win32 ld.exe'
17094 # FIXME: first we should search . and the directory the executable is in
17098 darwin
* | rhapsody
*)
17099 dynamic_linker
="$host_os dyld"
17100 version_type
=darwin
17103 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17104 soname_spec
='${libname}${release}${major}$shared_ext'
17105 shlibpath_overrides_runpath
=yes
17106 shlibpath_var
=DYLD_LIBRARY_PATH
17107 shrext_cmds
='$(test .$module = .yes && echo .so || echo .dylib)'
17108 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17109 if test "$GCC" = yes; then
17110 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"`
17112 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
17114 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17121 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17122 soname_spec
='${libname}${release}${shared_ext}$major'
17123 shlibpath_var
=LD_LIBRARY_PATH
17134 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17135 soname_spec
='${libname}${release}${shared_ext}$major'
17136 shlibpath_var
=LD_LIBRARY_PATH
17137 shlibpath_overrides_runpath
=no
17138 hardcode_into_libs
=yes
17139 dynamic_linker
='GNU ld.so'
17142 freebsd
* | dragonfly
*)
17143 # DragonFly does not have aout. When/if they implement a new
17144 # versioning mechanism, adjust this.
17145 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17146 version_type
=freebsd-
$objformat
17147 case $version_type in
17149 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17154 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17158 shlibpath_var
=LD_LIBRARY_PATH
17161 shlibpath_overrides_runpath
=yes
17163 freebsd3.
[01]* | freebsdelf3.
[01]*)
17164 shlibpath_overrides_runpath
=yes
17165 hardcode_into_libs
=yes
17168 shlibpath_overrides_runpath
=no
17169 hardcode_into_libs
=yes
17178 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17179 soname_spec
='${libname}${release}${shared_ext}$major'
17180 shlibpath_var
=LD_LIBRARY_PATH
17181 hardcode_into_libs
=yes
17184 hpux9
* | hpux10
* | hpux11
*)
17185 # Give a soname corresponding to the major version so that dld.sl refuses to
17186 # link against other versions.
17190 case "$host_cpu" in
17193 hardcode_into_libs
=yes
17194 dynamic_linker
="$host_os dld.so"
17195 shlibpath_var
=LD_LIBRARY_PATH
17196 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17197 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17198 soname_spec
='${libname}${release}${shared_ext}$major'
17199 if test "X$HPUX_IA64_MODE" = X32
; then
17200 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17202 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17204 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17208 hardcode_into_libs
=yes
17209 dynamic_linker
="$host_os dld.sl"
17210 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17211 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17212 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17213 soname_spec
='${libname}${release}${shared_ext}$major'
17214 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17215 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17219 dynamic_linker
="$host_os dld.sl"
17220 shlibpath_var
=SHLIB_PATH
17221 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17222 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17223 soname_spec
='${libname}${release}${shared_ext}$major'
17226 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17227 postinstall_cmds
='chmod 555 $lib'
17230 irix5
* | irix6
* | nonstopux
*)
17232 nonstopux
*) version_type
=nonstopux
;;
17234 if test "$lt_cv_prog_gnu_ld" = yes; then
17242 soname_spec
='${libname}${release}${shared_ext}$major'
17243 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17245 irix5
* | nonstopux
*)
17246 libsuff
= shlibsuff
=
17249 case $LD in # libtool.m4 will add one of these switches to LD
17250 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17251 libsuff
= shlibsuff
= libmagic
=32-bit;;
17252 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17253 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17254 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17255 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17256 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17260 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17261 shlibpath_overrides_runpath
=no
17262 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17263 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17264 hardcode_into_libs
=yes
17267 # No shared lib support for Linux oldld, aout, or coff.
17268 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17272 # This must be Linux ELF.
17277 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17278 soname_spec
='${libname}${release}${shared_ext}$major'
17279 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17280 shlibpath_var
=LD_LIBRARY_PATH
17281 shlibpath_overrides_runpath
=no
17282 # This implies no fast_install, which is unacceptable.
17283 # Some rework will be needed to allow for fast_install
17284 # before this can be enabled.
17285 hardcode_into_libs
=yes
17287 # Append ld.so.conf contents to the search path
17288 if test -f /etc
/ld.so.conf
; then
17289 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17290 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17293 # We used to test for /lib/ld.so.1 and disable shared libraries on
17294 # powerpc, because MkLinux only supported shared libraries with the
17295 # GNU dynamic linker. Since this was broken with cross compilers,
17296 # most powerpc-linux boxes support dynamic linking these days and
17297 # people can always --disable-shared, the test was removed, and we
17298 # assume the GNU/Linux dynamic linker is in use.
17299 dynamic_linker
='GNU/Linux ld.so'
17306 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17307 soname_spec
='${libname}${release}${shared_ext}$major'
17308 shlibpath_var
=LD_LIBRARY_PATH
17309 shlibpath_overrides_runpath
=no
17310 hardcode_into_libs
=yes
17311 dynamic_linker
='GNU ld.so'
17318 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17319 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17320 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17321 dynamic_linker
='NetBSD (a.out) ld.so'
17323 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17324 soname_spec
='${libname}${release}${shared_ext}$major'
17325 dynamic_linker
='NetBSD ld.elf_so'
17327 shlibpath_var
=LD_LIBRARY_PATH
17328 shlibpath_overrides_runpath
=yes
17329 hardcode_into_libs
=yes
17334 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17335 shlibpath_var
=LD_LIBRARY_PATH
17336 shlibpath_overrides_runpath
=yes
17343 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17344 soname_spec
='${libname}${release}${shared_ext}$major'
17345 shlibpath_var
=LD_LIBRARY_PATH
17346 shlibpath_overrides_runpath
=yes
17353 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17354 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17355 shlibpath_var
=LD_LIBRARY_PATH
17356 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17358 openbsd2.
[89] | openbsd2.
[89].
*)
17359 shlibpath_overrides_runpath
=no
17362 shlibpath_overrides_runpath
=yes
17366 shlibpath_overrides_runpath
=yes
17371 libname_spec
='$name'
17374 library_names_spec
='$libname${shared_ext} $libname.a'
17375 dynamic_linker
='OS/2 ld.exe'
17376 shlibpath_var
=LIBPATH
17379 osf3
* | osf4
* | osf5
*)
17383 soname_spec
='${libname}${release}${shared_ext}$major'
17384 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17385 shlibpath_var
=LD_LIBRARY_PATH
17386 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17387 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17392 soname_spec
='${libname}${release}${shared_ext}$major'
17393 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17394 shlibpath_var
=LD_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 shlibpath_var
=LD_LIBRARY_PATH
17404 shlibpath_overrides_runpath
=yes
17405 hardcode_into_libs
=yes
17406 # ldd complains unless libraries are executable
17407 postinstall_cmds
='chmod +x $lib'
17412 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17413 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17414 shlibpath_var
=LD_LIBRARY_PATH
17415 shlibpath_overrides_runpath
=yes
17416 if test "$with_gnu_ld" = yes; then
17422 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17424 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17425 soname_spec
='${libname}${release}${shared_ext}$major'
17426 shlibpath_var
=LD_LIBRARY_PATH
17427 case $host_vendor in
17429 shlibpath_overrides_runpath
=no
17431 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17432 runpath_var
=LD_RUN_PATH
17440 shlibpath_overrides_runpath
=no
17441 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17447 if test -d /usr
/nec
;then
17449 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17450 soname_spec
='$libname${shared_ext}.$major'
17451 shlibpath_var
=LD_LIBRARY_PATH
17457 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17458 soname_spec
='${libname}${release}${shared_ext}$major'
17459 shlibpath_var
=LD_LIBRARY_PATH
17466 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17467 echo "${ECHO_T}$dynamic_linker" >&6
17468 test "$dynamic_linker" = no
&& can_build_shared
=no
17470 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17471 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17472 hardcode_action_GCJ
=
17473 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17474 test -n "$runpath_var_GCJ" || \
17475 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17477 # We can hardcode non-existant directories.
17478 if test "$hardcode_direct_GCJ" != no
&&
17479 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17480 # have to relink, otherwise we might link with an installed library
17481 # when we should be linking with a yet-to-be-installed one
17482 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17483 test "$hardcode_minus_L_GCJ" != no
; then
17484 # Linking always hardcodes the temporary library directory.
17485 hardcode_action_GCJ
=relink
17487 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17488 hardcode_action_GCJ
=immediate
17491 # We cannot hardcode anything, or else we can only hardcode existing
17493 hardcode_action_GCJ
=unsupported
17495 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17496 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17498 if test "$hardcode_action_GCJ" = relink
; then
17499 # Fast installation is not supported
17500 enable_fast_install
=no
17501 elif test "$shlibpath_overrides_runpath" = yes ||
17502 test "$enable_shared" = no
; then
17503 # Fast installation is not necessary
17504 enable_fast_install
=needless
17509 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17510 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17511 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
17512 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
17513 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
17514 echo "$as_me:$LINENO: result: yes" >&5
17515 echo "${ECHO_T}yes" >&6
17517 # FIXME - insert some real tests, host_os isn't really good enough
17520 if test -n "$STRIP" ; then
17521 striplib
="$STRIP -x"
17522 echo "$as_me:$LINENO: result: yes" >&5
17523 echo "${ECHO_T}yes" >&6
17525 echo "$as_me:$LINENO: result: no" >&5
17526 echo "${ECHO_T}no" >&6
17530 echo "$as_me:$LINENO: result: no" >&5
17531 echo "${ECHO_T}no" >&6
17536 if test "x$enable_dlopen" != xyes
; then
17537 enable_dlopen
=unknown
17538 enable_dlopen_self
=unknown
17539 enable_dlopen_self_static
=unknown
17546 lt_cv_dlopen
="load_add_on"
17548 lt_cv_dlopen_self
=yes
17552 lt_cv_dlopen
="LoadLibrary"
17557 lt_cv_dlopen
="dlopen"
17562 # if libdl is installed we need to link against it
17563 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17564 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17565 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17566 echo $ECHO_N "(cached) $ECHO_C" >&6
17568 ac_check_lib_save_LIBS
=$LIBS
17570 cat >conftest.
$ac_ext <<_ACEOF
17573 cat confdefs.h
>>conftest.
$ac_ext
17574 cat >>conftest.
$ac_ext <<_ACEOF
17575 /* end confdefs.h. */
17577 /* Override any gcc2 internal prototype to avoid an error. */
17581 /* We use char because int might match the return type of a gcc2
17582 builtin and then its argument prototype would still apply. */
17592 rm -f conftest.
$ac_objext conftest
$ac_exeext
17593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17594 (eval $ac_link) 2>conftest.er1
17596 grep -v '^ *+' conftest.er1
>conftest.err
17598 cat conftest.err
>&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); } &&
17601 { ac_try
='test -z "$ac_c_werror_flag"
17602 || test ! -s conftest.err'
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; } &&
17608 { ac_try
='test -s conftest$ac_exeext'
17609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610 (eval $ac_try) 2>&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); }; }; then
17614 ac_cv_lib_dl_dlopen
=yes
17616 echo "$as_me: failed program was:" >&5
17617 sed 's/^/| /' conftest.
$ac_ext >&5
17619 ac_cv_lib_dl_dlopen
=no
17621 rm -f conftest.err conftest.
$ac_objext \
17622 conftest
$ac_exeext conftest.
$ac_ext
17623 LIBS
=$ac_check_lib_save_LIBS
17625 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17626 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17627 if test $ac_cv_lib_dl_dlopen = yes; then
17628 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17631 lt_cv_dlopen
="dyld"
17633 lt_cv_dlopen_self
=yes
17640 echo "$as_me:$LINENO: checking for shl_load" >&5
17641 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17642 if test "${ac_cv_func_shl_load+set}" = set; then
17643 echo $ECHO_N "(cached) $ECHO_C" >&6
17645 cat >conftest.
$ac_ext <<_ACEOF
17648 cat confdefs.h
>>conftest.
$ac_ext
17649 cat >>conftest.
$ac_ext <<_ACEOF
17650 /* end confdefs.h. */
17651 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17653 #define shl_load innocuous_shl_load
17655 /* System header to define __stub macros and hopefully few prototypes,
17656 which can conflict with char shl_load (); below.
17657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17658 <limits.h> exists even on freestanding compilers. */
17661 # include <limits.h>
17663 # include <assert.h>
17668 /* Override any gcc2 internal prototype to avoid an error. */
17673 /* We use char because int might match the return type of a gcc2
17674 builtin and then its argument prototype would still apply. */
17676 /* The GNU C library defines this for functions which it implements
17677 to always fail with ENOSYS. Some functions are actually named
17678 something starting with __ and the normal name is an alias. */
17679 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17682 char (*f) () = shl_load;
17691 return f != shl_load;
17696 rm -f conftest.
$ac_objext conftest
$ac_exeext
17697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17698 (eval $ac_link) 2>conftest.er1
17700 grep -v '^ *+' conftest.er1
>conftest.err
17702 cat conftest.err
>&5
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); } &&
17705 { ac_try
='test -z "$ac_c_werror_flag"
17706 || test ! -s conftest.err'
17707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708 (eval $ac_try) 2>&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; } &&
17712 { ac_try
='test -s conftest$ac_exeext'
17713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17714 (eval $ac_try) 2>&5
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); }; }; then
17718 ac_cv_func_shl_load
=yes
17720 echo "$as_me: failed program was:" >&5
17721 sed 's/^/| /' conftest.
$ac_ext >&5
17723 ac_cv_func_shl_load
=no
17725 rm -f conftest.err conftest.
$ac_objext \
17726 conftest
$ac_exeext conftest.
$ac_ext
17728 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17729 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17730 if test $ac_cv_func_shl_load = yes; then
17731 lt_cv_dlopen
="shl_load"
17733 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17734 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17735 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17736 echo $ECHO_N "(cached) $ECHO_C" >&6
17738 ac_check_lib_save_LIBS
=$LIBS
17740 cat >conftest.
$ac_ext <<_ACEOF
17743 cat confdefs.h
>>conftest.
$ac_ext
17744 cat >>conftest.
$ac_ext <<_ACEOF
17745 /* end confdefs.h. */
17747 /* Override any gcc2 internal prototype to avoid an error. */
17751 /* We use char because int might match the return type of a gcc2
17752 builtin and then its argument prototype would still apply. */
17762 rm -f conftest.
$ac_objext conftest
$ac_exeext
17763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17764 (eval $ac_link) 2>conftest.er1
17766 grep -v '^ *+' conftest.er1
>conftest.err
17768 cat conftest.err
>&5
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); } &&
17771 { ac_try
='test -z "$ac_c_werror_flag"
17772 || test ! -s conftest.err'
17773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17774 (eval $ac_try) 2>&5
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; } &&
17778 { ac_try
='test -s conftest$ac_exeext'
17779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17780 (eval $ac_try) 2>&5
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; }; then
17784 ac_cv_lib_dld_shl_load
=yes
17786 echo "$as_me: failed program was:" >&5
17787 sed 's/^/| /' conftest.
$ac_ext >&5
17789 ac_cv_lib_dld_shl_load
=no
17791 rm -f conftest.err conftest.
$ac_objext \
17792 conftest
$ac_exeext conftest.
$ac_ext
17793 LIBS
=$ac_check_lib_save_LIBS
17795 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17796 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17797 if test $ac_cv_lib_dld_shl_load = yes; then
17798 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
17800 echo "$as_me:$LINENO: checking for dlopen" >&5
17801 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17802 if test "${ac_cv_func_dlopen+set}" = set; then
17803 echo $ECHO_N "(cached) $ECHO_C" >&6
17805 cat >conftest.
$ac_ext <<_ACEOF
17808 cat confdefs.h
>>conftest.
$ac_ext
17809 cat >>conftest.
$ac_ext <<_ACEOF
17810 /* end confdefs.h. */
17811 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17813 #define dlopen innocuous_dlopen
17815 /* System header to define __stub macros and hopefully few prototypes,
17816 which can conflict with char dlopen (); below.
17817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17818 <limits.h> exists even on freestanding compilers. */
17821 # include <limits.h>
17823 # include <assert.h>
17828 /* Override any gcc2 internal prototype to avoid an error. */
17833 /* We use char because int might match the return type of a gcc2
17834 builtin and then its argument prototype would still apply. */
17836 /* The GNU C library defines this for functions which it implements
17837 to always fail with ENOSYS. Some functions are actually named
17838 something starting with __ and the normal name is an alias. */
17839 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17842 char (*f) () = dlopen;
17851 return f != dlopen;
17856 rm -f conftest.
$ac_objext conftest
$ac_exeext
17857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17858 (eval $ac_link) 2>conftest.er1
17860 grep -v '^ *+' conftest.er1
>conftest.err
17862 cat conftest.err
>&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); } &&
17865 { ac_try
='test -z "$ac_c_werror_flag"
17866 || test ! -s conftest.err'
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; } &&
17872 { ac_try
='test -s conftest$ac_exeext'
17873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17874 (eval $ac_try) 2>&5
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); }; }; then
17878 ac_cv_func_dlopen
=yes
17880 echo "$as_me: failed program was:" >&5
17881 sed 's/^/| /' conftest.
$ac_ext >&5
17883 ac_cv_func_dlopen
=no
17885 rm -f conftest.err conftest.
$ac_objext \
17886 conftest
$ac_exeext conftest.
$ac_ext
17888 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17889 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17890 if test $ac_cv_func_dlopen = yes; then
17891 lt_cv_dlopen
="dlopen"
17893 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17894 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17895 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17896 echo $ECHO_N "(cached) $ECHO_C" >&6
17898 ac_check_lib_save_LIBS
=$LIBS
17900 cat >conftest.
$ac_ext <<_ACEOF
17903 cat confdefs.h
>>conftest.
$ac_ext
17904 cat >>conftest.
$ac_ext <<_ACEOF
17905 /* end confdefs.h. */
17907 /* Override any gcc2 internal prototype to avoid an error. */
17911 /* We use char because int might match the return type of a gcc2
17912 builtin and then its argument prototype would still apply. */
17922 rm -f conftest.
$ac_objext conftest
$ac_exeext
17923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17924 (eval $ac_link) 2>conftest.er1
17926 grep -v '^ *+' conftest.er1
>conftest.err
17928 cat conftest.err
>&5
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); } &&
17931 { ac_try
='test -z "$ac_c_werror_flag"
17932 || test ! -s conftest.err'
17933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17934 (eval $ac_try) 2>&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); }; } &&
17938 { ac_try
='test -s conftest$ac_exeext'
17939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940 (eval $ac_try) 2>&5
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; }; then
17944 ac_cv_lib_dl_dlopen
=yes
17946 echo "$as_me: failed program was:" >&5
17947 sed 's/^/| /' conftest.
$ac_ext >&5
17949 ac_cv_lib_dl_dlopen
=no
17951 rm -f conftest.err conftest.
$ac_objext \
17952 conftest
$ac_exeext conftest.
$ac_ext
17953 LIBS
=$ac_check_lib_save_LIBS
17955 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17956 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17957 if test $ac_cv_lib_dl_dlopen = yes; then
17958 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17960 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17961 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17962 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17963 echo $ECHO_N "(cached) $ECHO_C" >&6
17965 ac_check_lib_save_LIBS
=$LIBS
17966 LIBS
="-lsvld $LIBS"
17967 cat >conftest.
$ac_ext <<_ACEOF
17970 cat confdefs.h
>>conftest.
$ac_ext
17971 cat >>conftest.
$ac_ext <<_ACEOF
17972 /* end confdefs.h. */
17974 /* Override any gcc2 internal prototype to avoid an error. */
17978 /* We use char because int might match the return type of a gcc2
17979 builtin and then its argument prototype would still apply. */
17989 rm -f conftest.
$ac_objext conftest
$ac_exeext
17990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17991 (eval $ac_link) 2>conftest.er1
17993 grep -v '^ *+' conftest.er1
>conftest.err
17995 cat conftest.err
>&5
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); } &&
17998 { ac_try
='test -z "$ac_c_werror_flag"
17999 || test ! -s conftest.err'
18000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18001 (eval $ac_try) 2>&5
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); }; } &&
18005 { ac_try
='test -s conftest$ac_exeext'
18006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18007 (eval $ac_try) 2>&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; }; then
18011 ac_cv_lib_svld_dlopen
=yes
18013 echo "$as_me: failed program was:" >&5
18014 sed 's/^/| /' conftest.
$ac_ext >&5
18016 ac_cv_lib_svld_dlopen
=no
18018 rm -f conftest.err conftest.
$ac_objext \
18019 conftest
$ac_exeext conftest.
$ac_ext
18020 LIBS
=$ac_check_lib_save_LIBS
18022 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18023 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18024 if test $ac_cv_lib_svld_dlopen = yes; then
18025 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18027 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18028 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18029 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18030 echo $ECHO_N "(cached) $ECHO_C" >&6
18032 ac_check_lib_save_LIBS
=$LIBS
18034 cat >conftest.
$ac_ext <<_ACEOF
18037 cat confdefs.h
>>conftest.
$ac_ext
18038 cat >>conftest.
$ac_ext <<_ACEOF
18039 /* end confdefs.h. */
18041 /* Override any gcc2 internal prototype to avoid an error. */
18045 /* We use char because int might match the return type of a gcc2
18046 builtin and then its argument prototype would still apply. */
18056 rm -f conftest.
$ac_objext conftest
$ac_exeext
18057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18058 (eval $ac_link) 2>conftest.er1
18060 grep -v '^ *+' conftest.er1
>conftest.err
18062 cat conftest.err
>&5
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } &&
18065 { ac_try
='test -z "$ac_c_werror_flag"
18066 || test ! -s conftest.err'
18067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18068 (eval $ac_try) 2>&5
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); }; } &&
18072 { ac_try
='test -s conftest$ac_exeext'
18073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18074 (eval $ac_try) 2>&5
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); }; }; then
18078 ac_cv_lib_dld_dld_link
=yes
18080 echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.
$ac_ext >&5
18083 ac_cv_lib_dld_dld_link
=no
18085 rm -f conftest.err conftest.
$ac_objext \
18086 conftest
$ac_exeext conftest.
$ac_ext
18087 LIBS
=$ac_check_lib_save_LIBS
18089 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18090 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18091 if test $ac_cv_lib_dld_dld_link = yes; then
18092 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
18113 if test "x$lt_cv_dlopen" != xno
; then
18119 case $lt_cv_dlopen in
18121 save_CPPFLAGS
="$CPPFLAGS"
18122 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18124 save_LDFLAGS
="$LDFLAGS"
18125 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18128 LIBS
="$lt_cv_dlopen_libs $LIBS"
18130 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18131 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18132 if test "${lt_cv_dlopen_self+set}" = set; then
18133 echo $ECHO_N "(cached) $ECHO_C" >&6
18135 if test "$cross_compiling" = yes; then :
18136 lt_cv_dlopen_self
=cross
18138 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18139 lt_status
=$lt_dlunknown
18140 cat > conftest.
$ac_ext <<EOF
18141 #line 18141 "configure"
18142 #include "confdefs.h"
18151 # define LT_DLGLOBAL RTLD_GLOBAL
18154 # define LT_DLGLOBAL DL_GLOBAL
18156 # define LT_DLGLOBAL 0
18160 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18161 find out it does not work in some platform. */
18162 #ifndef LT_DLLAZY_OR_NOW
18164 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18167 # define LT_DLLAZY_OR_NOW DL_LAZY
18170 # define LT_DLLAZY_OR_NOW RTLD_NOW
18173 # define LT_DLLAZY_OR_NOW DL_NOW
18175 # define LT_DLLAZY_OR_NOW 0
18183 extern "C" void exit (int);
18186 void fnord() { int i=42;}
18189 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18190 int status = $lt_dlunknown;
18194 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18195 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18196 /* dlclose (self); */
18202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18203 (eval $ac_link) 2>&5
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18207 (.
/conftest
; exit; ) 2>/dev
/null
18209 case x
$lt_status in
18210 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18211 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18212 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
18215 # compilation failed
18216 lt_cv_dlopen_self
=no
18223 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18224 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18226 if test "x$lt_cv_dlopen_self" = xyes
; then
18227 LDFLAGS
="$LDFLAGS $link_static_flag"
18228 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18229 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18230 if test "${lt_cv_dlopen_self_static+set}" = set; then
18231 echo $ECHO_N "(cached) $ECHO_C" >&6
18233 if test "$cross_compiling" = yes; then :
18234 lt_cv_dlopen_self_static
=cross
18236 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18237 lt_status
=$lt_dlunknown
18238 cat > conftest.
$ac_ext <<EOF
18239 #line 18239 "configure"
18240 #include "confdefs.h"
18249 # define LT_DLGLOBAL RTLD_GLOBAL
18252 # define LT_DLGLOBAL DL_GLOBAL
18254 # define LT_DLGLOBAL 0
18258 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18259 find out it does not work in some platform. */
18260 #ifndef LT_DLLAZY_OR_NOW
18262 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18265 # define LT_DLLAZY_OR_NOW DL_LAZY
18268 # define LT_DLLAZY_OR_NOW RTLD_NOW
18271 # define LT_DLLAZY_OR_NOW DL_NOW
18273 # define LT_DLLAZY_OR_NOW 0
18281 extern "C" void exit (int);
18284 void fnord() { int i=42;}
18287 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18288 int status = $lt_dlunknown;
18292 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18293 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18294 /* dlclose (self); */
18300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18301 (eval $ac_link) 2>&5
18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18305 (.
/conftest
; exit; ) 2>/dev
/null
18307 case x
$lt_status in
18308 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18309 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18310 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
18313 # compilation failed
18314 lt_cv_dlopen_self_static
=no
18321 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18322 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18325 CPPFLAGS
="$save_CPPFLAGS"
18326 LDFLAGS
="$save_LDFLAGS"
18331 case $lt_cv_dlopen_self in
18332 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18333 *) enable_dlopen_self
=unknown
;;
18336 case $lt_cv_dlopen_self_static in
18337 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18338 *) enable_dlopen_self_static
=unknown
;;
18343 # The else clause should only fire when bootstrapping the
18344 # libtool distribution, otherwise you forgot to ship ltmain.sh
18345 # with your package, and you will get complaints that there are
18346 # no rules to generate ltmain.sh.
18347 if test -f "$ltmain"; then
18348 # See if we are running on zsh, and set the options which allow our commands through
18349 # without removal of \ escapes.
18350 if test -n "${ZSH_VERSION+set}" ; then
18351 setopt NO_GLOB_SUBST
18353 # Now quote all the things that may contain metacharacters while being
18354 # careful not to overquote the AC_SUBSTed values. We take copies of the
18355 # variables and quote the copies for generation of the libtool script.
18356 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18358 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18359 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18360 deplibs_check_method reload_flag reload_cmds need_locks \
18361 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18362 lt_cv_sys_global_symbol_to_c_name_address \
18363 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18364 old_postinstall_cmds old_postuninstall_cmds \
18368 lt_prog_compiler_wl_GCJ \
18369 lt_prog_compiler_pic_GCJ \
18370 lt_prog_compiler_static_GCJ \
18371 lt_prog_compiler_no_builtin_flag_GCJ \
18372 export_dynamic_flag_spec_GCJ \
18373 thread_safe_flag_spec_GCJ \
18374 whole_archive_flag_spec_GCJ \
18375 enable_shared_with_static_runtimes_GCJ \
18376 old_archive_cmds_GCJ \
18377 old_archive_from_new_cmds_GCJ \
18378 predep_objects_GCJ \
18379 postdep_objects_GCJ \
18382 compiler_lib_search_path_GCJ \
18384 archive_expsym_cmds_GCJ \
18385 postinstall_cmds_GCJ \
18386 postuninstall_cmds_GCJ \
18387 old_archive_from_expsyms_cmds_GCJ \
18388 allow_undefined_flag_GCJ \
18389 no_undefined_flag_GCJ \
18390 export_symbols_cmds_GCJ \
18391 hardcode_libdir_flag_spec_GCJ \
18392 hardcode_libdir_flag_spec_ld_GCJ \
18393 hardcode_libdir_separator_GCJ \
18394 hardcode_automatic_GCJ \
18396 module_expsym_cmds_GCJ \
18397 lt_cv_prog_compiler_c_o_GCJ \
18398 exclude_expsyms_GCJ \
18399 include_expsyms_GCJ
; do
18402 old_archive_cmds_GCJ | \
18403 old_archive_from_new_cmds_GCJ | \
18404 archive_cmds_GCJ | \
18405 archive_expsym_cmds_GCJ | \
18406 module_cmds_GCJ | \
18407 module_expsym_cmds_GCJ | \
18408 old_archive_from_expsyms_cmds_GCJ | \
18409 export_symbols_cmds_GCJ | \
18410 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18411 postinstall_cmds | postuninstall_cmds | \
18412 old_postinstall_cmds | old_postuninstall_cmds | \
18413 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18414 # Double-quote double-evaled strings.
18415 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18418 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18424 *'\$0 --fallback-echo"')
18425 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18431 cat <<__EOF__ >> "$cfgfile"
18432 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18434 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18436 # Shell to use when invoking shell scripts.
18439 # Whether or not to build shared libraries.
18440 build_libtool_libs=$enable_shared
18442 # Whether or not to build static libraries.
18443 build_old_libs=$enable_static
18445 # Whether or not to add -lc for building shared libraries.
18446 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18448 # Whether or not to disallow shared libs when runtime libs are static
18449 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18451 # Whether or not to optimize for fast installation.
18452 fast_install=$enable_fast_install
18455 host_alias=$host_alias
18459 # The build system.
18460 build_alias=$build_alias
18464 # An echo program that does not interpret backslashes.
18469 AR_FLAGS=$lt_AR_FLAGS
18474 # A language-specific compiler.
18475 CC=$lt_compiler_GCJ
18477 # Is the compiler the GNU C compiler?
18483 # The linker used to build libraries.
18486 # Whether we need hard or soft links.
18489 # A BSD-compatible nm program.
18492 # A symbol stripping program
18495 # Used to examine libraries when file_magic_cmd begins "file"
18496 MAGIC_CMD=$MAGIC_CMD
18498 # Used on cygwin: DLL creation program.
18501 # Used on cygwin: object dumper.
18504 # Used on cygwin: assembler.
18507 # The name of the directory that contains temporary libtool files.
18510 # How to create reloadable object files.
18511 reload_flag=$lt_reload_flag
18512 reload_cmds=$lt_reload_cmds
18514 # How to pass a linker flag through the compiler.
18515 wl=$lt_lt_prog_compiler_wl_GCJ
18517 # Object file suffix (normally "o").
18518 objext="$ac_objext"
18520 # Old archive suffix (normally "a").
18523 # Shared library suffix (normally ".so").
18524 shrext_cmds='$shrext_cmds'
18526 # Executable file suffix (normally "").
18529 # Additional compiler flags for building library objects.
18530 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18533 # What is the maximum length of a command?
18534 max_cmd_len=$lt_cv_sys_max_cmd_len
18536 # Does compiler simultaneously support -c and -o options?
18537 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18539 # Must we lock files when doing compilation ?
18540 need_locks=$lt_need_locks
18542 # Do we need the lib prefix for modules?
18543 need_lib_prefix=$need_lib_prefix
18545 # Do we need a version for libraries?
18546 need_version=$need_version
18548 # Whether dlopen is supported.
18549 dlopen_support=$enable_dlopen
18551 # Whether dlopen of programs is supported.
18552 dlopen_self=$enable_dlopen_self
18554 # Whether dlopen of statically linked programs is supported.
18555 dlopen_self_static=$enable_dlopen_self_static
18557 # Compiler flag to prevent dynamic linking.
18558 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18560 # Compiler flag to turn off builtin functions.
18561 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18563 # Compiler flag to allow reflexive dlopens.
18564 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18566 # Compiler flag to generate shared objects directly from archives.
18567 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18569 # Compiler flag to generate thread-safe objects.
18570 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18572 # Library versioning type.
18573 version_type=$version_type
18575 # Format of library name prefix.
18576 libname_spec=$lt_libname_spec
18578 # List of archive names. First name is the real one, the rest are links.
18579 # The last name is the one that the linker finds with -lNAME.
18580 library_names_spec=$lt_library_names_spec
18582 # The coded name of the library, if different from the real name.
18583 soname_spec=$lt_soname_spec
18585 # Commands used to build and install an old-style archive.
18587 old_archive_cmds=$lt_old_archive_cmds_GCJ
18588 old_postinstall_cmds=$lt_old_postinstall_cmds
18589 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18591 # Create an old-style archive from a shared archive.
18592 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18594 # Create a temporary old-style archive to link instead of a shared archive.
18595 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18597 # Commands used to build and install a shared archive.
18598 archive_cmds=$lt_archive_cmds_GCJ
18599 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18600 postinstall_cmds=$lt_postinstall_cmds
18601 postuninstall_cmds=$lt_postuninstall_cmds
18603 # Commands used to build a loadable module (assumed same as above if empty)
18604 module_cmds=$lt_module_cmds_GCJ
18605 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18607 # Commands to strip libraries.
18608 old_striplib=$lt_old_striplib
18609 striplib=$lt_striplib
18611 # Dependencies to place before the objects being linked to create a
18613 predep_objects=$lt_predep_objects_GCJ
18615 # Dependencies to place after the objects being linked to create a
18617 postdep_objects=$lt_postdep_objects_GCJ
18619 # Dependencies to place before the objects being linked to create a
18621 predeps=$lt_predeps_GCJ
18623 # Dependencies to place after the objects being linked to create a
18625 postdeps=$lt_postdeps_GCJ
18627 # The library search path used internally by the compiler when linking
18628 # a shared library.
18629 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18631 # Method to check whether dependent libraries are shared objects.
18632 deplibs_check_method=$lt_deplibs_check_method
18634 # Command to use when deplibs_check_method == file_magic.
18635 file_magic_cmd=$lt_file_magic_cmd
18637 # Flag that allows shared libraries with undefined symbols to be built.
18638 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18640 # Flag that forces no undefined symbols.
18641 no_undefined_flag=$lt_no_undefined_flag_GCJ
18643 # Commands used to finish a libtool library installation in a directory.
18644 finish_cmds=$lt_finish_cmds
18646 # Same as above, but a single script fragment to be evaled but not shown.
18647 finish_eval=$lt_finish_eval
18649 # Take the output of nm and produce a listing of raw symbols and C names.
18650 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18652 # Transform the output of nm in a proper C declaration
18653 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18655 # Transform the output of nm in a C name address pair
18656 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18658 # This is the shared library runtime path variable.
18659 runpath_var=$runpath_var
18661 # This is the shared library path variable.
18662 shlibpath_var=$shlibpath_var
18664 # Is shlibpath searched before the hard-coded library search path?
18665 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18667 # How to hardcode a shared library path into an executable.
18668 hardcode_action=$hardcode_action_GCJ
18670 # Whether we should hardcode library paths into libraries.
18671 hardcode_into_libs=$hardcode_into_libs
18673 # Flag to hardcode \$libdir into a binary during linking.
18674 # This must work even if \$libdir does not exist.
18675 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18677 # If ld is used when linking, flag to hardcode \$libdir into
18678 # a binary during linking. This must work even if \$libdir does
18680 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18682 # Whether we need a single -rpath flag with a separated argument.
18683 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18685 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18686 # resulting binary.
18687 hardcode_direct=$hardcode_direct_GCJ
18689 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18690 # resulting binary.
18691 hardcode_minus_L=$hardcode_minus_L_GCJ
18693 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18694 # the resulting binary.
18695 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18697 # Set to yes if building a shared library automatically hardcodes DIR into the library
18698 # and all subsequent libraries and executables linked against it.
18699 hardcode_automatic=$hardcode_automatic_GCJ
18701 # Variables whose values should be saved in libtool wrapper scripts and
18702 # restored at relink time.
18703 variables_saved_for_relink="$variables_saved_for_relink"
18705 # Whether libtool must link a program against all its dependency libraries.
18706 link_all_deplibs=$link_all_deplibs_GCJ
18708 # Compile-time system search path for libraries
18709 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18711 # Run-time system search path for libraries
18712 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18714 # Fix the shell variable \$srcfile for the compiler.
18715 fix_srcfile_path="$fix_srcfile_path_GCJ"
18717 # Set to yes if exported symbols are required.
18718 always_export_symbols=$always_export_symbols_GCJ
18720 # The commands to list exported symbols.
18721 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18723 # The commands to extract the exported symbol list from a shared archive.
18724 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18726 # Symbols that should not be listed in the preloaded symbols.
18727 exclude_expsyms=$lt_exclude_expsyms_GCJ
18729 # Symbols that must always be exported.
18730 include_expsyms=$lt_include_expsyms_GCJ
18732 # ### END LIBTOOL TAG CONFIG: $tagname
18738 # If there is no Makefile yet, we rely on a make rule to execute
18739 # `config.status --recheck' to rerun these tests and create the
18740 # libtool script then.
18741 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18742 if test -f "$ltmain_in"; then
18743 test -f Makefile
&& make "$ltmain"
18749 ac_cpp
='$CPP $CPPFLAGS'
18750 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18751 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18752 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18765 # Source file extension for RC test sources.
18768 # Object file extension for compiled RC test sources.
18772 # Code to be used in simple compile tests
18773 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18775 # Code to be used in simple link tests
18776 lt_simple_link_test_code
="$lt_simple_compile_test_code"
18778 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18780 # If no C compiler was specified, use CC.
18783 # Allow CC to be a program name with arguments.
18787 # Allow CC to be a program name with arguments.
18792 lt_cv_prog_compiler_c_o_RC
=yes
18794 # The else clause should only fire when bootstrapping the
18795 # libtool distribution, otherwise you forgot to ship ltmain.sh
18796 # with your package, and you will get complaints that there are
18797 # no rules to generate ltmain.sh.
18798 if test -f "$ltmain"; then
18799 # See if we are running on zsh, and set the options which allow our commands through
18800 # without removal of \ escapes.
18801 if test -n "${ZSH_VERSION+set}" ; then
18802 setopt NO_GLOB_SUBST
18804 # Now quote all the things that may contain metacharacters while being
18805 # careful not to overquote the AC_SUBSTed values. We take copies of the
18806 # variables and quote the copies for generation of the libtool script.
18807 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18809 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18810 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18811 deplibs_check_method reload_flag reload_cmds need_locks \
18812 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18813 lt_cv_sys_global_symbol_to_c_name_address \
18814 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18815 old_postinstall_cmds old_postuninstall_cmds \
18819 lt_prog_compiler_wl_RC \
18820 lt_prog_compiler_pic_RC \
18821 lt_prog_compiler_static_RC \
18822 lt_prog_compiler_no_builtin_flag_RC \
18823 export_dynamic_flag_spec_RC \
18824 thread_safe_flag_spec_RC \
18825 whole_archive_flag_spec_RC \
18826 enable_shared_with_static_runtimes_RC \
18827 old_archive_cmds_RC \
18828 old_archive_from_new_cmds_RC \
18829 predep_objects_RC \
18830 postdep_objects_RC \
18833 compiler_lib_search_path_RC \
18835 archive_expsym_cmds_RC \
18836 postinstall_cmds_RC \
18837 postuninstall_cmds_RC \
18838 old_archive_from_expsyms_cmds_RC \
18839 allow_undefined_flag_RC \
18840 no_undefined_flag_RC \
18841 export_symbols_cmds_RC \
18842 hardcode_libdir_flag_spec_RC \
18843 hardcode_libdir_flag_spec_ld_RC \
18844 hardcode_libdir_separator_RC \
18845 hardcode_automatic_RC \
18847 module_expsym_cmds_RC \
18848 lt_cv_prog_compiler_c_o_RC \
18849 exclude_expsyms_RC \
18850 include_expsyms_RC
; do
18853 old_archive_cmds_RC | \
18854 old_archive_from_new_cmds_RC | \
18855 archive_cmds_RC | \
18856 archive_expsym_cmds_RC | \
18858 module_expsym_cmds_RC | \
18859 old_archive_from_expsyms_cmds_RC | \
18860 export_symbols_cmds_RC | \
18861 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18862 postinstall_cmds | postuninstall_cmds | \
18863 old_postinstall_cmds | old_postuninstall_cmds | \
18864 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18865 # Double-quote double-evaled strings.
18866 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18869 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18875 *'\$0 --fallback-echo"')
18876 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18882 cat <<__EOF__ >> "$cfgfile"
18883 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18885 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18887 # Shell to use when invoking shell scripts.
18890 # Whether or not to build shared libraries.
18891 build_libtool_libs=$enable_shared
18893 # Whether or not to build static libraries.
18894 build_old_libs=$enable_static
18896 # Whether or not to add -lc for building shared libraries.
18897 build_libtool_need_lc=$archive_cmds_need_lc_RC
18899 # Whether or not to disallow shared libs when runtime libs are static
18900 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18902 # Whether or not to optimize for fast installation.
18903 fast_install=$enable_fast_install
18906 host_alias=$host_alias
18910 # The build system.
18911 build_alias=$build_alias
18915 # An echo program that does not interpret backslashes.
18920 AR_FLAGS=$lt_AR_FLAGS
18925 # A language-specific compiler.
18928 # Is the compiler the GNU C compiler?
18934 # The linker used to build libraries.
18937 # Whether we need hard or soft links.
18940 # A BSD-compatible nm program.
18943 # A symbol stripping program
18946 # Used to examine libraries when file_magic_cmd begins "file"
18947 MAGIC_CMD=$MAGIC_CMD
18949 # Used on cygwin: DLL creation program.
18952 # Used on cygwin: object dumper.
18955 # Used on cygwin: assembler.
18958 # The name of the directory that contains temporary libtool files.
18961 # How to create reloadable object files.
18962 reload_flag=$lt_reload_flag
18963 reload_cmds=$lt_reload_cmds
18965 # How to pass a linker flag through the compiler.
18966 wl=$lt_lt_prog_compiler_wl_RC
18968 # Object file suffix (normally "o").
18969 objext="$ac_objext"
18971 # Old archive suffix (normally "a").
18974 # Shared library suffix (normally ".so").
18975 shrext_cmds='$shrext_cmds'
18977 # Executable file suffix (normally "").
18980 # Additional compiler flags for building library objects.
18981 pic_flag=$lt_lt_prog_compiler_pic_RC
18984 # What is the maximum length of a command?
18985 max_cmd_len=$lt_cv_sys_max_cmd_len
18987 # Does compiler simultaneously support -c and -o options?
18988 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18990 # Must we lock files when doing compilation ?
18991 need_locks=$lt_need_locks
18993 # Do we need the lib prefix for modules?
18994 need_lib_prefix=$need_lib_prefix
18996 # Do we need a version for libraries?
18997 need_version=$need_version
18999 # Whether dlopen is supported.
19000 dlopen_support=$enable_dlopen
19002 # Whether dlopen of programs is supported.
19003 dlopen_self=$enable_dlopen_self
19005 # Whether dlopen of statically linked programs is supported.
19006 dlopen_self_static=$enable_dlopen_self_static
19008 # Compiler flag to prevent dynamic linking.
19009 link_static_flag=$lt_lt_prog_compiler_static_RC
19011 # Compiler flag to turn off builtin functions.
19012 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19014 # Compiler flag to allow reflexive dlopens.
19015 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19017 # Compiler flag to generate shared objects directly from archives.
19018 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19020 # Compiler flag to generate thread-safe objects.
19021 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19023 # Library versioning type.
19024 version_type=$version_type
19026 # Format of library name prefix.
19027 libname_spec=$lt_libname_spec
19029 # List of archive names. First name is the real one, the rest are links.
19030 # The last name is the one that the linker finds with -lNAME.
19031 library_names_spec=$lt_library_names_spec
19033 # The coded name of the library, if different from the real name.
19034 soname_spec=$lt_soname_spec
19036 # Commands used to build and install an old-style archive.
19038 old_archive_cmds=$lt_old_archive_cmds_RC
19039 old_postinstall_cmds=$lt_old_postinstall_cmds
19040 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19042 # Create an old-style archive from a shared archive.
19043 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19045 # Create a temporary old-style archive to link instead of a shared archive.
19046 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19048 # Commands used to build and install a shared archive.
19049 archive_cmds=$lt_archive_cmds_RC
19050 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19051 postinstall_cmds=$lt_postinstall_cmds
19052 postuninstall_cmds=$lt_postuninstall_cmds
19054 # Commands used to build a loadable module (assumed same as above if empty)
19055 module_cmds=$lt_module_cmds_RC
19056 module_expsym_cmds=$lt_module_expsym_cmds_RC
19058 # Commands to strip libraries.
19059 old_striplib=$lt_old_striplib
19060 striplib=$lt_striplib
19062 # Dependencies to place before the objects being linked to create a
19064 predep_objects=$lt_predep_objects_RC
19066 # Dependencies to place after the objects being linked to create a
19068 postdep_objects=$lt_postdep_objects_RC
19070 # Dependencies to place before the objects being linked to create a
19072 predeps=$lt_predeps_RC
19074 # Dependencies to place after the objects being linked to create a
19076 postdeps=$lt_postdeps_RC
19078 # The library search path used internally by the compiler when linking
19079 # a shared library.
19080 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19082 # Method to check whether dependent libraries are shared objects.
19083 deplibs_check_method=$lt_deplibs_check_method
19085 # Command to use when deplibs_check_method == file_magic.
19086 file_magic_cmd=$lt_file_magic_cmd
19088 # Flag that allows shared libraries with undefined symbols to be built.
19089 allow_undefined_flag=$lt_allow_undefined_flag_RC
19091 # Flag that forces no undefined symbols.
19092 no_undefined_flag=$lt_no_undefined_flag_RC
19094 # Commands used to finish a libtool library installation in a directory.
19095 finish_cmds=$lt_finish_cmds
19097 # Same as above, but a single script fragment to be evaled but not shown.
19098 finish_eval=$lt_finish_eval
19100 # Take the output of nm and produce a listing of raw symbols and C names.
19101 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19103 # Transform the output of nm in a proper C declaration
19104 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19106 # Transform the output of nm in a C name address pair
19107 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19109 # This is the shared library runtime path variable.
19110 runpath_var=$runpath_var
19112 # This is the shared library path variable.
19113 shlibpath_var=$shlibpath_var
19115 # Is shlibpath searched before the hard-coded library search path?
19116 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19118 # How to hardcode a shared library path into an executable.
19119 hardcode_action=$hardcode_action_RC
19121 # Whether we should hardcode library paths into libraries.
19122 hardcode_into_libs=$hardcode_into_libs
19124 # Flag to hardcode \$libdir into a binary during linking.
19125 # This must work even if \$libdir does not exist.
19126 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19128 # If ld is used when linking, flag to hardcode \$libdir into
19129 # a binary during linking. This must work even if \$libdir does
19131 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19133 # Whether we need a single -rpath flag with a separated argument.
19134 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19136 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19137 # resulting binary.
19138 hardcode_direct=$hardcode_direct_RC
19140 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19141 # resulting binary.
19142 hardcode_minus_L=$hardcode_minus_L_RC
19144 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19145 # the resulting binary.
19146 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19148 # Set to yes if building a shared library automatically hardcodes DIR into the library
19149 # and all subsequent libraries and executables linked against it.
19150 hardcode_automatic=$hardcode_automatic_RC
19152 # Variables whose values should be saved in libtool wrapper scripts and
19153 # restored at relink time.
19154 variables_saved_for_relink="$variables_saved_for_relink"
19156 # Whether libtool must link a program against all its dependency libraries.
19157 link_all_deplibs=$link_all_deplibs_RC
19159 # Compile-time system search path for libraries
19160 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19162 # Run-time system search path for libraries
19163 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19165 # Fix the shell variable \$srcfile for the compiler.
19166 fix_srcfile_path="$fix_srcfile_path_RC"
19168 # Set to yes if exported symbols are required.
19169 always_export_symbols=$always_export_symbols_RC
19171 # The commands to list exported symbols.
19172 export_symbols_cmds=$lt_export_symbols_cmds_RC
19174 # The commands to extract the exported symbol list from a shared archive.
19175 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19177 # Symbols that should not be listed in the preloaded symbols.
19178 exclude_expsyms=$lt_exclude_expsyms_RC
19180 # Symbols that must always be exported.
19181 include_expsyms=$lt_include_expsyms_RC
19183 # ### END LIBTOOL TAG CONFIG: $tagname
19189 # If there is no Makefile yet, we rely on a make rule to execute
19190 # `config.status --recheck' to rerun these tests and create the
19191 # libtool script then.
19192 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19193 if test -f "$ltmain_in"; then
19194 test -f Makefile
&& make "$ltmain"
19200 ac_cpp
='$CPP $CPPFLAGS'
19201 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19202 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19203 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19210 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19211 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19212 { (exit 1); exit 1; }; }
19216 # Append the new tag name to the list of available tags.
19217 if test -n "$tagname" ; then
19218 available_tags
="$available_tags $tagname"
19224 # Now substitute the updated list of available tags.
19225 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19226 mv "${ofile}T" "$ofile"
19230 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19231 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19232 { (exit 1); exit 1; }; }
19238 # This can be used to rebuild libtool when needed
19239 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
19241 # Always use our own libtool.
19242 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
19244 # Prevent multiple expansion
19266 ac_config_files
="$ac_config_files Makefile"
19267 cat >confcache
<<\_ACEOF
19268 # This file is a shell script that caches the results of configure
19269 # tests run on this system so they can be shared between configure
19270 # scripts and configure runs, see configure's option --config-cache.
19271 # It is not useful on other systems. If it contains results you don't
19272 # want to keep, you may remove or edit it.
19274 # config.status only pays attention to the cache file if you give it
19275 # the --recheck option to rerun configure.
19277 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19278 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19279 # following values.
19283 # The following way of writing the cache mishandles newlines in values,
19284 # but we know of no workaround that is simple, portable, and efficient.
19285 # So, don't put newlines in cache variables' values.
19286 # Ultrix sh set writes to stderr and can't be redirected directly,
19287 # and sets the high bit in the cache file unless we assign to the vars.
19290 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19292 # `set' does not quote correctly, so add quotes (double-quote
19293 # substitution turns \\\\ into \\, and sed turns \\ into \).
19296 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19299 # `set' quotes correctly as required by POSIX, so do not add quotes.
19301 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19308 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19310 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19312 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
19313 if test -w $cache_file; then
19314 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19315 cat confcache
>$cache_file
19317 echo "not updating unwritable cache $cache_file"
19322 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19323 # Let make expand exec_prefix.
19324 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19326 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19327 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19328 # trailing colons and then remove the whole line if VPATH becomes empty
19329 # (actually we leave an empty line to preserve line numbers).
19330 if test "x$srcdir" = x.
; then
19331 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
19332 s/:*\$(srcdir):*/:/;
19333 s/:*\${srcdir}:*/:/;
19335 s/^\([^=]*=[ ]*\):*/\1/;
19341 # Transform confdefs.h into DEFS.
19342 # Protect against shell expansion while executing Makefile rules.
19343 # Protect against Makefile macro expansion.
19345 # If the first sed substitution is executed (which looks for macros that
19346 # take arguments), then we branch to the quote section. Otherwise,
19347 # look for a macro that doesn't take arguments.
19348 cat >confdef2opt.
sed <<\_ACEOF
19351 s
,^
[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
19353 s
,^
[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
19357 s
,[ `~#$^&*(){}\\|;'"<>?],\\&,g
19363 # We use echo to avoid assuming a particular line-breaking character.
19364 # The extra dot is to prevent the shell from consuming trailing
19365 # line-breaks from the sub-command output. A line-break within
19366 # single-quotes doesn't work because, if this script is created in a
19367 # platform that uses two characters for line-breaks (e.g., DOS), tr
19369 ac_LF_and_DOT=`echo; echo .
`
19370 DEFS=`sed -n -f confdef2opt.
sed confdefs.h |
tr "$ac_LF_and_DOT" ' .'`
19371 rm -f confdef2opt.sed
19376 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19377 # 1. Remove the extension, and $U if already installed.
19378 ac_i=`echo "$ac_i" |
19379 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19381 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19382 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19384 LIBOBJS=$ac_libobjs
19386 LTLIBOBJS=$ac_ltlibobjs
19389 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19390 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19391 Usually this means the macro was only invoked conditionally." >&5
19392 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19393 Usually this means the macro was only invoked conditionally." >&2;}
19394 { (exit 1); exit 1; }; }
19396 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19397 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19398 Usually this means the macro was only invoked conditionally." >&5
19399 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19400 Usually this means the macro was only invoked conditionally." >&2;}
19401 { (exit 1); exit 1; }; }
19403 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19404 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19405 Usually this means the macro was only invoked conditionally." >&5
19406 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19407 Usually this means the macro was only invoked conditionally." >&2;}
19408 { (exit 1); exit 1; }; }
19411 : ${CONFIG_STATUS=./config.status}
19412 ac_clean_files_save=$ac_clean_files
19413 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19414 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19415 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19416 cat >$CONFIG_STATUS <<_ACEOF
19418 # Generated by $as_me.
19419 # Run this file to recreate the current configuration.
19420 # Compiler output produced by configure, useful for debugging
19421 # configure, is in config.log if it exists.
19424 ac_cs_recheck=false
19426 SHELL=\${CONFIG_SHELL-$SHELL}
19429 cat >>$CONFIG_STATUS <<\_ACEOF
19430 ## --------------------- ##
19431 ## M4sh Initialization. ##
19432 ## --------------------- ##
19434 # Be Bourne compatible
19435 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19438 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19439 # is contrary to our usage. Disable this feature.
19440 alias -g '${1+"$@"}'='"$@"'
19441 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19444 DUALCASE=1; export DUALCASE # for MKS sh
19446 # Support unset when possible.
19447 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19454 # Work around bugs in pre-3.0 UWIN ksh.
19455 $as_unset ENV MAIL MAILPATH
19462 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19463 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19464 LC_TELEPHONE LC_TIME
19466 if (set +x; test -z "`(eval $as_var=C
; export $as_var) 2>&1`"); then
19467 eval $as_var=C; export $as_var
19473 # Required to use basename.
19474 if expr a : '\(a\)' >/dev/null 2>&1; then
19480 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19481 as_basename=basename
19487 # Name of the executable.
19488 as_me=`$as_basename "$0" ||
19489 $as_expr X
/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19490 X
"$0" : 'X\(//\)$' \| \
19491 X
"$0" : 'X\(/\)$' \| \
19492 .
: '\(.\)' 2>/dev
/null ||
19494 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19495 /^X\/\(\/\/\)$/{ s//\1/; q; }
19496 /^X\/\(\/\).*/{ s//\1/; q; }
19500 # PATH needs CR, and LINENO needs CR and PATH.
19501 # Avoid depending upon Character Ranges.
19502 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19503 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19504 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19505 as_cr_digits='0123456789'
19506 as_cr_alnum=$as_cr_Letters$as_cr_digits
19508 # The user is always right.
19509 if test "${PATH_SEPARATOR+set}" != set; then
19510 echo "#! /bin/sh" >conf$$.sh
19511 echo "exit 0" >>conf$$.sh
19513 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19522 as_lineno_1=$LINENO
19523 as_lineno_2=$LINENO
19524 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev
/null
`
19525 test "x$as_lineno_1" != "x$as_lineno_2" &&
19526 test "x$as_lineno_3" = "x$as_lineno_2" || {
19527 # Find who we are. Look in the path if we contain no path at all
19530 *[\\/]* ) as_myself=$0 ;;
19531 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19532 for as_dir in $PATH
19535 test -z "$as_dir" && as_dir=.
19536 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19541 # We did not find ourselves, most probably we were run as `sh COMMAND
'
19542 # in which case we are not to be found in the path.
19543 if test "x$as_myself" = x; then
19546 if test ! -f "$as_myself"; then
19547 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19548 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19549 { (exit 1); exit 1; }; }
19551 case $CONFIG_SHELL in
19553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19554 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19557 test -z "$as_dir" && as_dir=.
19558 for as_base in sh bash ksh sh5; do
19561 if ("$as_dir/$as_base" -c '
19562 as_lineno_1
=$LINENO
19563 as_lineno_2
=$LINENO
19564 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
19565 test "x$as_lineno_1" != "x$as_lineno_2" &&
19566 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19567 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19568 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19569 CONFIG_SHELL=$as_dir/$as_base
19570 export CONFIG_SHELL
19571 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19579 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19580 # uniformly replaced by the line number. The first 'sed' inserts a
19581 # line-number line before each line; the second 'sed' does the real
19582 # work. The second script uses 'N
' to pair each line-number line
19583 # with the numbered line, and appends trailing '-' during
19584 # substitution so that $LINENO is not a special case at line end.
19585 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19586 # second 'sed' script. Blame Lee E. McMahon for sed's syntax.
:-)
19587 sed '=' <$as_myself |
19592 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19595 s,^['$as_cr_digits']*\n,,
19596 ' >$as_me.lineno
&&
19597 chmod +x
$as_me.lineno ||
19598 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19599 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19600 { (exit 1); exit 1; }; }
19602 # Don't try to exec as it changes $[0], causing all sort of problems
19603 # (the dirname of $[0] is not the place where we might find the
19604 # original and so on. Autoconf is especially sensible to this).
19606 # Exit status is that of the last command.
19611 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19612 *c
*,-n*) ECHO_N
= ECHO_C
='
19614 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
19615 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
19618 if expr a
: '\(a\)' >/dev
/null
2>&1; then
19624 rm -f conf$$ conf$$.exe conf$$.
file
19626 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19627 # We could just check for DJGPP; but this test a) works b) is more generic
19628 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19629 if test -f conf$$.exe
; then
19630 # Don't use ln at all; we don't have any links
19635 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19640 rm -f conf$$ conf$$.exe conf$$.
file
19642 if mkdir
-p .
2>/dev
/null
; then
19645 test -d .
/-p && rmdir .
/-p
19649 as_executable_p
="test -f"
19651 # Sed expression to map a string onto a valid CPP name.
19652 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19654 # Sed expression to map a string onto a valid variable name.
19655 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19659 # We need space, tab and new line, in precisely that order.
19669 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19670 # report actual input values of CONFIG_FILES etc. instead of their
19671 # values after options handling. Logging --version etc. is OK.
19675 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19676 ## Running $as_me. ##
19681 This file was extended by $as_me, which was
19682 generated by GNU Autoconf 2.59. Invocation command line was
19684 CONFIG_FILES = $CONFIG_FILES
19685 CONFIG_HEADERS = $CONFIG_HEADERS
19686 CONFIG_LINKS = $CONFIG_LINKS
19687 CONFIG_COMMANDS = $CONFIG_COMMANDS
19691 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19695 # Files that config.status was made for.
19696 if test -n "$ac_config_files"; then
19697 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19700 if test -n "$ac_config_headers"; then
19701 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19704 if test -n "$ac_config_links"; then
19705 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19708 if test -n "$ac_config_commands"; then
19709 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19712 cat >>$CONFIG_STATUS <<\_ACEOF
19715 \`$as_me' instantiates files from templates according to the
19716 current configuration.
19718 Usage: $0 [OPTIONS] [FILE]...
19720 -h, --help print this help, then exit
19721 -V, --version print version number, then exit
19722 -q, --quiet do not print progress messages
19723 -d, --debug don't remove temporary files
19724 --recheck update $as_me by reconfiguring in the same conditions
19725 --file=FILE[:TEMPLATE]
19726 instantiate the configuration file FILE
19728 Configuration files:
19731 Configuration commands:
19734 Report bugs to <bug-autoconf@gnu.org>."
19737 cat >>$CONFIG_STATUS <<_ACEOF
19740 configured by $0, generated by GNU Autoconf 2.59,
19741 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19743 Copyright (C) 2003 Free Software Foundation, Inc.
19744 This config.status script is free software; the Free Software Foundation
19745 gives unlimited permission to copy, distribute and modify it."
19750 cat >>$CONFIG_STATUS <<\_ACEOF
19751 # If no file are specified by the user, then we need to provide default
19752 # value. By we need to know if files were specified by the user.
19758 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
19759 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
19767 *) # This is not an option, so the user has probably given explicit
19770 ac_need_defaults
=false
;;
19774 # Handling of the options.
19776 cat >>$CONFIG_STATUS <<\_ACEOF
19777 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19779 --version |
--vers* |
-V )
19780 echo "$ac_cs_version"; exit 0 ;;
19782 # Conflict between --help and --header
19783 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19784 Try \`$0 --help' for more information." >&5
19785 echo "$as_me: error: ambiguous option: $1
19786 Try \`$0 --help' for more information." >&2;}
19787 { (exit 1); exit 1; }; };;
19788 --help |
--hel |
-h )
19789 echo "$ac_cs_usage"; exit 0 ;;
19790 --debug |
--d* |
-d )
19792 --file |
--fil |
--fi |
--f )
19794 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
19795 ac_need_defaults
=false
;;
19796 --header |
--heade |
--head |
--hea )
19798 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
19799 ac_need_defaults
=false
;;
19800 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19801 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19804 # This is an error.
19805 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19806 Try \`$0 --help' for more information." >&5
19807 echo "$as_me: error: unrecognized option: $1
19808 Try \`$0 --help' for more information." >&2;}
19809 { (exit 1); exit 1; }; } ;;
19811 *) ac_config_targets
="$ac_config_targets $1" ;;
19817 ac_configure_extra_args
=
19819 if $ac_cs_silent; then
19821 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19825 cat >>$CONFIG_STATUS <<_ACEOF
19826 if \$ac_cs_recheck; then
19827 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19828 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19833 cat >>$CONFIG_STATUS <<_ACEOF
19835 # INIT-COMMANDS section.
19838 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19844 cat >>$CONFIG_STATUS <<\_ACEOF
19845 for ac_config_target
in $ac_config_targets
19847 case "$ac_config_target" in
19848 # Handling of arguments.
19849 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19850 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
19851 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19852 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19853 { (exit 1); exit 1; }; };;
19857 # If the user did not use the arguments to specify the items to instantiate,
19858 # then the envvar interface is used. Set only those that are not.
19859 # We use the long form for the default assignment because of an extremely
19860 # bizarre bug on SunOS 4.1.3.
19861 if $ac_need_defaults; then
19862 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19863 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
19866 # Have a temporary directory for convenience. Make it in the build tree
19867 # simply because there is no reason to put it here, and in addition,
19868 # creating and moving files from /tmp can sometimes cause problems.
19869 # Create a temporary directory, and hook for its removal unless debugging.
19872 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19873 trap '{ (exit 1); exit 1; }' 1 2 13 15
19876 # Create a (secure) tmp directory for tmp files.
19879 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19880 test -n "$tmp" && test -d "$tmp"
19883 tmp
=.
/confstat$$
-$RANDOM
19884 (umask 077 && mkdir
$tmp)
19887 echo "$me: cannot create a temporary directory in ." >&2
19888 { (exit 1); exit 1; }
19893 cat >>$CONFIG_STATUS <<_ACEOF
19896 # CONFIG_FILES section.
19899 # No need to generate the scripts if there are no CONFIG_FILES.
19900 # This happens for instance when ./config.status config.h
19901 if test -n "\$CONFIG_FILES"; then
19902 # Protect against being on the right side of a sed subst in config.status.
19903 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19904 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19905 s,@SHELL@,$SHELL,;t t
19906 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19907 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19908 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19909 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19910 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19911 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19912 s,@exec_prefix@,$exec_prefix,;t t
19913 s,@prefix@,$prefix,;t t
19914 s,@program_transform_name@,$program_transform_name,;t t
19915 s,@bindir@,$bindir,;t t
19916 s,@sbindir@,$sbindir,;t t
19917 s,@libexecdir@,$libexecdir,;t t
19918 s,@datadir@,$datadir,;t t
19919 s,@sysconfdir@,$sysconfdir,;t t
19920 s,@sharedstatedir@,$sharedstatedir,;t t
19921 s,@localstatedir@,$localstatedir,;t t
19922 s,@libdir@,$libdir,;t t
19923 s,@includedir@,$includedir,;t t
19924 s,@oldincludedir@,$oldincludedir,;t t
19925 s,@infodir@,$infodir,;t t
19926 s,@mandir@,$mandir,;t t
19927 s,@build_alias@,$build_alias,;t t
19928 s,@host_alias@,$host_alias,;t t
19929 s,@target_alias@,$target_alias,;t t
19930 s,@DEFS@,$DEFS,;t t
19931 s,@ECHO_C@,$ECHO_C,;t t
19932 s,@ECHO_N@,$ECHO_N,;t t
19933 s,@ECHO_T@,$ECHO_T,;t t
19934 s,@LIBS@,$LIBS,;t t
19935 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19936 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19937 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19938 s,@CYGPATH_W@,$CYGPATH_W,;t t
19939 s,@PACKAGE@,$PACKAGE,;t t
19940 s,@VERSION@,$VERSION,;t t
19941 s,@ACLOCAL@,$ACLOCAL,;t t
19942 s,@AUTOCONF@,$AUTOCONF,;t t
19943 s,@AUTOMAKE@,$AUTOMAKE,;t t
19944 s,@AUTOHEADER@,$AUTOHEADER,;t t
19945 s,@MAKEINFO@,$MAKEINFO,;t t
19946 s,@install_sh@,$install_sh,;t t
19947 s,@STRIP@,$STRIP,;t t
19948 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19949 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19950 s,@mkdir_p@,$mkdir_p,;t t
19952 s,@SET_MAKE@,$SET_MAKE,;t t
19953 s,@am__leading_dot@,$am__leading_dot,;t t
19954 s,@AMTAR@,$AMTAR,;t t
19955 s,@am__tar@,$am__tar,;t t
19956 s,@am__untar@,$am__untar,;t t
19958 s,@CFLAGS@,$CFLAGS,;t t
19959 s,@LDFLAGS@,$LDFLAGS,;t t
19960 s,@CPPFLAGS@,$CPPFLAGS,;t t
19961 s,@ac_ct_CC@,$ac_ct_CC,;t t
19962 s,@EXEEXT@,$EXEEXT,;t t
19963 s,@OBJEXT@,$OBJEXT,;t t
19964 s,@DEPDIR@,$DEPDIR,;t t
19965 s,@am__include@,$am__include,;t t
19966 s,@am__quote@,$am__quote,;t t
19967 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19968 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19969 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19970 s,@CCDEPMODE@,$CCDEPMODE,;t t
19971 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19972 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19973 s,@build@,$build,;t t
19974 s,@build_cpu@,$build_cpu,;t t
19975 s,@build_vendor@,$build_vendor,;t t
19976 s,@build_os@,$build_os,;t t
19977 s,@host@,$host,;t t
19978 s,@host_cpu@,$host_cpu,;t t
19979 s,@host_vendor@,$host_vendor,;t t
19980 s,@host_os@,$host_os,;t t
19981 s,@EGREP@,$EGREP,;t t
19982 s,@LN_S@,$LN_S,;t t
19983 s,@ECHO@,$ECHO,;t t
19985 s,@ac_ct_AR@,$ac_ct_AR,;t t
19986 s,@RANLIB@,$RANLIB,;t t
19987 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19990 s,@CXXFLAGS@,$CXXFLAGS,;t t
19991 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19992 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19993 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19994 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19995 s,@CXXCPP@,$CXXCPP,;t t
19997 s,@FFLAGS@,$FFLAGS,;t t
19998 s,@ac_ct_F77@,$ac_ct_F77,;t t
19999 s,@LIBTOOL@,$LIBTOOL,;t t
20000 s,@global_top_auxdir@,$global_top_auxdir,;t t
20001 s,@LIBOBJS@,$LIBOBJS,;t t
20002 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20007 cat >>$CONFIG_STATUS <<\_ACEOF
20008 # Split the substitutions into bite-sized pieces for seds with
20009 # small command number limits, like on Digital OSF/1 and HP-UX.
20010 ac_max_sed_lines
=48
20011 ac_sed_frag
=1 # Number of current file.
20012 ac_beg
=1 # First line for current file.
20013 ac_end
=$ac_max_sed_lines # Line after last line for current file.
20016 while $ac_more_lines; do
20017 if test $ac_beg -gt 1; then
20018 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
20020 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
20022 if test ! -s $tmp/subs.frag
; then
20023 ac_more_lines
=false
20025 # The purpose of the label and of the branching condition is to
20026 # speed up the sed processing (if there are no `@' at all, there
20027 # is no need to browse any of the substitutions).
20028 # These are the two extra sed commands mentioned above.
20030 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
20031 if test -z "$ac_sed_cmds"; then
20032 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
20034 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20036 ac_sed_frag
=`expr $ac_sed_frag + 1`
20038 ac_end
=`expr $ac_end + $ac_max_sed_lines`
20041 if test -z "$ac_sed_cmds"; then
20044 fi # test -n "$CONFIG_FILES"
20047 cat >>$CONFIG_STATUS <<\_ACEOF
20048 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
20049 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20051 - |
*:- |
*:-:* ) # input from stdin
20053 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20054 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20055 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20056 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20057 * ) ac_file_in
=$ac_file.
in ;;
20060 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20061 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20062 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20063 X"$ac_file" : 'X\(//\)[^/]' \| \
20064 X"$ac_file" : 'X\(//\)$' \| \
20065 X"$ac_file" : 'X\(/\)' \| \
20066 . : '\(.\)' 2>/dev/null ||
20068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20069 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20070 /^X\(\/\/\)$/{ s//\1/; q; }
20071 /^X\(\/\).*/{ s//\1/; q; }
20073 { if $as_mkdir_p; then
20078 while test ! -d "$as_dir"; do
20079 as_dirs
="$as_dir $as_dirs"
20080 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20081 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20082 X"$as_dir" : 'X\(//\)[^/]' \| \
20083 X"$as_dir" : 'X\(//\)$' \| \
20084 X"$as_dir" : 'X\(/\)' \| \
20085 . : '\(.\)' 2>/dev/null ||
20087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20088 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20089 /^X\(\/\/\)$/{ s//\1/; q; }
20090 /^X\(\/\).*/{ s//\1/; q; }
20093 test ! -n "$as_dirs" || mkdir
$as_dirs
20094 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20095 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20096 { (exit 1); exit 1; }; }; }
20100 if test "$ac_dir" != .
; then
20101 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20102 # A "../" for each directory in $ac_dir_suffix.
20103 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20105 ac_dir_suffix
= ac_top_builddir
=
20109 .
) # No --srcdir option. We are building in place.
20111 if test -z "$ac_top_builddir"; then
20114 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
20116 [\\/]* | ?
:[\\/]* ) # Absolute path.
20117 ac_srcdir
=$srcdir$ac_dir_suffix;
20118 ac_top_srcdir
=$srcdir ;;
20119 *) # Relative path.
20120 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
20121 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
20124 # Do not use `cd foo && pwd` to compute absolute paths, because
20125 # the directories may not exist.
20127 .
) ac_abs_builddir
="$ac_dir";;
20130 .
) ac_abs_builddir
=`pwd`;;
20131 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
20132 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
20135 case $ac_abs_builddir in
20136 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20138 case ${ac_top_builddir}.
in
20139 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
20140 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20141 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
20144 case $ac_abs_builddir in
20145 .
) ac_abs_srcdir
=$ac_srcdir;;
20148 .
) ac_abs_srcdir
=$ac_abs_builddir;;
20149 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
20150 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
20153 case $ac_abs_builddir in
20154 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
20156 case $ac_top_srcdir in
20157 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
20158 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
20159 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
20165 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20166 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
20169 if test x
"$ac_file" != x-
; then
20170 { echo "$as_me:$LINENO: creating $ac_file" >&5
20171 echo "$as_me: creating $ac_file" >&6;}
20174 # Let's still pretend it is `configure' which instantiates (i.e., don't
20175 # use $as_me), people would be surprised to read:
20176 # /* config.h. Generated by config.status. */
20177 if test x
"$ac_file" = x-
; then
20180 configure_input
="$ac_file. "
20182 configure_input
=$configure_input"Generated from `echo $ac_file_in |
20183 sed 's,.*/,,'` by configure."
20185 # First look for the input files in the build tree, otherwise in the
20187 ac_file_inputs
=`IFS=:
20188 for f in $ac_file_in; do
20190 -) echo $tmp/stdin ;;
20192 # Absolute (can't be DOS-style, as IFS=:)
20193 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20194 echo "$as_me: error: cannot find input file: $f" >&2;}
20195 { (exit 1); exit 1; }; }
20198 if test -f "$f"; then
20201 elif test -f "$srcdir/$f"; then
20206 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20207 echo "$as_me: error: cannot find input file: $f" >&2;}
20208 { (exit 1); exit 1; }; }
20211 done` ||
{ (exit 1); exit 1; }
20213 cat >>$CONFIG_STATUS <<_ACEOF
20217 cat >>$CONFIG_STATUS <<\_ACEOF
20219 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20220 s
,@configure_input@
,$configure_input,;t t
20221 s
,@srcdir@
,$ac_srcdir,;t t
20222 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
20223 s
,@top_srcdir@
,$ac_top_srcdir,;t t
20224 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
20225 s
,@builddir@
,$ac_builddir,;t t
20226 s
,@abs_builddir@
,$ac_abs_builddir,;t t
20227 s
,@top_builddir@
,$ac_top_builddir,;t t
20228 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
20229 s
,@INSTALL@
,$ac_INSTALL,;t t
20230 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20232 if test x"$ac_file" != x-; then
20233 mv $tmp/out $ac_file
20241 cat >>$CONFIG_STATUS <<\_ACEOF
20244 # CONFIG_COMMANDS section.
20246 for ac_file in : $CONFIG_COMMANDS; do test "x
$ac_file" = x: && continue
20247 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20248 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20249 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20250 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20251 X"$ac_dest" : 'X\(//\)[^/]' \| \
20252 X"$ac_dest" : 'X\(//\)$' \| \
20253 X"$ac_dest" : 'X\(/\)' \| \
20254 . : '\(.\)' 2>/dev/null ||
20256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20257 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20258 /^X\(\/\/\)$/{ s//\1/; q; }
20259 /^X\(\/\).*/{ s//\1/; q; }
20261 { if $as_mkdir_p; then
20266 while test ! -d "$as_dir"; do
20267 as_dirs="$as_dir $as_dirs"
20268 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20269 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20270 X"$as_dir" : 'X\(//\)[^/]' \| \
20271 X"$as_dir" : 'X\(//\)$' \| \
20272 X"$as_dir" : 'X\(/\)' \| \
20273 . : '\(.\)' 2>/dev/null ||
20275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20276 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20277 /^X\(\/\/\)$/{ s//\1/; q; }
20278 /^X\(\/\).*/{ s//\1/; q; }
20281 test ! -n "$as_dirs" || mkdir $as_dirs
20282 fi || { { echo "$as_me:$LINENO: error
: cannot create directory
\"$ac_dir\"" >&5
20283 echo "$as_me: error
: cannot create directory
\"$ac_dir\"" >&2;}
20284 { (exit 1); exit 1; }; }; }
20288 if test "$ac_dir" != .; then
20289 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20290 # A "..
/" for each directory in $ac_dir_suffix.
20291 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20293 ac_dir_suffix= ac_top_builddir=
20297 .) # No --srcdir option. We are building in place.
20299 if test -z "$ac_top_builddir"; then
20302 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20304 [\\/]* | ?:[\\/]* ) # Absolute path.
20305 ac_srcdir=$srcdir$ac_dir_suffix;
20306 ac_top_srcdir=$srcdir ;;
20307 *) # Relative path.
20308 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20309 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20312 # Do not use `cd foo && pwd` to compute absolute paths, because
20313 # the directories may not exist.
20315 .) ac_abs_builddir="$ac_dir";;
20318 .) ac_abs_builddir=`pwd`;;
20319 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20320 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20323 case $ac_abs_builddir in
20324 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20326 case ${ac_top_builddir}. in
20327 .) ac_abs_top_builddir=$ac_abs_builddir;;
20328 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20329 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20332 case $ac_abs_builddir in
20333 .) ac_abs_srcdir=$ac_srcdir;;
20336 .) ac_abs_srcdir=$ac_abs_builddir;;
20337 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20338 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20341 case $ac_abs_builddir in
20342 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20344 case $ac_top_srcdir in
20345 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20346 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20347 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20352 { echo "$as_me:$LINENO: executing
$ac_dest commands
" >&5
20353 echo "$as_me: executing
$ac_dest commands
" >&6;}
20355 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20356 # Strip MF so we end up with the name of the file.
20357 mf=`echo "$mf" | sed -e 's/:.*$//'`
20358 # Check whether this is an Automake generated Makefile or not.
20359 # We used to match only the files named `Makefile.in', but
20360 # some people rename them; so instead we look at the file content.
20361 # Grep'ing the first line is not enough: some people post-process
20362 # each Makefile.in and add a new line on top of each file to say so.
20363 # So let's grep whole file.
20364 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20365 dirpart=`(dirname "$mf") 2>/dev/null ||
20366 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20367 X"$mf" : 'X\(//\)[^/]' \| \
20368 X"$mf" : 'X\(//\)$' \| \
20369 X"$mf" : 'X\(/\)' \| \
20370 . : '\(.\)' 2>/dev/null ||
20372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20373 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20374 /^X\(\/\/\)$/{ s//\1/; q; }
20375 /^X\(\/\).*/{ s//\1/; q; }
20380 # Extract the definition of DEPDIR, am__include, and am__quote
20381 # from the Makefile without running `make'.
20382 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20383 test -z "$DEPDIR" && continue
20384 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20385 test -z "am__include
" && continue
20386 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20387 # When using ansi2knr, U may be empty or an underscore; expand it
20388 U=`sed -n 's/^U = //p' < "$mf"`
20389 # Find all dependency output files, they are included files with
20390 # $(DEPDIR) in their names. We invoke sed twice because it is the
20391 # simplest approach to changing $(DEPDIR) to its actual value in the
20393 for file in `sed -n "
20394 s
/^
$am__include $am__quote\
(.
*(DEPDIR
).
*\
)$am__quote"'$/\1/p' <"$mf" | \
20395 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20396 # Make sure the directory exists.
20397 test -f "$dirpart/$file" && continue
20398 fdir=`(dirname "$file") 2>/dev/null ||
20399 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20400 X"$file" : 'X\(//\)[^/]' \| \
20401 X"$file" : 'X\(//\)$' \| \
20402 X"$file" : 'X\(/\)' \| \
20403 . : '\(.\)' 2>/dev/null ||
20405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20406 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20407 /^X\(\/\/\)$/{ s//\1/; q; }
20408 /^X\(\/\).*/{ s//\1/; q; }
20410 { if $as_mkdir_p; then
20411 mkdir -p $dirpart/$fdir
20413 as_dir=$dirpart/$fdir
20415 while test ! -d "$as_dir"; do
20416 as_dirs="$as_dir $as_dirs"
20417 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20418 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20419 X"$as_dir" : 'X\(//\)[^/]' \| \
20420 X"$as_dir" : 'X\(//\)$' \| \
20421 X"$as_dir" : 'X\(/\)' \| \
20422 . : '\(.\)' 2>/dev/null ||
20424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20425 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20426 /^X\(\/\/\)$/{ s//\1/; q; }
20427 /^X\(\/\).*/{ s//\1/; q; }
20430 test ! -n "$as_dirs" || mkdir $as_dirs
20431 fi || { { echo "$as_me:$LINENO: error
: cannot create directory
$dirpart/$fdir" >&5
20432 echo "$as_me: error
: cannot create directory
$dirpart/$fdir" >&2;}
20433 { (exit 1); exit 1; }; }; }
20435 # echo "creating
$dirpart/$file"
20436 echo '# dummy' > "$dirpart/$file"
20444 cat >>$CONFIG_STATUS <<\_ACEOF
20446 { (exit 0); exit 0; }
20448 chmod +x $CONFIG_STATUS
20449 ac_clean_files=$ac_clean_files_save
20452 # configure is writing to config.log, and then calls config.status.
20453 # config.status does its own redirection, appending to config.log.
20454 # Unfortunately, on DOS this fails, as config.log is still kept open
20455 # by configure, so config.status won't be able to write to it; its
20456 # output is simply discarded. So we exec the FD to /dev/null,
20457 # effectively closing config.log, so it can be properly (re)opened and
20458 # appended to by config.status. When coming back to configure, we
20459 # need to make the FD available again.
20460 if test "$no_create" != yes; then
20462 ac_config_status_args=
20463 test "$silent" = yes &&
20464 ac_config_status_args="$ac_config_status_args --quiet"
20466 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20468 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20469 # would make configure fail if this is the last instruction.
20470 $ac_cs_success || { (exit 1); exit 1; }