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 LIBRPATHX LTLIBRPATHX 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
)
1035 --disable-rpath do not hardcode runtime library paths
1038 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1039 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1040 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1041 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1044 include additional configurations
[automatic
]
1045 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1046 --with-librpathx-prefix[=DIR
] search
for librpathx
in DIR
/include and DIR
/lib
1047 --without-librpathx-prefix don
't search for librpathx in includedir and libdir
1049 Some influential environment variables:
1050 CC C compiler command
1051 CFLAGS C compiler flags
1052 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1053 nonstandard directory <lib dir>
1054 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055 headers in a nonstandard directory <include dir>
1057 CXX C++ compiler command
1058 CXXFLAGS C++ compiler flags
1059 CXXCPP C++ preprocessor
1060 F77 Fortran 77 compiler command
1061 FFLAGS Fortran 77 compiler flags
1063 Use these variables to override the choices made by `configure' or to
help
1064 it to
find libraries and programs with nonstandard names
/locations.
1069 if test "$ac_init_help" = "recursive"; then
1070 # If there are subdirs, report their specific --help.
1072 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1073 test -d $ac_dir ||
continue
1076 if test "$ac_dir" != .
; then
1077 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1078 # A "../" for each directory in $ac_dir_suffix.
1079 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1081 ac_dir_suffix
= ac_top_builddir
=
1085 .
) # No --srcdir option. We are building in place.
1087 if test -z "$ac_top_builddir"; then
1090 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
1092 [\\/]* | ?
:[\\/]* ) # Absolute path.
1093 ac_srcdir
=$srcdir$ac_dir_suffix;
1094 ac_top_srcdir
=$srcdir ;;
1096 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
1097 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
1100 # Do not use `cd foo && pwd` to compute absolute paths, because
1101 # the directories may not exist.
1103 .
) ac_abs_builddir
="$ac_dir";;
1106 .
) ac_abs_builddir
=`pwd`;;
1107 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
1108 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
1111 case $ac_abs_builddir in
1112 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
1114 case ${ac_top_builddir}.
in
1115 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
1116 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
1117 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
1120 case $ac_abs_builddir in
1121 .
) ac_abs_srcdir
=$ac_srcdir;;
1124 .
) ac_abs_srcdir
=$ac_abs_builddir;;
1125 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
1126 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
1129 case $ac_abs_builddir in
1130 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
1132 case $ac_top_srcdir in
1133 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
1134 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
1135 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
1140 # Check for guested configure; otherwise get Cygnus style configure.
1141 if test -f $ac_srcdir/configure.gnu
; then
1143 $SHELL $ac_srcdir/configure.gnu
--help=recursive
1144 elif test -f $ac_srcdir/configure
; then
1146 $SHELL $ac_srcdir/configure
--help=recursive
1147 elif test -f $ac_srcdir/configure.ac ||
1148 test -f $ac_srcdir/configure.
in; then
1150 $ac_configure --help
1152 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1158 test -n "$ac_init_help" && exit 0
1159 if $ac_init_version; then
1162 Copyright
(C
) 2003 Free Software Foundation
, Inc.
1163 This configure
script is free software
; the Free Software Foundation
1164 gives unlimited permission to copy
, distribute and modify it.
1170 This file contains any messages produced by compilers while
1171 running configure, to aid debugging if configure makes a mistake.
1173 It was created by $as_me, which was
1174 generated by GNU Autoconf 2.59. Invocation command line was
1185 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1186 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1187 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1188 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1189 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1191 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1192 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1194 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1195 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1196 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1197 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1198 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1199 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1200 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1208 test -z "$as_dir" && as_dir
=.
1209 echo "PATH: $as_dir"
1224 # Keep a trace of the command line.
1225 # Strip out --no-create and --no-recursion so they do not pile up.
1226 # Strip out --silent because we don't want to record it for future runs.
1227 # Also quote any args containing shell meta-characters.
1228 # Make two passes to allow for proper duplicate-argument suppression.
1233 ac_must_keep_next
=false
1239 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1240 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1241 |
-silent |
--silent |
--silen |
--sile |
--sil)
1243 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1244 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1247 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1249 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1250 if test $ac_must_keep_next = true
; then
1251 ac_must_keep_next
=false
# Got value, back to normal.
1254 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1255 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1256 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1257 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1258 case "$ac_configure_args0 " in
1259 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1262 -* ) ac_must_keep_next
=true
;;
1265 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1266 # Get rid of the leading space.
1272 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1273 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1275 # When interrupted or exit'd, cleanup temporary files, and complete
1276 # config.log. We remove comments because anyway the quotes in there
1277 # would cause problems or look ugly.
1278 # WARNING: Be sure not to use single quotes in there, as some shells,
1279 # such as our DU 5.0 friend, will then `close' the trap.
1280 trap 'exit_status=$?
1281 # Save into config.log some information that might help in debugging.
1286 ## ---------------- ##
1287 ## Cache variables. ##
1288 ## ---------------- ##
1291 # The following way of writing the cache mishandles newlines in values,
1294 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1297 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1302 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1309 ## ----------------- ##
1310 ## Output variables. ##
1311 ## ----------------- ##
1314 for ac_var in $ac_subst_vars
1316 eval ac_val=$`echo $ac_var`
1317 echo "$ac_var='"'"'$ac_val'"'"'"
1321 if test -n "$ac_subst_files"; then
1328 for ac_var in $ac_subst_files
1330 eval ac_val=$`echo $ac_var`
1331 echo "$ac_var='"'"'$ac_val'"'"'"
1336 if test -s confdefs.h; then
1343 sed "/^$/d" confdefs.h | sort
1346 test "$ac_signal" != 0 &&
1347 echo "$as_me: caught signal $ac_signal"
1348 echo "$as_me: exit $exit_status"
1350 rm -f core *.core &&
1351 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1354 for ac_signal
in 1 2 13 15; do
1355 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1359 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1360 rm -rf conftest
* confdefs.h
1361 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1364 # Predefined preprocessor variables.
1366 cat >>confdefs.h
<<_ACEOF
1367 #define PACKAGE_NAME "$PACKAGE_NAME"
1371 cat >>confdefs.h
<<_ACEOF
1372 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1376 cat >>confdefs.h
<<_ACEOF
1377 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1381 cat >>confdefs.h
<<_ACEOF
1382 #define PACKAGE_STRING "$PACKAGE_STRING"
1386 cat >>confdefs.h
<<_ACEOF
1387 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1391 # Let the site file select an alternate cache file if it wants to.
1392 # Prefer explicitly selected file to automatically selected ones.
1393 if test -z "$CONFIG_SITE"; then
1394 if test "x$prefix" != xNONE
; then
1395 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1397 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1400 for ac_site_file
in $CONFIG_SITE; do
1401 if test -r "$ac_site_file"; then
1402 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1403 echo "$as_me: loading site script $ac_site_file" >&6;}
1404 sed 's/^/| /' "$ac_site_file" >&5
1409 if test -r "$cache_file"; then
1410 # Some versions of bash will fail to source /dev/null (special
1411 # files actually), so we avoid doing that.
1412 if test -f "$cache_file"; then
1413 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1414 echo "$as_me: loading cache $cache_file" >&6;}
1416 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1417 *) . .
/$cache_file;;
1421 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1422 echo "$as_me: creating cache $cache_file" >&6;}
1426 # Check that the precious variables saved in the cache have kept the same
1428 ac_cache_corrupted
=false
1429 for ac_var
in `(set) 2>&1 |
1430 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1431 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1432 eval ac_new_set
=\
$ac_env_${ac_var}_set
1433 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1434 eval ac_new_val
="\$ac_env_${ac_var}_value"
1435 case $ac_old_set,$ac_new_set in
1437 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1438 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1439 ac_cache_corrupted
=: ;;
1441 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1443 ac_cache_corrupted
=: ;;
1446 if test "x$ac_old_val" != "x$ac_new_val"; then
1447 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1448 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1449 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1450 echo "$as_me: former value: $ac_old_val" >&2;}
1451 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1452 echo "$as_me: current value: $ac_new_val" >&2;}
1453 ac_cache_corrupted
=:
1456 # Pass precious variables to config.status.
1457 if test "$ac_new_set" = set; then
1459 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1460 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1461 *) ac_arg
=$ac_var=$ac_new_val ;;
1463 case " $ac_configure_args " in
1464 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1465 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1469 if $ac_cache_corrupted; then
1470 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1471 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1472 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1473 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1474 { (exit 1); exit 1; }; }
1478 ac_cpp
='$CPP $CPPFLAGS'
1479 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1480 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1481 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1502 for ac_dir
in ..
/..
/..
/build-aux
$srcdir/..
/..
/..
/build-aux
; do
1503 if test -f $ac_dir/install-sh
; then
1505 ac_install_sh
="$ac_aux_dir/install-sh -c"
1507 elif test -f $ac_dir/install.sh
; then
1509 ac_install_sh
="$ac_aux_dir/install.sh -c"
1511 elif test -f $ac_dir/shtool
; then
1513 ac_install_sh
="$ac_aux_dir/shtool install -c"
1517 if test -z "$ac_aux_dir"; then
1518 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../build-aux $srcdir/../../../build-aux" >&5
1519 echo "$as_me: error: cannot find install-sh or install.sh in ../../../build-aux $srcdir/../../../build-aux" >&2;}
1520 { (exit 1); exit 1; }; }
1522 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1523 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1524 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1526 am__api_version
="1.9"
1527 # Find a good install program. We prefer a C program (faster),
1528 # so one script is as good as another. But avoid the broken or
1529 # incompatible versions:
1530 # SysV /etc/install, /usr/sbin/install
1531 # SunOS /usr/etc/install
1532 # IRIX /sbin/install
1534 # AmigaOS /C/install, which installs bootblocks on floppy discs
1535 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1536 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1537 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1538 # OS/2's system install, which has a completely different semantic
1539 # ./install, which can be erroneously created by make from ./install.sh.
1540 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1541 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1542 if test -z "$INSTALL"; then
1543 if test "${ac_cv_path_install+set}" = set; then
1544 echo $ECHO_N "(cached) $ECHO_C" >&6
1546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1550 test -z "$as_dir" && as_dir
=.
1551 # Account for people who put trailing slashes in PATH elements.
1553 .
/ | .
// |
/cC
/* | \
1554 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1555 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1558 # OSF1 and SCO ODT 3.0 have their own names for install.
1559 # Don't use installbsd from OSF since it installs stuff as root
1561 for ac_prog
in ginstall scoinst
install; do
1562 for ac_exec_ext
in '' $ac_executable_extensions; do
1563 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1564 if test $ac_prog = install &&
1565 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1566 # AIX install. It has an incompatible calling convention.
1568 elif test $ac_prog = install &&
1569 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1570 # program-specific install script used by HP pwplus--don't use.
1573 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1585 if test "${ac_cv_path_install+set}" = set; then
1586 INSTALL
=$ac_cv_path_install
1588 # As a last resort, use the slow shell script. We don't cache a
1589 # path for INSTALL within a source directory, because that will
1590 # break other packages using the cache if that directory is
1591 # removed, or if the path is relative.
1592 INSTALL
=$ac_install_sh
1595 echo "$as_me:$LINENO: result: $INSTALL" >&5
1596 echo "${ECHO_T}$INSTALL" >&6
1598 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1599 # It thinks the first close brace ends the variable substitution.
1600 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1602 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1604 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1606 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1607 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1610 echo timestamp
> conftest.
file
1611 # Do `set' in a subshell so we don't clobber the current shell's
1612 # arguments. Must try -L first in case configure is actually a
1613 # symlink; some systems play weird games with the mod time of symlinks
1614 # (eg FreeBSD returns the mod time of the symlink's containing
1617 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1618 if test "$*" = "X"; then
1620 set X
`ls -t $srcdir/configure conftest.file`
1623 if test "$*" != "X $srcdir/configure conftest.file" \
1624 && test "$*" != "X conftest.file $srcdir/configure"; then
1626 # If neither matched, then we have a broken ls. This can happen
1627 # if, for instance, CONFIG_SHELL is bash and it inherits a
1628 # broken ls alias from the environment. This has actually
1629 # happened. Such a system could not be considered "sane".
1630 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1631 alias in your environment" >&5
1632 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1633 alias in your environment" >&2;}
1634 { (exit 1); exit 1; }; }
1637 test "$2" = conftest.
file
1643 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1644 Check your system clock" >&5
1645 echo "$as_me: error: newly created file is older than distributed files!
1646 Check your system clock" >&2;}
1647 { (exit 1); exit 1; }; }
1649 echo "$as_me:$LINENO: result: yes" >&5
1650 echo "${ECHO_T}yes" >&6
1651 test "$program_prefix" != NONE
&&
1652 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1653 # Use a double $ so make ignores it.
1654 test "$program_suffix" != NONE
&&
1655 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1656 # Double any \ or $. echo might interpret backslashes.
1657 # By default was `s,x,x', remove it if useless.
1658 cat <<\_ACEOF
>conftest.
sed
1659 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1661 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1664 # expand $ac_aux_dir to an absolute path
1665 am_aux_dir
=`cd $ac_aux_dir && pwd`
1667 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1668 # Use eval to expand $SHELL
1669 if eval "$MISSING --run true"; then
1670 am_missing_run
="$MISSING --run "
1673 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1674 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1677 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
1678 # We used to keeping the `.' as first argument, in order to
1679 # allow $(mkdir_p) to be used without argument. As in
1680 # $(mkdir_p) $(somedir)
1681 # where $(somedir) is conditionally defined. However this is wrong
1683 # 1. if the package is installed by a user who cannot write `.'
1684 # make install will fail,
1685 # 2. the above comment should most certainly read
1686 # $(mkdir_p) $(DESTDIR)$(somedir)
1687 # so it does not work when $(somedir) is undefined and
1688 # $(DESTDIR) is not.
1689 # To support the latter case, we have to write
1690 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1691 # so the `.' trick is pointless.
1692 mkdir_p
='mkdir -p --'
1694 # On NextStep and OpenStep, the `mkdir' command does not
1695 # recognize any option. It will interpret all options as
1696 # directories to create, and then abort because `.' already
1698 for d
in .
/-p .
/--version;
1700 test -d $d && rmdir $d
1702 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1703 if test -f "$ac_aux_dir/mkinstalldirs"; then
1704 mkdir_p
='$(mkinstalldirs)'
1706 mkdir_p
='$(install_sh) -d'
1710 for ac_prog
in gawk mawk nawk
awk
1712 # Extract the first word of "$ac_prog", so it can be a program name with args.
1713 set dummy
$ac_prog; ac_word
=$2
1714 echo "$as_me:$LINENO: checking for $ac_word" >&5
1715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1716 if test "${ac_cv_prog_AWK+set}" = set; then
1717 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 if test -n "$AWK"; then
1720 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1722 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1726 test -z "$as_dir" && as_dir
=.
1727 for ac_exec_ext
in '' $ac_executable_extensions; do
1728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1729 ac_cv_prog_AWK
="$ac_prog"
1730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739 if test -n "$AWK"; then
1740 echo "$as_me:$LINENO: result: $AWK" >&5
1741 echo "${ECHO_T}$AWK" >&6
1743 echo "$as_me:$LINENO: result: no" >&5
1744 echo "${ECHO_T}no" >&6
1747 test -n "$AWK" && break
1750 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1751 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1752 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1753 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1756 cat >conftest.
make <<\_ACEOF
1758 @
echo 'ac_maketemp="$(MAKE)"'
1760 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1761 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1762 if test -n "$ac_maketemp"; then
1763 eval ac_cv_prog_make_
${ac_make}_set
=yes
1765 eval ac_cv_prog_make_
${ac_make}_set
=no
1769 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1770 echo "$as_me:$LINENO: result: yes" >&5
1771 echo "${ECHO_T}yes" >&6
1774 echo "$as_me:$LINENO: result: no" >&5
1775 echo "${ECHO_T}no" >&6
1776 SET_MAKE
="MAKE=${MAKE-make}"
1779 rm -rf .tst
2>/dev
/null
1780 mkdir .tst
2>/dev
/null
1781 if test -d .tst
; then
1786 rmdir .tst
2>/dev
/null
1788 # test to see if srcdir already configured
1789 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1790 test -f $srcdir/config.status
; then
1791 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1792 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1793 { (exit 1); exit 1; }; }
1796 # test whether we have cygpath
1797 if test -z "$CYGPATH_W"; then
1798 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
1799 CYGPATH_W
='cygpath -w'
1806 # Define the identity of the package.
1807 PACKAGE
=gettext_rpathy
1811 cat >>confdefs.h
<<_ACEOF
1812 #define PACKAGE "$PACKAGE"
1816 cat >>confdefs.h
<<_ACEOF
1817 #define VERSION "$VERSION"
1820 # Some tools Automake needs.
1822 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1825 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1828 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1831 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1834 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1836 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1838 # Installed binaries are usually stripped using `strip' when the user
1839 # run `make install-strip'. However `strip' might not be the right
1840 # tool to use in cross-compilation environments, therefore Automake
1841 # will honor the `STRIP' environment variable to overrule this program.
1842 if test "$cross_compiling" != no
; then
1843 if test -n "$ac_tool_prefix"; then
1844 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1845 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1846 echo "$as_me:$LINENO: checking for $ac_word" >&5
1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1848 if test "${ac_cv_prog_STRIP+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 if test -n "$STRIP"; then
1852 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1854 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1858 test -z "$as_dir" && as_dir
=.
1859 for ac_exec_ext
in '' $ac_executable_extensions; do
1860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1861 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1870 STRIP
=$ac_cv_prog_STRIP
1871 if test -n "$STRIP"; then
1872 echo "$as_me:$LINENO: result: $STRIP" >&5
1873 echo "${ECHO_T}$STRIP" >&6
1875 echo "$as_me:$LINENO: result: no" >&5
1876 echo "${ECHO_T}no" >&6
1880 if test -z "$ac_cv_prog_STRIP"; then
1882 # Extract the first word of "strip", so it can be a program name with args.
1883 set dummy strip
; ac_word
=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 if test -n "$ac_ct_STRIP"; then
1890 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
1892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1896 test -z "$as_dir" && as_dir
=.
1897 for ac_exec_ext
in '' $ac_executable_extensions; do
1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899 ac_cv_prog_ac_ct_STRIP
="strip"
1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
1909 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
1910 if test -n "$ac_ct_STRIP"; then
1911 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1912 echo "${ECHO_T}$ac_ct_STRIP" >&6
1914 echo "$as_me:$LINENO: result: no" >&5
1915 echo "${ECHO_T}no" >&6
1920 STRIP
="$ac_cv_prog_STRIP"
1924 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1926 # We need awk for the "check" target. The system "awk" is bad on
1928 # Always define AMTAR for backward compatibility.
1930 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1932 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
1939 ac_cpp
='$CPP $CPPFLAGS'
1940 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1941 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1942 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1943 if test -n "$ac_tool_prefix"; then
1944 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1945 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1946 echo "$as_me:$LINENO: checking for $ac_word" >&5
1947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1948 if test "${ac_cv_prog_CC+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1951 if test -n "$CC"; then
1952 ac_cv_prog_CC
="$CC" # Let the user override the test.
1954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1958 test -z "$as_dir" && as_dir
=.
1959 for ac_exec_ext
in '' $ac_executable_extensions; do
1960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971 if test -n "$CC"; then
1972 echo "$as_me:$LINENO: result: $CC" >&5
1973 echo "${ECHO_T}$CC" >&6
1975 echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1980 if test -z "$ac_cv_prog_CC"; then
1982 # Extract the first word of "gcc", so it can be a program name with args.
1983 set dummy gcc
; ac_word
=$2
1984 echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 if test -n "$ac_ct_CC"; then
1990 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1992 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1996 test -z "$as_dir" && as_dir
=.
1997 for ac_exec_ext
in '' $ac_executable_extensions; do
1998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1999 ac_cv_prog_ac_ct_CC
="gcc"
2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2008 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2009 if test -n "$ac_ct_CC"; then
2010 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2011 echo "${ECHO_T}$ac_ct_CC" >&6
2013 echo "$as_me:$LINENO: result: no" >&5
2014 echo "${ECHO_T}no" >&6
2022 if test -z "$CC"; then
2023 if test -n "$ac_tool_prefix"; then
2024 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2025 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2026 echo "$as_me:$LINENO: checking for $ac_word" >&5
2027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2028 if test "${ac_cv_prog_CC+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 if test -n "$CC"; then
2032 ac_cv_prog_CC
="$CC" # Let the user override the test.
2034 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2038 test -z "$as_dir" && as_dir
=.
2039 for ac_exec_ext
in '' $ac_executable_extensions; do
2040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2041 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051 if test -n "$CC"; then
2052 echo "$as_me:$LINENO: result: $CC" >&5
2053 echo "${ECHO_T}$CC" >&6
2055 echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6
2060 if test -z "$ac_cv_prog_CC"; then
2062 # Extract the first word of "cc", so it can be a program name with args.
2063 set dummy cc
; ac_word
=$2
2064 echo "$as_me:$LINENO: checking for $ac_word" >&5
2065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2066 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2069 if test -n "$ac_ct_CC"; then
2070 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2072 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2076 test -z "$as_dir" && as_dir
=.
2077 for ac_exec_ext
in '' $ac_executable_extensions; do
2078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2079 ac_cv_prog_ac_ct_CC
="cc"
2080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2089 if test -n "$ac_ct_CC"; then
2090 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2091 echo "${ECHO_T}$ac_ct_CC" >&6
2093 echo "$as_me:$LINENO: result: no" >&5
2094 echo "${ECHO_T}no" >&6
2103 if test -z "$CC"; then
2104 # Extract the first word of "cc", so it can be a program name with args.
2105 set dummy cc
; ac_word
=$2
2106 echo "$as_me:$LINENO: checking for $ac_word" >&5
2107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2108 if test "${ac_cv_prog_CC+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2111 if test -n "$CC"; then
2112 ac_cv_prog_CC
="$CC" # Let the user override the test.
2115 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2119 test -z "$as_dir" && as_dir
=.
2120 for ac_exec_ext
in '' $ac_executable_extensions; do
2121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2122 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2123 ac_prog_rejected
=yes
2127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133 if test $ac_prog_rejected = yes; then
2134 # We found a bogon in the path, so make sure we never use it.
2135 set dummy
$ac_cv_prog_CC
2137 if test $# != 0; then
2138 # We chose a different compiler from the bogus one.
2139 # However, it has the same basename, so the bogon will be chosen
2140 # first if we set CC to just the basename; use the full file name.
2142 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2148 if test -n "$CC"; then
2149 echo "$as_me:$LINENO: result: $CC" >&5
2150 echo "${ECHO_T}$CC" >&6
2152 echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6
2157 if test -z "$CC"; then
2158 if test -n "$ac_tool_prefix"; then
2161 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2162 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2163 echo "$as_me:$LINENO: checking for $ac_word" >&5
2164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2165 if test "${ac_cv_prog_CC+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 if test -n "$CC"; then
2169 ac_cv_prog_CC
="$CC" # Let the user override the test.
2171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2175 test -z "$as_dir" && as_dir
=.
2176 for ac_exec_ext
in '' $ac_executable_extensions; do
2177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2178 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2188 if test -n "$CC"; then
2189 echo "$as_me:$LINENO: result: $CC" >&5
2190 echo "${ECHO_T}$CC" >&6
2192 echo "$as_me:$LINENO: result: no" >&5
2193 echo "${ECHO_T}no" >&6
2196 test -n "$CC" && break
2199 if test -z "$CC"; then
2203 # Extract the first word of "$ac_prog", so it can be a program name with args.
2204 set dummy
$ac_prog; ac_word
=$2
2205 echo "$as_me:$LINENO: checking for $ac_word" >&5
2206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2207 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 if test -n "$ac_ct_CC"; then
2211 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2213 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2217 test -z "$as_dir" && as_dir
=.
2218 for ac_exec_ext
in '' $ac_executable_extensions; do
2219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2220 ac_cv_prog_ac_ct_CC
="$ac_prog"
2221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2229 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2230 if test -n "$ac_ct_CC"; then
2231 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2232 echo "${ECHO_T}$ac_ct_CC" >&6
2234 echo "$as_me:$LINENO: result: no" >&5
2235 echo "${ECHO_T}no" >&6
2238 test -n "$ac_ct_CC" && break
2247 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2248 See \`config.log' for more details." >&5
2249 echo "$as_me: error: no acceptable C compiler found in \$PATH
2250 See \`config.log' for more details." >&2;}
2251 { (exit 1); exit 1; }; }
2253 # Provide some information about the compiler.
2254 echo "$as_me:$LINENO:" \
2255 "checking for C compiler version" >&5
2256 ac_compiler
=`set X $ac_compile; echo $2`
2257 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2258 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }
2262 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2263 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }
2267 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2268 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }
2273 cat >conftest.
$ac_ext <<_ACEOF
2276 cat confdefs.h
>>conftest.
$ac_ext
2277 cat >>conftest.
$ac_ext <<_ACEOF
2278 /* end confdefs.h. */
2288 ac_clean_files_save
=$ac_clean_files
2289 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2290 # Try to create an executable without -o first, disregard a.out.
2291 # It will help us diagnose broken compilers, and finding out an intuition
2293 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2294 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2295 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2296 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2297 (eval $ac_link_default) 2>&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; then
2301 # Find the output, starting from the most likely. This scheme is
2302 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2305 # Be careful to initialize this variable, since it used to be cached.
2306 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2308 # b.out is created by i960 compilers.
2309 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2311 test -f "$ac_file" ||
continue
2313 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2316 # This is the source file.
2319 # We found the default executable, but exeext='' is most
2323 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2324 # FIXME: I believe we export ac_cv_exeext for Libtool,
2325 # but it would be cool to find out if it's true. Does anybody
2326 # maintain Libtool? --akim.
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.
$ac_ext >&5
2337 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: C compiler cannot create executables
2340 See \`config.log' for more details." >&2;}
2341 { (exit 77); exit 77; }; }
2344 ac_exeext
=$ac_cv_exeext
2345 echo "$as_me:$LINENO: result: $ac_file" >&5
2346 echo "${ECHO_T}$ac_file" >&6
2348 # Check the compiler produces executables we can run. If not, either
2349 # the compiler is broken, or we cross compile.
2350 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2351 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2352 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2353 # If not cross compiling, check that we can run a simple program.
2354 if test "$cross_compiling" != yes; then
2355 if { ac_try
='./$ac_file'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; }; then
2363 if test "$cross_compiling" = maybe
; then
2366 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2367 If you meant to cross compile, use \`--host'.
2368 See \`config.log' for more details." >&5
2369 echo "$as_me: error: cannot run C compiled programs.
2370 If you meant to cross compile, use \`--host'.
2371 See \`config.log' for more details." >&2;}
2372 { (exit 1); exit 1; }; }
2376 echo "$as_me:$LINENO: result: yes" >&5
2377 echo "${ECHO_T}yes" >&6
2379 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2380 ac_clean_files
=$ac_clean_files_save
2381 # Check the compiler produces executables we can run. If not, either
2382 # the compiler is broken, or we cross compile.
2383 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2384 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2385 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2386 echo "${ECHO_T}$cross_compiling" >&6
2388 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2389 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2391 (eval $ac_link) 2>&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; then
2395 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2396 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2397 # work properly (i.e., refer to `conftest.exe'), while it won't with
2399 for ac_file
in conftest.exe conftest conftest.
*; do
2400 test -f "$ac_file" ||
continue
2402 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2403 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2410 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2411 See \`config.log' for more details." >&5
2412 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2413 See \`config.log' for more details." >&2;}
2414 { (exit 1); exit 1; }; }
2417 rm -f conftest
$ac_cv_exeext
2418 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2419 echo "${ECHO_T}$ac_cv_exeext" >&6
2421 rm -f conftest.
$ac_ext
2422 EXEEXT
=$ac_cv_exeext
2424 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2425 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2426 if test "${ac_cv_objext+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2429 cat >conftest.
$ac_ext <<_ACEOF
2432 cat confdefs.h
>>conftest.
$ac_ext
2433 cat >>conftest.
$ac_ext <<_ACEOF
2434 /* end confdefs.h. */
2444 rm -f conftest.o conftest.obj
2445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2446 (eval $ac_compile) 2>&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; then
2450 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2452 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2453 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2458 echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.
$ac_ext >&5
2461 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2462 See \`config.log' for more details." >&5
2463 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2464 See \`config.log' for more details." >&2;}
2465 { (exit 1); exit 1; }; }
2468 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2470 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2471 echo "${ECHO_T}$ac_cv_objext" >&6
2472 OBJEXT
=$ac_cv_objext
2474 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2475 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2476 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 cat >conftest.
$ac_ext <<_ACEOF
2482 cat confdefs.h
>>conftest.
$ac_ext
2483 cat >>conftest.
$ac_ext <<_ACEOF
2484 /* end confdefs.h. */
2497 rm -f conftest.
$ac_objext
2498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2499 (eval $ac_compile) 2>conftest.er1
2501 grep -v '^ *+' conftest.er1
>conftest.err
2503 cat conftest.err
>&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try
='test -z "$ac_c_werror_flag"
2507 || test ! -s conftest.err'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; } &&
2513 { ac_try
='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2521 echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.
$ac_ext >&5
2526 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2527 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2530 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2531 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2532 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2533 ac_test_CFLAGS
=${CFLAGS+set}
2534 ac_save_CFLAGS
=$CFLAGS
2536 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2537 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2538 if test "${ac_cv_prog_cc_g+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 cat >conftest.
$ac_ext <<_ACEOF
2544 cat confdefs.h
>>conftest.
$ac_ext
2545 cat >>conftest.
$ac_ext <<_ACEOF
2546 /* end confdefs.h. */
2556 rm -f conftest.
$ac_objext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558 (eval $ac_compile) 2>conftest.er1
2560 grep -v '^ *+' conftest.er1
>conftest.err
2562 cat conftest.err
>&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } &&
2565 { ac_try
='test -z "$ac_c_werror_flag"
2566 || test ! -s conftest.err'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; } &&
2572 { ac_try
='test -s conftest.$ac_objext'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; }; then
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.
$ac_ext >&5
2585 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2587 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2588 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2589 if test "$ac_test_CFLAGS" = set; then
2590 CFLAGS
=$ac_save_CFLAGS
2591 elif test $ac_cv_prog_cc_g = yes; then
2592 if test "$GCC" = yes; then
2598 if test "$GCC" = yes; then
2604 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2605 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2606 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2607 echo $ECHO_N "(cached) $ECHO_C" >&6
2609 ac_cv_prog_cc_stdc
=no
2611 cat >conftest.
$ac_ext <<_ACEOF
2614 cat confdefs.h
>>conftest.
$ac_ext
2615 cat >>conftest.
$ac_ext <<_ACEOF
2616 /* end confdefs.h. */
2619 #include <sys/types.h>
2620 #include <sys/stat.h>
2621 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2622 struct buf { int x; };
2623 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2624 static char *e (p, i)
2630 static char *f (char * (*g) (char **, int), char **p, ...)
2635 s = g (p, va_arg (v,int));
2640 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2641 function prototypes and stuff, but not '\xHH' hex character constants.
2642 These don't provoke an error unfortunately, instead are silently treated
2643 as 'x'. The following induces an error, until -std1 is added to get
2644 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2645 array size at least. It's necessary to write '\x00'==0 to get something
2646 that's true only with -std1. */
2647 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2649 int test (int i, double x);
2650 struct s1 {int (*f) (int a);};
2651 struct s2 {int (*f) (double a);};
2652 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2658 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2663 # Don't try gcc -ansi; that turns off useful extensions and
2664 # breaks some systems' header files.
2665 # AIX -qlanglvl=ansi
2666 # Ultrix and OSF/1 -std1
2667 # HP-UX 10.20 and later -Ae
2668 # HP-UX older versions -Aa -D_HPUX_SOURCE
2669 # SVR4 -Xc -D__EXTENSIONS__
2670 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2672 CC
="$ac_save_CC $ac_arg"
2673 rm -f conftest.
$ac_objext
2674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2675 (eval $ac_compile) 2>conftest.er1
2677 grep -v '^ *+' conftest.er1
>conftest.err
2679 cat conftest.err
>&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); } &&
2682 { ac_try
='test -z "$ac_c_werror_flag"
2683 || test ! -s conftest.err'
2684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }; } &&
2689 { ac_try
='test -s conftest.$ac_objext'
2690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }; }; then
2695 ac_cv_prog_cc_stdc
=$ac_arg
2698 echo "$as_me: failed program was:" >&5
2699 sed 's/^/| /' conftest.
$ac_ext >&5
2702 rm -f conftest.err conftest.
$ac_objext
2704 rm -f conftest.
$ac_ext conftest.
$ac_objext
2709 case "x$ac_cv_prog_cc_stdc" in
2711 echo "$as_me:$LINENO: result: none needed" >&5
2712 echo "${ECHO_T}none needed" >&6 ;;
2714 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2715 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2716 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2719 # Some people use a C++ compiler to compile C. Since we use `exit',
2720 # in C++ we need to declare it. In case someone uses the same compiler
2721 # for both compiling C and C++ we need to have the C++ compiler decide
2722 # the declaration of exit, since it's the most demanding environment.
2723 cat >conftest.
$ac_ext <<_ACEOF
2728 rm -f conftest.
$ac_objext
2729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2730 (eval $ac_compile) 2>conftest.er1
2732 grep -v '^ *+' conftest.er1
>conftest.err
2734 cat conftest.err
>&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); } &&
2737 { ac_try
='test -z "$ac_c_werror_flag"
2738 || test ! -s conftest.err'
2739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; } &&
2744 { ac_try
='test -s conftest.$ac_objext'
2745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; }; then
2750 for ac_declaration
in \
2752 'extern "C" void std::exit (int) throw (); using std::exit;' \
2753 'extern "C" void std::exit (int); using std::exit;' \
2754 'extern "C" void exit (int) throw ();' \
2755 'extern "C" void exit (int);' \
2758 cat >conftest.
$ac_ext <<_ACEOF
2761 cat confdefs.h
>>conftest.
$ac_ext
2762 cat >>conftest.
$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2774 rm -f conftest.
$ac_objext
2775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2776 (eval $ac_compile) 2>conftest.er1
2778 grep -v '^ *+' conftest.er1
>conftest.err
2780 cat conftest.err
>&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); } &&
2783 { ac_try
='test -z "$ac_c_werror_flag"
2784 || test ! -s conftest.err'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; } &&
2790 { ac_try
='test -s conftest.$ac_objext'
2791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; }; then
2798 echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.
$ac_ext >&5
2803 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2804 cat >conftest.
$ac_ext <<_ACEOF
2807 cat confdefs.h
>>conftest.
$ac_ext
2808 cat >>conftest.
$ac_ext <<_ACEOF
2809 /* end confdefs.h. */
2819 rm -f conftest.
$ac_objext
2820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2821 (eval $ac_compile) 2>conftest.er1
2823 grep -v '^ *+' conftest.er1
>conftest.err
2825 cat conftest.err
>&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } &&
2828 { ac_try
='test -z "$ac_c_werror_flag"
2829 || test ! -s conftest.err'
2830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }; } &&
2835 { ac_try
='test -s conftest.$ac_objext'
2836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; }; then
2843 echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.
$ac_ext >&5
2847 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2850 if test -n "$ac_declaration"; then
2851 echo '#ifdef __cplusplus' >>confdefs.h
2852 echo $ac_declaration >>confdefs.h
2853 echo '#endif' >>confdefs.h
2857 echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.
$ac_ext >&5
2861 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2863 ac_cpp
='$CPP $CPPFLAGS'
2864 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2867 DEPDIR
="${am__leading_dot}deps"
2869 ac_config_commands
="$ac_config_commands depfiles"
2872 am_make
=${MAKE-make}
2873 cat > confinc
<< 'END'
2878 # If we don't find an include directive, just comment out the code.
2879 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2880 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2884 # First try GNU make style include.
2885 echo "include confinc" > confmf
2886 # We grep out `Entering directory' and `Leaving directory'
2887 # messages which can occur if `w' ends up in MAKEFLAGS.
2888 # In particular we don't look at `^make:' because GNU make might
2889 # be invoked under some other name (usually "gmake"), in which
2890 # case it prints its new name instead of `make'.
2891 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2896 # Now try BSD make style include.
2897 if test "$am__include" = "#"; then
2898 echo '.include "confinc"' > confmf
2899 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2900 am__include
=.include
2907 echo "$as_me:$LINENO: result: $_am_result" >&5
2908 echo "${ECHO_T}$_am_result" >&6
2909 rm -f confinc confmf
2911 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2912 if test "${enable_dependency_tracking+set}" = set; then
2913 enableval
="$enable_dependency_tracking"
2916 if test "x$enable_dependency_tracking" != xno
; then
2917 am_depcomp
="$ac_aux_dir/depcomp"
2922 if test "x$enable_dependency_tracking" != xno; then
2933 depcc
="$CC" am_compiler_list
=
2935 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2936 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2937 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2940 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2941 # We make a subdir and do the tests there. Otherwise we can end up
2942 # making bogus files that we don't know about and never remove. For
2943 # instance it was reported that on HP-UX the gcc test will end up
2944 # making a dummy file named `D' -- because `-MD' means `put the output
2947 # Copy depcomp to subdir because otherwise we won't find it if we're
2948 # using a relative directory.
2949 cp "$am_depcomp" conftest.dir
2951 # We will build objects and dependencies in a subdirectory because
2952 # it helps to detect inapplicable dependency modes. For instance
2953 # both Tru64's cc and ICC support -MD to output dependencies as a
2954 # side effect of compilation, but ICC will put the dependencies in
2955 # the current directory while Tru64 will put them in the object
2959 am_cv_CC_dependencies_compiler_type
=none
2960 if test "$am_compiler_list" = ""; then
2961 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2963 for depmode
in $am_compiler_list; do
2964 # Setup a source with many dependencies, because some compilers
2965 # like to wrap large dependency lists on column 80 (with \), and
2966 # we should not choose a depcomp mode which is confused by this.
2968 # We need to recreate these files for each test, as the compiler may
2969 # overwrite some of them when testing with obscure command lines.
2970 # This happens at least with the AIX C compiler.
2972 for i
in 1 2 3 4 5 6; do
2973 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
2974 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2975 # Solaris 8's {/usr,}/bin/sh.
2976 touch sub
/conftst
$i.h
2978 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2982 # after this tag, mechanisms are not by side-effect, so they'll
2983 # only be used when explicitly requested
2984 if test "x$enable_dependency_tracking" = xyes
; then
2992 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2993 # mode. It turns out that the SunPro C++ compiler does not properly
2994 # handle `-M -o', and we need to detect this.
2995 if depmode
=$depmode \
2996 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
2997 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
2998 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
2999 >/dev
/null
2>conftest.err
&&
3000 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3001 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3002 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3003 # icc doesn't choke on unknown options, it will just issue warnings
3004 # or remarks (even with -Werror). So we grep stderr for any message
3005 # that says an option was ignored or not supported.
3006 # When given -MP, icc 7.0 and 7.1 complain thusly:
3007 # icc: Command line warning: ignoring option '-M'; no argument required
3008 # The diagnosis changed in icc 8.0:
3009 # icc: Command line remark: option '-MP' not supported
3010 if (grep 'ignoring option' conftest.err ||
3011 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3012 am_cv_CC_dependencies_compiler_type
=$depmode
3021 am_cv_CC_dependencies_compiler_type
=none
3025 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3026 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3027 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3032 test "x$enable_dependency_tracking" != xno \
3033 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3035 am__fastdepCC_FALSE
='#'
3037 am__fastdepCC_TRUE
='#'
3038 am__fastdepCC_FALSE
=
3042 # Check whether --enable-shared or --disable-shared was given.
3043 if test "${enable_shared+set}" = set; then
3044 enableval
="$enable_shared"
3045 p
=${PACKAGE-default}
3047 yes) enable_shared
=yes ;;
3048 no
) enable_shared
=no
;;
3051 # Look at the argument we got. We use all the common list separators.
3052 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3053 for pkg
in $enableval; do
3055 if test "X$pkg" = "X$p"; then
3066 # Check whether --enable-static or --disable-static was given.
3067 if test "${enable_static+set}" = set; then
3068 enableval
="$enable_static"
3069 p
=${PACKAGE-default}
3071 yes) enable_static
=yes ;;
3072 no
) enable_static
=no
;;
3075 # Look at the argument we got. We use all the common list separators.
3076 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3077 for pkg
in $enableval; do
3079 if test "X$pkg" = "X$p"; then
3090 # Check whether --enable-fast-install or --disable-fast-install was given.
3091 if test "${enable_fast_install+set}" = set; then
3092 enableval
="$enable_fast_install"
3093 p
=${PACKAGE-default}
3095 yes) enable_fast_install
=yes ;;
3096 no
) enable_fast_install
=no
;;
3098 enable_fast_install
=no
3099 # Look at the argument we got. We use all the common list separators.
3100 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3101 for pkg
in $enableval; do
3103 if test "X$pkg" = "X$p"; then
3104 enable_fast_install
=yes
3111 enable_fast_install
=yes
3114 # Make sure we can run config.sub.
3115 $ac_config_sub sun4
>/dev
/null
2>&1 ||
3116 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3117 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3118 { (exit 1); exit 1; }; }
3120 echo "$as_me:$LINENO: checking build system type" >&5
3121 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3122 if test "${ac_cv_build+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3125 ac_cv_build_alias
=$build_alias
3126 test -z "$ac_cv_build_alias" &&
3127 ac_cv_build_alias
=`$ac_config_guess`
3128 test -z "$ac_cv_build_alias" &&
3129 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3130 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3131 { (exit 1); exit 1; }; }
3132 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
3133 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3134 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3135 { (exit 1); exit 1; }; }
3138 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3139 echo "${ECHO_T}$ac_cv_build" >&6
3141 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3142 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3143 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3146 echo "$as_me:$LINENO: checking host system type" >&5
3147 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3148 if test "${ac_cv_host+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 ac_cv_host_alias
=$host_alias
3152 test -z "$ac_cv_host_alias" &&
3153 ac_cv_host_alias
=$ac_cv_build_alias
3154 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
3155 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3156 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3157 { (exit 1); exit 1; }; }
3160 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3161 echo "${ECHO_T}$ac_cv_host" >&6
3163 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3164 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3165 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3168 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3169 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3170 if test "${lt_cv_path_SED+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 # Loop through the user's path and test for sed and gsed.
3174 # Then use that list of sed's as ones to test for truncation.
3175 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3179 test -z "$as_dir" && as_dir
=.
3180 for lt_ac_prog
in sed gsed
; do
3181 for ac_exec_ext
in '' $ac_executable_extensions; do
3182 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3183 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3190 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3191 # along with /bin/sed that truncates output.
3192 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
3193 test ! -f $lt_ac_sed && continue
3194 cat /dev
/null
> conftest.
in
3196 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
3197 # Check for GNU sed and select it if it is found.
3198 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
3199 lt_cv_path_SED
=$lt_ac_sed
3203 cat conftest.
in conftest.
in >conftest.tmp
3204 mv conftest.tmp conftest.
in
3205 cp conftest.
in conftest.
nl
3207 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
3208 cmp -s conftest.out conftest.
nl ||
break
3209 # 10000 chars as input seems more than enough
3210 test $lt_ac_count -gt 10 && break
3211 lt_ac_count
=`expr $lt_ac_count + 1`
3212 if test $lt_ac_count -gt $lt_ac_max; then
3213 lt_ac_max
=$lt_ac_count
3214 lt_cv_path_SED
=$lt_ac_sed
3222 echo "$as_me:$LINENO: result: $SED" >&5
3223 echo "${ECHO_T}$SED" >&6
3225 echo "$as_me:$LINENO: checking for egrep" >&5
3226 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3227 if test "${ac_cv_prog_egrep+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3231 then ac_cv_prog_egrep
='grep -E'
3232 else ac_cv_prog_egrep
='egrep'
3235 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3236 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3237 EGREP
=$ac_cv_prog_egrep
3241 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3242 if test "${with_gnu_ld+set}" = set; then
3243 withval
="$with_gnu_ld"
3244 test "$withval" = no || with_gnu_ld
=yes
3249 if test "$GCC" = yes; then
3250 # Check if gcc -print-prog-name=ld gives a path.
3251 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3252 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3255 # gcc leaves a trailing carriage return which upsets mingw
3256 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3258 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
3261 # Accept absolute paths.
3263 re_direlt
='/[^/][^/]*/\.\./'
3264 # Canonicalize the pathname of ld
3265 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
3266 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
3267 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3269 test -z "$LD" && LD
="$ac_prog"
3272 # If it fails, then pretend we aren't using GCC.
3276 # If it is relative, then search for the first ld in PATH.
3280 elif test "$with_gnu_ld" = yes; then
3281 echo "$as_me:$LINENO: checking for GNU ld" >&5
3282 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3284 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3285 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3287 if test "${lt_cv_path_LD+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 if test -z "$LD"; then
3291 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3292 for ac_dir
in $PATH; do
3294 test -z "$ac_dir" && ac_dir
=.
3295 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
3296 lt_cv_path_LD
="$ac_dir/$ac_prog"
3297 # Check to see if the program is GNU ld. I'd rather use --version,
3298 # but apparently some GNU ld's only accept -v.
3299 # Break only if it was the GNU/non-GNU ld that we prefer.
3300 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3301 *GNU
* |
*'with BFD'*)
3302 test "$with_gnu_ld" != no
&& break
3305 test "$with_gnu_ld" != yes && break
3312 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
3317 if test -n "$LD"; then
3318 echo "$as_me:$LINENO: result: $LD" >&5
3319 echo "${ECHO_T}$LD" >&6
3321 echo "$as_me:$LINENO: result: no" >&5
3322 echo "${ECHO_T}no" >&6
3324 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3325 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3326 { (exit 1); exit 1; }; }
3327 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3328 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3329 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3333 case `$LD -v 2>&1 </dev/null` in
3334 *GNU
* |
*'with BFD'*)
3335 lt_cv_prog_gnu_ld
=yes
3338 lt_cv_prog_gnu_ld
=no
3342 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3343 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3344 with_gnu_ld
=$lt_cv_prog_gnu_ld
3347 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3348 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3349 if test "${lt_cv_ld_reload_flag+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 lt_cv_ld_reload_flag
='-r'
3354 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3355 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3356 reload_flag
=$lt_cv_ld_reload_flag
3357 case $reload_flag in
3359 *) reload_flag
=" $reload_flag" ;;
3361 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
3364 if test "$GCC" = yes; then
3365 reload_cmds
='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3367 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
3372 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3373 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3374 if test "${lt_cv_path_NM+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 if test -n "$NM"; then
3378 # Let the user override the test.
3381 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3382 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
3384 test -z "$ac_dir" && ac_dir
=.
3385 tmp_nm
="$ac_dir/${ac_tool_prefix}nm"
3386 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
3387 # Check to see if the nm accepts a BSD-compat flag.
3388 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3389 # nm: unknown option "B" ignored
3390 # Tru64's nm complains that /dev/null is an invalid object file
3391 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3392 */dev
/null
* |
*'Invalid file or object type'*)
3393 lt_cv_path_NM
="$tmp_nm -B"
3397 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3399 lt_cv_path_NM
="$tmp_nm -p"
3403 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3404 continue # so that we can try to find one that supports BSD flags
3411 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
3414 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3415 echo "${ECHO_T}$lt_cv_path_NM" >&6
3418 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3419 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3421 if test "$LN_S" = "ln -s"; then
3422 echo "$as_me:$LINENO: result: yes" >&5
3423 echo "${ECHO_T}yes" >&6
3425 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3426 echo "${ECHO_T}no, using $LN_S" >&6
3429 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3430 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3431 if test "${lt_cv_deplibs_check_method+set}" = set; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 lt_cv_file_magic_cmd
='$MAGIC_CMD'
3435 lt_cv_file_magic_test_file
=
3436 lt_cv_deplibs_check_method
='unknown'
3437 # Need to set the preceding variable on all platforms that support
3438 # interlibrary dependencies.
3439 # 'none' -- dependencies not supported.
3440 # `unknown' -- same as none, but documents that we really don't know.
3441 # 'pass_all' -- all dependencies passed with no checks.
3442 # 'test_compile' -- check by making test program.
3443 # 'file_magic [[regex]]' -- check by looking for files in library path
3444 # which responds to the $file_magic_cmd with a given extended regex.
3445 # If you have `file' or equivalent on your system and you're not sure
3446 # whether `pass_all' will *always* work, you probably want this one.
3450 lt_cv_deplibs_check_method
=pass_all
3454 lt_cv_deplibs_check_method
=pass_all
3458 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3459 lt_cv_file_magic_cmd
='/usr/bin/file -L'
3460 lt_cv_file_magic_test_file
=/shlib
/libc.so
3464 # func_win32_libid is a shell function defined in ltmain.sh
3465 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
3466 lt_cv_file_magic_cmd
='func_win32_libid'
3470 # Base MSYS/MinGW do not provide the 'file' command needed by
3471 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3472 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
3473 lt_cv_file_magic_cmd
='$OBJDUMP -f'
3476 darwin
* | rhapsody
*)
3477 lt_cv_deplibs_check_method
=pass_all
3480 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
3481 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
3484 # Not sure whether the presence of OpenBSD here was a mistake.
3485 # Let's accept both of them until this is cleared up.
3486 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3487 lt_cv_file_magic_cmd
=/usr
/bin
/file
3488 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
3492 lt_cv_deplibs_check_method
=pass_all
3497 lt_cv_deplibs_check_method
=pass_all
3500 hpux10.20
* | hpux11
*)
3501 lt_cv_file_magic_cmd
=/usr
/bin
/file
3504 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3505 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
3508 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3509 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
3512 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3513 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
3518 irix5
* | irix6
* | nonstopux
*)
3520 *-32|
*"-32 ") libmagic
=32-bit;;
3521 *-n32|
*"-n32 ") libmagic
=N32
;;
3522 *-64|
*"-64 ") libmagic
=64-bit;;
3523 *) libmagic
=never-match
;;
3525 lt_cv_deplibs_check_method
=pass_all
3528 # This must be Linux ELF.
3530 lt_cv_deplibs_check_method
=pass_all
3534 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
3535 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3537 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3542 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3543 lt_cv_file_magic_cmd
=/usr
/bin
/file
3544 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
3548 lt_cv_deplibs_check_method
=unknown
3552 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3553 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3555 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3559 osf3
* | osf4
* | osf5
*)
3560 lt_cv_deplibs_check_method
=pass_all
3564 lt_cv_deplibs_check_method
=pass_all
3568 lt_cv_deplibs_check_method
=pass_all
3571 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
3572 case $host_vendor in
3574 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]'
3575 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
3578 lt_cv_deplibs_check_method
=pass_all
3581 lt_cv_file_magic_cmd
='/bin/file'
3582 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3585 lt_cv_file_magic_cmd
='/bin/file'
3586 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3587 lt_cv_file_magic_test_file
=/lib
/libc.so
3590 lt_cv_deplibs_check_method
=pass_all
3595 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
* | sysv4
*uw2
*)
3596 lt_cv_deplibs_check_method
=pass_all
3601 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3602 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3603 file_magic_cmd
=$lt_cv_file_magic_cmd
3604 deplibs_check_method
=$lt_cv_deplibs_check_method
3605 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
3610 # If no C compiler was specified, use CC.
3613 # Allow CC to be a program name with arguments.
3617 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3618 if test "${enable_libtool_lock+set}" = set; then
3619 enableval
="$enable_libtool_lock"
3622 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
3624 # Some flags need to be propagated to the compiler or linker for good
3628 # Find out which ABI we are using.
3629 echo 'int i;' > conftest.
$ac_ext
3630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3631 (eval $ac_compile) 2>&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; then
3635 case `/usr/bin/file conftest.$ac_objext` in
3647 # Find out which ABI we are using.
3648 echo '#line 3648 "configure"' > conftest.
$ac_ext
3649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3650 (eval $ac_compile) 2>&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }; then
3654 if test "$lt_cv_prog_gnu_ld" = yes; then
3655 case `/usr/bin/file conftest.$ac_objext` in
3657 LD
="${LD-ld} -melf32bsmip"
3660 LD
="${LD-ld} -melf32bmipn32"
3663 LD
="${LD-ld} -melf64bmip"
3667 case `/usr/bin/file conftest.$ac_objext` in
3683 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
3684 # Find out which ABI we are using.
3685 echo 'int i;' > conftest.
$ac_ext
3686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3687 (eval $ac_compile) 2>&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; then
3691 case "`/usr/bin/file conftest.o`" in
3695 LD
="${LD-ld} -m elf_i386"
3697 ppc64-
*linux
*|powerpc64-
*linux
*)
3698 LD
="${LD-ld} -m elf32ppclinux"
3701 LD
="${LD-ld} -m elf_s390"
3704 LD
="${LD-ld} -m elf32_sparc"
3711 LD
="${LD-ld} -m elf_x86_64"
3713 ppc
*-*linux
*|powerpc
*-*linux
*)
3714 LD
="${LD-ld} -m elf64ppc"
3717 LD
="${LD-ld} -m elf64_s390"
3720 LD
="${LD-ld} -m elf64_sparc"
3730 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3731 SAVE_CFLAGS
="$CFLAGS"
3732 CFLAGS
="$CFLAGS -belf"
3733 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3734 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3735 if test "${lt_cv_cc_needs_belf+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 ac_cpp
='$CPP $CPPFLAGS'
3740 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3744 cat >conftest.
$ac_ext <<_ACEOF
3747 cat confdefs.h
>>conftest.
$ac_ext
3748 cat >>conftest.
$ac_ext <<_ACEOF
3749 /* end confdefs.h. */
3759 rm -f conftest.
$ac_objext conftest
$ac_exeext
3760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3761 (eval $ac_link) 2>conftest.er1
3763 grep -v '^ *+' conftest.er1
>conftest.err
3765 cat conftest.err
>&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } &&
3768 { ac_try
='test -z "$ac_c_werror_flag"
3769 || test ! -s conftest.err'
3770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }; } &&
3775 { ac_try
='test -s conftest$ac_exeext'
3776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }; }; then
3781 lt_cv_cc_needs_belf
=yes
3783 echo "$as_me: failed program was:" >&5
3784 sed 's/^/| /' conftest.
$ac_ext >&5
3786 lt_cv_cc_needs_belf
=no
3788 rm -f conftest.err conftest.
$ac_objext \
3789 conftest
$ac_exeext conftest.
$ac_ext
3791 ac_cpp
='$CPP $CPPFLAGS'
3792 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3797 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3798 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3799 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
3800 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3801 CFLAGS
="$SAVE_CFLAGS"
3807 need_locks
="$enable_libtool_lock"
3811 ac_cpp
='$CPP $CPPFLAGS'
3812 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3813 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3814 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3815 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3816 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3817 # On Suns, sometimes $CPP names a directory.
3818 if test -n "$CPP" && test -d "$CPP"; then
3821 if test -z "$CPP"; then
3822 if test "${ac_cv_prog_CPP+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 # Double quotes because CPP needs to be expanded
3826 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3829 for ac_c_preproc_warn_flag
in '' yes
3831 # Use a header file that comes with gcc, so configuring glibc
3832 # with a fresh cross-compiler works.
3833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3834 # <limits.h> exists even on freestanding compilers.
3835 # On the NeXT, cc -E runs the code through the compiler's parser,
3836 # not just through cpp. "Syntax error" is here to catch this case.
3837 cat >conftest.
$ac_ext <<_ACEOF
3840 cat confdefs.h
>>conftest.
$ac_ext
3841 cat >>conftest.
$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3844 # include <limits.h>
3846 # include <assert.h>
3850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3851 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3853 grep -v '^ *+' conftest.er1
>conftest.err
3855 cat conftest.err
>&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } >/dev
/null
; then
3858 if test -s conftest.err
; then
3859 ac_cpp_err
=$ac_c_preproc_warn_flag
3860 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3867 if test -z "$ac_cpp_err"; then
3870 echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.
$ac_ext >&5
3873 # Broken: fails on valid input.
3876 rm -f conftest.err conftest.
$ac_ext
3878 # OK, works on sane cases. Now check whether non-existent headers
3879 # can be detected and how.
3880 cat >conftest.
$ac_ext <<_ACEOF
3883 cat confdefs.h
>>conftest.
$ac_ext
3884 cat >>conftest.
$ac_ext <<_ACEOF
3885 /* end confdefs.h. */
3886 #include <ac_nonexistent.h>
3888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3889 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3891 grep -v '^ *+' conftest.er1
>conftest.err
3893 cat conftest.err
>&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } >/dev
/null
; then
3896 if test -s conftest.err
; then
3897 ac_cpp_err
=$ac_c_preproc_warn_flag
3898 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3905 if test -z "$ac_cpp_err"; then
3906 # Broken: success on invalid input.
3909 echo "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.
$ac_ext >&5
3912 # Passes both tests.
3916 rm -f conftest.err conftest.
$ac_ext
3919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3920 rm -f conftest.err conftest.
$ac_ext
3921 if $ac_preproc_ok; then
3933 echo "$as_me:$LINENO: result: $CPP" >&5
3934 echo "${ECHO_T}$CPP" >&6
3936 for ac_c_preproc_warn_flag
in '' yes
3938 # Use a header file that comes with gcc, so configuring glibc
3939 # with a fresh cross-compiler works.
3940 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3941 # <limits.h> exists even on freestanding compilers.
3942 # On the NeXT, cc -E runs the code through the compiler's parser,
3943 # not just through cpp. "Syntax error" is here to catch this case.
3944 cat >conftest.
$ac_ext <<_ACEOF
3947 cat confdefs.h
>>conftest.
$ac_ext
3948 cat >>conftest.
$ac_ext <<_ACEOF
3949 /* end confdefs.h. */
3951 # include <limits.h>
3953 # include <assert.h>
3957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3958 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3960 grep -v '^ *+' conftest.er1
>conftest.err
3962 cat conftest.err
>&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } >/dev
/null
; then
3965 if test -s conftest.err
; then
3966 ac_cpp_err
=$ac_c_preproc_warn_flag
3967 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3974 if test -z "$ac_cpp_err"; then
3977 echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.
$ac_ext >&5
3980 # Broken: fails on valid input.
3983 rm -f conftest.err conftest.
$ac_ext
3985 # OK, works on sane cases. Now check whether non-existent headers
3986 # can be detected and how.
3987 cat >conftest.
$ac_ext <<_ACEOF
3990 cat confdefs.h
>>conftest.
$ac_ext
3991 cat >>conftest.
$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3993 #include <ac_nonexistent.h>
3995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3996 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3998 grep -v '^ *+' conftest.er1
>conftest.err
4000 cat conftest.err
>&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); } >/dev
/null
; then
4003 if test -s conftest.err
; then
4004 ac_cpp_err
=$ac_c_preproc_warn_flag
4005 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4012 if test -z "$ac_cpp_err"; then
4013 # Broken: success on invalid input.
4016 echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.
$ac_ext >&5
4019 # Passes both tests.
4023 rm -f conftest.err conftest.
$ac_ext
4026 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4027 rm -f conftest.err conftest.
$ac_ext
4028 if $ac_preproc_ok; then
4031 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4032 See \`config.log' for more details." >&5
4033 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4034 See \`config.log' for more details." >&2;}
4035 { (exit 1); exit 1; }; }
4039 ac_cpp
='$CPP $CPPFLAGS'
4040 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4045 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4046 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4047 if test "${ac_cv_header_stdc+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 cat >conftest.
$ac_ext <<_ACEOF
4053 cat confdefs.h
>>conftest.
$ac_ext
4054 cat >>conftest.
$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4069 rm -f conftest.
$ac_objext
4070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4071 (eval $ac_compile) 2>conftest.er1
4073 grep -v '^ *+' conftest.er1
>conftest.err
4075 cat conftest.err
>&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } &&
4078 { ac_try
='test -z "$ac_c_werror_flag"
4079 || test ! -s conftest.err'
4080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; } &&
4085 { ac_try
='test -s conftest.$ac_objext'
4086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; }; then
4091 ac_cv_header_stdc
=yes
4093 echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.
$ac_ext >&5
4096 ac_cv_header_stdc
=no
4098 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4100 if test $ac_cv_header_stdc = yes; then
4101 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4102 cat >conftest.
$ac_ext <<_ACEOF
4105 cat confdefs.h
>>conftest.
$ac_ext
4106 cat >>conftest.
$ac_ext <<_ACEOF
4107 /* end confdefs.h. */
4111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4112 $EGREP "memchr" >/dev
/null
2>&1; then
4115 ac_cv_header_stdc
=no
4121 if test $ac_cv_header_stdc = yes; then
4122 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4123 cat >conftest.
$ac_ext <<_ACEOF
4126 cat confdefs.h
>>conftest.
$ac_ext
4127 cat >>conftest.
$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4133 $EGREP "free" >/dev
/null
2>&1; then
4136 ac_cv_header_stdc
=no
4142 if test $ac_cv_header_stdc = yes; then
4143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4144 if test "$cross_compiling" = yes; then
4147 cat >conftest.
$ac_ext <<_ACEOF
4150 cat confdefs.h
>>conftest.
$ac_ext
4151 cat >>conftest.
$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4154 #if ((' ' & 0x0FF) == 0x020)
4155 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4156 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4158 # define ISLOWER(c) \
4159 (('a' <= (c) && (c) <= 'i') \
4160 || ('j' <= (c) && (c) <= 'r') \
4161 || ('s' <= (c) && (c) <= 'z'))
4162 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4165 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4170 for (i = 0; i < 256; i++)
4171 if (XOR (islower (i), ISLOWER (i))
4172 || toupper (i) != TOUPPER (i))
4177 rm -f conftest
$ac_exeext
4178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4179 (eval $ac_link) 2>&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; }; then
4190 echo "$as_me: program exited with status $ac_status" >&5
4191 echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.
$ac_ext >&5
4195 ac_cv_header_stdc
=no
4197 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4201 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4202 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4203 if test $ac_cv_header_stdc = yes; then
4205 cat >>confdefs.h
<<\_ACEOF
4206 #define STDC_HEADERS 1
4211 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4221 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4222 inttypes.h stdint.h unistd.h
4224 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4225 echo "$as_me:$LINENO: checking for $ac_header" >&5
4226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 cat >conftest.
$ac_ext <<_ACEOF
4233 cat confdefs.h
>>conftest.
$ac_ext
4234 cat >>conftest.
$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4236 $ac_includes_default
4238 #include <$ac_header>
4240 rm -f conftest.
$ac_objext
4241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4242 (eval $ac_compile) 2>conftest.er1
4244 grep -v '^ *+' conftest.er1
>conftest.err
4246 cat conftest.err
>&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } &&
4249 { ac_try
='test -z "$ac_c_werror_flag"
4250 || test ! -s conftest.err'
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; } &&
4256 { ac_try
='test -s conftest.$ac_objext'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; }; then
4262 eval "$as_ac_Header=yes"
4264 echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.
$ac_ext >&5
4267 eval "$as_ac_Header=no"
4269 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4272 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4274 cat >>confdefs.h
<<_ACEOF
4275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4284 for ac_header
in dlfcn.h
4286 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4288 echo "$as_me:$LINENO: checking for $ac_header" >&5
4289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4296 # Is the header compilable?
4297 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4298 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4299 cat >conftest.
$ac_ext <<_ACEOF
4302 cat confdefs.h
>>conftest.
$ac_ext
4303 cat >>conftest.
$ac_ext <<_ACEOF
4304 /* end confdefs.h. */
4305 $ac_includes_default
4306 #include <$ac_header>
4308 rm -f conftest.
$ac_objext
4309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4310 (eval $ac_compile) 2>conftest.er1
4312 grep -v '^ *+' conftest.er1
>conftest.err
4314 cat conftest.err
>&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); } &&
4317 { ac_try
='test -z "$ac_c_werror_flag"
4318 || test ! -s conftest.err'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; } &&
4324 { ac_try
='test -s conftest.$ac_objext'
4325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); }; }; then
4330 ac_header_compiler
=yes
4332 echo "$as_me: failed program was:" >&5
4333 sed 's/^/| /' conftest.
$ac_ext >&5
4335 ac_header_compiler
=no
4337 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4338 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4339 echo "${ECHO_T}$ac_header_compiler" >&6
4341 # Is the header present?
4342 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4344 cat >conftest.
$ac_ext <<_ACEOF
4347 cat confdefs.h
>>conftest.
$ac_ext
4348 cat >>conftest.
$ac_ext <<_ACEOF
4349 /* end confdefs.h. */
4350 #include <$ac_header>
4352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4353 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4355 grep -v '^ *+' conftest.er1
>conftest.err
4357 cat conftest.err
>&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } >/dev
/null
; then
4360 if test -s conftest.err
; then
4361 ac_cpp_err
=$ac_c_preproc_warn_flag
4362 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4369 if test -z "$ac_cpp_err"; then
4370 ac_header_preproc
=yes
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.
$ac_ext >&5
4375 ac_header_preproc
=no
4377 rm -f conftest.err conftest.
$ac_ext
4378 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4379 echo "${ECHO_T}$ac_header_preproc" >&6
4381 # So? What about this header?
4382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4387 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4388 ac_header_preproc
=yes
4391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4394 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4395 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4396 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4397 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4398 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4401 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4402 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4405 ## ------------------------------------------ ##
4406 ## Report this to the AC_PACKAGE_NAME lists. ##
4407 ## ------------------------------------------ ##
4410 sed "s/^/$as_me: WARNING: /" >&2
4413 echo "$as_me:$LINENO: checking for $ac_header" >&5
4414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 eval "$as_ac_Header=\$ac_header_preproc"
4420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4425 cat >>confdefs.h
<<_ACEOF
4426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4434 ac_cpp
='$CXXCPP $CPPFLAGS'
4435 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4436 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4437 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4438 if test -n "$ac_tool_prefix"; then
4439 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
4441 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4442 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4443 echo "$as_me:$LINENO: checking for $ac_word" >&5
4444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4445 if test "${ac_cv_prog_CXX+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 if test -n "$CXX"; then
4449 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4451 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4455 test -z "$as_dir" && as_dir
=.
4456 for ac_exec_ext
in '' $ac_executable_extensions; do
4457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4458 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4468 if test -n "$CXX"; then
4469 echo "$as_me:$LINENO: result: $CXX" >&5
4470 echo "${ECHO_T}$CXX" >&6
4472 echo "$as_me:$LINENO: result: no" >&5
4473 echo "${ECHO_T}no" >&6
4476 test -n "$CXX" && break
4479 if test -z "$CXX"; then
4481 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
4483 # Extract the first word of "$ac_prog", so it can be a program name with args.
4484 set dummy
$ac_prog; ac_word
=$2
4485 echo "$as_me:$LINENO: checking for $ac_word" >&5
4486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4487 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4488 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 if test -n "$ac_ct_CXX"; then
4491 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4493 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4497 test -z "$as_dir" && as_dir
=.
4498 for ac_exec_ext
in '' $ac_executable_extensions; do
4499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4500 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4510 if test -n "$ac_ct_CXX"; then
4511 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4512 echo "${ECHO_T}$ac_ct_CXX" >&6
4514 echo "$as_me:$LINENO: result: no" >&5
4515 echo "${ECHO_T}no" >&6
4518 test -n "$ac_ct_CXX" && break
4520 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
4526 # Provide some information about the compiler.
4527 echo "$as_me:$LINENO:" \
4528 "checking for C++ compiler version" >&5
4529 ac_compiler
=`set X $ac_compile; echo $2`
4530 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4531 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }
4535 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4536 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }
4540 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4541 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }
4546 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4547 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4548 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4551 cat >conftest.
$ac_ext <<_ACEOF
4554 cat confdefs.h
>>conftest.
$ac_ext
4555 cat >>conftest.
$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4569 rm -f conftest.
$ac_objext
4570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4571 (eval $ac_compile) 2>conftest.er1
4573 grep -v '^ *+' conftest.er1
>conftest.err
4575 cat conftest.err
>&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } &&
4578 { ac_try
='test -z "$ac_cxx_werror_flag"
4579 || test ! -s conftest.err'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; } &&
4585 { ac_try
='test -s conftest.$ac_objext'
4586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); }; }; then
4593 echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.
$ac_ext >&5
4598 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4599 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4602 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4603 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4604 GXX
=`test $ac_compiler_gnu = yes && echo yes`
4605 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4606 ac_save_CXXFLAGS
=$CXXFLAGS
4608 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4609 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4610 if test "${ac_cv_prog_cxx_g+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 cat >conftest.
$ac_ext <<_ACEOF
4616 cat confdefs.h
>>conftest.
$ac_ext
4617 cat >>conftest.
$ac_ext <<_ACEOF
4618 /* end confdefs.h. */
4628 rm -f conftest.
$ac_objext
4629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4630 (eval $ac_compile) 2>conftest.er1
4632 grep -v '^ *+' conftest.er1
>conftest.err
4634 cat conftest.err
>&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } &&
4637 { ac_try
='test -z "$ac_cxx_werror_flag"
4638 || test ! -s conftest.err'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; } &&
4644 { ac_try
='test -s conftest.$ac_objext'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; }; then
4650 ac_cv_prog_cxx_g
=yes
4652 echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.
$ac_ext >&5
4657 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4659 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4660 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4661 if test "$ac_test_CXXFLAGS" = set; then
4662 CXXFLAGS
=$ac_save_CXXFLAGS
4663 elif test $ac_cv_prog_cxx_g = yes; then
4664 if test "$GXX" = yes; then
4670 if test "$GXX" = yes; then
4676 for ac_declaration
in \
4678 'extern "C" void std::exit (int) throw (); using std::exit;' \
4679 'extern "C" void std::exit (int); using std::exit;' \
4680 'extern "C" void exit (int) throw ();' \
4681 'extern "C" void exit (int);' \
4684 cat >conftest.
$ac_ext <<_ACEOF
4687 cat confdefs.h
>>conftest.
$ac_ext
4688 cat >>conftest.
$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4700 rm -f conftest.
$ac_objext
4701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4702 (eval $ac_compile) 2>conftest.er1
4704 grep -v '^ *+' conftest.er1
>conftest.err
4706 cat conftest.err
>&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } &&
4709 { ac_try
='test -z "$ac_cxx_werror_flag"
4710 || test ! -s conftest.err'
4711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); }; } &&
4716 { ac_try
='test -s conftest.$ac_objext'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; }; then
4724 echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.
$ac_ext >&5
4729 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4730 cat >conftest.
$ac_ext <<_ACEOF
4733 cat confdefs.h
>>conftest.
$ac_ext
4734 cat >>conftest.
$ac_ext <<_ACEOF
4735 /* end confdefs.h. */
4745 rm -f conftest.
$ac_objext
4746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4747 (eval $ac_compile) 2>conftest.er1
4749 grep -v '^ *+' conftest.er1
>conftest.err
4751 cat conftest.err
>&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); } &&
4754 { ac_try
='test -z "$ac_cxx_werror_flag"
4755 || test ! -s conftest.err'
4756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }; } &&
4761 { ac_try
='test -s conftest.$ac_objext'
4762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }; }; then
4769 echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.
$ac_ext >&5
4773 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4776 if test -n "$ac_declaration"; then
4777 echo '#ifdef __cplusplus' >>confdefs.h
4778 echo $ac_declaration >>confdefs.h
4779 echo '#endif' >>confdefs.h
4783 ac_cpp
='$CXXCPP $CPPFLAGS'
4784 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4785 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4788 depcc
="$CXX" am_compiler_list
=
4790 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4791 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4792 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4796 # We make a subdir and do the tests there. Otherwise we can end up
4797 # making bogus files that we don't know about and never remove. For
4798 # instance it was reported that on HP-UX the gcc test will end up
4799 # making a dummy file named `D' -- because `-MD' means `put the output
4802 # Copy depcomp to subdir because otherwise we won't find it if we're
4803 # using a relative directory.
4804 cp "$am_depcomp" conftest.dir
4806 # We will build objects and dependencies in a subdirectory because
4807 # it helps to detect inapplicable dependency modes. For instance
4808 # both Tru64's cc and ICC support -MD to output dependencies as a
4809 # side effect of compilation, but ICC will put the dependencies in
4810 # the current directory while Tru64 will put them in the object
4814 am_cv_CXX_dependencies_compiler_type
=none
4815 if test "$am_compiler_list" = ""; then
4816 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4818 for depmode
in $am_compiler_list; do
4819 # Setup a source with many dependencies, because some compilers
4820 # like to wrap large dependency lists on column 80 (with \), and
4821 # we should not choose a depcomp mode which is confused by this.
4823 # We need to recreate these files for each test, as the compiler may
4824 # overwrite some of them when testing with obscure command lines.
4825 # This happens at least with the AIX C compiler.
4827 for i
in 1 2 3 4 5 6; do
4828 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4829 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4830 # Solaris 8's {/usr,}/bin/sh.
4831 touch sub
/conftst
$i.h
4833 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4837 # after this tag, mechanisms are not by side-effect, so they'll
4838 # only be used when explicitly requested
4839 if test "x$enable_dependency_tracking" = xyes
; then
4847 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4848 # mode. It turns out that the SunPro C++ compiler does not properly
4849 # handle `-M -o', and we need to detect this.
4850 if depmode
=$depmode \
4851 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
4852 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4853 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
4854 >/dev
/null
2>conftest.err
&&
4855 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4856 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
4857 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4858 # icc doesn't choke on unknown options, it will just issue warnings
4859 # or remarks (even with -Werror). So we grep stderr for any message
4860 # that says an option was ignored or not supported.
4861 # When given -MP, icc 7.0 and 7.1 complain thusly:
4862 # icc: Command line warning: ignoring option '-M'; no argument required
4863 # The diagnosis changed in icc 8.0:
4864 # icc: Command line remark: option '-MP' not supported
4865 if (grep 'ignoring option' conftest.err ||
4866 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4867 am_cv_CXX_dependencies_compiler_type
=$depmode
4876 am_cv_CXX_dependencies_compiler_type
=none
4880 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4881 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4882 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
4887 test "x$enable_dependency_tracking" != xno \
4888 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
4889 am__fastdepCXX_TRUE
=
4890 am__fastdepCXX_FALSE
='#'
4892 am__fastdepCXX_TRUE
='#'
4893 am__fastdepCXX_FALSE
=
4899 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4900 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4901 (test "X$CXX" != "Xg++"))) ; then
4903 ac_cpp
='$CXXCPP $CPPFLAGS'
4904 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4905 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4906 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4907 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4908 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4909 if test -z "$CXXCPP"; then
4910 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4913 # Double quotes because CXXCPP needs to be expanded
4914 for CXXCPP
in "$CXX -E" "/lib/cpp"
4917 for ac_cxx_preproc_warn_flag
in '' yes
4919 # Use a header file that comes with gcc, so configuring glibc
4920 # with a fresh cross-compiler works.
4921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4922 # <limits.h> exists even on freestanding compilers.
4923 # On the NeXT, cc -E runs the code through the compiler's parser,
4924 # not just through cpp. "Syntax error" is here to catch this case.
4925 cat >conftest.
$ac_ext <<_ACEOF
4928 cat confdefs.h
>>conftest.
$ac_ext
4929 cat >>conftest.
$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4932 # include <limits.h>
4934 # include <assert.h>
4938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4939 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4941 grep -v '^ *+' conftest.er1
>conftest.err
4943 cat conftest.err
>&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } >/dev
/null
; then
4946 if test -s conftest.err
; then
4947 ac_cpp_err
=$ac_cxx_preproc_warn_flag
4948 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
4955 if test -z "$ac_cpp_err"; then
4958 echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.
$ac_ext >&5
4961 # Broken: fails on valid input.
4964 rm -f conftest.err conftest.
$ac_ext
4966 # OK, works on sane cases. Now check whether non-existent headers
4967 # can be detected and how.
4968 cat >conftest.
$ac_ext <<_ACEOF
4971 cat confdefs.h
>>conftest.
$ac_ext
4972 cat >>conftest.
$ac_ext <<_ACEOF
4973 /* end confdefs.h. */
4974 #include <ac_nonexistent.h>
4976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4977 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4979 grep -v '^ *+' conftest.er1
>conftest.err
4981 cat conftest.err
>&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } >/dev
/null
; then
4984 if test -s conftest.err
; then
4985 ac_cpp_err
=$ac_cxx_preproc_warn_flag
4986 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
4993 if test -z "$ac_cpp_err"; then
4994 # Broken: success on invalid input.
4997 echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.
$ac_ext >&5
5000 # Passes both tests.
5004 rm -f conftest.err conftest.
$ac_ext
5007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5008 rm -f conftest.err conftest.
$ac_ext
5009 if $ac_preproc_ok; then
5014 ac_cv_prog_CXXCPP
=$CXXCPP
5017 CXXCPP
=$ac_cv_prog_CXXCPP
5019 ac_cv_prog_CXXCPP
=$CXXCPP
5021 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5022 echo "${ECHO_T}$CXXCPP" >&6
5024 for ac_cxx_preproc_warn_flag
in '' yes
5026 # Use a header file that comes with gcc, so configuring glibc
5027 # with a fresh cross-compiler works.
5028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5029 # <limits.h> exists even on freestanding compilers.
5030 # On the NeXT, cc -E runs the code through the compiler's parser,
5031 # not just through cpp. "Syntax error" is here to catch this case.
5032 cat >conftest.
$ac_ext <<_ACEOF
5035 cat confdefs.h
>>conftest.
$ac_ext
5036 cat >>conftest.
$ac_ext <<_ACEOF
5037 /* end confdefs.h. */
5039 # include <limits.h>
5041 # include <assert.h>
5045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5046 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5048 grep -v '^ *+' conftest.er1
>conftest.err
5050 cat conftest.err
>&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); } >/dev
/null
; then
5053 if test -s conftest.err
; then
5054 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5055 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5062 if test -z "$ac_cpp_err"; then
5065 echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.
$ac_ext >&5
5068 # Broken: fails on valid input.
5071 rm -f conftest.err conftest.
$ac_ext
5073 # OK, works on sane cases. Now check whether non-existent headers
5074 # can be detected and how.
5075 cat >conftest.
$ac_ext <<_ACEOF
5078 cat confdefs.h
>>conftest.
$ac_ext
5079 cat >>conftest.
$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5081 #include <ac_nonexistent.h>
5083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5084 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5086 grep -v '^ *+' conftest.er1
>conftest.err
5088 cat conftest.err
>&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); } >/dev
/null
; then
5091 if test -s conftest.err
; then
5092 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5093 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5100 if test -z "$ac_cpp_err"; then
5101 # Broken: success on invalid input.
5104 echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.
$ac_ext >&5
5107 # Passes both tests.
5111 rm -f conftest.err conftest.
$ac_ext
5114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5115 rm -f conftest.err conftest.
$ac_ext
5116 if $ac_preproc_ok; then
5119 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5120 See \`config.log' for more details." >&5
5121 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5122 See \`config.log' for more details." >&2;}
5123 { (exit 1); exit 1; }; }
5127 ac_cpp
='$CXXCPP $CPPFLAGS'
5128 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5129 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5130 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5136 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5137 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5138 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
5139 if test -n "$ac_tool_prefix"; then
5140 for ac_prog
in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5142 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5143 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5144 echo "$as_me:$LINENO: checking for $ac_word" >&5
5145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5146 if test "${ac_cv_prog_F77+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 if test -n "$F77"; then
5150 ac_cv_prog_F77
="$F77" # Let the user override the test.
5152 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5156 test -z "$as_dir" && as_dir
=.
5157 for ac_exec_ext
in '' $ac_executable_extensions; do
5158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5159 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
5160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 if test -n "$F77"; then
5170 echo "$as_me:$LINENO: result: $F77" >&5
5171 echo "${ECHO_T}$F77" >&6
5173 echo "$as_me:$LINENO: result: no" >&5
5174 echo "${ECHO_T}no" >&6
5177 test -n "$F77" && break
5180 if test -z "$F77"; then
5182 for ac_prog
in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5184 # Extract the first word of "$ac_prog", so it can be a program name with args.
5185 set dummy
$ac_prog; ac_word
=$2
5186 echo "$as_me:$LINENO: checking for $ac_word" >&5
5187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5188 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5191 if test -n "$ac_ct_F77"; then
5192 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
5194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5198 test -z "$as_dir" && as_dir
=.
5199 for ac_exec_ext
in '' $ac_executable_extensions; do
5200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5201 ac_cv_prog_ac_ct_F77
="$ac_prog"
5202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
5211 if test -n "$ac_ct_F77"; then
5212 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5213 echo "${ECHO_T}$ac_ct_F77" >&6
5215 echo "$as_me:$LINENO: result: no" >&5
5216 echo "${ECHO_T}no" >&6
5219 test -n "$ac_ct_F77" && break
5226 # Provide some information about the compiler.
5227 echo "$as_me:5227:" \
5228 "checking for Fortran 77 compiler version" >&5
5229 ac_compiler
=`set X $ac_compile; echo $2`
5230 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5231 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }
5235 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5236 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }
5240 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5241 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }
5247 # If we don't use `.F' as extension, the preprocessor is not run on the
5248 # input file. (Note that this only needs to work for GNU compilers.)
5251 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5252 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5253 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 cat >conftest.
$ac_ext <<_ACEOF
5264 rm -f conftest.
$ac_objext
5265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5266 (eval $ac_compile) 2>conftest.er1
5268 grep -v '^ *+' conftest.er1
>conftest.err
5270 cat conftest.err
>&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); } &&
5273 { ac_try
='test -z "$ac_f77_werror_flag"
5274 || test ! -s conftest.err'
5275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }; } &&
5280 { ac_try
='test -s conftest.$ac_objext'
5281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }; }; then
5288 echo "$as_me: failed program was:" >&5
5289 sed 's/^/| /' conftest.
$ac_ext >&5
5293 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5294 ac_cv_f77_compiler_gnu
=$ac_compiler_gnu
5297 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5298 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5300 ac_test_FFLAGS
=${FFLAGS+set}
5301 ac_save_FFLAGS
=$FFLAGS
5303 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5304 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5305 if test "${ac_cv_prog_f77_g+set}" = set; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5309 cat >conftest.
$ac_ext <<_ACEOF
5314 rm -f conftest.
$ac_objext
5315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5316 (eval $ac_compile) 2>conftest.er1
5318 grep -v '^ *+' conftest.er1
>conftest.err
5320 cat conftest.err
>&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } &&
5323 { ac_try
='test -z "$ac_f77_werror_flag"
5324 || test ! -s conftest.err'
5325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }; } &&
5330 { ac_try
='test -s conftest.$ac_objext'
5331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); }; }; then
5336 ac_cv_prog_f77_g
=yes
5338 echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.
$ac_ext >&5
5343 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5346 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5347 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5348 if test "$ac_test_FFLAGS" = set; then
5349 FFLAGS
=$ac_save_FFLAGS
5350 elif test $ac_cv_prog_f77_g = yes; then
5351 if test "x$ac_cv_f77_compiler_gnu" = xyes
; then
5357 if test "x$ac_cv_f77_compiler_gnu" = xyes
; then
5364 G77
=`test $ac_compiler_gnu = yes && echo yes`
5366 ac_cpp
='$CPP $CPPFLAGS'
5367 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5368 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5369 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5373 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5375 # find the maximum length of command line arguments
5376 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5377 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5378 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 # On DJGPP, this test can blow up pretty badly due to problems in libc
5387 # (any single argument exceeding 2000 bytes causes a buffer overrun
5388 # during glob expansion). Even if it were fixed, the result of this
5389 # check would be larger than it should be.
5390 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5394 # Under GNU Hurd, this test is not required because there is
5395 # no limit to the length of command line arguments.
5396 # Libtool will interpret -1 as no limit whatsoever
5397 lt_cv_sys_max_cmd_len
=-1;
5401 # On Win9x/ME, this test blows up -- it succeeds, but takes
5402 # about 5 minutes as the teststring grows exponentially.
5403 # Worse, since 9x/ME are not pre-emptively multitasking,
5404 # you end up with a "frozen" computer, even though with patience
5405 # the test eventually succeeds (with a max line length of 256k).
5406 # Instead, let's just punt: use the minimum linelength reported by
5407 # all of the supported platforms: 8192 (on NT/2K/XP).
5408 lt_cv_sys_max_cmd_len
=8192;
5412 # On AmigaOS with pdksh, this test takes hours, literally.
5413 # So we just punt and use a minimum line length of 8192.
5414 lt_cv_sys_max_cmd_len
=8192;
5417 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5418 # This has been around since 386BSD, at least. Likely further.
5419 if test -x /sbin
/sysctl
; then
5420 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5421 elif test -x /usr
/sbin
/sysctl
; then
5422 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5424 lt_cv_sys_max_cmd_len
=65536 # usable default for *BSD
5426 # And add a safety zone
5427 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5430 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5431 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5432 # nice to cause kernel panics so lets avoid the loop below.
5433 # First set a reasonable default.
5434 lt_cv_sys_max_cmd_len
=16384
5436 if test -x /sbin
/sysconfig
; then
5437 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5438 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5443 # If test is not a shell built-in, we'll probably end up computing a
5444 # maximum length that is only half of the actual maximum length, but
5446 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5447 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5448 = "XX$teststring") >/dev
/null
2>&1 &&
5449 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
5450 lt_cv_sys_max_cmd_len
=$new_result &&
5451 test $i != 17 # 1/2 MB should be enough
5454 teststring
=$teststring$teststring
5457 # Add a significant safety factor because C++ compilers can tack on massive
5458 # amounts of additional arguments before passing them to the linker.
5459 # It appears as though 1/2 is a usable value.
5460 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5466 if test -n $lt_cv_sys_max_cmd_len ; then
5467 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5468 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5470 echo "$as_me:$LINENO: result: none" >&5
5471 echo "${ECHO_T}none" >&6
5477 # Check for command to grab the raw symbol name followed by C symbol from nm.
5478 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5479 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5480 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 # These are sane defaults that work on at least a few old systems.
5485 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5487 # Character class describing NM global symbol codes.
5488 symcode
='[BCDEGRST]'
5490 # Regexp to match symbols that can be accessed directly from C.
5491 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
5493 # Transform an extracted symbol line into a proper C declaration
5494 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5496 # Transform an extracted symbol line into symbol name and symbol address
5497 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'"
5499 # Define system-specific variables.
5504 cygwin
* | mingw
* | pw32
*)
5505 symcode
='[ABCDGISTW]'
5507 hpux
*) # Its linker distinguishes data from code symbols
5508 if test "$host_cpu" = ia64
; then
5509 symcode
='[ABCDEGRST]'
5511 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5512 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'"
5515 if test "$host_cpu" = ia64
; then
5516 symcode
='[ABCDGIRSTW]'
5517 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5518 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'"
5522 symcode
='[BCDEGRST]'
5525 symcode
='[BCDEGQRST]'
5535 # Handle CRLF in mingw tool chain
5539 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5543 # If we're using GNU nm, then use its standard symbol codes.
5544 case `$NM -V 2>&1` in
5545 *GNU
* |
*'with BFD'*)
5546 symcode
='[ABCDGIRSTW]' ;;
5549 # Try without a prefix undercore, then with it.
5550 for ac_symprfx
in "" "_"; do
5552 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5553 symxfrm
="\\1 $ac_symprfx\\2 \\2"
5555 # Write the raw and C identifiers.
5556 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5558 # Check to see that the pipe works correctly.
5562 cat > conftest.
$ac_ext <<EOF
5567 void nm_test_func(){}
5571 int main(){nm_test_var='a';nm_test_func();return(0);}
5574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5575 (eval $ac_compile) 2>&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }; then
5579 # Now try to grab the symbols.
5581 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5582 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } && test -s "$nlist"; then
5586 # Try sorting and uniquifying the output.
5587 if sort "$nlist" |
uniq > "$nlist"T
; then
5588 mv -f "$nlist"T
"$nlist"
5593 # Make sure that we snagged all the symbols we need.
5594 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
5595 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
5596 cat <<EOF > conftest.$ac_ext
5602 # Now generate the symbol file.
5603 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5605 cat <<EOF >> conftest.$ac_ext
5606 #if defined (__STDC__) && __STDC__
5607 # define lt_ptr_t void *
5609 # define lt_ptr_t char *
5613 /* The mapping between symbol names and symbols. */
5618 lt_preloaded_symbols[] =
5621 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
5622 cat <<\EOF
>> conftest.
$ac_ext
5630 # Now try linking the two files.
5631 mv conftest.
$ac_objext conftstm.
$ac_objext
5632 lt_save_LIBS
="$LIBS"
5633 lt_save_CFLAGS
="$CFLAGS"
5634 LIBS
="conftstm.$ac_objext"
5635 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5637 (eval $ac_link) 2>&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
5643 LIBS
="$lt_save_LIBS"
5644 CFLAGS
="$lt_save_CFLAGS"
5646 echo "cannot find nm_test_func in $nlist" >&5
5649 echo "cannot find nm_test_var in $nlist" >&5
5652 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5655 echo "$progname: failed program was:" >&5
5656 cat conftest.
$ac_ext >&5
5658 rm -f conftest
* conftst
*
5660 # Do not use the global_symbol_pipe unless it works.
5661 if test "$pipe_works" = yes; then
5664 lt_cv_sys_global_symbol_pipe
=
5670 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5671 lt_cv_sys_global_symbol_to_cdecl
=
5673 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5674 echo "$as_me:$LINENO: result: failed" >&5
5675 echo "${ECHO_T}failed" >&6
5677 echo "$as_me:$LINENO: result: ok" >&5
5678 echo "${ECHO_T}ok" >&6
5681 echo "$as_me:$LINENO: checking for objdir" >&5
5682 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5683 if test "${lt_cv_objdir+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5686 rm -f .libs
2>/dev
/null
5687 mkdir .libs
2>/dev
/null
5688 if test -d .libs
; then
5691 # MS-DOS does not allow filenames that begin with a dot.
5694 rmdir .libs
2>/dev
/null
5696 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5697 echo "${ECHO_T}$lt_cv_objdir" >&6
5698 objdir
=$lt_cv_objdir
5706 # AIX sometimes has problems with the GCC collect2 program. For some
5707 # reason, if we set the COLLECT_NAMES environment variable, the problems
5708 # vanish in a puff of smoke.
5709 if test "X${COLLECT_NAMES+set}" != Xset
; then
5711 export COLLECT_NAMES
5716 # Sed substitution that helps us do robust quoting. It backslashifies
5717 # metacharacters that are still active within double-quoted strings.
5718 Xsed
='sed -e s/^X//'
5719 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
5721 # Same as above, but do not quote variable references.
5722 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
5724 # Sed substitution to delay expansion of an escaped shell variable in a
5725 # double_quote_subst'ed string.
5726 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5728 # Sed substitution to avoid accidental globbing in evaled expressions
5729 no_glob_subst
='s/\*/\\\*/g'
5735 default_ofile
=libtool
5736 can_build_shared
=yes
5738 # All known linkers require a `.a' archive for static linking (except M$VC,
5739 # which needs '.lib').
5741 ltmain
="$ac_aux_dir/ltmain.sh"
5742 ofile
="$default_ofile"
5743 with_gnu_ld
="$lt_cv_prog_gnu_ld"
5745 if test -n "$ac_tool_prefix"; then
5746 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5747 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5748 echo "$as_me:$LINENO: checking for $ac_word" >&5
5749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5750 if test "${ac_cv_prog_AR+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 if test -n "$AR"; then
5754 ac_cv_prog_AR
="$AR" # Let the user override the test.
5756 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5760 test -z "$as_dir" && as_dir
=.
5761 for ac_exec_ext
in '' $ac_executable_extensions; do
5762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5763 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5773 if test -n "$AR"; then
5774 echo "$as_me:$LINENO: result: $AR" >&5
5775 echo "${ECHO_T}$AR" >&6
5777 echo "$as_me:$LINENO: result: no" >&5
5778 echo "${ECHO_T}no" >&6
5782 if test -z "$ac_cv_prog_AR"; then
5784 # Extract the first word of "ar", so it can be a program name with args.
5785 set dummy
ar; ac_word
=$2
5786 echo "$as_me:$LINENO: checking for $ac_word" >&5
5787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5788 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 if test -n "$ac_ct_AR"; then
5792 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5794 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5798 test -z "$as_dir" && as_dir
=.
5799 for ac_exec_ext
in '' $ac_executable_extensions; do
5800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5801 ac_cv_prog_ac_ct_AR
="ar"
5802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR
="false"
5811 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5812 if test -n "$ac_ct_AR"; then
5813 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5814 echo "${ECHO_T}$ac_ct_AR" >&6
5816 echo "$as_me:$LINENO: result: no" >&5
5817 echo "${ECHO_T}no" >&6
5825 if test -n "$ac_tool_prefix"; then
5826 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5827 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5828 echo "$as_me:$LINENO: checking for $ac_word" >&5
5829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5830 if test "${ac_cv_prog_RANLIB+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5833 if test -n "$RANLIB"; then
5834 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5836 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5840 test -z "$as_dir" && as_dir
=.
5841 for ac_exec_ext
in '' $ac_executable_extensions; do
5842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5843 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 RANLIB
=$ac_cv_prog_RANLIB
5853 if test -n "$RANLIB"; then
5854 echo "$as_me:$LINENO: result: $RANLIB" >&5
5855 echo "${ECHO_T}$RANLIB" >&6
5857 echo "$as_me:$LINENO: result: no" >&5
5858 echo "${ECHO_T}no" >&6
5862 if test -z "$ac_cv_prog_RANLIB"; then
5863 ac_ct_RANLIB
=$RANLIB
5864 # Extract the first word of "ranlib", so it can be a program name with args.
5865 set dummy ranlib
; ac_word
=$2
5866 echo "$as_me:$LINENO: checking for $ac_word" >&5
5867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5868 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5871 if test -n "$ac_ct_RANLIB"; then
5872 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5874 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5878 test -z "$as_dir" && as_dir
=.
5879 for ac_exec_ext
in '' $ac_executable_extensions; do
5880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5881 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5888 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
5891 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5892 if test -n "$ac_ct_RANLIB"; then
5893 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5894 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5896 echo "$as_me:$LINENO: result: no" >&5
5897 echo "${ECHO_T}no" >&6
5900 RANLIB
=$ac_ct_RANLIB
5902 RANLIB
="$ac_cv_prog_RANLIB"
5905 if test -n "$ac_tool_prefix"; then
5906 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5907 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5908 echo "$as_me:$LINENO: checking for $ac_word" >&5
5909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5910 if test "${ac_cv_prog_STRIP+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 if test -n "$STRIP"; then
5914 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5916 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5920 test -z "$as_dir" && as_dir
=.
5921 for ac_exec_ext
in '' $ac_executable_extensions; do
5922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5923 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 STRIP
=$ac_cv_prog_STRIP
5933 if test -n "$STRIP"; then
5934 echo "$as_me:$LINENO: result: $STRIP" >&5
5935 echo "${ECHO_T}$STRIP" >&6
5937 echo "$as_me:$LINENO: result: no" >&5
5938 echo "${ECHO_T}no" >&6
5942 if test -z "$ac_cv_prog_STRIP"; then
5944 # Extract the first word of "strip", so it can be a program name with args.
5945 set dummy strip
; ac_word
=$2
5946 echo "$as_me:$LINENO: checking for $ac_word" >&5
5947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5948 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 if test -n "$ac_ct_STRIP"; then
5952 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5958 test -z "$as_dir" && as_dir
=.
5959 for ac_exec_ext
in '' $ac_executable_extensions; do
5960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5961 ac_cv_prog_ac_ct_STRIP
="strip"
5962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
5971 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5972 if test -n "$ac_ct_STRIP"; then
5973 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5974 echo "${ECHO_T}$ac_ct_STRIP" >&6
5976 echo "$as_me:$LINENO: result: no" >&5
5977 echo "${ECHO_T}no" >&6
5982 STRIP
="$ac_cv_prog_STRIP"
5987 old_CFLAGS
="$CFLAGS"
5989 # Set sane defaults for various variables
5990 test -z "$AR" && AR
=ar
5991 test -z "$AR_FLAGS" && AR_FLAGS
=cru
5992 test -z "$AS" && AS
=as
5993 test -z "$CC" && CC
=cc
5994 test -z "$LTCC" && LTCC
=$CC
5995 test -z "$DLLTOOL" && DLLTOOL
=dlltool
5996 test -z "$LD" && LD
=ld
5997 test -z "$LN_S" && LN_S
="ln -s"
5998 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
5999 test -z "$NM" && NM
=nm
6000 test -z "$SED" && SED
=sed
6001 test -z "$OBJDUMP" && OBJDUMP
=objdump
6002 test -z "$RANLIB" && RANLIB
=:
6003 test -z "$STRIP" && STRIP
=:
6004 test -z "$ac_objext" && ac_objext
=o
6006 # Determine commands to create old-style static archives.
6007 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6008 old_postinstall_cmds
='chmod 644 $oldlib'
6009 old_postuninstall_cmds
=
6011 if test -n "$RANLIB"; then
6014 old_postinstall_cmds
="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6017 old_postinstall_cmds
="\$RANLIB \$oldlib~$old_postinstall_cmds"
6020 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6023 cc_basename
=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6025 # Only perform the check for file, if the check method requires it
6026 case $deplibs_check_method in
6028 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6029 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6030 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6031 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6036 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6039 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6040 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6041 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6042 for ac_dir
in $ac_dummy; do
6044 test -z "$ac_dir" && ac_dir
=.
6045 if test -f $ac_dir/${ac_tool_prefix}file; then
6046 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
6047 if test -n "$file_magic_test_file"; then
6048 case $deplibs_check_method in
6050 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6051 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6052 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6053 $EGREP "$file_magic_regex" > /dev
/null
; then
6058 *** Warning: the command libtool uses to detect shared libraries,
6059 *** $file_magic_cmd, produces output that libtool cannot recognize.
6060 *** The result is that libtool may fail to recognize shared libraries
6061 *** as such. This will affect the creation of libtool libraries that
6062 *** depend on shared libraries, but programs linked with such libtool
6063 *** libraries will work regardless of this problem. Nevertheless, you
6064 *** may want to report the problem to your system manager and/or to
6065 *** bug-libtool@gnu.org
6075 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6080 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6081 if test -n "$MAGIC_CMD"; then
6082 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6083 echo "${ECHO_T}$MAGIC_CMD" >&6
6085 echo "$as_me:$LINENO: result: no" >&5
6086 echo "${ECHO_T}no" >&6
6089 if test -z "$lt_cv_path_MAGIC_CMD"; then
6090 if test -n "$ac_tool_prefix"; then
6091 echo "$as_me:$LINENO: checking for file" >&5
6092 echo $ECHO_N "checking for file... $ECHO_C" >&6
6093 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6098 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6101 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6102 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6103 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6104 for ac_dir
in $ac_dummy; do
6106 test -z "$ac_dir" && ac_dir
=.
6107 if test -f $ac_dir/file; then
6108 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
6109 if test -n "$file_magic_test_file"; then
6110 case $deplibs_check_method in
6112 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6113 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6114 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6115 $EGREP "$file_magic_regex" > /dev
/null
; then
6120 *** Warning: the command libtool uses to detect shared libraries,
6121 *** $file_magic_cmd, produces output that libtool cannot recognize.
6122 *** The result is that libtool may fail to recognize shared libraries
6123 *** as such. This will affect the creation of libtool libraries that
6124 *** depend on shared libraries, but programs linked with such libtool
6125 *** libraries will work regardless of this problem. Nevertheless, you
6126 *** may want to report the problem to your system manager and/or to
6127 *** bug-libtool@gnu.org
6137 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6142 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6143 if test -n "$MAGIC_CMD"; then
6144 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6145 echo "${ECHO_T}$MAGIC_CMD" >&6
6147 echo "$as_me:$LINENO: result: no" >&5
6148 echo "${ECHO_T}no" >&6
6163 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6164 if test "${enable_libtool_lock+set}" = set; then
6165 enableval
="$enable_libtool_lock"
6168 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6171 # Check whether --with-pic or --without-pic was given.
6172 if test "${with_pic+set}" = set; then
6178 test -z "$pic_mode" && pic_mode
=default
6180 # Use C for the default configuration in the libtool script
6184 ac_cpp
='$CPP $CPPFLAGS'
6185 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6186 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6187 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6190 # Source file extension for C test sources.
6193 # Object file extension for compiled C test sources.
6197 # Code to be used in simple compile tests
6198 lt_simple_compile_test_code
="int some_variable = 0;\n"
6200 # Code to be used in simple link tests
6201 lt_simple_link_test_code
='int main(){return(0);}\n'
6204 # If no C compiler was specified, use CC.
6207 # Allow CC to be a program name with arguments.
6212 # Check for any special shared library compilation flags.
6215 if test "$GCC" = no
; then
6218 lt_prog_cc_shlib
='-belf'
6222 if test -n "$lt_prog_cc_shlib"; then
6223 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6224 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6225 if echo "$old_CC $old_CFLAGS " |
grep "[ ]$lt_prog_cc_shlib[ ]" >/dev
/null
; then :
6227 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6228 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6229 lt_cv_prog_cc_can_build_shared
=no
6235 # Check to make sure the static flag actually works.
6237 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6238 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6239 if test "${lt_prog_compiler_static_works+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6242 lt_prog_compiler_static_works
=no
6243 save_LDFLAGS
="$LDFLAGS"
6244 LDFLAGS
="$LDFLAGS $lt_prog_compiler_static"
6245 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
6246 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
6247 # The compiler can only warn and ignore the option if not recognized
6248 # So say no if there are warnings
6249 if test -s conftest.err
; then
6250 # Append any errors to the config.log.
6251 cat conftest.err
1>&5
6253 lt_prog_compiler_static_works
=yes
6257 LDFLAGS
="$save_LDFLAGS"
6260 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6261 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6263 if test x
"$lt_prog_compiler_static_works" = xyes
; then
6266 lt_prog_compiler_static
=
6272 lt_prog_compiler_no_builtin_flag
=
6274 if test "$GCC" = yes; then
6275 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
6278 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6279 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6280 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
6283 lt_cv_prog_compiler_rtti_exceptions
=no
6284 ac_outfile
=conftest.
$ac_objext
6285 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6286 lt_compiler_flag
="-fno-rtti -fno-exceptions"
6287 # Insert the option either (1) after the last *FLAGS variable, or
6288 # (2) before a word containing "conftest.", or (3) at the end.
6289 # Note that $ac_compile itself does not contain backslashes and begins
6290 # with a dollar sign (not a hyphen), so the echo should work correctly.
6291 # The option is referenced via a variable to avoid confusing sed.
6292 lt_compile
=`echo "$ac_compile" | $SED \
6293 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6294 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6295 -e 's:$: $lt_compiler_flag:'`
6296 (eval echo "\"\$as_me:6296: $lt_compile\"" >&5)
6297 (eval "$lt_compile" 2>conftest.err
)
6299 cat conftest.err
>&5
6300 echo "$as_me:6300: \$? = $ac_status" >&5
6301 if (exit $ac_status) && test -s "$ac_outfile"; then
6302 # The compiler can only warn and ignore the option if not recognized
6303 # So say no if there are warnings
6304 if test ! -s conftest.err
; then
6305 lt_cv_prog_compiler_rtti_exceptions
=yes
6311 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6312 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6314 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
6315 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6322 lt_prog_compiler_wl
=
6323 lt_prog_compiler_pic
=
6324 lt_prog_compiler_static
=
6326 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6327 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6329 if test "$GCC" = yes; then
6330 lt_prog_compiler_wl
='-Wl,'
6331 lt_prog_compiler_static
='-static'
6335 # All AIX code is PIC.
6336 if test "$host_cpu" = ia64
; then
6337 # AIX 5 now supports IA64 processor
6338 lt_prog_compiler_static
='-Bstatic'
6343 # FIXME: we need at least 68020 code to build shared libraries, but
6344 # adding the `-m68020' flag to GCC prevents building anything better,
6346 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
6349 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
6350 # PIC is the default for these OSes.
6353 mingw
* | pw32
* | os2
*)
6354 # This hack is so that the source file can tell whether it is being
6355 # built for inclusion in a dll (and should export symbols for example).
6356 lt_prog_compiler_pic
='-DDLL_EXPORT'
6359 darwin
* | rhapsody
*)
6360 # PIC is the default on this platform
6361 # Common symbols not allowed in MH_DYLIB files
6362 lt_prog_compiler_pic
='-fno-common'
6366 # Just because we use GCC doesn't mean we suddenly get shared libraries
6367 # on systems that don't support them.
6368 lt_prog_compiler_can_build_shared
=no
6373 if test -d /usr
/nec
; then
6374 lt_prog_compiler_pic
=-Kconform_pic
6379 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6386 lt_prog_compiler_pic
='-fPIC'
6392 lt_prog_compiler_pic
='-fPIC'
6396 # PORTME Check for flag to pass linker flags through the system compiler.
6399 lt_prog_compiler_wl
='-Wl,'
6400 if test "$host_cpu" = ia64
; then
6401 # AIX 5 now supports IA64 processor
6402 lt_prog_compiler_static
='-Bstatic'
6404 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
6408 # PIC is the default on this platform
6409 # Common symbols not allowed in MH_DYLIB files
6410 case "$cc_basename" in
6412 lt_prog_compiler_pic
='-qnocommon'
6413 lt_prog_compiler_wl
='-Wl,'
6418 mingw
* | pw32
* | os2
*)
6419 # This hack is so that the source file can tell whether it is being
6420 # built for inclusion in a dll (and should export symbols for example).
6421 lt_prog_compiler_pic
='-DDLL_EXPORT'
6424 hpux9
* | hpux10
* | hpux11
*)
6425 lt_prog_compiler_wl
='-Wl,'
6426 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6433 lt_prog_compiler_pic
='+Z'
6436 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6437 lt_prog_compiler_static
='${wl}-a ${wl}archive'
6440 irix5
* | irix6
* | nonstopux
*)
6441 lt_prog_compiler_wl
='-Wl,'
6442 # PIC (with -KPIC) is the default.
6443 lt_prog_compiler_static
='-non_shared'
6447 lt_prog_compiler_pic
='-KPIC'
6448 lt_prog_compiler_static
='-Bstatic'
6452 case $cc_basename in
6454 lt_prog_compiler_wl
='-Wl,'
6455 lt_prog_compiler_pic
='-KPIC'
6456 lt_prog_compiler_static
='-static'
6458 pgcc | pgf77 | pgf90
)
6459 # Portland Group compilers (*not* the Pentium gcc compiler,
6460 # which looks to be a dead project)
6461 lt_prog_compiler_wl
='-Wl,'
6462 lt_prog_compiler_pic
='-fpic'
6463 lt_prog_compiler_static
='-static'
6466 lt_prog_compiler_wl
='-Wl,'
6467 # All Alpha code is PIC.
6468 lt_prog_compiler_static
='-non_shared'
6471 lt_prog_compiler_wl
='-lopt='
6476 osf3
* | osf4
* | osf5
*)
6477 lt_prog_compiler_wl
='-Wl,'
6478 # All OSF/1 code is PIC.
6479 lt_prog_compiler_static
='-non_shared'
6483 lt_prog_compiler_pic
='-Kpic'
6484 lt_prog_compiler_static
='-dn'
6488 lt_prog_compiler_wl
='-Wl,'
6489 lt_prog_compiler_pic
='-KPIC'
6490 lt_prog_compiler_static
='-Bstatic'
6494 lt_prog_compiler_wl
='-Qoption ld '
6495 lt_prog_compiler_pic
='-PIC'
6496 lt_prog_compiler_static
='-Bstatic'
6499 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
6500 lt_prog_compiler_wl
='-Wl,'
6501 lt_prog_compiler_pic
='-KPIC'
6502 lt_prog_compiler_static
='-Bstatic'
6506 if test -d /usr
/nec
;then
6507 lt_prog_compiler_pic
='-Kconform_pic'
6508 lt_prog_compiler_static
='-Bstatic'
6513 lt_prog_compiler_wl
='-Wl,'
6514 lt_prog_compiler_can_build_shared
=no
6518 lt_prog_compiler_pic
='-pic'
6519 lt_prog_compiler_static
='-Bstatic'
6523 lt_prog_compiler_can_build_shared
=no
6528 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6529 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6532 # Check to make sure the PIC flag actually works.
6534 if test -n "$lt_prog_compiler_pic"; then
6536 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6537 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6538 if test "${lt_prog_compiler_pic_works+set}" = set; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6541 lt_prog_compiler_pic_works
=no
6542 ac_outfile
=conftest.
$ac_objext
6543 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6544 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
6545 # Insert the option either (1) after the last *FLAGS variable, or
6546 # (2) before a word containing "conftest.", or (3) at the end.
6547 # Note that $ac_compile itself does not contain backslashes and begins
6548 # with a dollar sign (not a hyphen), so the echo should work correctly.
6549 # The option is referenced via a variable to avoid confusing sed.
6550 lt_compile
=`echo "$ac_compile" | $SED \
6551 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6553 -e 's:$: $lt_compiler_flag:'`
6554 (eval echo "\"\$as_me:6554: $lt_compile\"" >&5)
6555 (eval "$lt_compile" 2>conftest.err
)
6557 cat conftest.err
>&5
6558 echo "$as_me:6558: \$? = $ac_status" >&5
6559 if (exit $ac_status) && test -s "$ac_outfile"; then
6560 # The compiler can only warn and ignore the option if not recognized
6561 # So say no if there are warnings
6562 if test ! -s conftest.err
; then
6563 lt_prog_compiler_pic_works
=yes
6569 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6570 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6572 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
6573 case $lt_prog_compiler_pic in
6575 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
6578 lt_prog_compiler_pic
=
6579 lt_prog_compiler_can_build_shared
=no
6584 # For platforms which do not support PIC, -DPIC is meaningless:
6586 lt_prog_compiler_pic
=
6589 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
6593 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6594 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6595 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 lt_cv_prog_compiler_c_o
=no
6599 $rm -r conftest
2>/dev
/null
6603 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6605 lt_compiler_flag
="-o out/conftest2.$ac_objext"
6606 # Insert the option either (1) after the last *FLAGS variable, or
6607 # (2) before a word containing "conftest.", or (3) at the end.
6608 # Note that $ac_compile itself does not contain backslashes and begins
6609 # with a dollar sign (not a hyphen), so the echo should work correctly.
6610 lt_compile
=`echo "$ac_compile" | $SED \
6611 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6613 -e 's:$: $lt_compiler_flag:'`
6614 (eval echo "\"\$as_me:6614: $lt_compile\"" >&5)
6615 (eval "$lt_compile" 2>out
/conftest.err
)
6617 cat out
/conftest.err
>&5
6618 echo "$as_me:6618: \$? = $ac_status" >&5
6619 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
6621 # The compiler can only warn and ignore the option if not recognized
6622 # So say no if there are warnings
6623 if test ! -s out
/conftest.err
; then
6624 lt_cv_prog_compiler_c_o
=yes
6629 # SGI C++ compiler will create directory out/ii_files/ for
6630 # template instantiation
6631 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
6632 $rm out
/* && rmdir out
6638 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6639 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6642 hard_links
="nottested"
6643 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
6644 # do not overwrite the value of need_locks provided by the user
6645 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6646 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6649 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
6651 ln conftest.a conftest.b
2>&5 || hard_links
=no
6652 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
6653 echo "$as_me:$LINENO: result: $hard_links" >&5
6654 echo "${ECHO_T}$hard_links" >&6
6655 if test "$hard_links" = no
; then
6656 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6657 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6664 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6665 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6668 allow_undefined_flag
=
6669 enable_shared_with_static_runtimes
=no
6671 archive_expsym_cmds
=
6672 old_archive_From_new_cmds
=
6673 old_archive_from_expsyms_cmds
=
6674 export_dynamic_flag_spec
=
6675 whole_archive_flag_spec
=
6676 thread_safe_flag_spec
=
6677 hardcode_libdir_flag_spec
=
6678 hardcode_libdir_flag_spec_ld
=
6679 hardcode_libdir_separator
=
6682 hardcode_shlibpath_var
=unsupported
6683 link_all_deplibs
=unknown
6684 hardcode_automatic
=no
6687 always_export_symbols
=no
6688 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6689 # include_expsyms should be a list of space-separated symbols to be *always*
6690 # included in the symbol list
6692 # exclude_expsyms can be an extended regexp of symbols to exclude
6693 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6694 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6695 # as well as any symbol that contains `d'.
6696 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
6697 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6698 # platforms (ab)use it in PIC code, but their linkers get confused if
6699 # the symbol is explicitly referenced. Since portable code cannot
6700 # rely on this symbol name, it's probably fine to never include it in
6701 # preloaded symbol tables.
6702 extract_expsyms_cmds
=
6705 cygwin
* | mingw
* | pw32
*)
6706 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6707 # When not using gcc, we currently assume that we are using
6708 # Microsoft Visual C++.
6709 if test "$GCC" != yes; then
6719 if test "$with_gnu_ld" = yes; then
6720 # If archive_cmds runs LD, not CC, wlarc should be empty
6723 # See if GNU ld supports shared libraries.
6725 aix3
* | aix4
* | aix5
*)
6726 # On AIX/PPC, the GNU linker is very broken
6727 if test "$host_cpu" != ia64
; then
6731 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6732 *** to be unable to reliably create shared libraries on AIX.
6733 *** Therefore, libtool is disabling shared libraries support. If you
6734 *** really care for shared libraries, you may want to modify your PATH
6735 *** so that a non-GNU linker is found, and then restart.
6742 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)'
6743 hardcode_libdir_flag_spec
='-L$libdir'
6744 hardcode_minus_L
=yes
6746 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6747 # that the semantics of dynamic libraries on AmigaOS, at least up
6748 # to version 4, is to share data among multiple programs linked
6749 # with the same dynamic library. Since this doesn't match the
6750 # behavior of shared libraries on other platforms, we can't use
6756 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
6757 allow_undefined_flag
=unsupported
6758 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6759 # support --undefined. This deserves some investigation. FIXME
6760 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6766 cygwin
* | mingw
* | pw32
*)
6767 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6768 # as there is no search path for DLLs.
6769 hardcode_libdir_flag_spec
='-L$libdir'
6770 allow_undefined_flag
=unsupported
6771 always_export_symbols
=no
6772 enable_shared_with_static_runtimes
=yes
6773 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6775 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
6776 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6777 # If the export-symbols file already is a .def file (1st line
6778 # is EXPORTS), use it as is; otherwise, prepend...
6779 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6780 cp $export_symbols $output_objdir/$soname.def;
6782 echo EXPORTS > $output_objdir/$soname.def;
6783 cat $export_symbols >> $output_objdir/$soname.def;
6785 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6792 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
6793 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6796 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6797 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6802 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
6806 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6807 *** create shared libraries on Solaris systems. Therefore, libtool
6808 *** is disabling shared libraries support. We urge you to upgrade GNU
6809 *** binutils to release 2.9.1 or newer. Another option is to modify
6810 *** your PATH or compiler configuration so that the native linker is
6811 *** used, and then restart.
6814 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
6815 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6816 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6823 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6826 hardcode_shlibpath_var
=no
6830 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
6832 case $CC,$host_cpu in
6833 pgf77
* | pgf90
* ) # Portland Group f77 and f90 compilers
6834 tmp_addflag
=' -fpic' ;;
6835 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
6836 tmp_addflag
=' -i_dynamic' ;;
6837 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
6838 tmp_addflag
=' -i_dynamic -nofor_main' ;;
6839 ifc
* | ifort
*) # Intel Fortran compiler
6840 tmp_addflag
=' -nofor_main' ;;
6842 archive_cmds
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6843 supports_anon_versioning
=no
6844 case `$LD -v 2>/dev/null` in
6845 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
6846 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
6847 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
6848 *\
2.11.
*) ;; # other 2.11 versions
6849 *) supports_anon_versioning
=yes ;;
6851 if test $supports_anon_versioning = yes; then
6852 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
6853 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6854 $echo "local: *; };" >> $output_objdir/$libname.ver~
6855 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6857 archive_expsym_cmds
=$archive_cmds
6865 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
6866 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6867 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6874 if test "$ld_shlibs" = yes; then
6875 runpath_var
=LD_RUN_PATH
6876 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
6877 export_dynamic_flag_spec
='${wl}--export-dynamic'
6878 # ancient GNU ld didn't support --whole-archive et. al.
6879 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
6880 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6882 whole_archive_flag_spec
=
6886 # PORTME fill in a description of your system's linker (not GNU ld)
6889 allow_undefined_flag
=unsupported
6890 always_export_symbols
=yes
6891 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'
6892 # Note: this linker hardcodes the directories in LIBPATH if there
6893 # are no directories specified by -L.
6894 hardcode_minus_L
=yes
6895 if test "$GCC" = yes && test -z "$link_static_flag"; then
6896 # Neither direct hardcoding nor static linking is supported with a
6898 hardcode_direct
=unsupported
6903 if test "$host_cpu" = ia64
; then
6904 # On IA64, the linker does run time linking by default, so we don't
6905 # have to do anything special.
6906 aix_use_runtimelinking
=no
6907 exp_sym_flag
='-Bexport'
6910 # If we're using GNU nm, then we don't want the "-C" option.
6911 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6912 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
6913 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'
6915 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'
6917 aix_use_runtimelinking
=no
6919 # Test if we are trying to use run time linking or normal
6920 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6921 # need to do runtime linking.
6922 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
6923 for ld_flag
in $LDFLAGS; do
6924 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
6925 aix_use_runtimelinking
=yes
6931 exp_sym_flag
='-bexport'
6932 no_entry_flag
='-bnoentry'
6935 # When large executables or shared objects are built, AIX ld can
6936 # have problems creating the table of contents. If linking a library
6937 # or program results in "error TOC overflow" add -mminimal-toc to
6938 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6939 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6943 hardcode_libdir_separator
=':'
6944 link_all_deplibs
=yes
6946 if test "$GCC" = yes; then
6947 case $host_os in aix4.
[012]|aix4.
[012].
*)
6948 # We only want to do this on AIX 4.2 and lower, the check
6949 # below for broken collect2 doesn't work under 4.3+
6950 collect2name
=`${CC} -print-prog-name=collect2`
6951 if test -f "$collect2name" && \
6952 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
6954 # We have reworked collect2
6957 # We have old collect2
6958 hardcode_direct
=unsupported
6959 # It fails to find uninstalled libraries when the uninstalled
6960 # path is not listed in the libpath. Setting hardcode_minus_L
6961 # to unsupported forces relinking
6962 hardcode_minus_L
=yes
6963 hardcode_libdir_flag_spec
='-L$libdir'
6964 hardcode_libdir_separator
=
6967 shared_flag
='-shared'
6968 if test "$aix_use_runtimelinking" = yes; then
6969 shared_flag
="$shared_flag "'${wl}-G'
6973 if test "$host_cpu" = ia64
; then
6974 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6975 # chokes on -Wl,-G. The following line is correct:
6978 if test "$aix_use_runtimelinking" = yes; then
6979 shared_flag
='${wl}-G'
6981 shared_flag
='${wl}-bM:SRE'
6986 # It seems that -bexpall does not export symbols beginning with
6987 # underscore (_), so it is better to generate a list of symbols to export.
6988 always_export_symbols
=yes
6989 if test "$aix_use_runtimelinking" = yes; then
6990 # Warning - without using the other runtime loading flags (-brtl),
6991 # -berok will link without error, but may produce a broken library.
6992 allow_undefined_flag
='-berok'
6993 # Determine the default libpath from the value encoded in an empty executable.
6994 cat >conftest.
$ac_ext <<_ACEOF
6997 cat confdefs.h
>>conftest.
$ac_ext
6998 cat >>conftest.
$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7009 rm -f conftest.
$ac_objext conftest
$ac_exeext
7010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7011 (eval $ac_link) 2>conftest.er1
7013 grep -v '^ *+' conftest.er1
>conftest.err
7015 cat conftest.err
>&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } &&
7018 { ac_try
='test -z "$ac_c_werror_flag"
7019 || test ! -s conftest.err'
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; } &&
7025 { ac_try
='test -s conftest$ac_exeext'
7026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); }; }; then
7032 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7034 # Check for a 64-bit object if we didn't find anything.
7035 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; }
7038 echo "$as_me: failed program was:" >&5
7039 sed 's/^/| /' conftest.
$ac_ext >&5
7042 rm -f conftest.err conftest.
$ac_objext \
7043 conftest
$ac_exeext conftest.
$ac_ext
7044 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
7046 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
7047 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"
7049 if test "$host_cpu" = ia64; then
7050 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr
/lib
:/lib
'
7051 allow_undefined_flag="-z nodefs"
7052 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"
7054 # Determine the default libpath from the value encoded in an empty executable.
7055 cat >conftest.$ac_ext <<_ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h. */
7070 rm -f conftest.$ac_objext conftest$ac_exeext
7071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7072 (eval $ac_link) 2>conftest.er1
7074 grep -v '^ *+' conftest.er1 >conftest.err
7076 cat conftest.err >&5
7077 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7078 (exit $ac_status); } &&
7079 { ac_try='test -z "$ac_c_werror_flag"
7080 || test ! -s conftest.err'
7081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7085 (exit $ac_status); }; } &&
7086 { ac_try='test -s conftest$ac_exeext'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7091 (exit $ac_status); }; }; then
7093 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7095 # Check for a 64-bit object if we didn't find anything.
7096 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; }
7099 echo "$as_me: failed program was
:" >&5
7100 sed 's/^/| /' conftest.$ac_ext >&5
7103 rm -f conftest.err conftest.$ac_objext \
7104 conftest$ac_exeext conftest.$ac_ext
7105 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
7107 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7108 # Warning - without using the other run time loading flags,
7109 # -berok will link without error, but may produce a broken library.
7110 no_undefined_flag=' ${wl}-bernotok'
7111 allow_undefined_flag=' ${wl}-berok'
7112 # -bexpall does not export symbols beginning with underscore (_)
7113 always_export_symbols=yes
7114 # Exported symbols can be pulled into shared objects from archives
7115 whole_archive_flag_spec=' '
7116 archive_cmds_need_lc=yes
7117 # This is similar to how AIX traditionally builds it's shared libraries.
7118 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'
7124 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)'
7125 hardcode_libdir_flag_spec
='-L$libdir'
7126 hardcode_minus_L
=yes
7127 # see comment about different semantics on the GNU ld section
7132 export_dynamic_flag_spec
=-rdynamic
7135 cygwin
* | mingw
* | pw32
*)
7136 # When not using gcc, we currently assume that we are using
7137 # Microsoft Visual C++.
7138 # hardcode_libdir_flag_spec is actually meaningless, as there is
7139 # no search path for DLLs.
7140 hardcode_libdir_flag_spec
=' '
7141 allow_undefined_flag
=unsupported
7142 # Tell ltmain to make .lib files, not .a files.
7144 # Tell ltmain to make .dll files, not .so files.
7146 # FIXME: Setting linknames here is a bad hack.
7147 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7148 # The linker will automatically build a .lib file if we build a DLL.
7149 old_archive_From_new_cmds
='true'
7150 # FIXME: Should let the user specify the lib program.
7151 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
7152 fix_srcfile_path
='`cygpath -w "$srcfile"`'
7153 enable_shared_with_static_runtimes
=yes
7156 darwin
* | rhapsody
*)
7158 rhapsody
* | darwin1.
[012])
7159 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
7162 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7163 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7165 case ${MACOSX_DEPLOYMENT_TARGET} in
7167 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7170 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
7176 archive_cmds_need_lc
=no
7178 hardcode_automatic
=yes
7179 hardcode_shlibpath_var
=unsupported
7180 whole_archive_flag_spec
=''
7181 link_all_deplibs
=yes
7182 if test "$GCC" = yes ; then
7183 output_verbose_link_cmd
='echo'
7184 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7185 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7186 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7187 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}'
7188 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}'
7190 case "$cc_basename" in
7192 output_verbose_link_cmd
='echo'
7193 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7194 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7195 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7196 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}'
7197 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}'
7207 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7208 hardcode_libdir_flag_spec
='-L$libdir'
7209 hardcode_shlibpath_var
=no
7216 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7217 # support. Future versions do this automatically, but an explicit c++rt0.o
7218 # does not break anything, and helps significantly (at the cost of a little
7221 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7222 hardcode_libdir_flag_spec
='-R$libdir'
7224 hardcode_shlibpath_var
=no
7227 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7229 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7231 hardcode_minus_L
=yes
7232 hardcode_shlibpath_var
=no
7235 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7236 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
7237 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7238 hardcode_libdir_flag_spec
='-R$libdir'
7240 hardcode_shlibpath_var
=no
7244 if test "$GCC" = yes; then
7245 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'
7247 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'
7249 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7250 hardcode_libdir_separator
=:
7253 # hardcode_minus_L: Not really in the search PATH,
7254 # but as the default location of the library.
7255 hardcode_minus_L
=yes
7256 export_dynamic_flag_spec
='${wl}-E'
7260 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
7263 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7266 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7272 archive_cmds
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7275 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7279 if test "$with_gnu_ld" = no
; then
7282 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7283 hardcode_libdir_flag_spec_ld
='+b $libdir'
7284 hardcode_libdir_separator
=:
7286 hardcode_shlibpath_var
=no
7289 hardcode_libdir_flag_spec
='-L$libdir'
7291 hardcode_shlibpath_var
=no
7293 # hardcode_minus_L: Not really in the search PATH,
7294 # but as the default location of the library.
7295 hardcode_minus_L
=yes
7298 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7299 hardcode_libdir_separator
=:
7301 export_dynamic_flag_spec
='${wl}-E'
7303 # hardcode_minus_L: Not really in the search PATH,
7304 # but as the default location of the library.
7305 hardcode_minus_L
=yes
7311 irix5
* | irix6
* | nonstopux
*)
7312 if test "$GCC" = yes; then
7313 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'
7315 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'
7316 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
7318 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7319 hardcode_libdir_separator
=:
7320 link_all_deplibs
=yes
7324 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7325 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7327 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7329 hardcode_libdir_flag_spec
='-R$libdir'
7331 hardcode_shlibpath_var
=no
7335 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7337 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7338 hardcode_libdir_separator
=:
7339 hardcode_shlibpath_var
=no
7344 hardcode_shlibpath_var
=no
7345 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7346 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7347 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7348 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7349 export_dynamic_flag_spec
='${wl}-E'
7352 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
7353 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7354 hardcode_libdir_flag_spec
='-R$libdir'
7357 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7358 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7365 hardcode_libdir_flag_spec
='-L$libdir'
7366 hardcode_minus_L
=yes
7367 allow_undefined_flag
=unsupported
7368 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'
7369 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7373 if test "$GCC" = yes; then
7374 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
7375 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'
7377 allow_undefined_flag
=' -expect_unresolved \*'
7378 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'
7380 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7381 hardcode_libdir_separator
=:
7384 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
7385 if test "$GCC" = yes; then
7386 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
7387 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'
7388 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7390 allow_undefined_flag
=' -expect_unresolved \*'
7391 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'
7392 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7393 $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'
7395 # Both c and cxx compiler support -rpath directly
7396 hardcode_libdir_flag_spec
='-rpath $libdir'
7398 hardcode_libdir_separator
=:
7402 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7403 hardcode_shlibpath_var
=no
7404 export_dynamic_flag_spec
='${wl}-Bexport'
7405 runpath_var
=LD_RUN_PATH
7406 hardcode_runpath_var
=yes
7410 no_undefined_flag
=' -z text'
7411 if test "$GCC" = yes; then
7412 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7413 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7414 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7416 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7417 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7418 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7420 hardcode_libdir_flag_spec
='-R$libdir'
7421 hardcode_shlibpath_var
=no
7423 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
7424 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7425 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
7427 link_all_deplibs
=yes
7431 if test "x$host_vendor" = xsequent
; then
7432 # Use $CC to link under sequent, because it throws in some extra .o
7433 # files that make .init and .fini sections work.
7434 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7436 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7438 hardcode_libdir_flag_spec
='-L$libdir'
7440 hardcode_minus_L
=yes
7441 hardcode_shlibpath_var
=no
7445 case $host_vendor in
7447 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7448 hardcode_direct
=yes # is this really true???
7451 ## LD is ld it makes a PLAMLIB
7452 ## CC just makes a GrossModule.
7453 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7454 reload_cmds
='$CC -r -o $output$reload_objs'
7458 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7459 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
7462 runpath_var
='LD_RUN_PATH'
7463 hardcode_shlibpath_var
=no
7467 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7468 hardcode_shlibpath_var
=no
7469 export_dynamic_flag_spec
='-Bexport'
7473 if test -d /usr
/nec
; then
7474 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7475 hardcode_shlibpath_var
=no
7476 runpath_var
=LD_RUN_PATH
7477 hardcode_runpath_var
=yes
7483 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7486 hardcode_shlibpath_var
=no
7487 hardcode_runpath_var
=yes
7488 runpath_var
=LD_RUN_PATH
7491 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
7492 no_undefined_flag
='${wl}-z ${wl}text'
7493 if test "$GCC" = yes; then
7494 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7496 archive_cmds
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7498 runpath_var
='LD_RUN_PATH'
7499 hardcode_shlibpath_var
=no
7503 no_undefined_flag
=' -z text'
7504 # $CC -shared without GNU ld will not create a library from C++
7505 # object files and a static libstdc++, better avoid it by now
7506 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7507 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7508 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7509 hardcode_libdir_flag_spec
=
7510 hardcode_shlibpath_var
=no
7511 runpath_var
='LD_RUN_PATH'
7515 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7516 hardcode_libdir_flag_spec
='-L$libdir'
7517 hardcode_shlibpath_var
=no
7526 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7527 echo "${ECHO_T}$ld_shlibs" >&6
7528 test "$ld_shlibs" = no
&& can_build_shared
=no
7530 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
7531 if test "$GCC" = yes; then
7532 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7536 # Do we need to explicitly link libc?
7538 case "x$archive_cmds_need_lc" in
7540 # Assume -lc should be added
7541 archive_cmds_need_lc
=yes
7543 if test "$enable_shared" = yes && test "$GCC" = yes; then
7544 case $archive_cmds in
7546 # FIXME: we may have to deal with multi-command sequences.
7549 # Test whether the compiler implicitly links with -lc since on some
7550 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7551 # to ld, don't add -lc before -lgcc.
7552 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7553 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7555 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7558 (eval $ac_compile) 2>&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } 2>conftest.err
; then
7564 libobjs
=conftest.
$ac_objext
7566 wl
=$lt_prog_compiler_wl
7572 lt_save_allow_undefined_flag
=$allow_undefined_flag
7573 allow_undefined_flag
=
7574 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7575 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); }
7580 archive_cmds_need_lc
=no
7582 archive_cmds_need_lc
=yes
7584 allow_undefined_flag
=$lt_save_allow_undefined_flag
7586 cat conftest.err
1>&5
7589 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7590 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7597 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7598 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7600 libname_spec
='lib$name'
7608 shlibpath_overrides_runpath
=unknown
7610 dynamic_linker
="$host_os ld.so"
7611 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
7612 if test "$GCC" = yes; then
7613 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7614 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
7615 # if the path contains ";" then we assume it to be the separator
7616 # otherwise default to the standard path separator (i.e. ":") - it is
7617 # assumed that no part of a normal pathname contains ";" but that should
7618 # okay in the real world where ";" in dirpaths is itself problematic.
7619 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7621 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7624 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
7626 need_lib_prefix
=unknown
7627 hardcode_into_libs
=no
7629 # when you set need_version to no, make sure it does not cause -set_version
7630 # flags to be left without arguments
7631 need_version
=unknown
7636 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
7637 shlibpath_var
=LIBPATH
7639 # AIX 3 has no versioning support, so we append a major version to the name.
7640 soname_spec
='${libname}${release}${shared_ext}$major'
7647 hardcode_into_libs
=yes
7648 if test "$host_cpu" = ia64
; then
7649 # AIX 5 supports IA64
7650 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7651 shlibpath_var
=LD_LIBRARY_PATH
7653 # With GCC up to 2.95.x, collect2 would create an import file
7654 # for dependence libraries. The import file would start with
7655 # the line `#! .'. This would cause the generated library to
7656 # depend on `.', always an invalid library. This was fixed in
7657 # development snapshots of GCC prior to 3.0.
7659 aix4 | aix4.
[01] | aix4.
[01].
*)
7660 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7662 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
7669 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7670 # soname into executable. Probably we can add versioning support to
7671 # collect2, so additional links can be useful in future.
7672 if test "$aix_use_runtimelinking" = yes; then
7673 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7674 # instead of lib<name>.a to let people know that these are not
7675 # typical AIX shared libraries.
7676 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7678 # We preserve .a as extension for shared libraries through AIX4.2
7679 # and later when we are not doing run time linking.
7680 library_names_spec
='${libname}${release}.a $libname.a'
7681 soname_spec
='${libname}${release}${shared_ext}$major'
7683 shlibpath_var
=LIBPATH
7688 library_names_spec
='$libname.ixlibrary $libname.a'
7689 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7690 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'
7694 library_names_spec
='${libname}${shared_ext}'
7695 dynamic_linker
="$host_os ld.so"
7696 shlibpath_var
=LIBRARY_PATH
7702 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7703 soname_spec
='${libname}${release}${shared_ext}$major'
7704 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
7705 shlibpath_var
=LD_LIBRARY_PATH
7706 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7707 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
7708 # the default ld.so.conf also contains /usr/contrib/lib and
7709 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7710 # libtool to hard-code these into programs
7713 cygwin
* | mingw
* | pw32
*)
7714 version_type
=windows
7719 case $GCC,$host_os in
7720 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
7721 library_names_spec
='$libname.dll.a'
7722 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7723 postinstall_cmds
='base_file=`basename \${file}`~
7724 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7725 dldir=$destdir/`dirname \$dlpath`~
7726 test -d \$dldir || mkdir -p \$dldir~
7727 $install_prog $dir/$dlname \$dldir/$dlname'
7728 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7729 dlpath=$dir/\$dldll~
7731 shlibpath_overrides_runpath
=yes
7735 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7736 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7737 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
7740 # MinGW DLLs use traditional 'lib' prefix
7741 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7742 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7743 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
7744 # It is most probably a Windows format PATH printed by
7745 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7746 # path with ; separators, and with drive letters. We can handle the
7747 # drive letters (cygwin fileutils understands them), so leave them,
7748 # especially as we might pass files found there to a mingw objdump,
7749 # which wouldn't understand a cygwinified path. Ahh.
7750 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7752 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7756 # pw32 DLLs use 'pw' prefix rather than 'lib'
7757 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7763 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7766 dynamic_linker
='Win32 ld.exe'
7767 # FIXME: first we should search . and the directory the executable is in
7771 darwin
* | rhapsody
*)
7772 dynamic_linker
="$host_os dyld"
7776 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7777 soname_spec
='${libname}${release}${major}$shared_ext'
7778 shlibpath_overrides_runpath
=yes
7779 shlibpath_var
=DYLD_LIBRARY_PATH
7780 shrext_cmds
='$(test .$module = .yes && echo .so || echo .dylib)'
7781 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7782 if test "$GCC" = yes; then
7783 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"`
7785 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
7787 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
7794 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7795 soname_spec
='${libname}${release}${shared_ext}$major'
7796 shlibpath_var
=LD_LIBRARY_PATH
7807 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7808 soname_spec
='${libname}${release}${shared_ext}$major'
7809 shlibpath_var
=LD_LIBRARY_PATH
7810 shlibpath_overrides_runpath
=no
7811 hardcode_into_libs
=yes
7812 dynamic_linker
='GNU ld.so'
7815 freebsd
* | dragonfly
*)
7816 # DragonFly does not have aout. When/if they implement a new
7817 # versioning mechanism, adjust this.
7818 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7819 version_type
=freebsd-
$objformat
7820 case $version_type in
7822 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7827 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7831 shlibpath_var
=LD_LIBRARY_PATH
7834 shlibpath_overrides_runpath
=yes
7836 freebsd3.
[01]* | freebsdelf3.
[01]*)
7837 shlibpath_overrides_runpath
=yes
7838 hardcode_into_libs
=yes
7841 shlibpath_overrides_runpath
=no
7842 hardcode_into_libs
=yes
7851 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7852 soname_spec
='${libname}${release}${shared_ext}$major'
7853 shlibpath_var
=LD_LIBRARY_PATH
7854 hardcode_into_libs
=yes
7857 hpux9
* | hpux10
* | hpux11
*)
7858 # Give a soname corresponding to the major version so that dld.sl refuses to
7859 # link against other versions.
7866 hardcode_into_libs
=yes
7867 dynamic_linker
="$host_os dld.so"
7868 shlibpath_var
=LD_LIBRARY_PATH
7869 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
7870 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7871 soname_spec
='${libname}${release}${shared_ext}$major'
7872 if test "X$HPUX_IA64_MODE" = X32
; then
7873 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7875 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
7877 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
7881 hardcode_into_libs
=yes
7882 dynamic_linker
="$host_os dld.sl"
7883 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
7884 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
7885 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7886 soname_spec
='${libname}${release}${shared_ext}$major'
7887 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7888 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
7892 dynamic_linker
="$host_os dld.sl"
7893 shlibpath_var
=SHLIB_PATH
7894 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
7895 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7896 soname_spec
='${libname}${release}${shared_ext}$major'
7899 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7900 postinstall_cmds
='chmod 555 $lib'
7903 irix5
* | irix6
* | nonstopux
*)
7905 nonstopux
*) version_type
=nonstopux
;;
7907 if test "$lt_cv_prog_gnu_ld" = yes; then
7915 soname_spec
='${libname}${release}${shared_ext}$major'
7916 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7918 irix5
* | nonstopux
*)
7922 case $LD in # libtool.m4 will add one of these switches to LD
7923 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
7924 libsuff
= shlibsuff
= libmagic
=32-bit;;
7925 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
7926 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
7927 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
7928 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
7929 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
7933 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
7934 shlibpath_overrides_runpath
=no
7935 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7936 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
7937 hardcode_into_libs
=yes
7940 # No shared lib support for Linux oldld, aout, or coff.
7941 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
7945 # This must be Linux ELF.
7950 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7951 soname_spec
='${libname}${release}${shared_ext}$major'
7952 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7953 shlibpath_var
=LD_LIBRARY_PATH
7954 shlibpath_overrides_runpath
=no
7955 # This implies no fast_install, which is unacceptable.
7956 # Some rework will be needed to allow for fast_install
7957 # before this can be enabled.
7958 hardcode_into_libs
=yes
7960 # Append ld.so.conf contents to the search path
7961 if test -f /etc
/ld.so.conf
; then
7962 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' ' '`
7963 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
7966 # We used to test for /lib/ld.so.1 and disable shared libraries on
7967 # powerpc, because MkLinux only supported shared libraries with the
7968 # GNU dynamic linker. Since this was broken with cross compilers,
7969 # most powerpc-linux boxes support dynamic linking these days and
7970 # people can always --disable-shared, the test was removed, and we
7971 # assume the GNU/Linux dynamic linker is in use.
7972 dynamic_linker
='GNU/Linux ld.so'
7979 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7980 soname_spec
='${libname}${release}${shared_ext}$major'
7981 shlibpath_var
=LD_LIBRARY_PATH
7982 shlibpath_overrides_runpath
=no
7983 hardcode_into_libs
=yes
7984 dynamic_linker
='GNU ld.so'
7991 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7992 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7993 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7994 dynamic_linker
='NetBSD (a.out) ld.so'
7996 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7997 soname_spec
='${libname}${release}${shared_ext}$major'
7998 dynamic_linker
='NetBSD ld.elf_so'
8000 shlibpath_var
=LD_LIBRARY_PATH
8001 shlibpath_overrides_runpath
=yes
8002 hardcode_into_libs
=yes
8007 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8008 shlibpath_var
=LD_LIBRARY_PATH
8009 shlibpath_overrides_runpath
=yes
8016 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8017 soname_spec
='${libname}${release}${shared_ext}$major'
8018 shlibpath_var
=LD_LIBRARY_PATH
8019 shlibpath_overrides_runpath
=yes
8026 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8027 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8028 shlibpath_var
=LD_LIBRARY_PATH
8029 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8031 openbsd2.
[89] | openbsd2.
[89].
*)
8032 shlibpath_overrides_runpath
=no
8035 shlibpath_overrides_runpath
=yes
8039 shlibpath_overrides_runpath
=yes
8044 libname_spec
='$name'
8047 library_names_spec
='$libname${shared_ext} $libname.a'
8048 dynamic_linker
='OS/2 ld.exe'
8049 shlibpath_var
=LIBPATH
8052 osf3
* | osf4
* | osf5
*)
8056 soname_spec
='${libname}${release}${shared_ext}$major'
8057 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8058 shlibpath_var
=LD_LIBRARY_PATH
8059 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8060 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
8065 soname_spec
='${libname}${release}${shared_ext}$major'
8066 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8067 shlibpath_var
=LD_LIBRARY_PATH
8074 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8075 soname_spec
='${libname}${release}${shared_ext}$major'
8076 shlibpath_var
=LD_LIBRARY_PATH
8077 shlibpath_overrides_runpath
=yes
8078 hardcode_into_libs
=yes
8079 # ldd complains unless libraries are executable
8080 postinstall_cmds
='chmod +x $lib'
8085 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8086 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8087 shlibpath_var
=LD_LIBRARY_PATH
8088 shlibpath_overrides_runpath
=yes
8089 if test "$with_gnu_ld" = yes; then
8095 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
8097 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8098 soname_spec
='${libname}${release}${shared_ext}$major'
8099 shlibpath_var
=LD_LIBRARY_PATH
8100 case $host_vendor in
8102 shlibpath_overrides_runpath
=no
8104 export_dynamic_flag_spec
='${wl}-Blargedynsym'
8105 runpath_var
=LD_RUN_PATH
8113 shlibpath_overrides_runpath
=no
8114 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
8120 if test -d /usr
/nec
;then
8122 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8123 soname_spec
='$libname${shared_ext}.$major'
8124 shlibpath_var
=LD_LIBRARY_PATH
8130 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8131 soname_spec
='${libname}${release}${shared_ext}$major'
8132 shlibpath_var
=LD_LIBRARY_PATH
8139 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8140 echo "${ECHO_T}$dynamic_linker" >&6
8141 test "$dynamic_linker" = no
&& can_build_shared
=no
8143 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8144 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8146 if test -n "$hardcode_libdir_flag_spec" || \
8147 test -n "$runpath_var" || \
8148 test "X$hardcode_automatic" = "Xyes" ; then
8150 # We can hardcode non-existant directories.
8151 if test "$hardcode_direct" != no
&&
8152 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8153 # have to relink, otherwise we might link with an installed library
8154 # when we should be linking with a yet-to-be-installed one
8155 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8156 test "$hardcode_minus_L" != no
; then
8157 # Linking always hardcodes the temporary library directory.
8158 hardcode_action
=relink
8160 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8161 hardcode_action
=immediate
8164 # We cannot hardcode anything, or else we can only hardcode existing
8166 hardcode_action
=unsupported
8168 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8169 echo "${ECHO_T}$hardcode_action" >&6
8171 if test "$hardcode_action" = relink
; then
8172 # Fast installation is not supported
8173 enable_fast_install
=no
8174 elif test "$shlibpath_overrides_runpath" = yes ||
8175 test "$enable_shared" = no
; then
8176 # Fast installation is not necessary
8177 enable_fast_install
=needless
8182 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8183 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8184 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
8185 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
8186 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
8187 echo "$as_me:$LINENO: result: yes" >&5
8188 echo "${ECHO_T}yes" >&6
8190 # FIXME - insert some real tests, host_os isn't really good enough
8193 if test -n "$STRIP" ; then
8194 striplib
="$STRIP -x"
8195 echo "$as_me:$LINENO: result: yes" >&5
8196 echo "${ECHO_T}yes" >&6
8198 echo "$as_me:$LINENO: result: no" >&5
8199 echo "${ECHO_T}no" >&6
8203 echo "$as_me:$LINENO: result: no" >&5
8204 echo "${ECHO_T}no" >&6
8209 if test "x$enable_dlopen" != xyes
; then
8210 enable_dlopen
=unknown
8211 enable_dlopen_self
=unknown
8212 enable_dlopen_self_static
=unknown
8219 lt_cv_dlopen
="load_add_on"
8221 lt_cv_dlopen_self
=yes
8225 lt_cv_dlopen
="LoadLibrary"
8230 lt_cv_dlopen
="dlopen"
8235 # if libdl is installed we need to link against it
8236 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8237 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8238 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8239 echo $ECHO_N "(cached) $ECHO_C" >&6
8241 ac_check_lib_save_LIBS
=$LIBS
8243 cat >conftest.
$ac_ext <<_ACEOF
8246 cat confdefs.h
>>conftest.
$ac_ext
8247 cat >>conftest.
$ac_ext <<_ACEOF
8248 /* end confdefs.h. */
8250 /* Override any gcc2 internal prototype to avoid an error. */
8254 /* We use char because int might match the return type of a gcc2
8255 builtin and then its argument prototype would still apply. */
8265 rm -f conftest.
$ac_objext conftest
$ac_exeext
8266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8267 (eval $ac_link) 2>conftest.er1
8269 grep -v '^ *+' conftest.er1
>conftest.err
8271 cat conftest.err
>&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); } &&
8274 { ac_try
='test -z "$ac_c_werror_flag"
8275 || test ! -s conftest.err'
8276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); }; } &&
8281 { ac_try
='test -s conftest$ac_exeext'
8282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); }; }; then
8287 ac_cv_lib_dl_dlopen
=yes
8289 echo "$as_me: failed program was:" >&5
8290 sed 's/^/| /' conftest.
$ac_ext >&5
8292 ac_cv_lib_dl_dlopen
=no
8294 rm -f conftest.err conftest.
$ac_objext \
8295 conftest
$ac_exeext conftest.
$ac_ext
8296 LIBS
=$ac_check_lib_save_LIBS
8298 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8299 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8300 if test $ac_cv_lib_dl_dlopen = yes; then
8301 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
8306 lt_cv_dlopen_self
=yes
8313 echo "$as_me:$LINENO: checking for shl_load" >&5
8314 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8315 if test "${ac_cv_func_shl_load+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8318 cat >conftest.
$ac_ext <<_ACEOF
8321 cat confdefs.h
>>conftest.
$ac_ext
8322 cat >>conftest.
$ac_ext <<_ACEOF
8323 /* end confdefs.h. */
8324 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8326 #define shl_load innocuous_shl_load
8328 /* System header to define __stub macros and hopefully few prototypes,
8329 which can conflict with char shl_load (); below.
8330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8331 <limits.h> exists even on freestanding compilers. */
8334 # include <limits.h>
8336 # include <assert.h>
8341 /* Override any gcc2 internal prototype to avoid an error. */
8346 /* We use char because int might match the return type of a gcc2
8347 builtin and then its argument prototype would still apply. */
8349 /* The GNU C library defines this for functions which it implements
8350 to always fail with ENOSYS. Some functions are actually named
8351 something starting with __ and the normal name is an alias. */
8352 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8355 char (*f) () = shl_load;
8364 return f != shl_load;
8369 rm -f conftest.
$ac_objext conftest
$ac_exeext
8370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8371 (eval $ac_link) 2>conftest.er1
8373 grep -v '^ *+' conftest.er1
>conftest.err
8375 cat conftest.err
>&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); } &&
8378 { ac_try
='test -z "$ac_c_werror_flag"
8379 || test ! -s conftest.err'
8380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }; } &&
8385 { ac_try
='test -s conftest$ac_exeext'
8386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; }; then
8391 ac_cv_func_shl_load
=yes
8393 echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.
$ac_ext >&5
8396 ac_cv_func_shl_load
=no
8398 rm -f conftest.err conftest.
$ac_objext \
8399 conftest
$ac_exeext conftest.
$ac_ext
8401 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8402 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8403 if test $ac_cv_func_shl_load = yes; then
8404 lt_cv_dlopen
="shl_load"
8406 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8407 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8408 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
8411 ac_check_lib_save_LIBS
=$LIBS
8413 cat >conftest.
$ac_ext <<_ACEOF
8416 cat confdefs.h
>>conftest.
$ac_ext
8417 cat >>conftest.
$ac_ext <<_ACEOF
8418 /* end confdefs.h. */
8420 /* Override any gcc2 internal prototype to avoid an error. */
8424 /* We use char because int might match the return type of a gcc2
8425 builtin and then its argument prototype would still apply. */
8435 rm -f conftest.
$ac_objext conftest
$ac_exeext
8436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8437 (eval $ac_link) 2>conftest.er1
8439 grep -v '^ *+' conftest.er1
>conftest.err
8441 cat conftest.err
>&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); } &&
8444 { ac_try
='test -z "$ac_c_werror_flag"
8445 || test ! -s conftest.err'
8446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; } &&
8451 { ac_try
='test -s conftest$ac_exeext'
8452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; }; then
8457 ac_cv_lib_dld_shl_load
=yes
8459 echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.
$ac_ext >&5
8462 ac_cv_lib_dld_shl_load
=no
8464 rm -f conftest.err conftest.
$ac_objext \
8465 conftest
$ac_exeext conftest.
$ac_ext
8466 LIBS
=$ac_check_lib_save_LIBS
8468 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8469 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8470 if test $ac_cv_lib_dld_shl_load = yes; then
8471 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
8473 echo "$as_me:$LINENO: checking for dlopen" >&5
8474 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8475 if test "${ac_cv_func_dlopen+set}" = set; then
8476 echo $ECHO_N "(cached) $ECHO_C" >&6
8478 cat >conftest.
$ac_ext <<_ACEOF
8481 cat confdefs.h
>>conftest.
$ac_ext
8482 cat >>conftest.
$ac_ext <<_ACEOF
8483 /* end confdefs.h. */
8484 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8486 #define dlopen innocuous_dlopen
8488 /* System header to define __stub macros and hopefully few prototypes,
8489 which can conflict with char dlopen (); below.
8490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8491 <limits.h> exists even on freestanding compilers. */
8494 # include <limits.h>
8496 # include <assert.h>
8501 /* Override any gcc2 internal prototype to avoid an error. */
8506 /* We use char because int might match the return type of a gcc2
8507 builtin and then its argument prototype would still apply. */
8509 /* The GNU C library defines this for functions which it implements
8510 to always fail with ENOSYS. Some functions are actually named
8511 something starting with __ and the normal name is an alias. */
8512 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8515 char (*f) () = dlopen;
8529 rm -f conftest.
$ac_objext conftest
$ac_exeext
8530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8531 (eval $ac_link) 2>conftest.er1
8533 grep -v '^ *+' conftest.er1
>conftest.err
8535 cat conftest.err
>&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } &&
8538 { ac_try
='test -z "$ac_c_werror_flag"
8539 || test ! -s conftest.err'
8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; } &&
8545 { ac_try
='test -s conftest$ac_exeext'
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; }; then
8551 ac_cv_func_dlopen
=yes
8553 echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.
$ac_ext >&5
8556 ac_cv_func_dlopen
=no
8558 rm -f conftest.err conftest.
$ac_objext \
8559 conftest
$ac_exeext conftest.
$ac_ext
8561 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8562 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8563 if test $ac_cv_func_dlopen = yes; then
8564 lt_cv_dlopen
="dlopen"
8566 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8567 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8568 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 ac_check_lib_save_LIBS
=$LIBS
8573 cat >conftest.
$ac_ext <<_ACEOF
8576 cat confdefs.h
>>conftest.
$ac_ext
8577 cat >>conftest.
$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8580 /* Override any gcc2 internal prototype to avoid an error. */
8584 /* We use char because int might match the return type of a gcc2
8585 builtin and then its argument prototype would still apply. */
8595 rm -f conftest.
$ac_objext conftest
$ac_exeext
8596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8597 (eval $ac_link) 2>conftest.er1
8599 grep -v '^ *+' conftest.er1
>conftest.err
8601 cat conftest.err
>&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); } &&
8604 { ac_try
='test -z "$ac_c_werror_flag"
8605 || test ! -s conftest.err'
8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; } &&
8611 { ac_try
='test -s conftest$ac_exeext'
8612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
8617 ac_cv_lib_dl_dlopen
=yes
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.
$ac_ext >&5
8622 ac_cv_lib_dl_dlopen
=no
8624 rm -f conftest.err conftest.
$ac_objext \
8625 conftest
$ac_exeext conftest.
$ac_ext
8626 LIBS
=$ac_check_lib_save_LIBS
8628 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8629 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8630 if test $ac_cv_lib_dl_dlopen = yes; then
8631 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
8633 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8634 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8635 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8636 echo $ECHO_N "(cached) $ECHO_C" >&6
8638 ac_check_lib_save_LIBS
=$LIBS
8640 cat >conftest.
$ac_ext <<_ACEOF
8643 cat confdefs.h
>>conftest.
$ac_ext
8644 cat >>conftest.
$ac_ext <<_ACEOF
8645 /* end confdefs.h. */
8647 /* Override any gcc2 internal prototype to avoid an error. */
8651 /* We use char because int might match the return type of a gcc2
8652 builtin and then its argument prototype would still apply. */
8662 rm -f conftest.
$ac_objext conftest
$ac_exeext
8663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8664 (eval $ac_link) 2>conftest.er1
8666 grep -v '^ *+' conftest.er1
>conftest.err
8668 cat conftest.err
>&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } &&
8671 { ac_try
='test -z "$ac_c_werror_flag"
8672 || test ! -s conftest.err'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; } &&
8678 { ac_try
='test -s conftest$ac_exeext'
8679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); }; }; then
8684 ac_cv_lib_svld_dlopen
=yes
8686 echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.
$ac_ext >&5
8689 ac_cv_lib_svld_dlopen
=no
8691 rm -f conftest.err conftest.
$ac_objext \
8692 conftest
$ac_exeext conftest.
$ac_ext
8693 LIBS
=$ac_check_lib_save_LIBS
8695 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8696 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8697 if test $ac_cv_lib_svld_dlopen = yes; then
8698 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
8700 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8701 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8702 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8703 echo $ECHO_N "(cached) $ECHO_C" >&6
8705 ac_check_lib_save_LIBS
=$LIBS
8707 cat >conftest.
$ac_ext <<_ACEOF
8710 cat confdefs.h
>>conftest.
$ac_ext
8711 cat >>conftest.
$ac_ext <<_ACEOF
8712 /* end confdefs.h. */
8714 /* Override any gcc2 internal prototype to avoid an error. */
8718 /* We use char because int might match the return type of a gcc2
8719 builtin and then its argument prototype would still apply. */
8729 rm -f conftest.
$ac_objext conftest
$ac_exeext
8730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8731 (eval $ac_link) 2>conftest.er1
8733 grep -v '^ *+' conftest.er1
>conftest.err
8735 cat conftest.err
>&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); } &&
8738 { ac_try
='test -z "$ac_c_werror_flag"
8739 || test ! -s conftest.err'
8740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); }; } &&
8745 { ac_try
='test -s conftest$ac_exeext'
8746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); }; }; then
8751 ac_cv_lib_dld_dld_link
=yes
8753 echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.
$ac_ext >&5
8756 ac_cv_lib_dld_dld_link
=no
8758 rm -f conftest.err conftest.
$ac_objext \
8759 conftest
$ac_exeext conftest.
$ac_ext
8760 LIBS
=$ac_check_lib_save_LIBS
8762 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8763 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8764 if test $ac_cv_lib_dld_dld_link = yes; then
8765 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
8786 if test "x$lt_cv_dlopen" != xno
; then
8792 case $lt_cv_dlopen in
8794 save_CPPFLAGS
="$CPPFLAGS"
8795 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
8797 save_LDFLAGS
="$LDFLAGS"
8798 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
8801 LIBS
="$lt_cv_dlopen_libs $LIBS"
8803 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8804 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8805 if test "${lt_cv_dlopen_self+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8808 if test "$cross_compiling" = yes; then :
8809 lt_cv_dlopen_self
=cross
8811 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
8812 lt_status
=$lt_dlunknown
8813 cat > conftest.
$ac_ext <<EOF
8814 #line 8814 "configure"
8815 #include "confdefs.h"
8824 # define LT_DLGLOBAL RTLD_GLOBAL
8827 # define LT_DLGLOBAL DL_GLOBAL
8829 # define LT_DLGLOBAL 0
8833 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8834 find out it does not work in some platform. */
8835 #ifndef LT_DLLAZY_OR_NOW
8837 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8840 # define LT_DLLAZY_OR_NOW DL_LAZY
8843 # define LT_DLLAZY_OR_NOW RTLD_NOW
8846 # define LT_DLLAZY_OR_NOW DL_NOW
8848 # define LT_DLLAZY_OR_NOW 0
8856 extern "C" void exit (int);
8859 void fnord() { int i=42;}
8862 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8863 int status = $lt_dlunknown;
8867 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8868 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8869 /* dlclose (self); */
8875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8876 (eval $ac_link) 2>&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
8880 (.
/conftest
; exit; ) 2>/dev
/null
8883 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
8884 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
8885 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
8888 # compilation failed
8889 lt_cv_dlopen_self
=no
8896 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8897 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8899 if test "x$lt_cv_dlopen_self" = xyes
; then
8900 LDFLAGS
="$LDFLAGS $link_static_flag"
8901 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8902 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8903 if test "${lt_cv_dlopen_self_static+set}" = set; then
8904 echo $ECHO_N "(cached) $ECHO_C" >&6
8906 if test "$cross_compiling" = yes; then :
8907 lt_cv_dlopen_self_static
=cross
8909 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
8910 lt_status
=$lt_dlunknown
8911 cat > conftest.
$ac_ext <<EOF
8912 #line 8912 "configure"
8913 #include "confdefs.h"
8922 # define LT_DLGLOBAL RTLD_GLOBAL
8925 # define LT_DLGLOBAL DL_GLOBAL
8927 # define LT_DLGLOBAL 0
8931 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8932 find out it does not work in some platform. */
8933 #ifndef LT_DLLAZY_OR_NOW
8935 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8938 # define LT_DLLAZY_OR_NOW DL_LAZY
8941 # define LT_DLLAZY_OR_NOW RTLD_NOW
8944 # define LT_DLLAZY_OR_NOW DL_NOW
8946 # define LT_DLLAZY_OR_NOW 0
8954 extern "C" void exit (int);
8957 void fnord() { int i=42;}
8960 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8961 int status = $lt_dlunknown;
8965 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8966 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8967 /* dlclose (self); */
8973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8974 (eval $ac_link) 2>&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
8978 (.
/conftest
; exit; ) 2>/dev
/null
8981 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
8982 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
8983 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
8986 # compilation failed
8987 lt_cv_dlopen_self_static
=no
8994 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8995 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8998 CPPFLAGS
="$save_CPPFLAGS"
8999 LDFLAGS
="$save_LDFLAGS"
9004 case $lt_cv_dlopen_self in
9005 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
9006 *) enable_dlopen_self
=unknown
;;
9009 case $lt_cv_dlopen_self_static in
9010 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
9011 *) enable_dlopen_self_static
=unknown
;;
9016 # Report which librarie types wil actually be built
9017 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9018 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9019 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9020 echo "${ECHO_T}$can_build_shared" >&6
9022 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9023 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9024 test "$can_build_shared" = "no" && enable_shared
=no
9026 # On AIX, shared libraries and static libraries use the same namespace, and
9027 # are all built from PIC.
9030 test "$enable_shared" = yes && enable_static
=no
9031 if test -n "$RANLIB"; then
9032 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
9033 postinstall_cmds
='$RANLIB $lib'
9038 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
9039 test "$enable_shared" = yes && enable_static
=no
9043 echo "$as_me:$LINENO: result: $enable_shared" >&5
9044 echo "${ECHO_T}$enable_shared" >&6
9046 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9047 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9048 # Make sure either enable_shared or enable_static is yes.
9049 test "$enable_shared" = yes || enable_static
=yes
9050 echo "$as_me:$LINENO: result: $enable_static" >&5
9051 echo "${ECHO_T}$enable_static" >&6
9053 # The else clause should only fire when bootstrapping the
9054 # libtool distribution, otherwise you forgot to ship ltmain.sh
9055 # with your package, and you will get complaints that there are
9056 # no rules to generate ltmain.sh.
9057 if test -f "$ltmain"; then
9058 # See if we are running on zsh, and set the options which allow our commands through
9059 # without removal of \ escapes.
9060 if test -n "${ZSH_VERSION+set}" ; then
9061 setopt NO_GLOB_SUBST
9063 # Now quote all the things that may contain metacharacters while being
9064 # careful not to overquote the AC_SUBSTed values. We take copies of the
9065 # variables and quote the copies for generation of the libtool script.
9066 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9068 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9069 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9070 deplibs_check_method reload_flag reload_cmds need_locks \
9071 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9072 lt_cv_sys_global_symbol_to_c_name_address \
9073 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9074 old_postinstall_cmds old_postuninstall_cmds \
9078 lt_prog_compiler_wl \
9079 lt_prog_compiler_pic \
9080 lt_prog_compiler_static \
9081 lt_prog_compiler_no_builtin_flag \
9082 export_dynamic_flag_spec \
9083 thread_safe_flag_spec \
9084 whole_archive_flag_spec \
9085 enable_shared_with_static_runtimes \
9087 old_archive_from_new_cmds \
9092 compiler_lib_search_path \
9094 archive_expsym_cmds \
9096 postuninstall_cmds \
9097 old_archive_from_expsyms_cmds \
9098 allow_undefined_flag \
9100 export_symbols_cmds \
9101 hardcode_libdir_flag_spec \
9102 hardcode_libdir_flag_spec_ld \
9103 hardcode_libdir_separator \
9104 hardcode_automatic \
9106 module_expsym_cmds \
9107 lt_cv_prog_compiler_c_o \
9112 old_archive_cmds | \
9113 old_archive_from_new_cmds | \
9115 archive_expsym_cmds | \
9117 module_expsym_cmds | \
9118 old_archive_from_expsyms_cmds | \
9119 export_symbols_cmds | \
9120 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9121 postinstall_cmds | postuninstall_cmds | \
9122 old_postinstall_cmds | old_postuninstall_cmds | \
9123 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
9124 # Double-quote double-evaled strings.
9125 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9128 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9134 *'\$0 --fallback-echo"')
9135 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9140 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9142 { echo "$as_me:$LINENO: creating $ofile" >&5
9143 echo "$as_me: creating $ofile" >&6;}
9145 cat <<__EOF__ >> "$cfgfile"
9148 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9149 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9150 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9152 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9153 # Free Software Foundation, Inc.
9155 # This file is part of GNU Libtool:
9156 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9158 # This program is free software; you can redistribute it and/or modify
9159 # it under the terms of the GNU General Public License as published by
9160 # the Free Software Foundation; either version 2 of the License, or
9161 # (at your option) any later version.
9163 # This program is distributed in the hope that it will be useful, but
9164 # WITHOUT ANY WARRANTY; without even the implied warranty of
9165 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9166 # General Public License for more details.
9168 # You should have received a copy of the GNU General Public License
9169 # along with this program; if not, write to the Free Software
9170 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9172 # As a special exception to the GNU General Public License, if you
9173 # distribute this file as part of a program that contains a
9174 # configuration script generated by Autoconf, you may include it under
9175 # the same distribution terms that you use for the rest of that program.
9177 # A sed program that does not truncate output.
9180 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9181 Xsed="$SED -e s/^X//"
9183 # The HP-UX ksh and POSIX shell print the target directory to stdout
9185 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9187 # The names of the tagged configurations supported by this script.
9190 # ### BEGIN LIBTOOL CONFIG
9192 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9194 # Shell to use when invoking shell scripts.
9197 # Whether or not to build shared libraries.
9198 build_libtool_libs=$enable_shared
9200 # Whether or not to build static libraries.
9201 build_old_libs=$enable_static
9203 # Whether or not to add -lc for building shared libraries.
9204 build_libtool_need_lc=$archive_cmds_need_lc
9206 # Whether or not to disallow shared libs when runtime libs are static
9207 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9209 # Whether or not to optimize for fast installation.
9210 fast_install=$enable_fast_install
9213 host_alias=$host_alias
9218 build_alias=$build_alias
9222 # An echo program that does not interpret backslashes.
9227 AR_FLAGS=$lt_AR_FLAGS
9232 # A language-specific compiler.
9235 # Is the compiler the GNU C compiler?
9241 # The linker used to build libraries.
9244 # Whether we need hard or soft links.
9247 # A BSD-compatible nm program.
9250 # A symbol stripping program
9253 # Used to examine libraries when file_magic_cmd begins "file"
9254 MAGIC_CMD=$MAGIC_CMD
9256 # Used on cygwin: DLL creation program.
9259 # Used on cygwin: object dumper.
9262 # Used on cygwin: assembler.
9265 # The name of the directory that contains temporary libtool files.
9268 # How to create reloadable object files.
9269 reload_flag=$lt_reload_flag
9270 reload_cmds=$lt_reload_cmds
9272 # How to pass a linker flag through the compiler.
9273 wl=$lt_lt_prog_compiler_wl
9275 # Object file suffix (normally "o").
9278 # Old archive suffix (normally "a").
9281 # Shared library suffix (normally ".so").
9282 shrext_cmds='$shrext_cmds'
9284 # Executable file suffix (normally "").
9287 # Additional compiler flags for building library objects.
9288 pic_flag=$lt_lt_prog_compiler_pic
9291 # What is the maximum length of a command?
9292 max_cmd_len=$lt_cv_sys_max_cmd_len
9294 # Does compiler simultaneously support -c and -o options?
9295 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9297 # Must we lock files when doing compilation ?
9298 need_locks=$lt_need_locks
9300 # Do we need the lib prefix for modules?
9301 need_lib_prefix=$need_lib_prefix
9303 # Do we need a version for libraries?
9304 need_version=$need_version
9306 # Whether dlopen is supported.
9307 dlopen_support=$enable_dlopen
9309 # Whether dlopen of programs is supported.
9310 dlopen_self=$enable_dlopen_self
9312 # Whether dlopen of statically linked programs is supported.
9313 dlopen_self_static=$enable_dlopen_self_static
9315 # Compiler flag to prevent dynamic linking.
9316 link_static_flag=$lt_lt_prog_compiler_static
9318 # Compiler flag to turn off builtin functions.
9319 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9321 # Compiler flag to allow reflexive dlopens.
9322 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9324 # Compiler flag to generate shared objects directly from archives.
9325 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9327 # Compiler flag to generate thread-safe objects.
9328 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9330 # Library versioning type.
9331 version_type=$version_type
9333 # Format of library name prefix.
9334 libname_spec=$lt_libname_spec
9336 # List of archive names. First name is the real one, the rest are links.
9337 # The last name is the one that the linker finds with -lNAME.
9338 library_names_spec=$lt_library_names_spec
9340 # The coded name of the library, if different from the real name.
9341 soname_spec=$lt_soname_spec
9343 # Commands used to build and install an old-style archive.
9345 old_archive_cmds=$lt_old_archive_cmds
9346 old_postinstall_cmds=$lt_old_postinstall_cmds
9347 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9349 # Create an old-style archive from a shared archive.
9350 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9352 # Create a temporary old-style archive to link instead of a shared archive.
9353 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9355 # Commands used to build and install a shared archive.
9356 archive_cmds=$lt_archive_cmds
9357 archive_expsym_cmds=$lt_archive_expsym_cmds
9358 postinstall_cmds=$lt_postinstall_cmds
9359 postuninstall_cmds=$lt_postuninstall_cmds
9361 # Commands used to build a loadable module (assumed same as above if empty)
9362 module_cmds=$lt_module_cmds
9363 module_expsym_cmds=$lt_module_expsym_cmds
9365 # Commands to strip libraries.
9366 old_striplib=$lt_old_striplib
9367 striplib=$lt_striplib
9369 # Dependencies to place before the objects being linked to create a
9371 predep_objects=$lt_predep_objects
9373 # Dependencies to place after the objects being linked to create a
9375 postdep_objects=$lt_postdep_objects
9377 # Dependencies to place before the objects being linked to create a
9381 # Dependencies to place after the objects being linked to create a
9383 postdeps=$lt_postdeps
9385 # The library search path used internally by the compiler when linking
9387 compiler_lib_search_path=$lt_compiler_lib_search_path
9389 # Method to check whether dependent libraries are shared objects.
9390 deplibs_check_method=$lt_deplibs_check_method
9392 # Command to use when deplibs_check_method == file_magic.
9393 file_magic_cmd=$lt_file_magic_cmd
9395 # Flag that allows shared libraries with undefined symbols to be built.
9396 allow_undefined_flag=$lt_allow_undefined_flag
9398 # Flag that forces no undefined symbols.
9399 no_undefined_flag=$lt_no_undefined_flag
9401 # Commands used to finish a libtool library installation in a directory.
9402 finish_cmds=$lt_finish_cmds
9404 # Same as above, but a single script fragment to be evaled but not shown.
9405 finish_eval=$lt_finish_eval
9407 # Take the output of nm and produce a listing of raw symbols and C names.
9408 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9410 # Transform the output of nm in a proper C declaration
9411 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9413 # Transform the output of nm in a C name address pair
9414 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9416 # This is the shared library runtime path variable.
9417 runpath_var=$runpath_var
9419 # This is the shared library path variable.
9420 shlibpath_var=$shlibpath_var
9422 # Is shlibpath searched before the hard-coded library search path?
9423 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9425 # How to hardcode a shared library path into an executable.
9426 hardcode_action=$hardcode_action
9428 # Whether we should hardcode library paths into libraries.
9429 hardcode_into_libs=$hardcode_into_libs
9431 # Flag to hardcode \$libdir into a binary during linking.
9432 # This must work even if \$libdir does not exist.
9433 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9435 # If ld is used when linking, flag to hardcode \$libdir into
9436 # a binary during linking. This must work even if \$libdir does
9438 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9440 # Whether we need a single -rpath flag with a separated argument.
9441 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9443 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9445 hardcode_direct=$hardcode_direct
9447 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9449 hardcode_minus_L=$hardcode_minus_L
9451 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9452 # the resulting binary.
9453 hardcode_shlibpath_var=$hardcode_shlibpath_var
9455 # Set to yes if building a shared library automatically hardcodes DIR into the library
9456 # and all subsequent libraries and executables linked against it.
9457 hardcode_automatic=$hardcode_automatic
9459 # Variables whose values should be saved in libtool wrapper scripts and
9460 # restored at relink time.
9461 variables_saved_for_relink="$variables_saved_for_relink"
9463 # Whether libtool must link a program against all its dependency libraries.
9464 link_all_deplibs=$link_all_deplibs
9466 # Compile-time system search path for libraries
9467 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9469 # Run-time system search path for libraries
9470 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9472 # Fix the shell variable \$srcfile for the compiler.
9473 fix_srcfile_path="$fix_srcfile_path"
9475 # Set to yes if exported symbols are required.
9476 always_export_symbols=$always_export_symbols
9478 # The commands to list exported symbols.
9479 export_symbols_cmds=$lt_export_symbols_cmds
9481 # The commands to extract the exported symbol list from a shared archive.
9482 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9484 # Symbols that should not be listed in the preloaded symbols.
9485 exclude_expsyms=$lt_exclude_expsyms
9487 # Symbols that must always be exported.
9488 include_expsyms=$lt_include_expsyms
9490 # ### END LIBTOOL CONFIG
9497 cat <<\EOF
>> "$cfgfile"
9499 # AIX sometimes has problems with the GCC collect2 program. For some
9500 # reason, if we set the COLLECT_NAMES environment variable, the problems
9501 # vanish in a puff of smoke.
9502 if test "X${COLLECT_NAMES+set}" != Xset
; then
9504 export COLLECT_NAMES
9510 # We use sed instead of cat because bash on DJGPP gets confused if
9511 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9512 # text mode, it properly converts lines to CR/LF. This bash problem
9513 # is reportedly fixed, but why not run on old versions too?
9514 sed '$q' "$ltmain" >> "$cfgfile" ||
(rm -f "$cfgfile"; exit 1)
9516 mv -f "$cfgfile" "$ofile" || \
9517 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9521 # If there is no Makefile yet, we rely on a make rule to execute
9522 # `config.status --recheck' to rerun these tests and create the
9523 # libtool script then.
9524 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9525 if test -f "$ltmain_in"; then
9526 test -f Makefile
&& make "$ltmain"
9532 ac_cpp
='$CPP $CPPFLAGS'
9533 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9534 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9535 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9540 # Check whether --with-tags or --without-tags was given.
9541 if test "${with_tags+set}" = set; then
9542 withval
="$with_tags"
9546 if test -f "$ltmain" && test -n "$tagnames"; then
9547 if test ! -f "${ofile}"; then
9548 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9549 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9552 if test -z "$LTCC"; then
9553 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9554 if test -z "$LTCC"; then
9555 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9556 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9558 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9559 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9563 # Extract list of available tagged configurations in $ofile.
9564 # Note that this assumes the entire list is on one line.
9565 available_tags
=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9567 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
9568 for tagname
in $tagnames; do
9570 # Check whether tagname contains only valid characters
9571 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9573 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9574 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9575 { (exit 1); exit 1; }; }
9579 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev
/null
9581 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9582 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9583 { (exit 1); exit 1; }; }
9586 # Update the list of available tags.
9587 if test -n "$tagname"; then
9588 echo appending configuration tag
\"$tagname\" to
$ofile
9592 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9593 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9594 (test "X$CXX" != "Xg++"))) ; then
9596 ac_cpp
='$CXXCPP $CPPFLAGS'
9597 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9598 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9599 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9604 archive_cmds_need_lc_CXX
=no
9605 allow_undefined_flag_CXX
=
9606 always_export_symbols_CXX
=no
9607 archive_expsym_cmds_CXX
=
9608 export_dynamic_flag_spec_CXX
=
9609 hardcode_direct_CXX
=no
9610 hardcode_libdir_flag_spec_CXX
=
9611 hardcode_libdir_flag_spec_ld_CXX
=
9612 hardcode_libdir_separator_CXX
=
9613 hardcode_minus_L_CXX
=no
9614 hardcode_automatic_CXX
=no
9616 module_expsym_cmds_CXX
=
9617 link_all_deplibs_CXX
=unknown
9618 old_archive_cmds_CXX
=$old_archive_cmds
9619 no_undefined_flag_CXX
=
9620 whole_archive_flag_spec_CXX
=
9621 enable_shared_with_static_runtimes_CXX
=no
9623 # Dependencies to place before and after the object being linked:
9625 postdep_objects_CXX
=
9628 compiler_lib_search_path_CXX
=
9630 # Source file extension for C++ test sources.
9633 # Object file extension for compiled C++ test sources.
9637 # Code to be used in simple compile tests
9638 lt_simple_compile_test_code
="int some_variable = 0;\n"
9640 # Code to be used in simple link tests
9641 lt_simple_link_test_code
='int main(int, char *) { return(0); }\n'
9643 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9645 # If no C compiler was specified, use CC.
9648 # Allow CC to be a program name with arguments.
9652 # Allow CC to be a program name with arguments.
9657 lt_save_with_gnu_ld
=$with_gnu_ld
9658 lt_save_path_LD
=$lt_cv_path_LD
9659 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9660 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
9662 unset lt_cv_prog_gnu_ld
9664 if test -n "${lt_cv_path_LDCXX+set}"; then
9665 lt_cv_path_LD
=$lt_cv_path_LDCXX
9669 test -z "${LDCXX+set}" || LD
=$LDCXX
9673 cc_basename
=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9675 # We don't want -fno-exception wen compiling C++ code, so set the
9676 # no_builtin_flag separately
9677 if test "$GXX" = yes; then
9678 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
9680 lt_prog_compiler_no_builtin_flag_CXX
=
9683 if test "$GXX" = yes; then
9684 # Set up default GNU C++ configuration
9687 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9688 if test "${with_gnu_ld+set}" = set; then
9689 withval
="$with_gnu_ld"
9690 test "$withval" = no || with_gnu_ld
=yes
9695 if test "$GCC" = yes; then
9696 # Check if gcc -print-prog-name=ld gives a path.
9697 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9698 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9701 # gcc leaves a trailing carriage return which upsets mingw
9702 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9704 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9707 # Accept absolute paths.
9709 re_direlt
='/[^/][^/]*/\.\./'
9710 # Canonicalize the pathname of ld
9711 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
9712 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9713 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9715 test -z "$LD" && LD
="$ac_prog"
9718 # If it fails, then pretend we aren't using GCC.
9722 # If it is relative, then search for the first ld in PATH.
9726 elif test "$with_gnu_ld" = yes; then
9727 echo "$as_me:$LINENO: checking for GNU ld" >&5
9728 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9730 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9731 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9733 if test "${lt_cv_path_LD+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 if test -z "$LD"; then
9737 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
9738 for ac_dir
in $PATH; do
9740 test -z "$ac_dir" && ac_dir
=.
9741 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9742 lt_cv_path_LD
="$ac_dir/$ac_prog"
9743 # Check to see if the program is GNU ld. I'd rather use --version,
9744 # but apparently some GNU ld's only accept -v.
9745 # Break only if it was the GNU/non-GNU ld that we prefer.
9746 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9747 *GNU
* |
*'with BFD'*)
9748 test "$with_gnu_ld" != no
&& break
9751 test "$with_gnu_ld" != yes && break
9758 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
9763 if test -n "$LD"; then
9764 echo "$as_me:$LINENO: result: $LD" >&5
9765 echo "${ECHO_T}$LD" >&6
9767 echo "$as_me:$LINENO: result: no" >&5
9768 echo "${ECHO_T}no" >&6
9770 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9771 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9772 { (exit 1); exit 1; }; }
9773 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9774 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9775 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9776 echo $ECHO_N "(cached) $ECHO_C" >&6
9778 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9779 case `$LD -v 2>&1 </dev/null` in
9780 *GNU
* |
*'with BFD'*)
9781 lt_cv_prog_gnu_ld
=yes
9784 lt_cv_prog_gnu_ld
=no
9788 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9789 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9790 with_gnu_ld
=$lt_cv_prog_gnu_ld
9794 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9795 # archiving commands below assume that GNU ld is being used.
9796 if test "$with_gnu_ld" = yes; then
9797 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9798 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'
9800 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
9801 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
9803 # If archive_cmds runs LD, not CC, wlarc should be empty
9804 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9805 # investigate it a little bit more. (MM)
9808 # ancient GNU ld didn't support --whole-archive et. al.
9809 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9810 grep 'no-whole-archive' > /dev
/null
; then
9811 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9813 whole_archive_flag_spec_CXX
=
9819 # A generic and very simple default shared library creation
9820 # command for GNU C++ for the case where it uses the native
9821 # linker, instead of GNU ld. If possible, this setting should
9822 # overridden to take advantage of the native linker features on
9823 # the platform it is being used on.
9824 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9827 # Commands to make compiler produce verbose output that lists
9828 # what "hidden" libraries, object files and flags are used when
9829 # linking a shared library.
9830 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9838 # PORTME: fill in a description of your system's C++ link characteristics
9839 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9840 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9844 # FIXME: insert proper C++ library support
9848 if test "$host_cpu" = ia64
; then
9849 # On IA64, the linker does run time linking by default, so we don't
9850 # have to do anything special.
9851 aix_use_runtimelinking
=no
9852 exp_sym_flag
='-Bexport'
9855 aix_use_runtimelinking
=no
9857 # Test if we are trying to use run time linking or normal
9858 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9859 # need to do runtime linking.
9860 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
9861 for ld_flag
in $LDFLAGS; do
9864 aix_use_runtimelinking
=yes
9871 exp_sym_flag
='-bexport'
9872 no_entry_flag
='-bnoentry'
9875 # When large executables or shared objects are built, AIX ld can
9876 # have problems creating the table of contents. If linking a library
9877 # or program results in "error TOC overflow" add -mminimal-toc to
9878 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9879 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9882 hardcode_direct_CXX
=yes
9883 hardcode_libdir_separator_CXX
=':'
9884 link_all_deplibs_CXX
=yes
9886 if test "$GXX" = yes; then
9887 case $host_os in aix4.
[012]|aix4.
[012].
*)
9888 # We only want to do this on AIX 4.2 and lower, the check
9889 # below for broken collect2 doesn't work under 4.3+
9890 collect2name
=`${CC} -print-prog-name=collect2`
9891 if test -f "$collect2name" && \
9892 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
9894 # We have reworked collect2
9895 hardcode_direct_CXX
=yes
9897 # We have old collect2
9898 hardcode_direct_CXX
=unsupported
9899 # It fails to find uninstalled libraries when the uninstalled
9900 # path is not listed in the libpath. Setting hardcode_minus_L
9901 # to unsupported forces relinking
9902 hardcode_minus_L_CXX
=yes
9903 hardcode_libdir_flag_spec_CXX
='-L$libdir'
9904 hardcode_libdir_separator_CXX
=
9907 shared_flag
='-shared'
9908 if test "$aix_use_runtimelinking" = yes; then
9909 shared_flag
="$shared_flag "'${wl}-G'
9913 if test "$host_cpu" = ia64
; then
9914 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9915 # chokes on -Wl,-G. The following line is correct:
9918 if test "$aix_use_runtimelinking" = yes; then
9919 shared_flag
='${wl}-G'
9921 shared_flag
='${wl}-bM:SRE'
9926 # It seems that -bexpall does not export symbols beginning with
9927 # underscore (_), so it is better to generate a list of symbols to export.
9928 always_export_symbols_CXX
=yes
9929 if test "$aix_use_runtimelinking" = yes; then
9930 # Warning - without using the other runtime loading flags (-brtl),
9931 # -berok will link without error, but may produce a broken library.
9932 allow_undefined_flag_CXX
='-berok'
9933 # Determine the default libpath from the value encoded in an empty executable.
9934 cat >conftest.
$ac_ext <<_ACEOF
9937 cat confdefs.h
>>conftest.
$ac_ext
9938 cat >>conftest.
$ac_ext <<_ACEOF
9939 /* end confdefs.h. */
9949 rm -f conftest.
$ac_objext conftest
$ac_exeext
9950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9951 (eval $ac_link) 2>conftest.er1
9953 grep -v '^ *+' conftest.er1
>conftest.err
9955 cat conftest.err
>&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } &&
9958 { ac_try
='test -z "$ac_cxx_werror_flag"
9959 || test ! -s conftest.err'
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; } &&
9965 { ac_try
='test -s conftest$ac_exeext'
9966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; }; then
9972 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9974 # Check for a 64-bit object if we didn't find anything.
9975 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; }
9978 echo "$as_me: failed program was:" >&5
9979 sed 's/^/| /' conftest.
$ac_ext >&5
9982 rm -f conftest.err conftest.
$ac_objext \
9983 conftest
$ac_exeext conftest.
$ac_ext
9984 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9986 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
9988 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"
9990 if test "$host_cpu" = ia64; then
9991 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr
/lib
:/lib
'
9992 allow_undefined_flag_CXX="-z nodefs"
9993 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"
9995 # Determine the default libpath from the value encoded in an empty executable.
9996 cat >conftest.$ac_ext <<_ACEOF
9999 cat confdefs.h >>conftest.$ac_ext
10000 cat >>conftest.$ac_ext <<_ACEOF
10001 /* end confdefs.h. */
10011 rm -f conftest.$ac_objext conftest$ac_exeext
10012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10013 (eval $ac_link) 2>conftest.er1
10015 grep -v '^ *+' conftest.er1 >conftest.err
10017 cat conftest.err >&5
10018 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10019 (exit $ac_status); } &&
10020 { ac_try='test -z "$ac_cxx_werror_flag"
10021 || test ! -s conftest.err'
10022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023 (eval $ac_try) 2>&5
10025 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10026 (exit $ac_status); }; } &&
10027 { ac_try='test -s conftest$ac_exeext'
10028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029 (eval $ac_try) 2>&5
10031 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10032 (exit $ac_status); }; }; then
10034 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10036 # Check for a 64-bit object if we didn't find anything.
10037 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; }
10040 echo "$as_me: failed program was
:" >&5
10041 sed 's/^/| /' conftest.$ac_ext >&5
10044 rm -f conftest.err conftest.$ac_objext \
10045 conftest$ac_exeext conftest.$ac_ext
10046 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
10048 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10049 # Warning - without using the other run time loading flags,
10050 # -berok will link without error, but may produce a broken library.
10051 no_undefined_flag_CXX=' ${wl}-bernotok'
10052 allow_undefined_flag_CXX=' ${wl}-berok'
10053 # -bexpall does not export symbols beginning with underscore (_)
10054 always_export_symbols_CXX=yes
10055 # Exported symbols can be pulled into shared objects from archives
10056 whole_archive_flag_spec_CXX=' '
10057 archive_cmds_need_lc_CXX=yes
10058 # This is similar to how AIX traditionally builds it's shared libraries.
10059 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'
10064 case $cc_basename in
10066 # FIXME: insert proper C++ library support
10073 cygwin* | mingw* | pw32*)
10074 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10075 # as there is no search path for DLLs.
10076 hardcode_libdir_flag_spec_CXX='-L$libdir'
10077 allow_undefined_flag_CXX=unsupported
10078 always_export_symbols_CXX=no
10079 enable_shared_with_static_runtimes_CXX=yes
10081 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10082 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'
10083 # If the export-symbols file already is a .def file (1st line
10084 # is EXPORTS), use it as is; otherwise, prepend...
10085 archive_expsym_cmds_CXX='if test "x
`$SED 1q $export_symbols`" = xEXPORTS; then
10086 cp $export_symbols $output_objdir/$soname.def;
10088 echo EXPORTS > $output_objdir/$soname.def;
10089 cat $export_symbols >> $output_objdir/$soname.def;
10091 $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'
10096 darwin* | rhapsody*)
10098 rhapsody* | darwin1.[012])
10099 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10102 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10103 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10105 case ${MACOSX_DEPLOYMENT_TARGET} in
10107 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10110 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10116 archive_cmds_need_lc_CXX=no
10117 hardcode_direct_CXX=no
10118 hardcode_automatic_CXX=yes
10119 hardcode_shlibpath_var_CXX=unsupported
10120 whole_archive_flag_spec_CXX=''
10121 link_all_deplibs_CXX=yes
10123 if test "$GXX" = yes ; then
10124 lt_int_apple_cc_single_mod=no
10125 output_verbose_link_cmd='echo'
10126 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10127 lt_int_apple_cc_single_mod=yes
10129 if test "X
$lt_int_apple_cc_single_mod" = Xyes ; then
10130 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10132 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'
10134 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10135 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10136 if test "X
$lt_int_apple_cc_single_mod" = Xyes ; then
10137 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}'
10139 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}'
10141 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}'
10143 case "$cc_basename" in
10145 output_verbose_link_cmd
='echo'
10146 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'
10147 module_cmds_CXX
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10148 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10149 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}'
10150 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}'
10160 case $cc_basename in
10162 # FIXME: insert proper C++ library support
10166 # Green Hills C++ Compiler
10167 # FIXME: insert proper C++ library support
10171 # FIXME: insert proper C++ library support
10177 # C++ shared libraries reported to be fairly broken before switch to ELF
10181 archive_cmds_need_lc_CXX
=no
10183 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
10184 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10191 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10192 hardcode_libdir_separator_CXX
=:
10193 export_dynamic_flag_spec_CXX
='${wl}-E'
10194 hardcode_direct_CXX
=yes
10195 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10196 # but as the default
10197 # location of the library.
10199 case $cc_basename in
10201 # FIXME: insert proper C++ library support
10205 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'
10206 # Commands to make compiler produce verbose output that lists
10207 # what "hidden" libraries, object files and flags are used when
10208 # linking a shared library.
10210 # There doesn't appear to be a way to prevent this compiler from
10211 # explicitly linking system object files so we need to strip them
10212 # from the output so that they don't get included in the library
10214 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'
10217 if test "$GXX" = yes; then
10218 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'
10220 # FIXME: insert proper C++ library support
10227 if test $with_gnu_ld = no
; then
10228 case "$host_cpu" in
10230 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10231 hardcode_libdir_flag_spec_ld_CXX
='+b $libdir'
10232 hardcode_libdir_separator_CXX
=:
10235 hardcode_libdir_flag_spec_CXX
='-L$libdir'
10238 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10239 hardcode_libdir_separator_CXX
=:
10240 export_dynamic_flag_spec_CXX
='${wl}-E'
10244 case "$host_cpu" in
10246 hardcode_direct_CXX
=no
10247 hardcode_shlibpath_var_CXX
=no
10250 hardcode_direct_CXX
=no
10251 hardcode_shlibpath_var_CXX
=no
10252 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10253 # but as the default
10254 # location of the library.
10257 hardcode_direct_CXX
=yes
10258 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10259 # but as the default
10260 # location of the library.
10264 case $cc_basename in
10266 # FIXME: insert proper C++ library support
10270 case "$host_cpu" in
10272 archive_cmds_CXX
='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10275 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10278 # Commands to make compiler produce verbose output that lists
10279 # what "hidden" libraries, object files and flags are used when
10280 # linking a shared library.
10282 # There doesn't appear to be a way to prevent this compiler from
10283 # explicitly linking system object files so we need to strip them
10284 # from the output so that they don't get included in the library
10286 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'
10289 if test "$GXX" = yes; then
10290 if test $with_gnu_ld = no
; then
10291 case "$host_cpu" in
10293 archive_cmds_CXX
='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10296 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'
10301 # FIXME: insert proper C++ library support
10308 case $cc_basename in
10311 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'
10313 # Archives containing C++ object files must be created using
10314 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10315 # necessary to make sure instantiated templates are included
10317 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
10320 if test "$GXX" = yes; then
10321 if test "$with_gnu_ld" = no
; then
10322 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'
10324 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'
10327 link_all_deplibs_CXX
=yes
10330 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10331 hardcode_libdir_separator_CXX
=:
10334 case $cc_basename in
10336 # Kuck and Associates, Inc. (KAI) C++ Compiler
10338 # KCC will only create a shared library if the output file
10339 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10340 # to its proper name (with version) after linking.
10341 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'
10342 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'
10343 # Commands to make compiler produce verbose output that lists
10344 # what "hidden" libraries, object files and flags are used when
10345 # linking a shared library.
10347 # There doesn't appear to be a way to prevent this compiler from
10348 # explicitly linking system object files so we need to strip them
10349 # from the output so that they don't get included in the library
10351 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'
10353 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
10354 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
10356 # Archives containing C++ object files must be created using
10357 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10358 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
10363 # version 8.0 and above of icpc choke on multiply defined symbols
10364 # if we add $predep_objects and $postdep_objects, however 7.1 and
10365 # earlier do not add the objects themselves.
10366 case `$CC -V 2>&1` in
10368 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10369 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'
10371 *) # Version 8.0 or newer
10374 ia64
*) tmp_idyn
=' -i_dynamic';;
10376 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10377 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'
10380 archive_cmds_need_lc_CXX
=no
10381 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10382 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
10383 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10386 # Portland Group C++ compiler
10387 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10388 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'
10390 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
10391 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
10395 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10396 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'
10398 runpath_var
=LD_RUN_PATH
10399 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
10400 hardcode_libdir_separator_CXX
=:
10402 # Commands to make compiler produce verbose output that lists
10403 # what "hidden" libraries, object files and flags are used when
10404 # linking a shared library.
10406 # There doesn't appear to be a way to prevent this compiler from
10407 # explicitly linking system object files so we need to strip them
10408 # from the output so that they don't get included in the library
10410 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'
10415 # FIXME: insert proper C++ library support
10419 # FIXME: insert proper C++ library support
10423 case $cc_basename in
10425 # FIXME: insert proper C++ library support
10429 # FIXME: insert proper C++ library support
10435 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
10436 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10438 hardcode_libdir_flag_spec_CXX
='-R$libdir'
10439 hardcode_direct_CXX
=yes
10440 hardcode_shlibpath_var_CXX
=no
10442 # Workaround some broken pre-1.5 toolchains
10443 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10446 # C++ shared libraries are fairly broken
10450 hardcode_direct_CXX
=yes
10451 hardcode_shlibpath_var_CXX
=no
10452 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10453 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10454 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10455 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10456 export_dynamic_flag_spec_CXX
='${wl}-E'
10457 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10459 output_verbose_link_cmd
='echo'
10462 case $cc_basename in
10464 # Kuck and Associates, Inc. (KAI) C++ Compiler
10466 # KCC will only create a shared library if the output file
10467 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10468 # to its proper name (with version) after linking.
10469 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'
10471 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10472 hardcode_libdir_separator_CXX
=:
10474 # Archives containing C++ object files must be created using
10475 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10476 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
10480 # Rational C++ 2.4.1
10481 # FIXME: insert proper C++ library support
10485 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
10486 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'
10488 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10489 hardcode_libdir_separator_CXX
=:
10491 # Commands to make compiler produce verbose output that lists
10492 # what "hidden" libraries, object files and flags are used when
10493 # linking a shared library.
10495 # There doesn't appear to be a way to prevent this compiler from
10496 # explicitly linking system object files so we need to strip them
10497 # from the output so that they don't get included in the library
10499 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'
10502 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
10503 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
10504 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'
10506 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10507 hardcode_libdir_separator_CXX
=:
10509 # Commands to make compiler produce verbose output that lists
10510 # what "hidden" libraries, object files and flags are used when
10511 # linking a shared library.
10512 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10515 # FIXME: insert proper C++ library support
10522 case $cc_basename in
10524 # Kuck and Associates, Inc. (KAI) C++ Compiler
10526 # KCC will only create a shared library if the output file
10527 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10528 # to its proper name (with version) after linking.
10529 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'
10531 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10532 hardcode_libdir_separator_CXX
=:
10534 # Archives containing C++ object files must be created using
10535 # the KAI C++ compiler.
10536 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
10539 # Rational C++ 2.4.1
10540 # FIXME: insert proper C++ library support
10544 allow_undefined_flag_CXX
=' -expect_unresolved \*'
10545 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'
10546 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10547 echo "-hidden">> $lib.exp~
10548 $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~
10551 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
10552 hardcode_libdir_separator_CXX
=:
10554 # Commands to make compiler produce verbose output that lists
10555 # what "hidden" libraries, object files and flags are used when
10556 # linking a shared library.
10558 # There doesn't appear to be a way to prevent this compiler from
10559 # explicitly linking system object files so we need to strip them
10560 # from the output so that they don't get included in the library
10562 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'
10565 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
10566 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
10567 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'
10569 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10570 hardcode_libdir_separator_CXX
=:
10572 # Commands to make compiler produce verbose output that lists
10573 # what "hidden" libraries, object files and flags are used when
10574 # linking a shared library.
10575 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10578 # FIXME: insert proper C++ library support
10585 # FIXME: insert proper C++ library support
10589 archive_cmds_need_lc_CXX
=no
10590 case $cc_basename in
10592 # FIXME: insert proper C++ library support
10596 # FIXME: insert proper C++ library support
10602 case $cc_basename in
10605 # FIXME: insert proper C++ library support
10610 # FIXME: insert proper C++ library support
10614 # FIXME: insert proper C++ library support
10620 case $cc_basename in
10622 # Sun C++ 4.2, 5.x and Centerline C++
10623 no_undefined_flag_CXX
=' -zdefs'
10624 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10625 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10626 $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'
10628 hardcode_libdir_flag_spec_CXX
='-R$libdir'
10629 hardcode_shlibpath_var_CXX
=no
10631 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10633 # The C++ compiler is used as linker so we must use $wl
10634 # flag to pass the commands to the underlying system
10636 # Supported since Solaris 2.6 (maybe 2.5.1?)
10637 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10640 link_all_deplibs_CXX
=yes
10642 # Commands to make compiler produce verbose output that lists
10643 # what "hidden" libraries, object files and flags are used when
10644 # linking a shared library.
10646 # There doesn't appear to be a way to prevent this compiler from
10647 # explicitly linking system object files so we need to strip them
10648 # from the output so that they don't get included in the library
10650 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'
10652 # Archives containing C++ object files must be created using
10653 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10654 # necessary to make sure instantiated templates are included
10656 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
10659 # Green Hills C++ Compiler
10660 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10662 # The C++ compiler must be used to create the archive.
10663 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10666 # GNU C++ compiler with Solaris linker
10667 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
10668 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
10669 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
10670 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10671 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10672 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10674 # Commands to make compiler produce verbose output that lists
10675 # what "hidden" libraries, object files and flags are used when
10676 # linking a shared library.
10677 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10679 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10681 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10682 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10683 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10685 # Commands to make compiler produce verbose output that lists
10686 # what "hidden" libraries, object files and flags are used when
10687 # linking a shared library.
10688 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10691 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
10696 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
10697 archive_cmds_need_lc_CXX
=no
10700 case $cc_basename in
10702 # NonStop-UX NCC 3.20
10703 # FIXME: insert proper C++ library support
10707 # FIXME: insert proper C++ library support
10713 # FIXME: insert proper C++ library support
10717 # FIXME: insert proper C++ library support
10721 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10722 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10723 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
10729 cat > conftest.
$ac_ext <<EOF
10733 Foo (void) { a = 0; }
10739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10740 (eval $ac_compile) 2>&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); }; then
10744 # Parse the compiler output and extract the necessary
10745 # objects, libraries and library flags.
10747 # Sentinel used to keep track of whether or not we are before
10748 # the conftest object file.
10749 pre_test_object_deps_done
=no
10751 # The `*' in the case matches for architectures that use `case' in
10752 # $output_verbose_cmd can trigger glob expansion during the loop
10753 # eval without this substitution.
10754 output_verbose_link_cmd
="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10756 for p
in `eval $output_verbose_link_cmd`; do
10760 # Some compilers place space between "-{L,R}" and the path.
10761 # Remove the space.
10762 if test $p = "-L" \
10763 ||
test $p = "-R"; then
10770 if test "$pre_test_object_deps_done" = no
; then
10773 # Internal compiler library paths should come after those
10774 # provided the user. The postdeps already come after the
10775 # user supplied libs so there is no need to process them.
10776 if test -z "$compiler_lib_search_path_CXX"; then
10777 compiler_lib_search_path_CXX
="${prev}${p}"
10779 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
10782 # The "-l" case would never come before the object being
10783 # linked, so don't bother handling this case.
10786 if test -z "$postdeps_CXX"; then
10787 postdeps_CXX
="${prev}${p}"
10789 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
10795 # This assumes that the test object file only shows up
10796 # once in the compiler output.
10797 if test "$p" = "conftest.$objext"; then
10798 pre_test_object_deps_done
=yes
10802 if test "$pre_test_object_deps_done" = no
; then
10803 if test -z "$predep_objects_CXX"; then
10804 predep_objects_CXX
="$p"
10806 predep_objects_CXX
="$predep_objects_CXX $p"
10809 if test -z "$postdep_objects_CXX"; then
10810 postdep_objects_CXX
="$p"
10812 postdep_objects_CXX
="$postdep_objects_CXX $p"
10817 *) ;; # Ignore the rest.
10825 echo "libtool.m4: error: problem compiling CXX test program"
10828 $rm -f confest.
$objext
10830 case " $postdeps_CXX " in
10831 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
10834 lt_prog_compiler_wl_CXX
=
10835 lt_prog_compiler_pic_CXX
=
10836 lt_prog_compiler_static_CXX
=
10838 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10839 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10841 # C++ specific cases for pic, static, wl, etc.
10842 if test "$GXX" = yes; then
10843 lt_prog_compiler_wl_CXX
='-Wl,'
10844 lt_prog_compiler_static_CXX
='-static'
10848 # All AIX code is PIC.
10849 if test "$host_cpu" = ia64
; then
10850 # AIX 5 now supports IA64 processor
10851 lt_prog_compiler_static_CXX
='-Bstatic'
10855 # FIXME: we need at least 68020 code to build shared libraries, but
10856 # adding the `-m68020' flag to GCC prevents building anything better,
10858 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
10860 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
10861 # PIC is the default for these OSes.
10863 mingw
* | os2
* | pw32
*)
10864 # This hack is so that the source file can tell whether it is being
10865 # built for inclusion in a dll (and should export symbols for example).
10866 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
10868 darwin
* | rhapsody
*)
10869 # PIC is the default on this platform
10870 # Common symbols not allowed in MH_DYLIB files
10871 lt_prog_compiler_pic_CXX
='-fno-common'
10874 # DJGPP does not support shared libraries at all
10875 lt_prog_compiler_pic_CXX
=
10878 if test -d /usr
/nec
; then
10879 lt_prog_compiler_pic_CXX
=-Kconform_pic
10883 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10884 # not for PA HP-UX.
10885 case "$host_cpu" in
10889 lt_prog_compiler_pic_CXX
='-fPIC'
10894 lt_prog_compiler_pic_CXX
='-fPIC'
10900 # All AIX code is PIC.
10901 if test "$host_cpu" = ia64
; then
10902 # AIX 5 now supports IA64 processor
10903 lt_prog_compiler_static_CXX
='-Bstatic'
10905 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
10909 case $cc_basename in
10911 # Green Hills C++ Compiler
10912 # _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"
10917 # PIC is the default on this platform
10918 # Common symbols not allowed in MH_DYLIB files
10919 case "$cc_basename" in
10921 lt_prog_compiler_pic_CXX
='-qnocommon'
10922 lt_prog_compiler_wl_CXX
='-Wl,'
10927 case $cc_basename in
10929 lt_prog_compiler_pic_CXX
='-KPIC'
10932 # Green Hills C++ Compiler
10933 lt_prog_compiler_pic_CXX
='-pic'
10939 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
10940 # FreeBSD uses GNU C++
10942 hpux9
* | hpux10
* | hpux11
*)
10943 case $cc_basename in
10945 lt_prog_compiler_wl_CXX
='-Wl,'
10946 lt_prog_compiler_static_CXX
="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10947 if test "$host_cpu" != ia64
; then
10948 lt_prog_compiler_pic_CXX
='+Z'
10952 lt_prog_compiler_wl_CXX
='-Wl,'
10953 lt_prog_compiler_static_CXX
="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10954 case "$host_cpu" in
10959 lt_prog_compiler_pic_CXX
='+Z'
10967 irix5
* | irix6
* | nonstopux
*)
10968 case $cc_basename in
10970 lt_prog_compiler_wl_CXX
='-Wl,'
10971 lt_prog_compiler_static_CXX
='-non_shared'
10972 # CC pic flag -KPIC is the default.
10979 case $cc_basename in
10982 lt_prog_compiler_wl_CXX
='--backend -Wl,'
10983 lt_prog_compiler_pic_CXX
='-fPIC'
10987 lt_prog_compiler_wl_CXX
='-Wl,'
10988 lt_prog_compiler_pic_CXX
='-KPIC'
10989 lt_prog_compiler_static_CXX
='-static'
10992 # Portland Group C++ compiler.
10993 lt_prog_compiler_wl_CXX
='-Wl,'
10994 lt_prog_compiler_pic_CXX
='-fpic'
10995 lt_prog_compiler_static_CXX
='-static'
10999 # Make sure the PIC flag is empty. It appears that all Alpha
11000 # Linux and Compaq Tru64 Unix objects are PIC.
11001 lt_prog_compiler_pic_CXX
=
11002 lt_prog_compiler_static_CXX
='-non_shared'
11013 case $cc_basename in
11015 lt_prog_compiler_pic_CXX
='-W c,exportall'
11023 osf3
* | osf4
* | osf5
*)
11024 case $cc_basename in
11026 lt_prog_compiler_wl_CXX
='--backend -Wl,'
11029 # Rational C++ 2.4.1
11030 lt_prog_compiler_pic_CXX
='-pic'
11033 # Digital/Compaq C++
11034 lt_prog_compiler_wl_CXX
='-Wl,'
11035 # Make sure the PIC flag is empty. It appears that all Alpha
11036 # Linux and Compaq Tru64 Unix objects are PIC.
11037 lt_prog_compiler_pic_CXX
=
11038 lt_prog_compiler_static_CXX
='-non_shared'
11047 case $cc_basename in
11049 lt_prog_compiler_pic_CXX
='-fPIC'
11056 case $cc_basename in
11058 # Sun C++ 4.2, 5.x and Centerline C++
11059 lt_prog_compiler_pic_CXX
='-KPIC'
11060 lt_prog_compiler_static_CXX
='-Bstatic'
11061 lt_prog_compiler_wl_CXX
='-Qoption ld '
11064 # Green Hills C++ Compiler
11065 lt_prog_compiler_pic_CXX
='-PIC'
11072 case $cc_basename in
11075 lt_prog_compiler_pic_CXX
='-pic'
11076 lt_prog_compiler_static_CXX
='-Bstatic'
11080 lt_prog_compiler_pic_CXX
='-pic'
11087 case $cc_basename in
11089 # NonStop-UX NCC 3.20
11090 lt_prog_compiler_pic_CXX
='-KPIC'
11101 lt_prog_compiler_can_build_shared_CXX
=no
11106 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11107 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11110 # Check to make sure the PIC flag actually works.
11112 if test -n "$lt_prog_compiler_pic_CXX"; then
11114 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11115 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11116 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11119 lt_prog_compiler_pic_works_CXX
=no
11120 ac_outfile
=conftest.
$ac_objext
11121 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11122 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
11123 # Insert the option either (1) after the last *FLAGS variable, or
11124 # (2) before a word containing "conftest.", or (3) at the end.
11125 # Note that $ac_compile itself does not contain backslashes and begins
11126 # with a dollar sign (not a hyphen), so the echo should work correctly.
11127 # The option is referenced via a variable to avoid confusing sed.
11128 lt_compile
=`echo "$ac_compile" | $SED \
11129 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11130 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11131 -e 's:$: $lt_compiler_flag:'`
11132 (eval echo "\"\$as_me:11132: $lt_compile\"" >&5)
11133 (eval "$lt_compile" 2>conftest.err
)
11135 cat conftest.err
>&5
11136 echo "$as_me:11136: \$? = $ac_status" >&5
11137 if (exit $ac_status) && test -s "$ac_outfile"; then
11138 # The compiler can only warn and ignore the option if not recognized
11139 # So say no if there are warnings
11140 if test ! -s conftest.err
; then
11141 lt_prog_compiler_pic_works_CXX
=yes
11147 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11148 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11150 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
11151 case $lt_prog_compiler_pic_CXX in
11153 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
11156 lt_prog_compiler_pic_CXX
=
11157 lt_prog_compiler_can_build_shared_CXX
=no
11162 # For platforms which do not support PIC, -DPIC is meaningless:
11164 lt_prog_compiler_pic_CXX
=
11167 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
11171 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11172 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11173 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11174 echo $ECHO_N "(cached) $ECHO_C" >&6
11176 lt_cv_prog_compiler_c_o_CXX
=no
11177 $rm -r conftest
2>/dev
/null
11181 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11183 lt_compiler_flag
="-o out/conftest2.$ac_objext"
11184 # Insert the option either (1) after the last *FLAGS variable, or
11185 # (2) before a word containing "conftest.", or (3) at the end.
11186 # Note that $ac_compile itself does not contain backslashes and begins
11187 # with a dollar sign (not a hyphen), so the echo should work correctly.
11188 lt_compile
=`echo "$ac_compile" | $SED \
11189 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11190 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11191 -e 's:$: $lt_compiler_flag:'`
11192 (eval echo "\"\$as_me:11192: $lt_compile\"" >&5)
11193 (eval "$lt_compile" 2>out
/conftest.err
)
11195 cat out
/conftest.err
>&5
11196 echo "$as_me:11196: \$? = $ac_status" >&5
11197 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
11199 # The compiler can only warn and ignore the option if not recognized
11200 # So say no if there are warnings
11201 if test ! -s out
/conftest.err
; then
11202 lt_cv_prog_compiler_c_o_CXX
=yes
11207 # SGI C++ compiler will create directory out/ii_files/ for
11208 # template instantiation
11209 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
11210 $rm out
/* && rmdir out
11216 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11217 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11220 hard_links
="nottested"
11221 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
11222 # do not overwrite the value of need_locks provided by the user
11223 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11224 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11227 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
11229 ln conftest.a conftest.b
2>&5 || hard_links
=no
11230 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
11231 echo "$as_me:$LINENO: result: $hard_links" >&5
11232 echo "${ECHO_T}$hard_links" >&6
11233 if test "$hard_links" = no
; then
11234 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11235 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11242 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11243 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11245 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11248 # If we're using GNU nm, then we don't want the "-C" option.
11249 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11250 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
11251 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'
11253 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'
11257 export_symbols_cmds_CXX
="$ltdll_cmds"
11260 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'
11263 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11267 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11268 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11269 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
11271 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11272 if test "$GCC" = yes; then
11273 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11277 # Do we need to explicitly link libc?
11279 case "x$archive_cmds_need_lc_CXX" in
11281 # Assume -lc should be added
11282 archive_cmds_need_lc_CXX
=yes
11284 if test "$enable_shared" = yes && test "$GCC" = yes; then
11285 case $archive_cmds_CXX in
11287 # FIXME: we may have to deal with multi-command sequences.
11290 # Test whether the compiler implicitly links with -lc since on some
11291 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11292 # to ld, don't add -lc before -lgcc.
11293 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11294 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11296 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11299 (eval $ac_compile) 2>&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } 2>conftest.err
; then
11305 libobjs
=conftest.
$ac_objext
11307 wl
=$lt_prog_compiler_wl_CXX
11313 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
11314 allow_undefined_flag_CXX
=
11315 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11316 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); }
11321 archive_cmds_need_lc_CXX
=no
11323 archive_cmds_need_lc_CXX
=yes
11325 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
11327 cat conftest.err
1>&5
11330 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11331 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11338 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11339 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11340 library_names_spec
=
11341 libname_spec
='lib$name'
11345 postuninstall_cmds
=
11349 shlibpath_overrides_runpath
=unknown
11351 dynamic_linker
="$host_os ld.so"
11352 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
11353 if test "$GCC" = yes; then
11354 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11355 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
11356 # if the path contains ";" then we assume it to be the separator
11357 # otherwise default to the standard path separator (i.e. ":") - it is
11358 # assumed that no part of a normal pathname contains ";" but that should
11359 # okay in the real world where ";" in dirpaths is itself problematic.
11360 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11362 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11365 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11367 need_lib_prefix
=unknown
11368 hardcode_into_libs
=no
11370 # when you set need_version to no, make sure it does not cause -set_version
11371 # flags to be left without arguments
11372 need_version
=unknown
11377 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
11378 shlibpath_var
=LIBPATH
11380 # AIX 3 has no versioning support, so we append a major version to the name.
11381 soname_spec
='${libname}${release}${shared_ext}$major'
11388 hardcode_into_libs
=yes
11389 if test "$host_cpu" = ia64
; then
11390 # AIX 5 supports IA64
11391 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11392 shlibpath_var
=LD_LIBRARY_PATH
11394 # With GCC up to 2.95.x, collect2 would create an import file
11395 # for dependence libraries. The import file would start with
11396 # the line `#! .'. This would cause the generated library to
11397 # depend on `.', always an invalid library. This was fixed in
11398 # development snapshots of GCC prior to 3.0.
11400 aix4 | aix4.
[01] | aix4.
[01].
*)
11401 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11403 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
11406 can_build_shared
=no
11410 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11411 # soname into executable. Probably we can add versioning support to
11412 # collect2, so additional links can be useful in future.
11413 if test "$aix_use_runtimelinking" = yes; then
11414 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11415 # instead of lib<name>.a to let people know that these are not
11416 # typical AIX shared libraries.
11417 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11419 # We preserve .a as extension for shared libraries through AIX4.2
11420 # and later when we are not doing run time linking.
11421 library_names_spec
='${libname}${release}.a $libname.a'
11422 soname_spec
='${libname}${release}${shared_ext}$major'
11424 shlibpath_var
=LIBPATH
11429 library_names_spec
='$libname.ixlibrary $libname.a'
11430 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11431 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'
11435 library_names_spec
='${libname}${shared_ext}'
11436 dynamic_linker
="$host_os ld.so"
11437 shlibpath_var
=LIBRARY_PATH
11443 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11444 soname_spec
='${libname}${release}${shared_ext}$major'
11445 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
11446 shlibpath_var
=LD_LIBRARY_PATH
11447 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11448 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
11449 # the default ld.so.conf also contains /usr/contrib/lib and
11450 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11451 # libtool to hard-code these into programs
11454 cygwin
* | mingw
* | pw32
*)
11455 version_type
=windows
11460 case $GCC,$host_os in
11461 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
11462 library_names_spec
='$libname.dll.a'
11463 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11464 postinstall_cmds
='base_file=`basename \${file}`~
11465 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11466 dldir=$destdir/`dirname \$dlpath`~
11467 test -d \$dldir || mkdir -p \$dldir~
11468 $install_prog $dir/$dlname \$dldir/$dlname'
11469 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11470 dlpath=$dir/\$dldll~
11472 shlibpath_overrides_runpath
=yes
11476 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11477 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11478 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
11481 # MinGW DLLs use traditional 'lib' prefix
11482 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11483 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11484 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
11485 # It is most probably a Windows format PATH printed by
11486 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11487 # path with ; separators, and with drive letters. We can handle the
11488 # drive letters (cygwin fileutils understands them), so leave them,
11489 # especially as we might pass files found there to a mingw objdump,
11490 # which wouldn't understand a cygwinified path. Ahh.
11491 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11493 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11497 # pw32 DLLs use 'pw' prefix rather than 'lib'
11498 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11504 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11507 dynamic_linker
='Win32 ld.exe'
11508 # FIXME: first we should search . and the directory the executable is in
11512 darwin
* | rhapsody
*)
11513 dynamic_linker
="$host_os dyld"
11514 version_type
=darwin
11517 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11518 soname_spec
='${libname}${release}${major}$shared_ext'
11519 shlibpath_overrides_runpath
=yes
11520 shlibpath_var
=DYLD_LIBRARY_PATH
11521 shrext_cmds
='$(test .$module = .yes && echo .so || echo .dylib)'
11522 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11523 if test "$GCC" = yes; then
11524 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"`
11526 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
11528 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11535 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11536 soname_spec
='${libname}${release}${shared_ext}$major'
11537 shlibpath_var
=LD_LIBRARY_PATH
11548 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11549 soname_spec
='${libname}${release}${shared_ext}$major'
11550 shlibpath_var
=LD_LIBRARY_PATH
11551 shlibpath_overrides_runpath
=no
11552 hardcode_into_libs
=yes
11553 dynamic_linker
='GNU ld.so'
11556 freebsd
* | dragonfly
*)
11557 # DragonFly does not have aout. When/if they implement a new
11558 # versioning mechanism, adjust this.
11559 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11560 version_type
=freebsd-
$objformat
11561 case $version_type in
11563 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11568 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11572 shlibpath_var
=LD_LIBRARY_PATH
11575 shlibpath_overrides_runpath
=yes
11577 freebsd3.
[01]* | freebsdelf3.
[01]*)
11578 shlibpath_overrides_runpath
=yes
11579 hardcode_into_libs
=yes
11582 shlibpath_overrides_runpath
=no
11583 hardcode_into_libs
=yes
11592 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11593 soname_spec
='${libname}${release}${shared_ext}$major'
11594 shlibpath_var
=LD_LIBRARY_PATH
11595 hardcode_into_libs
=yes
11598 hpux9
* | hpux10
* | hpux11
*)
11599 # Give a soname corresponding to the major version so that dld.sl refuses to
11600 # link against other versions.
11604 case "$host_cpu" in
11607 hardcode_into_libs
=yes
11608 dynamic_linker
="$host_os dld.so"
11609 shlibpath_var
=LD_LIBRARY_PATH
11610 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11611 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11612 soname_spec
='${libname}${release}${shared_ext}$major'
11613 if test "X$HPUX_IA64_MODE" = X32
; then
11614 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11616 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11618 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11622 hardcode_into_libs
=yes
11623 dynamic_linker
="$host_os dld.sl"
11624 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11625 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11626 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11627 soname_spec
='${libname}${release}${shared_ext}$major'
11628 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11629 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11633 dynamic_linker
="$host_os dld.sl"
11634 shlibpath_var
=SHLIB_PATH
11635 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11636 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11637 soname_spec
='${libname}${release}${shared_ext}$major'
11640 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11641 postinstall_cmds
='chmod 555 $lib'
11644 irix5
* | irix6
* | nonstopux
*)
11646 nonstopux
*) version_type
=nonstopux
;;
11648 if test "$lt_cv_prog_gnu_ld" = yes; then
11656 soname_spec
='${libname}${release}${shared_ext}$major'
11657 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11659 irix5
* | nonstopux
*)
11660 libsuff
= shlibsuff
=
11663 case $LD in # libtool.m4 will add one of these switches to LD
11664 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11665 libsuff
= shlibsuff
= libmagic
=32-bit;;
11666 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11667 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11668 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11669 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11670 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11674 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11675 shlibpath_overrides_runpath
=no
11676 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11677 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
11678 hardcode_into_libs
=yes
11681 # No shared lib support for Linux oldld, aout, or coff.
11682 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11686 # This must be Linux ELF.
11691 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11692 soname_spec
='${libname}${release}${shared_ext}$major'
11693 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11694 shlibpath_var
=LD_LIBRARY_PATH
11695 shlibpath_overrides_runpath
=no
11696 # This implies no fast_install, which is unacceptable.
11697 # Some rework will be needed to allow for fast_install
11698 # before this can be enabled.
11699 hardcode_into_libs
=yes
11701 # Append ld.so.conf contents to the search path
11702 if test -f /etc
/ld.so.conf
; then
11703 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' ' '`
11704 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11707 # We used to test for /lib/ld.so.1 and disable shared libraries on
11708 # powerpc, because MkLinux only supported shared libraries with the
11709 # GNU dynamic linker. Since this was broken with cross compilers,
11710 # most powerpc-linux boxes support dynamic linking these days and
11711 # people can always --disable-shared, the test was removed, and we
11712 # assume the GNU/Linux dynamic linker is in use.
11713 dynamic_linker
='GNU/Linux ld.so'
11720 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11721 soname_spec
='${libname}${release}${shared_ext}$major'
11722 shlibpath_var
=LD_LIBRARY_PATH
11723 shlibpath_overrides_runpath
=no
11724 hardcode_into_libs
=yes
11725 dynamic_linker
='GNU ld.so'
11732 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11733 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11734 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11735 dynamic_linker
='NetBSD (a.out) ld.so'
11737 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11738 soname_spec
='${libname}${release}${shared_ext}$major'
11739 dynamic_linker
='NetBSD ld.elf_so'
11741 shlibpath_var
=LD_LIBRARY_PATH
11742 shlibpath_overrides_runpath
=yes
11743 hardcode_into_libs
=yes
11748 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11749 shlibpath_var
=LD_LIBRARY_PATH
11750 shlibpath_overrides_runpath
=yes
11757 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11758 soname_spec
='${libname}${release}${shared_ext}$major'
11759 shlibpath_var
=LD_LIBRARY_PATH
11760 shlibpath_overrides_runpath
=yes
11767 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11768 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11769 shlibpath_var
=LD_LIBRARY_PATH
11770 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11772 openbsd2.
[89] | openbsd2.
[89].
*)
11773 shlibpath_overrides_runpath
=no
11776 shlibpath_overrides_runpath
=yes
11780 shlibpath_overrides_runpath
=yes
11785 libname_spec
='$name'
11788 library_names_spec
='$libname${shared_ext} $libname.a'
11789 dynamic_linker
='OS/2 ld.exe'
11790 shlibpath_var
=LIBPATH
11793 osf3
* | osf4
* | osf5
*)
11797 soname_spec
='${libname}${release}${shared_ext}$major'
11798 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11799 shlibpath_var
=LD_LIBRARY_PATH
11800 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11801 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11806 soname_spec
='${libname}${release}${shared_ext}$major'
11807 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11808 shlibpath_var
=LD_LIBRARY_PATH
11815 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11816 soname_spec
='${libname}${release}${shared_ext}$major'
11817 shlibpath_var
=LD_LIBRARY_PATH
11818 shlibpath_overrides_runpath
=yes
11819 hardcode_into_libs
=yes
11820 # ldd complains unless libraries are executable
11821 postinstall_cmds
='chmod +x $lib'
11826 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11827 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11828 shlibpath_var
=LD_LIBRARY_PATH
11829 shlibpath_overrides_runpath
=yes
11830 if test "$with_gnu_ld" = yes; then
11836 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
11838 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11839 soname_spec
='${libname}${release}${shared_ext}$major'
11840 shlibpath_var
=LD_LIBRARY_PATH
11841 case $host_vendor in
11843 shlibpath_overrides_runpath
=no
11845 export_dynamic_flag_spec
='${wl}-Blargedynsym'
11846 runpath_var
=LD_RUN_PATH
11854 shlibpath_overrides_runpath
=no
11855 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11861 if test -d /usr
/nec
;then
11863 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11864 soname_spec
='$libname${shared_ext}.$major'
11865 shlibpath_var
=LD_LIBRARY_PATH
11871 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11872 soname_spec
='${libname}${release}${shared_ext}$major'
11873 shlibpath_var
=LD_LIBRARY_PATH
11880 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11881 echo "${ECHO_T}$dynamic_linker" >&6
11882 test "$dynamic_linker" = no
&& can_build_shared
=no
11884 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11885 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11886 hardcode_action_CXX
=
11887 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11888 test -n "$runpath_var_CXX" || \
11889 test "X$hardcode_automatic_CXX" = "Xyes" ; then
11891 # We can hardcode non-existant directories.
11892 if test "$hardcode_direct_CXX" != no
&&
11893 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11894 # have to relink, otherwise we might link with an installed library
11895 # when we should be linking with a yet-to-be-installed one
11896 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11897 test "$hardcode_minus_L_CXX" != no
; then
11898 # Linking always hardcodes the temporary library directory.
11899 hardcode_action_CXX
=relink
11901 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11902 hardcode_action_CXX
=immediate
11905 # We cannot hardcode anything, or else we can only hardcode existing
11907 hardcode_action_CXX
=unsupported
11909 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11910 echo "${ECHO_T}$hardcode_action_CXX" >&6
11912 if test "$hardcode_action_CXX" = relink
; then
11913 # Fast installation is not supported
11914 enable_fast_install
=no
11915 elif test "$shlibpath_overrides_runpath" = yes ||
11916 test "$enable_shared" = no
; then
11917 # Fast installation is not necessary
11918 enable_fast_install
=needless
11923 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11924 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11925 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
11926 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11927 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11928 echo "$as_me:$LINENO: result: yes" >&5
11929 echo "${ECHO_T}yes" >&6
11931 # FIXME - insert some real tests, host_os isn't really good enough
11934 if test -n "$STRIP" ; then
11935 striplib
="$STRIP -x"
11936 echo "$as_me:$LINENO: result: yes" >&5
11937 echo "${ECHO_T}yes" >&6
11939 echo "$as_me:$LINENO: result: no" >&5
11940 echo "${ECHO_T}no" >&6
11944 echo "$as_me:$LINENO: result: no" >&5
11945 echo "${ECHO_T}no" >&6
11950 if test "x$enable_dlopen" != xyes
; then
11951 enable_dlopen
=unknown
11952 enable_dlopen_self
=unknown
11953 enable_dlopen_self_static
=unknown
11960 lt_cv_dlopen
="load_add_on"
11962 lt_cv_dlopen_self
=yes
11966 lt_cv_dlopen
="LoadLibrary"
11971 lt_cv_dlopen
="dlopen"
11976 # if libdl is installed we need to link against it
11977 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11978 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11979 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11980 echo $ECHO_N "(cached) $ECHO_C" >&6
11982 ac_check_lib_save_LIBS
=$LIBS
11984 cat >conftest.
$ac_ext <<_ACEOF
11987 cat confdefs.h
>>conftest.
$ac_ext
11988 cat >>conftest.
$ac_ext <<_ACEOF
11989 /* end confdefs.h. */
11991 /* Override any gcc2 internal prototype to avoid an error. */
11995 /* We use char because int might match the return type of a gcc2
11996 builtin and then its argument prototype would still apply. */
12006 rm -f conftest.
$ac_objext conftest
$ac_exeext
12007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12008 (eval $ac_link) 2>conftest.er1
12010 grep -v '^ *+' conftest.er1
>conftest.err
12012 cat conftest.err
>&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } &&
12015 { ac_try
='test -z "$ac_cxx_werror_flag"
12016 || test ! -s conftest.err'
12017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; } &&
12022 { ac_try
='test -s conftest$ac_exeext'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; }; then
12028 ac_cv_lib_dl_dlopen
=yes
12030 echo "$as_me: failed program was:" >&5
12031 sed 's/^/| /' conftest.
$ac_ext >&5
12033 ac_cv_lib_dl_dlopen
=no
12035 rm -f conftest.err conftest.
$ac_objext \
12036 conftest
$ac_exeext conftest.
$ac_ext
12037 LIBS
=$ac_check_lib_save_LIBS
12039 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12040 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12041 if test $ac_cv_lib_dl_dlopen = yes; then
12042 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12045 lt_cv_dlopen
="dyld"
12047 lt_cv_dlopen_self
=yes
12054 echo "$as_me:$LINENO: checking for shl_load" >&5
12055 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12056 if test "${ac_cv_func_shl_load+set}" = set; then
12057 echo $ECHO_N "(cached) $ECHO_C" >&6
12059 cat >conftest.
$ac_ext <<_ACEOF
12062 cat confdefs.h
>>conftest.
$ac_ext
12063 cat >>conftest.
$ac_ext <<_ACEOF
12064 /* end confdefs.h. */
12065 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12067 #define shl_load innocuous_shl_load
12069 /* System header to define __stub macros and hopefully few prototypes,
12070 which can conflict with char shl_load (); below.
12071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12072 <limits.h> exists even on freestanding compilers. */
12075 # include <limits.h>
12077 # include <assert.h>
12082 /* Override any gcc2 internal prototype to avoid an error. */
12087 /* We use char because int might match the return type of a gcc2
12088 builtin and then its argument prototype would still apply. */
12090 /* The GNU C library defines this for functions which it implements
12091 to always fail with ENOSYS. Some functions are actually named
12092 something starting with __ and the normal name is an alias. */
12093 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12096 char (*f) () = shl_load;
12105 return f != shl_load;
12110 rm -f conftest.
$ac_objext conftest
$ac_exeext
12111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12112 (eval $ac_link) 2>conftest.er1
12114 grep -v '^ *+' conftest.er1
>conftest.err
12116 cat conftest.err
>&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } &&
12119 { ac_try
='test -z "$ac_cxx_werror_flag"
12120 || test ! -s conftest.err'
12121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122 (eval $ac_try) 2>&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; } &&
12126 { ac_try
='test -s conftest$ac_exeext'
12127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12128 (eval $ac_try) 2>&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; }; then
12132 ac_cv_func_shl_load
=yes
12134 echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.
$ac_ext >&5
12137 ac_cv_func_shl_load
=no
12139 rm -f conftest.err conftest.
$ac_objext \
12140 conftest
$ac_exeext conftest.
$ac_ext
12142 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12143 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12144 if test $ac_cv_func_shl_load = yes; then
12145 lt_cv_dlopen
="shl_load"
12147 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12148 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12149 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12152 ac_check_lib_save_LIBS
=$LIBS
12154 cat >conftest.
$ac_ext <<_ACEOF
12157 cat confdefs.h
>>conftest.
$ac_ext
12158 cat >>conftest.
$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12161 /* Override any gcc2 internal prototype to avoid an error. */
12165 /* We use char because int might match the return type of a gcc2
12166 builtin and then its argument prototype would still apply. */
12176 rm -f conftest.
$ac_objext conftest
$ac_exeext
12177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12178 (eval $ac_link) 2>conftest.er1
12180 grep -v '^ *+' conftest.er1
>conftest.err
12182 cat conftest.err
>&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } &&
12185 { ac_try
='test -z "$ac_cxx_werror_flag"
12186 || test ! -s conftest.err'
12187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188 (eval $ac_try) 2>&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; } &&
12192 { ac_try
='test -s conftest$ac_exeext'
12193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194 (eval $ac_try) 2>&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); }; }; then
12198 ac_cv_lib_dld_shl_load
=yes
12200 echo "$as_me: failed program was:" >&5
12201 sed 's/^/| /' conftest.
$ac_ext >&5
12203 ac_cv_lib_dld_shl_load
=no
12205 rm -f conftest.err conftest.
$ac_objext \
12206 conftest
$ac_exeext conftest.
$ac_ext
12207 LIBS
=$ac_check_lib_save_LIBS
12209 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12210 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12211 if test $ac_cv_lib_dld_shl_load = yes; then
12212 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
12214 echo "$as_me:$LINENO: checking for dlopen" >&5
12215 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12216 if test "${ac_cv_func_dlopen+set}" = set; then
12217 echo $ECHO_N "(cached) $ECHO_C" >&6
12219 cat >conftest.
$ac_ext <<_ACEOF
12222 cat confdefs.h
>>conftest.
$ac_ext
12223 cat >>conftest.
$ac_ext <<_ACEOF
12224 /* end confdefs.h. */
12225 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12227 #define dlopen innocuous_dlopen
12229 /* System header to define __stub macros and hopefully few prototypes,
12230 which can conflict with char dlopen (); below.
12231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12232 <limits.h> exists even on freestanding compilers. */
12235 # include <limits.h>
12237 # include <assert.h>
12242 /* Override any gcc2 internal prototype to avoid an error. */
12247 /* We use char because int might match the return type of a gcc2
12248 builtin and then its argument prototype would still apply. */
12250 /* The GNU C library defines this for functions which it implements
12251 to always fail with ENOSYS. Some functions are actually named
12252 something starting with __ and the normal name is an alias. */
12253 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12256 char (*f) () = dlopen;
12265 return f != dlopen;
12270 rm -f conftest.
$ac_objext conftest
$ac_exeext
12271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12272 (eval $ac_link) 2>conftest.er1
12274 grep -v '^ *+' conftest.er1
>conftest.err
12276 cat conftest.err
>&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } &&
12279 { ac_try
='test -z "$ac_cxx_werror_flag"
12280 || test ! -s conftest.err'
12281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12282 (eval $ac_try) 2>&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }; } &&
12286 { ac_try
='test -s conftest$ac_exeext'
12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288 (eval $ac_try) 2>&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; }; then
12292 ac_cv_func_dlopen
=yes
12294 echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.
$ac_ext >&5
12297 ac_cv_func_dlopen
=no
12299 rm -f conftest.err conftest.
$ac_objext \
12300 conftest
$ac_exeext conftest.
$ac_ext
12302 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12303 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12304 if test $ac_cv_func_dlopen = yes; then
12305 lt_cv_dlopen
="dlopen"
12307 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12308 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12309 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 ac_check_lib_save_LIBS
=$LIBS
12314 cat >conftest.
$ac_ext <<_ACEOF
12317 cat confdefs.h
>>conftest.
$ac_ext
12318 cat >>conftest.
$ac_ext <<_ACEOF
12319 /* end confdefs.h. */
12321 /* Override any gcc2 internal prototype to avoid an error. */
12325 /* We use char because int might match the return type of a gcc2
12326 builtin and then its argument prototype would still apply. */
12336 rm -f conftest.
$ac_objext conftest
$ac_exeext
12337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12338 (eval $ac_link) 2>conftest.er1
12340 grep -v '^ *+' conftest.er1
>conftest.err
12342 cat conftest.err
>&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } &&
12345 { ac_try
='test -z "$ac_cxx_werror_flag"
12346 || test ! -s conftest.err'
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348 (eval $ac_try) 2>&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; } &&
12352 { ac_try
='test -s conftest$ac_exeext'
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; }; then
12358 ac_cv_lib_dl_dlopen
=yes
12360 echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.
$ac_ext >&5
12363 ac_cv_lib_dl_dlopen
=no
12365 rm -f conftest.err conftest.
$ac_objext \
12366 conftest
$ac_exeext conftest.
$ac_ext
12367 LIBS
=$ac_check_lib_save_LIBS
12369 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12370 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12371 if test $ac_cv_lib_dl_dlopen = yes; then
12372 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12374 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12375 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12376 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12379 ac_check_lib_save_LIBS
=$LIBS
12380 LIBS
="-lsvld $LIBS"
12381 cat >conftest.
$ac_ext <<_ACEOF
12384 cat confdefs.h
>>conftest.
$ac_ext
12385 cat >>conftest.
$ac_ext <<_ACEOF
12386 /* end confdefs.h. */
12388 /* Override any gcc2 internal prototype to avoid an error. */
12392 /* We use char because int might match the return type of a gcc2
12393 builtin and then its argument prototype would still apply. */
12403 rm -f conftest.
$ac_objext conftest
$ac_exeext
12404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12405 (eval $ac_link) 2>conftest.er1
12407 grep -v '^ *+' conftest.er1
>conftest.err
12409 cat conftest.err
>&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } &&
12412 { ac_try
='test -z "$ac_cxx_werror_flag"
12413 || test ! -s conftest.err'
12414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415 (eval $ac_try) 2>&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; } &&
12419 { ac_try
='test -s conftest$ac_exeext'
12420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421 (eval $ac_try) 2>&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; }; then
12425 ac_cv_lib_svld_dlopen
=yes
12427 echo "$as_me: failed program was:" >&5
12428 sed 's/^/| /' conftest.
$ac_ext >&5
12430 ac_cv_lib_svld_dlopen
=no
12432 rm -f conftest.err conftest.
$ac_objext \
12433 conftest
$ac_exeext conftest.
$ac_ext
12434 LIBS
=$ac_check_lib_save_LIBS
12436 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12437 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12438 if test $ac_cv_lib_svld_dlopen = yes; then
12439 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
12441 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12442 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12443 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12446 ac_check_lib_save_LIBS
=$LIBS
12448 cat >conftest.
$ac_ext <<_ACEOF
12451 cat confdefs.h
>>conftest.
$ac_ext
12452 cat >>conftest.
$ac_ext <<_ACEOF
12453 /* end confdefs.h. */
12455 /* Override any gcc2 internal prototype to avoid an error. */
12459 /* We use char because int might match the return type of a gcc2
12460 builtin and then its argument prototype would still apply. */
12470 rm -f conftest.
$ac_objext conftest
$ac_exeext
12471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12472 (eval $ac_link) 2>conftest.er1
12474 grep -v '^ *+' conftest.er1
>conftest.err
12476 cat conftest.err
>&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); } &&
12479 { ac_try
='test -z "$ac_cxx_werror_flag"
12480 || test ! -s conftest.err'
12481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482 (eval $ac_try) 2>&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; } &&
12486 { ac_try
='test -s conftest$ac_exeext'
12487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12488 (eval $ac_try) 2>&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); }; }; then
12492 ac_cv_lib_dld_dld_link
=yes
12494 echo "$as_me: failed program was:" >&5
12495 sed 's/^/| /' conftest.
$ac_ext >&5
12497 ac_cv_lib_dld_dld_link
=no
12499 rm -f conftest.err conftest.
$ac_objext \
12500 conftest
$ac_exeext conftest.
$ac_ext
12501 LIBS
=$ac_check_lib_save_LIBS
12503 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12504 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12505 if test $ac_cv_lib_dld_dld_link = yes; then
12506 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
12527 if test "x$lt_cv_dlopen" != xno
; then
12533 case $lt_cv_dlopen in
12535 save_CPPFLAGS
="$CPPFLAGS"
12536 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
12538 save_LDFLAGS
="$LDFLAGS"
12539 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
12542 LIBS
="$lt_cv_dlopen_libs $LIBS"
12544 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12545 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12546 if test "${lt_cv_dlopen_self+set}" = set; then
12547 echo $ECHO_N "(cached) $ECHO_C" >&6
12549 if test "$cross_compiling" = yes; then :
12550 lt_cv_dlopen_self
=cross
12552 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12553 lt_status
=$lt_dlunknown
12554 cat > conftest.
$ac_ext <<EOF
12555 #line 12555 "configure"
12556 #include "confdefs.h"
12565 # define LT_DLGLOBAL RTLD_GLOBAL
12568 # define LT_DLGLOBAL DL_GLOBAL
12570 # define LT_DLGLOBAL 0
12574 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12575 find out it does not work in some platform. */
12576 #ifndef LT_DLLAZY_OR_NOW
12578 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12581 # define LT_DLLAZY_OR_NOW DL_LAZY
12584 # define LT_DLLAZY_OR_NOW RTLD_NOW
12587 # define LT_DLLAZY_OR_NOW DL_NOW
12589 # define LT_DLLAZY_OR_NOW 0
12597 extern "C" void exit (int);
12600 void fnord() { int i=42;}
12603 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12604 int status = $lt_dlunknown;
12608 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12609 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12610 /* dlclose (self); */
12616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12617 (eval $ac_link) 2>&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12621 (.
/conftest
; exit; ) 2>/dev
/null
12623 case x
$lt_status in
12624 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12625 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12626 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
12629 # compilation failed
12630 lt_cv_dlopen_self
=no
12637 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12638 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12640 if test "x$lt_cv_dlopen_self" = xyes
; then
12641 LDFLAGS
="$LDFLAGS $link_static_flag"
12642 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12643 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12644 if test "${lt_cv_dlopen_self_static+set}" = set; then
12645 echo $ECHO_N "(cached) $ECHO_C" >&6
12647 if test "$cross_compiling" = yes; then :
12648 lt_cv_dlopen_self_static
=cross
12650 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12651 lt_status
=$lt_dlunknown
12652 cat > conftest.
$ac_ext <<EOF
12653 #line 12653 "configure"
12654 #include "confdefs.h"
12663 # define LT_DLGLOBAL RTLD_GLOBAL
12666 # define LT_DLGLOBAL DL_GLOBAL
12668 # define LT_DLGLOBAL 0
12672 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12673 find out it does not work in some platform. */
12674 #ifndef LT_DLLAZY_OR_NOW
12676 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12679 # define LT_DLLAZY_OR_NOW DL_LAZY
12682 # define LT_DLLAZY_OR_NOW RTLD_NOW
12685 # define LT_DLLAZY_OR_NOW DL_NOW
12687 # define LT_DLLAZY_OR_NOW 0
12695 extern "C" void exit (int);
12698 void fnord() { int i=42;}
12701 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12702 int status = $lt_dlunknown;
12706 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12707 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12708 /* dlclose (self); */
12714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12715 (eval $ac_link) 2>&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12719 (.
/conftest
; exit; ) 2>/dev
/null
12721 case x
$lt_status in
12722 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12723 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12724 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
12727 # compilation failed
12728 lt_cv_dlopen_self_static
=no
12735 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12736 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12739 CPPFLAGS
="$save_CPPFLAGS"
12740 LDFLAGS
="$save_LDFLAGS"
12745 case $lt_cv_dlopen_self in
12746 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12747 *) enable_dlopen_self
=unknown
;;
12750 case $lt_cv_dlopen_self_static in
12751 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12752 *) enable_dlopen_self_static
=unknown
;;
12757 # The else clause should only fire when bootstrapping the
12758 # libtool distribution, otherwise you forgot to ship ltmain.sh
12759 # with your package, and you will get complaints that there are
12760 # no rules to generate ltmain.sh.
12761 if test -f "$ltmain"; then
12762 # See if we are running on zsh, and set the options which allow our commands through
12763 # without removal of \ escapes.
12764 if test -n "${ZSH_VERSION+set}" ; then
12765 setopt NO_GLOB_SUBST
12767 # Now quote all the things that may contain metacharacters while being
12768 # careful not to overquote the AC_SUBSTed values. We take copies of the
12769 # variables and quote the copies for generation of the libtool script.
12770 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12772 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12773 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12774 deplibs_check_method reload_flag reload_cmds need_locks \
12775 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12776 lt_cv_sys_global_symbol_to_c_name_address \
12777 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12778 old_postinstall_cmds old_postuninstall_cmds \
12782 lt_prog_compiler_wl_CXX \
12783 lt_prog_compiler_pic_CXX \
12784 lt_prog_compiler_static_CXX \
12785 lt_prog_compiler_no_builtin_flag_CXX \
12786 export_dynamic_flag_spec_CXX \
12787 thread_safe_flag_spec_CXX \
12788 whole_archive_flag_spec_CXX \
12789 enable_shared_with_static_runtimes_CXX \
12790 old_archive_cmds_CXX \
12791 old_archive_from_new_cmds_CXX \
12792 predep_objects_CXX \
12793 postdep_objects_CXX \
12796 compiler_lib_search_path_CXX \
12798 archive_expsym_cmds_CXX \
12799 postinstall_cmds_CXX \
12800 postuninstall_cmds_CXX \
12801 old_archive_from_expsyms_cmds_CXX \
12802 allow_undefined_flag_CXX \
12803 no_undefined_flag_CXX \
12804 export_symbols_cmds_CXX \
12805 hardcode_libdir_flag_spec_CXX \
12806 hardcode_libdir_flag_spec_ld_CXX \
12807 hardcode_libdir_separator_CXX \
12808 hardcode_automatic_CXX \
12810 module_expsym_cmds_CXX \
12811 lt_cv_prog_compiler_c_o_CXX \
12812 exclude_expsyms_CXX \
12813 include_expsyms_CXX
; do
12816 old_archive_cmds_CXX | \
12817 old_archive_from_new_cmds_CXX | \
12818 archive_cmds_CXX | \
12819 archive_expsym_cmds_CXX | \
12820 module_cmds_CXX | \
12821 module_expsym_cmds_CXX | \
12822 old_archive_from_expsyms_cmds_CXX | \
12823 export_symbols_cmds_CXX | \
12824 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12825 postinstall_cmds | postuninstall_cmds | \
12826 old_postinstall_cmds | old_postuninstall_cmds | \
12827 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
12828 # Double-quote double-evaled strings.
12829 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12832 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12838 *'\$0 --fallback-echo"')
12839 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12845 cat <<__EOF__ >> "$cfgfile"
12846 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12848 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12850 # Shell to use when invoking shell scripts.
12853 # Whether or not to build shared libraries.
12854 build_libtool_libs=$enable_shared
12856 # Whether or not to build static libraries.
12857 build_old_libs=$enable_static
12859 # Whether or not to add -lc for building shared libraries.
12860 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12862 # Whether or not to disallow shared libs when runtime libs are static
12863 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12865 # Whether or not to optimize for fast installation.
12866 fast_install=$enable_fast_install
12869 host_alias=$host_alias
12873 # The build system.
12874 build_alias=$build_alias
12878 # An echo program that does not interpret backslashes.
12883 AR_FLAGS=$lt_AR_FLAGS
12888 # A language-specific compiler.
12889 CC=$lt_compiler_CXX
12891 # Is the compiler the GNU C compiler?
12897 # The linker used to build libraries.
12900 # Whether we need hard or soft links.
12903 # A BSD-compatible nm program.
12906 # A symbol stripping program
12909 # Used to examine libraries when file_magic_cmd begins "file"
12910 MAGIC_CMD=$MAGIC_CMD
12912 # Used on cygwin: DLL creation program.
12915 # Used on cygwin: object dumper.
12918 # Used on cygwin: assembler.
12921 # The name of the directory that contains temporary libtool files.
12924 # How to create reloadable object files.
12925 reload_flag=$lt_reload_flag
12926 reload_cmds=$lt_reload_cmds
12928 # How to pass a linker flag through the compiler.
12929 wl=$lt_lt_prog_compiler_wl_CXX
12931 # Object file suffix (normally "o").
12932 objext="$ac_objext"
12934 # Old archive suffix (normally "a").
12937 # Shared library suffix (normally ".so").
12938 shrext_cmds='$shrext_cmds'
12940 # Executable file suffix (normally "").
12943 # Additional compiler flags for building library objects.
12944 pic_flag=$lt_lt_prog_compiler_pic_CXX
12947 # What is the maximum length of a command?
12948 max_cmd_len=$lt_cv_sys_max_cmd_len
12950 # Does compiler simultaneously support -c and -o options?
12951 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12953 # Must we lock files when doing compilation ?
12954 need_locks=$lt_need_locks
12956 # Do we need the lib prefix for modules?
12957 need_lib_prefix=$need_lib_prefix
12959 # Do we need a version for libraries?
12960 need_version=$need_version
12962 # Whether dlopen is supported.
12963 dlopen_support=$enable_dlopen
12965 # Whether dlopen of programs is supported.
12966 dlopen_self=$enable_dlopen_self
12968 # Whether dlopen of statically linked programs is supported.
12969 dlopen_self_static=$enable_dlopen_self_static
12971 # Compiler flag to prevent dynamic linking.
12972 link_static_flag=$lt_lt_prog_compiler_static_CXX
12974 # Compiler flag to turn off builtin functions.
12975 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12977 # Compiler flag to allow reflexive dlopens.
12978 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12980 # Compiler flag to generate shared objects directly from archives.
12981 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12983 # Compiler flag to generate thread-safe objects.
12984 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12986 # Library versioning type.
12987 version_type=$version_type
12989 # Format of library name prefix.
12990 libname_spec=$lt_libname_spec
12992 # List of archive names. First name is the real one, the rest are links.
12993 # The last name is the one that the linker finds with -lNAME.
12994 library_names_spec=$lt_library_names_spec
12996 # The coded name of the library, if different from the real name.
12997 soname_spec=$lt_soname_spec
12999 # Commands used to build and install an old-style archive.
13001 old_archive_cmds=$lt_old_archive_cmds_CXX
13002 old_postinstall_cmds=$lt_old_postinstall_cmds
13003 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13005 # Create an old-style archive from a shared archive.
13006 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13008 # Create a temporary old-style archive to link instead of a shared archive.
13009 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13011 # Commands used to build and install a shared archive.
13012 archive_cmds=$lt_archive_cmds_CXX
13013 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13014 postinstall_cmds=$lt_postinstall_cmds
13015 postuninstall_cmds=$lt_postuninstall_cmds
13017 # Commands used to build a loadable module (assumed same as above if empty)
13018 module_cmds=$lt_module_cmds_CXX
13019 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13021 # Commands to strip libraries.
13022 old_striplib=$lt_old_striplib
13023 striplib=$lt_striplib
13025 # Dependencies to place before the objects being linked to create a
13027 predep_objects=$lt_predep_objects_CXX
13029 # Dependencies to place after the objects being linked to create a
13031 postdep_objects=$lt_postdep_objects_CXX
13033 # Dependencies to place before the objects being linked to create a
13035 predeps=$lt_predeps_CXX
13037 # Dependencies to place after the objects being linked to create a
13039 postdeps=$lt_postdeps_CXX
13041 # The library search path used internally by the compiler when linking
13042 # a shared library.
13043 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13045 # Method to check whether dependent libraries are shared objects.
13046 deplibs_check_method=$lt_deplibs_check_method
13048 # Command to use when deplibs_check_method == file_magic.
13049 file_magic_cmd=$lt_file_magic_cmd
13051 # Flag that allows shared libraries with undefined symbols to be built.
13052 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13054 # Flag that forces no undefined symbols.
13055 no_undefined_flag=$lt_no_undefined_flag_CXX
13057 # Commands used to finish a libtool library installation in a directory.
13058 finish_cmds=$lt_finish_cmds
13060 # Same as above, but a single script fragment to be evaled but not shown.
13061 finish_eval=$lt_finish_eval
13063 # Take the output of nm and produce a listing of raw symbols and C names.
13064 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13066 # Transform the output of nm in a proper C declaration
13067 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13069 # Transform the output of nm in a C name address pair
13070 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13072 # This is the shared library runtime path variable.
13073 runpath_var=$runpath_var
13075 # This is the shared library path variable.
13076 shlibpath_var=$shlibpath_var
13078 # Is shlibpath searched before the hard-coded library search path?
13079 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13081 # How to hardcode a shared library path into an executable.
13082 hardcode_action=$hardcode_action_CXX
13084 # Whether we should hardcode library paths into libraries.
13085 hardcode_into_libs=$hardcode_into_libs
13087 # Flag to hardcode \$libdir into a binary during linking.
13088 # This must work even if \$libdir does not exist.
13089 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13091 # If ld is used when linking, flag to hardcode \$libdir into
13092 # a binary during linking. This must work even if \$libdir does
13094 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13096 # Whether we need a single -rpath flag with a separated argument.
13097 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13099 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13100 # resulting binary.
13101 hardcode_direct=$hardcode_direct_CXX
13103 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13104 # resulting binary.
13105 hardcode_minus_L=$hardcode_minus_L_CXX
13107 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13108 # the resulting binary.
13109 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13111 # Set to yes if building a shared library automatically hardcodes DIR into the library
13112 # and all subsequent libraries and executables linked against it.
13113 hardcode_automatic=$hardcode_automatic_CXX
13115 # Variables whose values should be saved in libtool wrapper scripts and
13116 # restored at relink time.
13117 variables_saved_for_relink="$variables_saved_for_relink"
13119 # Whether libtool must link a program against all its dependency libraries.
13120 link_all_deplibs=$link_all_deplibs_CXX
13122 # Compile-time system search path for libraries
13123 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13125 # Run-time system search path for libraries
13126 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13128 # Fix the shell variable \$srcfile for the compiler.
13129 fix_srcfile_path="$fix_srcfile_path_CXX"
13131 # Set to yes if exported symbols are required.
13132 always_export_symbols=$always_export_symbols_CXX
13134 # The commands to list exported symbols.
13135 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13137 # The commands to extract the exported symbol list from a shared archive.
13138 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13140 # Symbols that should not be listed in the preloaded symbols.
13141 exclude_expsyms=$lt_exclude_expsyms_CXX
13143 # Symbols that must always be exported.
13144 include_expsyms=$lt_include_expsyms_CXX
13146 # ### END LIBTOOL TAG CONFIG: $tagname
13152 # If there is no Makefile yet, we rely on a make rule to execute
13153 # `config.status --recheck' to rerun these tests and create the
13154 # libtool script then.
13155 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13156 if test -f "$ltmain_in"; then
13157 test -f Makefile
&& make "$ltmain"
13163 ac_cpp
='$CPP $CPPFLAGS'
13164 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13165 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13166 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13172 with_gnu_ldcxx
=$with_gnu_ld
13173 with_gnu_ld
=$lt_save_with_gnu_ld
13174 lt_cv_path_LDCXX
=$lt_cv_path_LD
13175 lt_cv_path_LD
=$lt_save_path_LD
13176 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
13177 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
13185 if test -n "$F77" && test "X$F77" != "Xno"; then
13188 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13189 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13190 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
13193 archive_cmds_need_lc_F77
=no
13194 allow_undefined_flag_F77
=
13195 always_export_symbols_F77
=no
13196 archive_expsym_cmds_F77
=
13197 export_dynamic_flag_spec_F77
=
13198 hardcode_direct_F77
=no
13199 hardcode_libdir_flag_spec_F77
=
13200 hardcode_libdir_flag_spec_ld_F77
=
13201 hardcode_libdir_separator_F77
=
13202 hardcode_minus_L_F77
=no
13203 hardcode_automatic_F77
=no
13205 module_expsym_cmds_F77
=
13206 link_all_deplibs_F77
=unknown
13207 old_archive_cmds_F77
=$old_archive_cmds
13208 no_undefined_flag_F77
=
13209 whole_archive_flag_spec_F77
=
13210 enable_shared_with_static_runtimes_F77
=no
13212 # Source file extension for f77 test sources.
13215 # Object file extension for compiled f77 test sources.
13219 # Code to be used in simple compile tests
13220 lt_simple_compile_test_code
=" subroutine t\n return\n end\n"
13222 # Code to be used in simple link tests
13223 lt_simple_link_test_code
=" program t\n end\n"
13225 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13227 # If no C compiler was specified, use CC.
13230 # Allow CC to be a program name with arguments.
13234 # Allow CC to be a program name with arguments.
13239 cc_basename
=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13241 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13242 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13243 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13244 echo "${ECHO_T}$can_build_shared" >&6
13246 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13247 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13248 test "$can_build_shared" = "no" && enable_shared
=no
13250 # On AIX, shared libraries and static libraries use the same namespace, and
13251 # are all built from PIC.
13254 test "$enable_shared" = yes && enable_static
=no
13255 if test -n "$RANLIB"; then
13256 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
13257 postinstall_cmds
='$RANLIB $lib'
13261 test "$enable_shared" = yes && enable_static
=no
13264 echo "$as_me:$LINENO: result: $enable_shared" >&5
13265 echo "${ECHO_T}$enable_shared" >&6
13267 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13268 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13269 # Make sure either enable_shared or enable_static is yes.
13270 test "$enable_shared" = yes || enable_static
=yes
13271 echo "$as_me:$LINENO: result: $enable_static" >&5
13272 echo "${ECHO_T}$enable_static" >&6
13274 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
13279 lt_prog_compiler_wl_F77
=
13280 lt_prog_compiler_pic_F77
=
13281 lt_prog_compiler_static_F77
=
13283 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13284 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13286 if test "$GCC" = yes; then
13287 lt_prog_compiler_wl_F77
='-Wl,'
13288 lt_prog_compiler_static_F77
='-static'
13292 # All AIX code is PIC.
13293 if test "$host_cpu" = ia64
; then
13294 # AIX 5 now supports IA64 processor
13295 lt_prog_compiler_static_F77
='-Bstatic'
13300 # FIXME: we need at least 68020 code to build shared libraries, but
13301 # adding the `-m68020' flag to GCC prevents building anything better,
13303 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
13306 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13307 # PIC is the default for these OSes.
13310 mingw
* | pw32
* | os2
*)
13311 # This hack is so that the source file can tell whether it is being
13312 # built for inclusion in a dll (and should export symbols for example).
13313 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13316 darwin
* | rhapsody
*)
13317 # PIC is the default on this platform
13318 # Common symbols not allowed in MH_DYLIB files
13319 lt_prog_compiler_pic_F77
='-fno-common'
13323 # Just because we use GCC doesn't mean we suddenly get shared libraries
13324 # on systems that don't support them.
13325 lt_prog_compiler_can_build_shared_F77
=no
13330 if test -d /usr
/nec
; then
13331 lt_prog_compiler_pic_F77
=-Kconform_pic
13336 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13337 # not for PA HP-UX.
13338 case "$host_cpu" in
13343 lt_prog_compiler_pic_F77
='-fPIC'
13349 lt_prog_compiler_pic_F77
='-fPIC'
13353 # PORTME Check for flag to pass linker flags through the system compiler.
13356 lt_prog_compiler_wl_F77
='-Wl,'
13357 if test "$host_cpu" = ia64
; then
13358 # AIX 5 now supports IA64 processor
13359 lt_prog_compiler_static_F77
='-Bstatic'
13361 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
13365 # PIC is the default on this platform
13366 # Common symbols not allowed in MH_DYLIB files
13367 case "$cc_basename" in
13369 lt_prog_compiler_pic_F77
='-qnocommon'
13370 lt_prog_compiler_wl_F77
='-Wl,'
13375 mingw
* | pw32
* | os2
*)
13376 # This hack is so that the source file can tell whether it is being
13377 # built for inclusion in a dll (and should export symbols for example).
13378 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13381 hpux9
* | hpux10
* | hpux11
*)
13382 lt_prog_compiler_wl_F77
='-Wl,'
13383 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13384 # not for PA HP-UX.
13385 case "$host_cpu" in
13390 lt_prog_compiler_pic_F77
='+Z'
13393 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13394 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
13397 irix5
* | irix6
* | nonstopux
*)
13398 lt_prog_compiler_wl_F77
='-Wl,'
13399 # PIC (with -KPIC) is the default.
13400 lt_prog_compiler_static_F77
='-non_shared'
13404 lt_prog_compiler_pic_F77
='-KPIC'
13405 lt_prog_compiler_static_F77
='-Bstatic'
13409 case $cc_basename in
13411 lt_prog_compiler_wl_F77
='-Wl,'
13412 lt_prog_compiler_pic_F77
='-KPIC'
13413 lt_prog_compiler_static_F77
='-static'
13415 pgcc | pgf77 | pgf90
)
13416 # Portland Group compilers (*not* the Pentium gcc compiler,
13417 # which looks to be a dead project)
13418 lt_prog_compiler_wl_F77
='-Wl,'
13419 lt_prog_compiler_pic_F77
='-fpic'
13420 lt_prog_compiler_static_F77
='-static'
13423 lt_prog_compiler_wl_F77
='-Wl,'
13424 # All Alpha code is PIC.
13425 lt_prog_compiler_static_F77
='-non_shared'
13428 lt_prog_compiler_wl_F77
='-lopt='
13433 osf3
* | osf4
* | osf5
*)
13434 lt_prog_compiler_wl_F77
='-Wl,'
13435 # All OSF/1 code is PIC.
13436 lt_prog_compiler_static_F77
='-non_shared'
13440 lt_prog_compiler_pic_F77
='-Kpic'
13441 lt_prog_compiler_static_F77
='-dn'
13445 lt_prog_compiler_wl_F77
='-Wl,'
13446 lt_prog_compiler_pic_F77
='-KPIC'
13447 lt_prog_compiler_static_F77
='-Bstatic'
13451 lt_prog_compiler_wl_F77
='-Qoption ld '
13452 lt_prog_compiler_pic_F77
='-PIC'
13453 lt_prog_compiler_static_F77
='-Bstatic'
13456 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13457 lt_prog_compiler_wl_F77
='-Wl,'
13458 lt_prog_compiler_pic_F77
='-KPIC'
13459 lt_prog_compiler_static_F77
='-Bstatic'
13463 if test -d /usr
/nec
;then
13464 lt_prog_compiler_pic_F77
='-Kconform_pic'
13465 lt_prog_compiler_static_F77
='-Bstatic'
13470 lt_prog_compiler_wl_F77
='-Wl,'
13471 lt_prog_compiler_can_build_shared_F77
=no
13475 lt_prog_compiler_pic_F77
='-pic'
13476 lt_prog_compiler_static_F77
='-Bstatic'
13480 lt_prog_compiler_can_build_shared_F77
=no
13485 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13486 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13489 # Check to make sure the PIC flag actually works.
13491 if test -n "$lt_prog_compiler_pic_F77"; then
13493 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13494 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13495 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13496 echo $ECHO_N "(cached) $ECHO_C" >&6
13498 lt_prog_compiler_pic_works_F77
=no
13499 ac_outfile
=conftest.
$ac_objext
13500 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13501 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
13502 # Insert the option either (1) after the last *FLAGS variable, or
13503 # (2) before a word containing "conftest.", or (3) at the end.
13504 # Note that $ac_compile itself does not contain backslashes and begins
13505 # with a dollar sign (not a hyphen), so the echo should work correctly.
13506 # The option is referenced via a variable to avoid confusing sed.
13507 lt_compile
=`echo "$ac_compile" | $SED \
13508 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13510 -e 's:$: $lt_compiler_flag:'`
13511 (eval echo "\"\$as_me:13511: $lt_compile\"" >&5)
13512 (eval "$lt_compile" 2>conftest.err
)
13514 cat conftest.err
>&5
13515 echo "$as_me:13515: \$? = $ac_status" >&5
13516 if (exit $ac_status) && test -s "$ac_outfile"; then
13517 # The compiler can only warn and ignore the option if not recognized
13518 # So say no if there are warnings
13519 if test ! -s conftest.err
; then
13520 lt_prog_compiler_pic_works_F77
=yes
13526 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13527 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13529 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
13530 case $lt_prog_compiler_pic_F77 in
13532 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
13535 lt_prog_compiler_pic_F77
=
13536 lt_prog_compiler_can_build_shared_F77
=no
13541 # For platforms which do not support PIC, -DPIC is meaningless:
13543 lt_prog_compiler_pic_F77
=
13546 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
13550 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13551 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13552 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13553 echo $ECHO_N "(cached) $ECHO_C" >&6
13555 lt_cv_prog_compiler_c_o_F77
=no
13556 $rm -r conftest
2>/dev
/null
13560 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13562 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13563 # Insert the option either (1) after the last *FLAGS variable, or
13564 # (2) before a word containing "conftest.", or (3) at the end.
13565 # Note that $ac_compile itself does not contain backslashes and begins
13566 # with a dollar sign (not a hyphen), so the echo should work correctly.
13567 lt_compile
=`echo "$ac_compile" | $SED \
13568 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13570 -e 's:$: $lt_compiler_flag:'`
13571 (eval echo "\"\$as_me:13571: $lt_compile\"" >&5)
13572 (eval "$lt_compile" 2>out
/conftest.err
)
13574 cat out
/conftest.err
>&5
13575 echo "$as_me:13575: \$? = $ac_status" >&5
13576 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13578 # The compiler can only warn and ignore the option if not recognized
13579 # So say no if there are warnings
13580 if test ! -s out
/conftest.err
; then
13581 lt_cv_prog_compiler_c_o_F77
=yes
13586 # SGI C++ compiler will create directory out/ii_files/ for
13587 # template instantiation
13588 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
13589 $rm out
/* && rmdir out
13595 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13596 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13599 hard_links
="nottested"
13600 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
13601 # do not overwrite the value of need_locks provided by the user
13602 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13603 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13606 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13608 ln conftest.a conftest.b
2>&5 || hard_links
=no
13609 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13610 echo "$as_me:$LINENO: result: $hard_links" >&5
13611 echo "${ECHO_T}$hard_links" >&6
13612 if test "$hard_links" = no
; then
13613 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13614 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13621 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13622 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13625 allow_undefined_flag_F77
=
13626 enable_shared_with_static_runtimes_F77
=no
13628 archive_expsym_cmds_F77
=
13629 old_archive_From_new_cmds_F77
=
13630 old_archive_from_expsyms_cmds_F77
=
13631 export_dynamic_flag_spec_F77
=
13632 whole_archive_flag_spec_F77
=
13633 thread_safe_flag_spec_F77
=
13634 hardcode_libdir_flag_spec_F77
=
13635 hardcode_libdir_flag_spec_ld_F77
=
13636 hardcode_libdir_separator_F77
=
13637 hardcode_direct_F77
=no
13638 hardcode_minus_L_F77
=no
13639 hardcode_shlibpath_var_F77
=unsupported
13640 link_all_deplibs_F77
=unknown
13641 hardcode_automatic_F77
=no
13643 module_expsym_cmds_F77
=
13644 always_export_symbols_F77
=no
13645 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13646 # include_expsyms should be a list of space-separated symbols to be *always*
13647 # included in the symbol list
13648 include_expsyms_F77
=
13649 # exclude_expsyms can be an extended regexp of symbols to exclude
13650 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13651 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13652 # as well as any symbol that contains `d'.
13653 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
13654 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13655 # platforms (ab)use it in PIC code, but their linkers get confused if
13656 # the symbol is explicitly referenced. Since portable code cannot
13657 # rely on this symbol name, it's probably fine to never include it in
13658 # preloaded symbol tables.
13659 extract_expsyms_cmds
=
13662 cygwin
* | mingw
* | pw32
*)
13663 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13664 # When not using gcc, we currently assume that we are using
13665 # Microsoft Visual C++.
13666 if test "$GCC" != yes; then
13676 if test "$with_gnu_ld" = yes; then
13677 # If archive_cmds runs LD, not CC, wlarc should be empty
13680 # See if GNU ld supports shared libraries.
13682 aix3
* | aix4
* | aix5
*)
13683 # On AIX/PPC, the GNU linker is very broken
13684 if test "$host_cpu" != ia64
; then
13688 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13689 *** to be unable to reliably create shared libraries on AIX.
13690 *** Therefore, libtool is disabling shared libraries support. If you
13691 *** really care for shared libraries, you may want to modify your PATH
13692 *** so that a non-GNU linker is found, and then restart.
13699 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)'
13700 hardcode_libdir_flag_spec_F77
='-L$libdir'
13701 hardcode_minus_L_F77
=yes
13703 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13704 # that the semantics of dynamic libraries on AmigaOS, at least up
13705 # to version 4, is to share data among multiple programs linked
13706 # with the same dynamic library. Since this doesn't match the
13707 # behavior of shared libraries on other platforms, we can't use
13713 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13714 allow_undefined_flag_F77
=unsupported
13715 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13716 # support --undefined. This deserves some investigation. FIXME
13717 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13723 cygwin
* | mingw
* | pw32
*)
13724 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13725 # as there is no search path for DLLs.
13726 hardcode_libdir_flag_spec_F77
='-L$libdir'
13727 allow_undefined_flag_F77
=unsupported
13728 always_export_symbols_F77
=no
13729 enable_shared_with_static_runtimes_F77
=yes
13730 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13732 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
13733 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13734 # If the export-symbols file already is a .def file (1st line
13735 # is EXPORTS), use it as is; otherwise, prepend...
13736 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13737 cp $export_symbols $output_objdir/$soname.def;
13739 echo EXPORTS > $output_objdir/$soname.def;
13740 cat $export_symbols >> $output_objdir/$soname.def;
13742 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13749 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
13750 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13753 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13754 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13759 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
13763 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13764 *** create shared libraries on Solaris systems. Therefore, libtool
13765 *** is disabling shared libraries support. We urge you to upgrade GNU
13766 *** binutils to release 2.9.1 or newer. Another option is to modify
13767 *** your PATH or compiler configuration so that the native linker is
13768 *** used, and then restart.
13771 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13772 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13773 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13780 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13782 hardcode_direct_F77
=yes
13783 hardcode_shlibpath_var_F77
=no
13787 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13789 case $CC,$host_cpu in
13790 pgf77
* | pgf90
* ) # Portland Group f77 and f90 compilers
13791 tmp_addflag
=' -fpic' ;;
13792 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
13793 tmp_addflag
=' -i_dynamic' ;;
13794 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
13795 tmp_addflag
=' -i_dynamic -nofor_main' ;;
13796 ifc
* | ifort
*) # Intel Fortran compiler
13797 tmp_addflag
=' -nofor_main' ;;
13799 archive_cmds_F77
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13800 supports_anon_versioning
=no
13801 case `$LD -v 2>/dev/null` in
13802 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
13803 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
13804 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
13805 *\
2.11.
*) ;; # other 2.11 versions
13806 *) supports_anon_versioning
=yes ;;
13808 if test $supports_anon_versioning = yes; then
13809 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
13810 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13811 $echo "local: *; };" >> $output_objdir/$libname.ver~
13812 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13814 archive_expsym_cmds_F77
=$archive_cmds_F77
13822 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13823 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13824 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13831 if test "$ld_shlibs_F77" = yes; then
13832 runpath_var
=LD_RUN_PATH
13833 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
13834 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
13835 # ancient GNU ld didn't support --whole-archive et. al.
13836 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
13837 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13839 whole_archive_flag_spec_F77
=
13843 # PORTME fill in a description of your system's linker (not GNU ld)
13846 allow_undefined_flag_F77
=unsupported
13847 always_export_symbols_F77
=yes
13848 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'
13849 # Note: this linker hardcodes the directories in LIBPATH if there
13850 # are no directories specified by -L.
13851 hardcode_minus_L_F77
=yes
13852 if test "$GCC" = yes && test -z "$link_static_flag"; then
13853 # Neither direct hardcoding nor static linking is supported with a
13855 hardcode_direct_F77
=unsupported
13860 if test "$host_cpu" = ia64
; then
13861 # On IA64, the linker does run time linking by default, so we don't
13862 # have to do anything special.
13863 aix_use_runtimelinking
=no
13864 exp_sym_flag
='-Bexport'
13867 # If we're using GNU nm, then we don't want the "-C" option.
13868 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13869 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
13870 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'
13872 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'
13874 aix_use_runtimelinking
=no
13876 # Test if we are trying to use run time linking or normal
13877 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13878 # need to do runtime linking.
13879 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
13880 for ld_flag
in $LDFLAGS; do
13881 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
13882 aix_use_runtimelinking
=yes
13888 exp_sym_flag
='-bexport'
13889 no_entry_flag
='-bnoentry'
13892 # When large executables or shared objects are built, AIX ld can
13893 # have problems creating the table of contents. If linking a library
13894 # or program results in "error TOC overflow" add -mminimal-toc to
13895 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13896 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13898 archive_cmds_F77
=''
13899 hardcode_direct_F77
=yes
13900 hardcode_libdir_separator_F77
=':'
13901 link_all_deplibs_F77
=yes
13903 if test "$GCC" = yes; then
13904 case $host_os in aix4.
[012]|aix4.
[012].
*)
13905 # We only want to do this on AIX 4.2 and lower, the check
13906 # below for broken collect2 doesn't work under 4.3+
13907 collect2name
=`${CC} -print-prog-name=collect2`
13908 if test -f "$collect2name" && \
13909 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
13911 # We have reworked collect2
13912 hardcode_direct_F77
=yes
13914 # We have old collect2
13915 hardcode_direct_F77
=unsupported
13916 # It fails to find uninstalled libraries when the uninstalled
13917 # path is not listed in the libpath. Setting hardcode_minus_L
13918 # to unsupported forces relinking
13919 hardcode_minus_L_F77
=yes
13920 hardcode_libdir_flag_spec_F77
='-L$libdir'
13921 hardcode_libdir_separator_F77
=
13924 shared_flag
='-shared'
13925 if test "$aix_use_runtimelinking" = yes; then
13926 shared_flag
="$shared_flag "'${wl}-G'
13930 if test "$host_cpu" = ia64
; then
13931 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13932 # chokes on -Wl,-G. The following line is correct:
13935 if test "$aix_use_runtimelinking" = yes; then
13936 shared_flag
='${wl}-G'
13938 shared_flag
='${wl}-bM:SRE'
13943 # It seems that -bexpall does not export symbols beginning with
13944 # underscore (_), so it is better to generate a list of symbols to export.
13945 always_export_symbols_F77
=yes
13946 if test "$aix_use_runtimelinking" = yes; then
13947 # Warning - without using the other runtime loading flags (-brtl),
13948 # -berok will link without error, but may produce a broken library.
13949 allow_undefined_flag_F77
='-berok'
13950 # Determine the default libpath from the value encoded in an empty executable.
13951 cat >conftest.
$ac_ext <<_ACEOF
13956 rm -f conftest.
$ac_objext conftest
$ac_exeext
13957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13958 (eval $ac_link) 2>conftest.er1
13960 grep -v '^ *+' conftest.er1
>conftest.err
13962 cat conftest.err
>&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
13965 { ac_try
='test -z "$ac_f77_werror_flag"
13966 || test ! -s conftest.err'
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; } &&
13972 { ac_try
='test -s conftest$ac_exeext'
13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; }; then
13979 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13981 # Check for a 64-bit object if we didn't find anything.
13982 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; }
13985 echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.
$ac_ext >&5
13989 rm -f conftest.err conftest.
$ac_objext \
13990 conftest
$ac_exeext conftest.
$ac_ext
13991 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13993 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
13994 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"
13996 if test "$host_cpu" = ia64; then
13997 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr
/lib
:/lib
'
13998 allow_undefined_flag_F77="-z nodefs"
13999 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"
14001 # Determine the default libpath from the value encoded in an empty executable.
14002 cat >conftest.$ac_ext <<_ACEOF
14007 rm -f conftest.$ac_objext conftest$ac_exeext
14008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14009 (eval $ac_link) 2>conftest.er1
14011 grep -v '^ *+' conftest.er1 >conftest.err
14013 cat conftest.err >&5
14014 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14015 (exit $ac_status); } &&
14016 { ac_try='test -z "$ac_f77_werror_flag"
14017 || test ! -s conftest.err'
14018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14019 (eval $ac_try) 2>&5
14021 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14022 (exit $ac_status); }; } &&
14023 { ac_try='test -s conftest$ac_exeext'
14024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14025 (eval $ac_try) 2>&5
14027 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14028 (exit $ac_status); }; }; then
14030 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14032 # Check for a 64-bit object if we didn't find anything.
14033 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; }
14036 echo "$as_me: failed program was
:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14040 rm -f conftest.err conftest.$ac_objext \
14041 conftest$ac_exeext conftest.$ac_ext
14042 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
14044 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14045 # Warning - without using the other run time loading flags,
14046 # -berok will link without error, but may produce a broken library.
14047 no_undefined_flag_F77=' ${wl}-bernotok'
14048 allow_undefined_flag_F77=' ${wl}-berok'
14049 # -bexpall does not export symbols beginning with underscore (_)
14050 always_export_symbols_F77=yes
14051 # Exported symbols can be pulled into shared objects from archives
14052 whole_archive_flag_spec_F77=' '
14053 archive_cmds_need_lc_F77=yes
14054 # This is similar to how AIX traditionally builds it's shared libraries.
14055 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'
14061 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)'
14062 hardcode_libdir_flag_spec_F77
='-L$libdir'
14063 hardcode_minus_L_F77
=yes
14064 # see comment about different semantics on the GNU ld section
14069 export_dynamic_flag_spec_F77
=-rdynamic
14072 cygwin
* | mingw
* | pw32
*)
14073 # When not using gcc, we currently assume that we are using
14074 # Microsoft Visual C++.
14075 # hardcode_libdir_flag_spec is actually meaningless, as there is
14076 # no search path for DLLs.
14077 hardcode_libdir_flag_spec_F77
=' '
14078 allow_undefined_flag_F77
=unsupported
14079 # Tell ltmain to make .lib files, not .a files.
14081 # Tell ltmain to make .dll files, not .so files.
14083 # FIXME: Setting linknames here is a bad hack.
14084 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14085 # The linker will automatically build a .lib file if we build a DLL.
14086 old_archive_From_new_cmds_F77
='true'
14087 # FIXME: Should let the user specify the lib program.
14088 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
14089 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
14090 enable_shared_with_static_runtimes_F77
=yes
14093 darwin
* | rhapsody
*)
14095 rhapsody
* | darwin1.
[012])
14096 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
14099 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14100 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14102 case ${MACOSX_DEPLOYMENT_TARGET} in
14104 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14107 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
14113 archive_cmds_need_lc_F77
=no
14114 hardcode_direct_F77
=no
14115 hardcode_automatic_F77
=yes
14116 hardcode_shlibpath_var_F77
=unsupported
14117 whole_archive_flag_spec_F77
=''
14118 link_all_deplibs_F77
=yes
14119 if test "$GCC" = yes ; then
14120 output_verbose_link_cmd
='echo'
14121 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14122 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14123 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14124 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}'
14125 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}'
14127 case "$cc_basename" in
14129 output_verbose_link_cmd
='echo'
14130 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14131 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14132 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14133 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}'
14134 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}'
14144 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14145 hardcode_libdir_flag_spec_F77
='-L$libdir'
14146 hardcode_shlibpath_var_F77
=no
14153 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14154 # support. Future versions do this automatically, but an explicit c++rt0.o
14155 # does not break anything, and helps significantly (at the cost of a little
14158 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14159 hardcode_libdir_flag_spec_F77
='-R$libdir'
14160 hardcode_direct_F77
=yes
14161 hardcode_shlibpath_var_F77
=no
14164 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14166 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14167 hardcode_direct_F77
=yes
14168 hardcode_minus_L_F77
=yes
14169 hardcode_shlibpath_var_F77
=no
14172 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14173 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
14174 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14175 hardcode_libdir_flag_spec_F77
='-R$libdir'
14176 hardcode_direct_F77
=yes
14177 hardcode_shlibpath_var_F77
=no
14181 if test "$GCC" = yes; then
14182 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'
14184 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'
14186 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14187 hardcode_libdir_separator_F77
=:
14188 hardcode_direct_F77
=yes
14190 # hardcode_minus_L: Not really in the search PATH,
14191 # but as the default location of the library.
14192 hardcode_minus_L_F77
=yes
14193 export_dynamic_flag_spec_F77
='${wl}-E'
14197 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14198 case "$host_cpu" in
14200 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14203 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14207 case "$host_cpu" in
14209 archive_cmds_F77
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14212 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14216 if test "$with_gnu_ld" = no
; then
14217 case "$host_cpu" in
14219 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14220 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
14221 hardcode_libdir_separator_F77
=:
14222 hardcode_direct_F77
=no
14223 hardcode_shlibpath_var_F77
=no
14226 hardcode_libdir_flag_spec_F77
='-L$libdir'
14227 hardcode_direct_F77
=no
14228 hardcode_shlibpath_var_F77
=no
14230 # hardcode_minus_L: Not really in the search PATH,
14231 # but as the default location of the library.
14232 hardcode_minus_L_F77
=yes
14235 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14236 hardcode_libdir_separator_F77
=:
14237 hardcode_direct_F77
=yes
14238 export_dynamic_flag_spec_F77
='${wl}-E'
14240 # hardcode_minus_L: Not really in the search PATH,
14241 # but as the default location of the library.
14242 hardcode_minus_L_F77
=yes
14248 irix5
* | irix6
* | nonstopux
*)
14249 if test "$GCC" = yes; then
14250 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'
14252 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'
14253 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
14255 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14256 hardcode_libdir_separator_F77
=:
14257 link_all_deplibs_F77
=yes
14261 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14262 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14264 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14266 hardcode_libdir_flag_spec_F77
='-R$libdir'
14267 hardcode_direct_F77
=yes
14268 hardcode_shlibpath_var_F77
=no
14272 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14273 hardcode_direct_F77
=yes
14274 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14275 hardcode_libdir_separator_F77
=:
14276 hardcode_shlibpath_var_F77
=no
14280 hardcode_direct_F77
=yes
14281 hardcode_shlibpath_var_F77
=no
14282 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14283 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14284 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14285 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14286 export_dynamic_flag_spec_F77
='${wl}-E'
14289 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
14290 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14291 hardcode_libdir_flag_spec_F77
='-R$libdir'
14294 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14295 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14302 hardcode_libdir_flag_spec_F77
='-L$libdir'
14303 hardcode_minus_L_F77
=yes
14304 allow_undefined_flag_F77
=unsupported
14305 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'
14306 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14310 if test "$GCC" = yes; then
14311 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14312 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'
14314 allow_undefined_flag_F77
=' -expect_unresolved \*'
14315 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'
14317 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14318 hardcode_libdir_separator_F77
=:
14321 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
14322 if test "$GCC" = yes; then
14323 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14324 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'
14325 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14327 allow_undefined_flag_F77
=' -expect_unresolved \*'
14328 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'
14329 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~
14330 $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'
14332 # Both c and cxx compiler support -rpath directly
14333 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
14335 hardcode_libdir_separator_F77
=:
14339 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14340 hardcode_shlibpath_var_F77
=no
14341 export_dynamic_flag_spec_F77
='${wl}-Bexport'
14342 runpath_var
=LD_RUN_PATH
14343 hardcode_runpath_var
=yes
14347 no_undefined_flag_F77
=' -z text'
14348 if test "$GCC" = yes; then
14349 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14350 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14351 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14353 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14354 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14355 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14357 hardcode_libdir_flag_spec_F77
='-R$libdir'
14358 hardcode_shlibpath_var_F77
=no
14360 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
14361 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14362 whole_archive_flag_spec_F77
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
14364 link_all_deplibs_F77
=yes
14368 if test "x$host_vendor" = xsequent
; then
14369 # Use $CC to link under sequent, because it throws in some extra .o
14370 # files that make .init and .fini sections work.
14371 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14373 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14375 hardcode_libdir_flag_spec_F77
='-L$libdir'
14376 hardcode_direct_F77
=yes
14377 hardcode_minus_L_F77
=yes
14378 hardcode_shlibpath_var_F77
=no
14382 case $host_vendor in
14384 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14385 hardcode_direct_F77
=yes # is this really true???
14388 ## LD is ld it makes a PLAMLIB
14389 ## CC just makes a GrossModule.
14390 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14391 reload_cmds_F77
='$CC -r -o $output$reload_objs'
14392 hardcode_direct_F77
=no
14395 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14396 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
14399 runpath_var
='LD_RUN_PATH'
14400 hardcode_shlibpath_var_F77
=no
14404 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14405 hardcode_shlibpath_var_F77
=no
14406 export_dynamic_flag_spec_F77
='-Bexport'
14410 if test -d /usr
/nec
; then
14411 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14412 hardcode_shlibpath_var_F77
=no
14413 runpath_var
=LD_RUN_PATH
14414 hardcode_runpath_var
=yes
14420 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14421 hardcode_direct_F77
=yes
14422 hardcode_minus_L_F77
=no
14423 hardcode_shlibpath_var_F77
=no
14424 hardcode_runpath_var
=yes
14425 runpath_var
=LD_RUN_PATH
14428 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
14429 no_undefined_flag_F77
='${wl}-z ${wl}text'
14430 if test "$GCC" = yes; then
14431 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14433 archive_cmds_F77
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14435 runpath_var
='LD_RUN_PATH'
14436 hardcode_shlibpath_var_F77
=no
14440 no_undefined_flag_F77
=' -z text'
14441 # $CC -shared without GNU ld will not create a library from C++
14442 # object files and a static libstdc++, better avoid it by now
14443 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14444 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14445 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14446 hardcode_libdir_flag_spec_F77
=
14447 hardcode_shlibpath_var_F77
=no
14448 runpath_var
='LD_RUN_PATH'
14452 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14453 hardcode_libdir_flag_spec_F77
='-L$libdir'
14454 hardcode_shlibpath_var_F77
=no
14463 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14464 echo "${ECHO_T}$ld_shlibs_F77" >&6
14465 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
14467 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14468 if test "$GCC" = yes; then
14469 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14473 # Do we need to explicitly link libc?
14475 case "x$archive_cmds_need_lc_F77" in
14477 # Assume -lc should be added
14478 archive_cmds_need_lc_F77
=yes
14480 if test "$enable_shared" = yes && test "$GCC" = yes; then
14481 case $archive_cmds_F77 in
14483 # FIXME: we may have to deal with multi-command sequences.
14486 # Test whether the compiler implicitly links with -lc since on some
14487 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14488 # to ld, don't add -lc before -lgcc.
14489 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14490 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14492 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
14494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14495 (eval $ac_compile) 2>&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); } 2>conftest.err
; then
14501 libobjs
=conftest.
$ac_objext
14503 wl
=$lt_prog_compiler_wl_F77
14509 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
14510 allow_undefined_flag_F77
=
14511 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14512 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }
14517 archive_cmds_need_lc_F77
=no
14519 archive_cmds_need_lc_F77
=yes
14521 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
14523 cat conftest.err
1>&5
14526 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14527 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14534 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14535 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14536 library_names_spec
=
14537 libname_spec
='lib$name'
14541 postuninstall_cmds
=
14545 shlibpath_overrides_runpath
=unknown
14547 dynamic_linker
="$host_os ld.so"
14548 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14549 if test "$GCC" = yes; then
14550 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14551 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
14552 # if the path contains ";" then we assume it to be the separator
14553 # otherwise default to the standard path separator (i.e. ":") - it is
14554 # assumed that no part of a normal pathname contains ";" but that should
14555 # okay in the real world where ";" in dirpaths is itself problematic.
14556 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14558 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14561 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
14563 need_lib_prefix
=unknown
14564 hardcode_into_libs
=no
14566 # when you set need_version to no, make sure it does not cause -set_version
14567 # flags to be left without arguments
14568 need_version
=unknown
14573 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14574 shlibpath_var
=LIBPATH
14576 # AIX 3 has no versioning support, so we append a major version to the name.
14577 soname_spec
='${libname}${release}${shared_ext}$major'
14584 hardcode_into_libs
=yes
14585 if test "$host_cpu" = ia64
; then
14586 # AIX 5 supports IA64
14587 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14588 shlibpath_var
=LD_LIBRARY_PATH
14590 # With GCC up to 2.95.x, collect2 would create an import file
14591 # for dependence libraries. The import file would start with
14592 # the line `#! .'. This would cause the generated library to
14593 # depend on `.', always an invalid library. This was fixed in
14594 # development snapshots of GCC prior to 3.0.
14596 aix4 | aix4.
[01] | aix4.
[01].
*)
14597 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14599 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
14602 can_build_shared
=no
14606 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14607 # soname into executable. Probably we can add versioning support to
14608 # collect2, so additional links can be useful in future.
14609 if test "$aix_use_runtimelinking" = yes; then
14610 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14611 # instead of lib<name>.a to let people know that these are not
14612 # typical AIX shared libraries.
14613 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14615 # We preserve .a as extension for shared libraries through AIX4.2
14616 # and later when we are not doing run time linking.
14617 library_names_spec
='${libname}${release}.a $libname.a'
14618 soname_spec
='${libname}${release}${shared_ext}$major'
14620 shlibpath_var
=LIBPATH
14625 library_names_spec
='$libname.ixlibrary $libname.a'
14626 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14627 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'
14631 library_names_spec
='${libname}${shared_ext}'
14632 dynamic_linker
="$host_os ld.so"
14633 shlibpath_var
=LIBRARY_PATH
14639 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14640 soname_spec
='${libname}${release}${shared_ext}$major'
14641 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14642 shlibpath_var
=LD_LIBRARY_PATH
14643 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14644 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14645 # the default ld.so.conf also contains /usr/contrib/lib and
14646 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14647 # libtool to hard-code these into programs
14650 cygwin
* | mingw
* | pw32
*)
14651 version_type
=windows
14656 case $GCC,$host_os in
14657 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
14658 library_names_spec
='$libname.dll.a'
14659 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14660 postinstall_cmds
='base_file=`basename \${file}`~
14661 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14662 dldir=$destdir/`dirname \$dlpath`~
14663 test -d \$dldir || mkdir -p \$dldir~
14664 $install_prog $dir/$dlname \$dldir/$dlname'
14665 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14666 dlpath=$dir/\$dldll~
14668 shlibpath_overrides_runpath
=yes
14672 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14673 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14674 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
14677 # MinGW DLLs use traditional 'lib' prefix
14678 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14679 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14680 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
14681 # It is most probably a Windows format PATH printed by
14682 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14683 # path with ; separators, and with drive letters. We can handle the
14684 # drive letters (cygwin fileutils understands them), so leave them,
14685 # especially as we might pass files found there to a mingw objdump,
14686 # which wouldn't understand a cygwinified path. Ahh.
14687 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14689 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14693 # pw32 DLLs use 'pw' prefix rather than 'lib'
14694 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14700 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14703 dynamic_linker
='Win32 ld.exe'
14704 # FIXME: first we should search . and the directory the executable is in
14708 darwin
* | rhapsody
*)
14709 dynamic_linker
="$host_os dyld"
14710 version_type
=darwin
14713 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14714 soname_spec
='${libname}${release}${major}$shared_ext'
14715 shlibpath_overrides_runpath
=yes
14716 shlibpath_var
=DYLD_LIBRARY_PATH
14717 shrext_cmds
='$(test .$module = .yes && echo .so || echo .dylib)'
14718 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14719 if test "$GCC" = yes; then
14720 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"`
14722 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
14724 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14731 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14732 soname_spec
='${libname}${release}${shared_ext}$major'
14733 shlibpath_var
=LD_LIBRARY_PATH
14744 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14745 soname_spec
='${libname}${release}${shared_ext}$major'
14746 shlibpath_var
=LD_LIBRARY_PATH
14747 shlibpath_overrides_runpath
=no
14748 hardcode_into_libs
=yes
14749 dynamic_linker
='GNU ld.so'
14752 freebsd
* | dragonfly
*)
14753 # DragonFly does not have aout. When/if they implement a new
14754 # versioning mechanism, adjust this.
14755 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14756 version_type
=freebsd-
$objformat
14757 case $version_type in
14759 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14764 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14768 shlibpath_var
=LD_LIBRARY_PATH
14771 shlibpath_overrides_runpath
=yes
14773 freebsd3.
[01]* | freebsdelf3.
[01]*)
14774 shlibpath_overrides_runpath
=yes
14775 hardcode_into_libs
=yes
14778 shlibpath_overrides_runpath
=no
14779 hardcode_into_libs
=yes
14788 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14789 soname_spec
='${libname}${release}${shared_ext}$major'
14790 shlibpath_var
=LD_LIBRARY_PATH
14791 hardcode_into_libs
=yes
14794 hpux9
* | hpux10
* | hpux11
*)
14795 # Give a soname corresponding to the major version so that dld.sl refuses to
14796 # link against other versions.
14800 case "$host_cpu" in
14803 hardcode_into_libs
=yes
14804 dynamic_linker
="$host_os dld.so"
14805 shlibpath_var
=LD_LIBRARY_PATH
14806 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14807 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14808 soname_spec
='${libname}${release}${shared_ext}$major'
14809 if test "X$HPUX_IA64_MODE" = X32
; then
14810 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14812 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14814 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14818 hardcode_into_libs
=yes
14819 dynamic_linker
="$host_os dld.sl"
14820 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14821 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14822 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14823 soname_spec
='${libname}${release}${shared_ext}$major'
14824 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14825 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14829 dynamic_linker
="$host_os dld.sl"
14830 shlibpath_var
=SHLIB_PATH
14831 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14832 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14833 soname_spec
='${libname}${release}${shared_ext}$major'
14836 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14837 postinstall_cmds
='chmod 555 $lib'
14840 irix5
* | irix6
* | nonstopux
*)
14842 nonstopux
*) version_type
=nonstopux
;;
14844 if test "$lt_cv_prog_gnu_ld" = yes; then
14852 soname_spec
='${libname}${release}${shared_ext}$major'
14853 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14855 irix5
* | nonstopux
*)
14856 libsuff
= shlibsuff
=
14859 case $LD in # libtool.m4 will add one of these switches to LD
14860 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14861 libsuff
= shlibsuff
= libmagic
=32-bit;;
14862 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14863 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14864 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14865 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14866 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14870 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14871 shlibpath_overrides_runpath
=no
14872 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14873 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14874 hardcode_into_libs
=yes
14877 # No shared lib support for Linux oldld, aout, or coff.
14878 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14882 # This must be Linux ELF.
14887 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14888 soname_spec
='${libname}${release}${shared_ext}$major'
14889 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14890 shlibpath_var
=LD_LIBRARY_PATH
14891 shlibpath_overrides_runpath
=no
14892 # This implies no fast_install, which is unacceptable.
14893 # Some rework will be needed to allow for fast_install
14894 # before this can be enabled.
14895 hardcode_into_libs
=yes
14897 # Append ld.so.conf contents to the search path
14898 if test -f /etc
/ld.so.conf
; then
14899 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' ' '`
14900 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14903 # We used to test for /lib/ld.so.1 and disable shared libraries on
14904 # powerpc, because MkLinux only supported shared libraries with the
14905 # GNU dynamic linker. Since this was broken with cross compilers,
14906 # most powerpc-linux boxes support dynamic linking these days and
14907 # people can always --disable-shared, the test was removed, and we
14908 # assume the GNU/Linux dynamic linker is in use.
14909 dynamic_linker
='GNU/Linux ld.so'
14916 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14917 soname_spec
='${libname}${release}${shared_ext}$major'
14918 shlibpath_var
=LD_LIBRARY_PATH
14919 shlibpath_overrides_runpath
=no
14920 hardcode_into_libs
=yes
14921 dynamic_linker
='GNU ld.so'
14928 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14929 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14930 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14931 dynamic_linker
='NetBSD (a.out) ld.so'
14933 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14934 soname_spec
='${libname}${release}${shared_ext}$major'
14935 dynamic_linker
='NetBSD ld.elf_so'
14937 shlibpath_var
=LD_LIBRARY_PATH
14938 shlibpath_overrides_runpath
=yes
14939 hardcode_into_libs
=yes
14944 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14945 shlibpath_var
=LD_LIBRARY_PATH
14946 shlibpath_overrides_runpath
=yes
14953 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14954 soname_spec
='${libname}${release}${shared_ext}$major'
14955 shlibpath_var
=LD_LIBRARY_PATH
14956 shlibpath_overrides_runpath
=yes
14963 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14964 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14965 shlibpath_var
=LD_LIBRARY_PATH
14966 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14968 openbsd2.
[89] | openbsd2.
[89].
*)
14969 shlibpath_overrides_runpath
=no
14972 shlibpath_overrides_runpath
=yes
14976 shlibpath_overrides_runpath
=yes
14981 libname_spec
='$name'
14984 library_names_spec
='$libname${shared_ext} $libname.a'
14985 dynamic_linker
='OS/2 ld.exe'
14986 shlibpath_var
=LIBPATH
14989 osf3
* | osf4
* | osf5
*)
14993 soname_spec
='${libname}${release}${shared_ext}$major'
14994 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14995 shlibpath_var
=LD_LIBRARY_PATH
14996 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14997 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15002 soname_spec
='${libname}${release}${shared_ext}$major'
15003 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15004 shlibpath_var
=LD_LIBRARY_PATH
15011 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15012 soname_spec
='${libname}${release}${shared_ext}$major'
15013 shlibpath_var
=LD_LIBRARY_PATH
15014 shlibpath_overrides_runpath
=yes
15015 hardcode_into_libs
=yes
15016 # ldd complains unless libraries are executable
15017 postinstall_cmds
='chmod +x $lib'
15022 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15023 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15024 shlibpath_var
=LD_LIBRARY_PATH
15025 shlibpath_overrides_runpath
=yes
15026 if test "$with_gnu_ld" = yes; then
15032 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
15034 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15035 soname_spec
='${libname}${release}${shared_ext}$major'
15036 shlibpath_var
=LD_LIBRARY_PATH
15037 case $host_vendor in
15039 shlibpath_overrides_runpath
=no
15041 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15042 runpath_var
=LD_RUN_PATH
15050 shlibpath_overrides_runpath
=no
15051 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15057 if test -d /usr
/nec
;then
15059 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15060 soname_spec
='$libname${shared_ext}.$major'
15061 shlibpath_var
=LD_LIBRARY_PATH
15067 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15068 soname_spec
='${libname}${release}${shared_ext}$major'
15069 shlibpath_var
=LD_LIBRARY_PATH
15076 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15077 echo "${ECHO_T}$dynamic_linker" >&6
15078 test "$dynamic_linker" = no
&& can_build_shared
=no
15080 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15081 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15082 hardcode_action_F77
=
15083 if test -n "$hardcode_libdir_flag_spec_F77" || \
15084 test -n "$runpath_var_F77" || \
15085 test "X$hardcode_automatic_F77" = "Xyes" ; then
15087 # We can hardcode non-existant directories.
15088 if test "$hardcode_direct_F77" != no
&&
15089 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15090 # have to relink, otherwise we might link with an installed library
15091 # when we should be linking with a yet-to-be-installed one
15092 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15093 test "$hardcode_minus_L_F77" != no
; then
15094 # Linking always hardcodes the temporary library directory.
15095 hardcode_action_F77
=relink
15097 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15098 hardcode_action_F77
=immediate
15101 # We cannot hardcode anything, or else we can only hardcode existing
15103 hardcode_action_F77
=unsupported
15105 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15106 echo "${ECHO_T}$hardcode_action_F77" >&6
15108 if test "$hardcode_action_F77" = relink
; then
15109 # Fast installation is not supported
15110 enable_fast_install
=no
15111 elif test "$shlibpath_overrides_runpath" = yes ||
15112 test "$enable_shared" = no
; then
15113 # Fast installation is not necessary
15114 enable_fast_install
=needless
15119 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15120 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15121 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
15122 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
15123 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
15124 echo "$as_me:$LINENO: result: yes" >&5
15125 echo "${ECHO_T}yes" >&6
15127 # FIXME - insert some real tests, host_os isn't really good enough
15130 if test -n "$STRIP" ; then
15131 striplib
="$STRIP -x"
15132 echo "$as_me:$LINENO: result: yes" >&5
15133 echo "${ECHO_T}yes" >&6
15135 echo "$as_me:$LINENO: result: no" >&5
15136 echo "${ECHO_T}no" >&6
15140 echo "$as_me:$LINENO: result: no" >&5
15141 echo "${ECHO_T}no" >&6
15148 # The else clause should only fire when bootstrapping the
15149 # libtool distribution, otherwise you forgot to ship ltmain.sh
15150 # with your package, and you will get complaints that there are
15151 # no rules to generate ltmain.sh.
15152 if test -f "$ltmain"; then
15153 # See if we are running on zsh, and set the options which allow our commands through
15154 # without removal of \ escapes.
15155 if test -n "${ZSH_VERSION+set}" ; then
15156 setopt NO_GLOB_SUBST
15158 # Now quote all the things that may contain metacharacters while being
15159 # careful not to overquote the AC_SUBSTed values. We take copies of the
15160 # variables and quote the copies for generation of the libtool script.
15161 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15163 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15164 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15165 deplibs_check_method reload_flag reload_cmds need_locks \
15166 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15167 lt_cv_sys_global_symbol_to_c_name_address \
15168 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15169 old_postinstall_cmds old_postuninstall_cmds \
15173 lt_prog_compiler_wl_F77 \
15174 lt_prog_compiler_pic_F77 \
15175 lt_prog_compiler_static_F77 \
15176 lt_prog_compiler_no_builtin_flag_F77 \
15177 export_dynamic_flag_spec_F77 \
15178 thread_safe_flag_spec_F77 \
15179 whole_archive_flag_spec_F77 \
15180 enable_shared_with_static_runtimes_F77 \
15181 old_archive_cmds_F77 \
15182 old_archive_from_new_cmds_F77 \
15183 predep_objects_F77 \
15184 postdep_objects_F77 \
15187 compiler_lib_search_path_F77 \
15189 archive_expsym_cmds_F77 \
15190 postinstall_cmds_F77 \
15191 postuninstall_cmds_F77 \
15192 old_archive_from_expsyms_cmds_F77 \
15193 allow_undefined_flag_F77 \
15194 no_undefined_flag_F77 \
15195 export_symbols_cmds_F77 \
15196 hardcode_libdir_flag_spec_F77 \
15197 hardcode_libdir_flag_spec_ld_F77 \
15198 hardcode_libdir_separator_F77 \
15199 hardcode_automatic_F77 \
15201 module_expsym_cmds_F77 \
15202 lt_cv_prog_compiler_c_o_F77 \
15203 exclude_expsyms_F77 \
15204 include_expsyms_F77
; do
15207 old_archive_cmds_F77 | \
15208 old_archive_from_new_cmds_F77 | \
15209 archive_cmds_F77 | \
15210 archive_expsym_cmds_F77 | \
15211 module_cmds_F77 | \
15212 module_expsym_cmds_F77 | \
15213 old_archive_from_expsyms_cmds_F77 | \
15214 export_symbols_cmds_F77 | \
15215 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15216 postinstall_cmds | postuninstall_cmds | \
15217 old_postinstall_cmds | old_postuninstall_cmds | \
15218 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
15219 # Double-quote double-evaled strings.
15220 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15223 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15229 *'\$0 --fallback-echo"')
15230 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15236 cat <<__EOF__ >> "$cfgfile"
15237 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15239 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15241 # Shell to use when invoking shell scripts.
15244 # Whether or not to build shared libraries.
15245 build_libtool_libs=$enable_shared
15247 # Whether or not to build static libraries.
15248 build_old_libs=$enable_static
15250 # Whether or not to add -lc for building shared libraries.
15251 build_libtool_need_lc=$archive_cmds_need_lc_F77
15253 # Whether or not to disallow shared libs when runtime libs are static
15254 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15256 # Whether or not to optimize for fast installation.
15257 fast_install=$enable_fast_install
15260 host_alias=$host_alias
15264 # The build system.
15265 build_alias=$build_alias
15269 # An echo program that does not interpret backslashes.
15274 AR_FLAGS=$lt_AR_FLAGS
15279 # A language-specific compiler.
15280 CC=$lt_compiler_F77
15282 # Is the compiler the GNU C compiler?
15288 # The linker used to build libraries.
15291 # Whether we need hard or soft links.
15294 # A BSD-compatible nm program.
15297 # A symbol stripping program
15300 # Used to examine libraries when file_magic_cmd begins "file"
15301 MAGIC_CMD=$MAGIC_CMD
15303 # Used on cygwin: DLL creation program.
15306 # Used on cygwin: object dumper.
15309 # Used on cygwin: assembler.
15312 # The name of the directory that contains temporary libtool files.
15315 # How to create reloadable object files.
15316 reload_flag=$lt_reload_flag
15317 reload_cmds=$lt_reload_cmds
15319 # How to pass a linker flag through the compiler.
15320 wl=$lt_lt_prog_compiler_wl_F77
15322 # Object file suffix (normally "o").
15323 objext="$ac_objext"
15325 # Old archive suffix (normally "a").
15328 # Shared library suffix (normally ".so").
15329 shrext_cmds='$shrext_cmds'
15331 # Executable file suffix (normally "").
15334 # Additional compiler flags for building library objects.
15335 pic_flag=$lt_lt_prog_compiler_pic_F77
15338 # What is the maximum length of a command?
15339 max_cmd_len=$lt_cv_sys_max_cmd_len
15341 # Does compiler simultaneously support -c and -o options?
15342 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15344 # Must we lock files when doing compilation ?
15345 need_locks=$lt_need_locks
15347 # Do we need the lib prefix for modules?
15348 need_lib_prefix=$need_lib_prefix
15350 # Do we need a version for libraries?
15351 need_version=$need_version
15353 # Whether dlopen is supported.
15354 dlopen_support=$enable_dlopen
15356 # Whether dlopen of programs is supported.
15357 dlopen_self=$enable_dlopen_self
15359 # Whether dlopen of statically linked programs is supported.
15360 dlopen_self_static=$enable_dlopen_self_static
15362 # Compiler flag to prevent dynamic linking.
15363 link_static_flag=$lt_lt_prog_compiler_static_F77
15365 # Compiler flag to turn off builtin functions.
15366 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15368 # Compiler flag to allow reflexive dlopens.
15369 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15371 # Compiler flag to generate shared objects directly from archives.
15372 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15374 # Compiler flag to generate thread-safe objects.
15375 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15377 # Library versioning type.
15378 version_type=$version_type
15380 # Format of library name prefix.
15381 libname_spec=$lt_libname_spec
15383 # List of archive names. First name is the real one, the rest are links.
15384 # The last name is the one that the linker finds with -lNAME.
15385 library_names_spec=$lt_library_names_spec
15387 # The coded name of the library, if different from the real name.
15388 soname_spec=$lt_soname_spec
15390 # Commands used to build and install an old-style archive.
15392 old_archive_cmds=$lt_old_archive_cmds_F77
15393 old_postinstall_cmds=$lt_old_postinstall_cmds
15394 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15396 # Create an old-style archive from a shared archive.
15397 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15399 # Create a temporary old-style archive to link instead of a shared archive.
15400 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15402 # Commands used to build and install a shared archive.
15403 archive_cmds=$lt_archive_cmds_F77
15404 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15405 postinstall_cmds=$lt_postinstall_cmds
15406 postuninstall_cmds=$lt_postuninstall_cmds
15408 # Commands used to build a loadable module (assumed same as above if empty)
15409 module_cmds=$lt_module_cmds_F77
15410 module_expsym_cmds=$lt_module_expsym_cmds_F77
15412 # Commands to strip libraries.
15413 old_striplib=$lt_old_striplib
15414 striplib=$lt_striplib
15416 # Dependencies to place before the objects being linked to create a
15418 predep_objects=$lt_predep_objects_F77
15420 # Dependencies to place after the objects being linked to create a
15422 postdep_objects=$lt_postdep_objects_F77
15424 # Dependencies to place before the objects being linked to create a
15426 predeps=$lt_predeps_F77
15428 # Dependencies to place after the objects being linked to create a
15430 postdeps=$lt_postdeps_F77
15432 # The library search path used internally by the compiler when linking
15433 # a shared library.
15434 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15436 # Method to check whether dependent libraries are shared objects.
15437 deplibs_check_method=$lt_deplibs_check_method
15439 # Command to use when deplibs_check_method == file_magic.
15440 file_magic_cmd=$lt_file_magic_cmd
15442 # Flag that allows shared libraries with undefined symbols to be built.
15443 allow_undefined_flag=$lt_allow_undefined_flag_F77
15445 # Flag that forces no undefined symbols.
15446 no_undefined_flag=$lt_no_undefined_flag_F77
15448 # Commands used to finish a libtool library installation in a directory.
15449 finish_cmds=$lt_finish_cmds
15451 # Same as above, but a single script fragment to be evaled but not shown.
15452 finish_eval=$lt_finish_eval
15454 # Take the output of nm and produce a listing of raw symbols and C names.
15455 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15457 # Transform the output of nm in a proper C declaration
15458 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15460 # Transform the output of nm in a C name address pair
15461 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15463 # This is the shared library runtime path variable.
15464 runpath_var=$runpath_var
15466 # This is the shared library path variable.
15467 shlibpath_var=$shlibpath_var
15469 # Is shlibpath searched before the hard-coded library search path?
15470 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15472 # How to hardcode a shared library path into an executable.
15473 hardcode_action=$hardcode_action_F77
15475 # Whether we should hardcode library paths into libraries.
15476 hardcode_into_libs=$hardcode_into_libs
15478 # Flag to hardcode \$libdir into a binary during linking.
15479 # This must work even if \$libdir does not exist.
15480 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15482 # If ld is used when linking, flag to hardcode \$libdir into
15483 # a binary during linking. This must work even if \$libdir does
15485 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15487 # Whether we need a single -rpath flag with a separated argument.
15488 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15490 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15491 # resulting binary.
15492 hardcode_direct=$hardcode_direct_F77
15494 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15495 # resulting binary.
15496 hardcode_minus_L=$hardcode_minus_L_F77
15498 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15499 # the resulting binary.
15500 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15502 # Set to yes if building a shared library automatically hardcodes DIR into the library
15503 # and all subsequent libraries and executables linked against it.
15504 hardcode_automatic=$hardcode_automatic_F77
15506 # Variables whose values should be saved in libtool wrapper scripts and
15507 # restored at relink time.
15508 variables_saved_for_relink="$variables_saved_for_relink"
15510 # Whether libtool must link a program against all its dependency libraries.
15511 link_all_deplibs=$link_all_deplibs_F77
15513 # Compile-time system search path for libraries
15514 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15516 # Run-time system search path for libraries
15517 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15519 # Fix the shell variable \$srcfile for the compiler.
15520 fix_srcfile_path="$fix_srcfile_path_F77"
15522 # Set to yes if exported symbols are required.
15523 always_export_symbols=$always_export_symbols_F77
15525 # The commands to list exported symbols.
15526 export_symbols_cmds=$lt_export_symbols_cmds_F77
15528 # The commands to extract the exported symbol list from a shared archive.
15529 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15531 # Symbols that should not be listed in the preloaded symbols.
15532 exclude_expsyms=$lt_exclude_expsyms_F77
15534 # Symbols that must always be exported.
15535 include_expsyms=$lt_include_expsyms_F77
15537 # ### END LIBTOOL TAG CONFIG: $tagname
15543 # If there is no Makefile yet, we rely on a make rule to execute
15544 # `config.status --recheck' to rerun these tests and create the
15545 # libtool script then.
15546 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15547 if test -f "$ltmain_in"; then
15548 test -f Makefile
&& make "$ltmain"
15554 ac_cpp
='$CPP $CPPFLAGS'
15555 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15556 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15557 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15567 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15571 # Source file extension for Java test sources.
15574 # Object file extension for compiled Java test sources.
15578 # Code to be used in simple compile tests
15579 lt_simple_compile_test_code
="class foo {}\n"
15581 # Code to be used in simple link tests
15582 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }\n'
15584 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15586 # If no C compiler was specified, use CC.
15589 # Allow CC to be a program name with arguments.
15593 # Allow CC to be a program name with arguments.
15599 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15600 archive_cmds_need_lc_GCJ
=no
15603 lt_prog_compiler_no_builtin_flag_GCJ
=
15605 if test "$GCC" = yes; then
15606 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
15609 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15610 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15611 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15612 echo $ECHO_N "(cached) $ECHO_C" >&6
15614 lt_cv_prog_compiler_rtti_exceptions
=no
15615 ac_outfile
=conftest.
$ac_objext
15616 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15617 lt_compiler_flag
="-fno-rtti -fno-exceptions"
15618 # Insert the option either (1) after the last *FLAGS variable, or
15619 # (2) before a word containing "conftest.", or (3) at the end.
15620 # Note that $ac_compile itself does not contain backslashes and begins
15621 # with a dollar sign (not a hyphen), so the echo should work correctly.
15622 # The option is referenced via a variable to avoid confusing sed.
15623 lt_compile
=`echo "$ac_compile" | $SED \
15624 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15626 -e 's:$: $lt_compiler_flag:'`
15627 (eval echo "\"\$as_me:15627: $lt_compile\"" >&5)
15628 (eval "$lt_compile" 2>conftest.err
)
15630 cat conftest.err
>&5
15631 echo "$as_me:15631: \$? = $ac_status" >&5
15632 if (exit $ac_status) && test -s "$ac_outfile"; then
15633 # The compiler can only warn and ignore the option if not recognized
15634 # So say no if there are warnings
15635 if test ! -s conftest.err
; then
15636 lt_cv_prog_compiler_rtti_exceptions
=yes
15642 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15643 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15645 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
15646 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15653 lt_prog_compiler_wl_GCJ
=
15654 lt_prog_compiler_pic_GCJ
=
15655 lt_prog_compiler_static_GCJ
=
15657 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15658 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15660 if test "$GCC" = yes; then
15661 lt_prog_compiler_wl_GCJ
='-Wl,'
15662 lt_prog_compiler_static_GCJ
='-static'
15666 # All AIX code is PIC.
15667 if test "$host_cpu" = ia64
; then
15668 # AIX 5 now supports IA64 processor
15669 lt_prog_compiler_static_GCJ
='-Bstatic'
15674 # FIXME: we need at least 68020 code to build shared libraries, but
15675 # adding the `-m68020' flag to GCC prevents building anything better,
15677 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
15680 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
15681 # PIC is the default for these OSes.
15684 mingw
* | pw32
* | os2
*)
15685 # This hack is so that the source file can tell whether it is being
15686 # built for inclusion in a dll (and should export symbols for example).
15687 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
15690 darwin
* | rhapsody
*)
15691 # PIC is the default on this platform
15692 # Common symbols not allowed in MH_DYLIB files
15693 lt_prog_compiler_pic_GCJ
='-fno-common'
15697 # Just because we use GCC doesn't mean we suddenly get shared libraries
15698 # on systems that don't support them.
15699 lt_prog_compiler_can_build_shared_GCJ
=no
15704 if test -d /usr
/nec
; then
15705 lt_prog_compiler_pic_GCJ
=-Kconform_pic
15710 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15711 # not for PA HP-UX.
15712 case "$host_cpu" in
15717 lt_prog_compiler_pic_GCJ
='-fPIC'
15723 lt_prog_compiler_pic_GCJ
='-fPIC'
15727 # PORTME Check for flag to pass linker flags through the system compiler.
15730 lt_prog_compiler_wl_GCJ
='-Wl,'
15731 if test "$host_cpu" = ia64
; then
15732 # AIX 5 now supports IA64 processor
15733 lt_prog_compiler_static_GCJ
='-Bstatic'
15735 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
15739 # PIC is the default on this platform
15740 # Common symbols not allowed in MH_DYLIB files
15741 case "$cc_basename" in
15743 lt_prog_compiler_pic_GCJ
='-qnocommon'
15744 lt_prog_compiler_wl_GCJ
='-Wl,'
15749 mingw
* | pw32
* | os2
*)
15750 # This hack is so that the source file can tell whether it is being
15751 # built for inclusion in a dll (and should export symbols for example).
15752 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
15755 hpux9
* | hpux10
* | hpux11
*)
15756 lt_prog_compiler_wl_GCJ
='-Wl,'
15757 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15758 # not for PA HP-UX.
15759 case "$host_cpu" in
15764 lt_prog_compiler_pic_GCJ
='+Z'
15767 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15768 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
15771 irix5
* | irix6
* | nonstopux
*)
15772 lt_prog_compiler_wl_GCJ
='-Wl,'
15773 # PIC (with -KPIC) is the default.
15774 lt_prog_compiler_static_GCJ
='-non_shared'
15778 lt_prog_compiler_pic_GCJ
='-KPIC'
15779 lt_prog_compiler_static_GCJ
='-Bstatic'
15783 case $cc_basename in
15785 lt_prog_compiler_wl_GCJ
='-Wl,'
15786 lt_prog_compiler_pic_GCJ
='-KPIC'
15787 lt_prog_compiler_static_GCJ
='-static'
15789 pgcc | pgf77 | pgf90
)
15790 # Portland Group compilers (*not* the Pentium gcc compiler,
15791 # which looks to be a dead project)
15792 lt_prog_compiler_wl_GCJ
='-Wl,'
15793 lt_prog_compiler_pic_GCJ
='-fpic'
15794 lt_prog_compiler_static_GCJ
='-static'
15797 lt_prog_compiler_wl_GCJ
='-Wl,'
15798 # All Alpha code is PIC.
15799 lt_prog_compiler_static_GCJ
='-non_shared'
15802 lt_prog_compiler_wl_GCJ
='-lopt='
15807 osf3
* | osf4
* | osf5
*)
15808 lt_prog_compiler_wl_GCJ
='-Wl,'
15809 # All OSF/1 code is PIC.
15810 lt_prog_compiler_static_GCJ
='-non_shared'
15814 lt_prog_compiler_pic_GCJ
='-Kpic'
15815 lt_prog_compiler_static_GCJ
='-dn'
15819 lt_prog_compiler_wl_GCJ
='-Wl,'
15820 lt_prog_compiler_pic_GCJ
='-KPIC'
15821 lt_prog_compiler_static_GCJ
='-Bstatic'
15825 lt_prog_compiler_wl_GCJ
='-Qoption ld '
15826 lt_prog_compiler_pic_GCJ
='-PIC'
15827 lt_prog_compiler_static_GCJ
='-Bstatic'
15830 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
15831 lt_prog_compiler_wl_GCJ
='-Wl,'
15832 lt_prog_compiler_pic_GCJ
='-KPIC'
15833 lt_prog_compiler_static_GCJ
='-Bstatic'
15837 if test -d /usr
/nec
;then
15838 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
15839 lt_prog_compiler_static_GCJ
='-Bstatic'
15844 lt_prog_compiler_wl_GCJ
='-Wl,'
15845 lt_prog_compiler_can_build_shared_GCJ
=no
15849 lt_prog_compiler_pic_GCJ
='-pic'
15850 lt_prog_compiler_static_GCJ
='-Bstatic'
15854 lt_prog_compiler_can_build_shared_GCJ
=no
15859 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15860 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15863 # Check to make sure the PIC flag actually works.
15865 if test -n "$lt_prog_compiler_pic_GCJ"; then
15867 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15868 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15869 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15870 echo $ECHO_N "(cached) $ECHO_C" >&6
15872 lt_prog_compiler_pic_works_GCJ
=no
15873 ac_outfile
=conftest.
$ac_objext
15874 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15875 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
15876 # Insert the option either (1) after the last *FLAGS variable, or
15877 # (2) before a word containing "conftest.", or (3) at the end.
15878 # Note that $ac_compile itself does not contain backslashes and begins
15879 # with a dollar sign (not a hyphen), so the echo should work correctly.
15880 # The option is referenced via a variable to avoid confusing sed.
15881 lt_compile
=`echo "$ac_compile" | $SED \
15882 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15884 -e 's:$: $lt_compiler_flag:'`
15885 (eval echo "\"\$as_me:15885: $lt_compile\"" >&5)
15886 (eval "$lt_compile" 2>conftest.err
)
15888 cat conftest.err
>&5
15889 echo "$as_me:15889: \$? = $ac_status" >&5
15890 if (exit $ac_status) && test -s "$ac_outfile"; then
15891 # The compiler can only warn and ignore the option if not recognized
15892 # So say no if there are warnings
15893 if test ! -s conftest.err
; then
15894 lt_prog_compiler_pic_works_GCJ
=yes
15900 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15901 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15903 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
15904 case $lt_prog_compiler_pic_GCJ in
15906 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
15909 lt_prog_compiler_pic_GCJ
=
15910 lt_prog_compiler_can_build_shared_GCJ
=no
15915 # For platforms which do not support PIC, -DPIC is meaningless:
15917 lt_prog_compiler_pic_GCJ
=
15920 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
15924 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15925 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15926 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15927 echo $ECHO_N "(cached) $ECHO_C" >&6
15929 lt_cv_prog_compiler_c_o_GCJ
=no
15930 $rm -r conftest
2>/dev
/null
15934 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15936 lt_compiler_flag
="-o out/conftest2.$ac_objext"
15937 # Insert the option either (1) after the last *FLAGS variable, or
15938 # (2) before a word containing "conftest.", or (3) at the end.
15939 # Note that $ac_compile itself does not contain backslashes and begins
15940 # with a dollar sign (not a hyphen), so the echo should work correctly.
15941 lt_compile
=`echo "$ac_compile" | $SED \
15942 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15944 -e 's:$: $lt_compiler_flag:'`
15945 (eval echo "\"\$as_me:15945: $lt_compile\"" >&5)
15946 (eval "$lt_compile" 2>out
/conftest.err
)
15948 cat out
/conftest.err
>&5
15949 echo "$as_me:15949: \$? = $ac_status" >&5
15950 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
15952 # The compiler can only warn and ignore the option if not recognized
15953 # So say no if there are warnings
15954 if test ! -s out
/conftest.err
; then
15955 lt_cv_prog_compiler_c_o_GCJ
=yes
15960 # SGI C++ compiler will create directory out/ii_files/ for
15961 # template instantiation
15962 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
15963 $rm out
/* && rmdir out
15969 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15970 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15973 hard_links
="nottested"
15974 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
15975 # do not overwrite the value of need_locks provided by the user
15976 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15977 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15980 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
15982 ln conftest.a conftest.b
2>&5 || hard_links
=no
15983 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
15984 echo "$as_me:$LINENO: result: $hard_links" >&5
15985 echo "${ECHO_T}$hard_links" >&6
15986 if test "$hard_links" = no
; then
15987 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15988 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15995 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15996 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15999 allow_undefined_flag_GCJ
=
16000 enable_shared_with_static_runtimes_GCJ
=no
16002 archive_expsym_cmds_GCJ
=
16003 old_archive_From_new_cmds_GCJ
=
16004 old_archive_from_expsyms_cmds_GCJ
=
16005 export_dynamic_flag_spec_GCJ
=
16006 whole_archive_flag_spec_GCJ
=
16007 thread_safe_flag_spec_GCJ
=
16008 hardcode_libdir_flag_spec_GCJ
=
16009 hardcode_libdir_flag_spec_ld_GCJ
=
16010 hardcode_libdir_separator_GCJ
=
16011 hardcode_direct_GCJ
=no
16012 hardcode_minus_L_GCJ
=no
16013 hardcode_shlibpath_var_GCJ
=unsupported
16014 link_all_deplibs_GCJ
=unknown
16015 hardcode_automatic_GCJ
=no
16017 module_expsym_cmds_GCJ
=
16018 always_export_symbols_GCJ
=no
16019 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16020 # include_expsyms should be a list of space-separated symbols to be *always*
16021 # included in the symbol list
16022 include_expsyms_GCJ
=
16023 # exclude_expsyms can be an extended regexp of symbols to exclude
16024 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16025 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16026 # as well as any symbol that contains `d'.
16027 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
16028 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16029 # platforms (ab)use it in PIC code, but their linkers get confused if
16030 # the symbol is explicitly referenced. Since portable code cannot
16031 # rely on this symbol name, it's probably fine to never include it in
16032 # preloaded symbol tables.
16033 extract_expsyms_cmds
=
16036 cygwin
* | mingw
* | pw32
*)
16037 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16038 # When not using gcc, we currently assume that we are using
16039 # Microsoft Visual C++.
16040 if test "$GCC" != yes; then
16050 if test "$with_gnu_ld" = yes; then
16051 # If archive_cmds runs LD, not CC, wlarc should be empty
16054 # See if GNU ld supports shared libraries.
16056 aix3
* | aix4
* | aix5
*)
16057 # On AIX/PPC, the GNU linker is very broken
16058 if test "$host_cpu" != ia64
; then
16062 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16063 *** to be unable to reliably create shared libraries on AIX.
16064 *** Therefore, libtool is disabling shared libraries support. If you
16065 *** really care for shared libraries, you may want to modify your PATH
16066 *** so that a non-GNU linker is found, and then restart.
16073 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)'
16074 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16075 hardcode_minus_L_GCJ
=yes
16077 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16078 # that the semantics of dynamic libraries on AmigaOS, at least up
16079 # to version 4, is to share data among multiple programs linked
16080 # with the same dynamic library. Since this doesn't match the
16081 # behavior of shared libraries on other platforms, we can't use
16087 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16088 allow_undefined_flag_GCJ
=unsupported
16089 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16090 # support --undefined. This deserves some investigation. FIXME
16091 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16097 cygwin
* | mingw
* | pw32
*)
16098 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16099 # as there is no search path for DLLs.
16100 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16101 allow_undefined_flag_GCJ
=unsupported
16102 always_export_symbols_GCJ
=no
16103 enable_shared_with_static_runtimes_GCJ
=yes
16104 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16106 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
16107 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16108 # If the export-symbols file already is a .def file (1st line
16109 # is EXPORTS), use it as is; otherwise, prepend...
16110 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16111 cp $export_symbols $output_objdir/$soname.def;
16113 echo EXPORTS > $output_objdir/$soname.def;
16114 cat $export_symbols >> $output_objdir/$soname.def;
16116 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16123 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16124 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16127 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16128 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16133 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
16137 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16138 *** create shared libraries on Solaris systems. Therefore, libtool
16139 *** is disabling shared libraries support. We urge you to upgrade GNU
16140 *** binutils to release 2.9.1 or newer. Another option is to modify
16141 *** your PATH or compiler configuration so that the native linker is
16142 *** used, and then restart.
16145 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16146 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16147 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16154 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16156 hardcode_direct_GCJ
=yes
16157 hardcode_shlibpath_var_GCJ
=no
16161 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16163 case $CC,$host_cpu in
16164 pgf77
* | pgf90
* ) # Portland Group f77 and f90 compilers
16165 tmp_addflag
=' -fpic' ;;
16166 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16167 tmp_addflag
=' -i_dynamic' ;;
16168 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16169 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16170 ifc
* | ifort
*) # Intel Fortran compiler
16171 tmp_addflag
=' -nofor_main' ;;
16173 archive_cmds_GCJ
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16174 supports_anon_versioning
=no
16175 case `$LD -v 2>/dev/null` in
16176 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
16177 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
16178 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
16179 *\
2.11.
*) ;; # other 2.11 versions
16180 *) supports_anon_versioning
=yes ;;
16182 if test $supports_anon_versioning = yes; then
16183 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
16184 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16185 $echo "local: *; };" >> $output_objdir/$libname.ver~
16186 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16188 archive_expsym_cmds_GCJ
=$archive_cmds_GCJ
16196 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16197 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16198 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16205 if test "$ld_shlibs_GCJ" = yes; then
16206 runpath_var
=LD_RUN_PATH
16207 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
16208 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
16209 # ancient GNU ld didn't support --whole-archive et. al.
16210 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
16211 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16213 whole_archive_flag_spec_GCJ
=
16217 # PORTME fill in a description of your system's linker (not GNU ld)
16220 allow_undefined_flag_GCJ
=unsupported
16221 always_export_symbols_GCJ
=yes
16222 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'
16223 # Note: this linker hardcodes the directories in LIBPATH if there
16224 # are no directories specified by -L.
16225 hardcode_minus_L_GCJ
=yes
16226 if test "$GCC" = yes && test -z "$link_static_flag"; then
16227 # Neither direct hardcoding nor static linking is supported with a
16229 hardcode_direct_GCJ
=unsupported
16234 if test "$host_cpu" = ia64
; then
16235 # On IA64, the linker does run time linking by default, so we don't
16236 # have to do anything special.
16237 aix_use_runtimelinking
=no
16238 exp_sym_flag
='-Bexport'
16241 # If we're using GNU nm, then we don't want the "-C" option.
16242 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16243 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
16244 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'
16246 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'
16248 aix_use_runtimelinking
=no
16250 # Test if we are trying to use run time linking or normal
16251 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16252 # need to do runtime linking.
16253 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
16254 for ld_flag
in $LDFLAGS; do
16255 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16256 aix_use_runtimelinking
=yes
16262 exp_sym_flag
='-bexport'
16263 no_entry_flag
='-bnoentry'
16266 # When large executables or shared objects are built, AIX ld can
16267 # have problems creating the table of contents. If linking a library
16268 # or program results in "error TOC overflow" add -mminimal-toc to
16269 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16270 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16272 archive_cmds_GCJ
=''
16273 hardcode_direct_GCJ
=yes
16274 hardcode_libdir_separator_GCJ
=':'
16275 link_all_deplibs_GCJ
=yes
16277 if test "$GCC" = yes; then
16278 case $host_os in aix4.
[012]|aix4.
[012].
*)
16279 # We only want to do this on AIX 4.2 and lower, the check
16280 # below for broken collect2 doesn't work under 4.3+
16281 collect2name
=`${CC} -print-prog-name=collect2`
16282 if test -f "$collect2name" && \
16283 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
16285 # We have reworked collect2
16286 hardcode_direct_GCJ
=yes
16288 # We have old collect2
16289 hardcode_direct_GCJ
=unsupported
16290 # It fails to find uninstalled libraries when the uninstalled
16291 # path is not listed in the libpath. Setting hardcode_minus_L
16292 # to unsupported forces relinking
16293 hardcode_minus_L_GCJ
=yes
16294 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16295 hardcode_libdir_separator_GCJ
=
16298 shared_flag
='-shared'
16299 if test "$aix_use_runtimelinking" = yes; then
16300 shared_flag
="$shared_flag "'${wl}-G'
16304 if test "$host_cpu" = ia64
; then
16305 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16306 # chokes on -Wl,-G. The following line is correct:
16309 if test "$aix_use_runtimelinking" = yes; then
16310 shared_flag
='${wl}-G'
16312 shared_flag
='${wl}-bM:SRE'
16317 # It seems that -bexpall does not export symbols beginning with
16318 # underscore (_), so it is better to generate a list of symbols to export.
16319 always_export_symbols_GCJ
=yes
16320 if test "$aix_use_runtimelinking" = yes; then
16321 # Warning - without using the other runtime loading flags (-brtl),
16322 # -berok will link without error, but may produce a broken library.
16323 allow_undefined_flag_GCJ
='-berok'
16324 # Determine the default libpath from the value encoded in an empty executable.
16325 cat >conftest.
$ac_ext <<_ACEOF
16328 cat confdefs.h
>>conftest.
$ac_ext
16329 cat >>conftest.
$ac_ext <<_ACEOF
16330 /* end confdefs.h. */
16340 rm -f conftest.
$ac_objext conftest
$ac_exeext
16341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16342 (eval $ac_link) 2>conftest.er1
16344 grep -v '^ *+' conftest.er1
>conftest.err
16346 cat conftest.err
>&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } &&
16349 { ac_try
='test -z "$ac_c_werror_flag"
16350 || test ! -s conftest.err'
16351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352 (eval $ac_try) 2>&5
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; } &&
16356 { ac_try
='test -s conftest$ac_exeext'
16357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358 (eval $ac_try) 2>&5
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; }; then
16363 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16365 # Check for a 64-bit object if we didn't find anything.
16366 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; }
16369 echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.
$ac_ext >&5
16373 rm -f conftest.err conftest.
$ac_objext \
16374 conftest
$ac_exeext conftest.
$ac_ext
16375 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16377 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
16378 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"
16380 if test "$host_cpu" = ia64; then
16381 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr
/lib
:/lib
'
16382 allow_undefined_flag_GCJ="-z nodefs"
16383 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"
16385 # Determine the default libpath from the value encoded in an empty executable.
16386 cat >conftest.$ac_ext <<_ACEOF
16389 cat confdefs.h >>conftest.$ac_ext
16390 cat >>conftest.$ac_ext <<_ACEOF
16391 /* end confdefs.h. */
16401 rm -f conftest.$ac_objext conftest$ac_exeext
16402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16403 (eval $ac_link) 2>conftest.er1
16405 grep -v '^ *+' conftest.er1 >conftest.err
16407 cat conftest.err >&5
16408 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16409 (exit $ac_status); } &&
16410 { ac_try='test -z "$ac_c_werror_flag"
16411 || test ! -s conftest.err'
16412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16413 (eval $ac_try) 2>&5
16415 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16416 (exit $ac_status); }; } &&
16417 { ac_try='test -s conftest$ac_exeext'
16418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16419 (eval $ac_try) 2>&5
16421 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16422 (exit $ac_status); }; }; then
16424 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16426 # Check for a 64-bit object if we didn't find anything.
16427 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; }
16430 echo "$as_me: failed program was
:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16434 rm -f conftest.err conftest.$ac_objext \
16435 conftest$ac_exeext conftest.$ac_ext
16436 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
16438 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16439 # Warning - without using the other run time loading flags,
16440 # -berok will link without error, but may produce a broken library.
16441 no_undefined_flag_GCJ=' ${wl}-bernotok'
16442 allow_undefined_flag_GCJ=' ${wl}-berok'
16443 # -bexpall does not export symbols beginning with underscore (_)
16444 always_export_symbols_GCJ=yes
16445 # Exported symbols can be pulled into shared objects from archives
16446 whole_archive_flag_spec_GCJ=' '
16447 archive_cmds_need_lc_GCJ=yes
16448 # This is similar to how AIX traditionally builds it's shared libraries.
16449 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'
16455 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)'
16456 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16457 hardcode_minus_L_GCJ
=yes
16458 # see comment about different semantics on the GNU ld section
16463 export_dynamic_flag_spec_GCJ
=-rdynamic
16466 cygwin
* | mingw
* | pw32
*)
16467 # When not using gcc, we currently assume that we are using
16468 # Microsoft Visual C++.
16469 # hardcode_libdir_flag_spec is actually meaningless, as there is
16470 # no search path for DLLs.
16471 hardcode_libdir_flag_spec_GCJ
=' '
16472 allow_undefined_flag_GCJ
=unsupported
16473 # Tell ltmain to make .lib files, not .a files.
16475 # Tell ltmain to make .dll files, not .so files.
16477 # FIXME: Setting linknames here is a bad hack.
16478 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16479 # The linker will automatically build a .lib file if we build a DLL.
16480 old_archive_From_new_cmds_GCJ
='true'
16481 # FIXME: Should let the user specify the lib program.
16482 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
16483 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
16484 enable_shared_with_static_runtimes_GCJ
=yes
16487 darwin
* | rhapsody
*)
16489 rhapsody
* | darwin1.
[012])
16490 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
16493 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16494 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16496 case ${MACOSX_DEPLOYMENT_TARGET} in
16498 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16501 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
16507 archive_cmds_need_lc_GCJ
=no
16508 hardcode_direct_GCJ
=no
16509 hardcode_automatic_GCJ
=yes
16510 hardcode_shlibpath_var_GCJ
=unsupported
16511 whole_archive_flag_spec_GCJ
=''
16512 link_all_deplibs_GCJ
=yes
16513 if test "$GCC" = yes ; then
16514 output_verbose_link_cmd
='echo'
16515 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16516 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16517 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16518 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}'
16519 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}'
16521 case "$cc_basename" in
16523 output_verbose_link_cmd
='echo'
16524 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16525 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16526 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16527 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}'
16528 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}'
16538 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16539 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16540 hardcode_shlibpath_var_GCJ
=no
16547 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16548 # support. Future versions do this automatically, but an explicit c++rt0.o
16549 # does not break anything, and helps significantly (at the cost of a little
16552 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16553 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16554 hardcode_direct_GCJ
=yes
16555 hardcode_shlibpath_var_GCJ
=no
16558 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16560 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16561 hardcode_direct_GCJ
=yes
16562 hardcode_minus_L_GCJ
=yes
16563 hardcode_shlibpath_var_GCJ
=no
16566 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16567 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
16568 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16569 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16570 hardcode_direct_GCJ
=yes
16571 hardcode_shlibpath_var_GCJ
=no
16575 if test "$GCC" = yes; then
16576 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'
16578 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'
16580 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16581 hardcode_libdir_separator_GCJ
=:
16582 hardcode_direct_GCJ
=yes
16584 # hardcode_minus_L: Not really in the search PATH,
16585 # but as the default location of the library.
16586 hardcode_minus_L_GCJ
=yes
16587 export_dynamic_flag_spec_GCJ
='${wl}-E'
16591 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
16592 case "$host_cpu" in
16594 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16597 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16601 case "$host_cpu" in
16603 archive_cmds_GCJ
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16606 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16610 if test "$with_gnu_ld" = no
; then
16611 case "$host_cpu" in
16613 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16614 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
16615 hardcode_libdir_separator_GCJ
=:
16616 hardcode_direct_GCJ
=no
16617 hardcode_shlibpath_var_GCJ
=no
16620 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16621 hardcode_direct_GCJ
=no
16622 hardcode_shlibpath_var_GCJ
=no
16624 # hardcode_minus_L: Not really in the search PATH,
16625 # but as the default location of the library.
16626 hardcode_minus_L_GCJ
=yes
16629 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16630 hardcode_libdir_separator_GCJ
=:
16631 hardcode_direct_GCJ
=yes
16632 export_dynamic_flag_spec_GCJ
='${wl}-E'
16634 # hardcode_minus_L: Not really in the search PATH,
16635 # but as the default location of the library.
16636 hardcode_minus_L_GCJ
=yes
16642 irix5
* | irix6
* | nonstopux
*)
16643 if test "$GCC" = yes; then
16644 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'
16646 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'
16647 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
16649 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16650 hardcode_libdir_separator_GCJ
=:
16651 link_all_deplibs_GCJ
=yes
16655 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16656 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16658 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16660 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16661 hardcode_direct_GCJ
=yes
16662 hardcode_shlibpath_var_GCJ
=no
16666 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16667 hardcode_direct_GCJ
=yes
16668 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16669 hardcode_libdir_separator_GCJ
=:
16670 hardcode_shlibpath_var_GCJ
=no
16674 hardcode_direct_GCJ
=yes
16675 hardcode_shlibpath_var_GCJ
=no
16676 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16677 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16678 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16679 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
16680 export_dynamic_flag_spec_GCJ
='${wl}-E'
16683 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16684 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16685 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16688 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16689 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
16696 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16697 hardcode_minus_L_GCJ
=yes
16698 allow_undefined_flag_GCJ
=unsupported
16699 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'
16700 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16704 if test "$GCC" = yes; then
16705 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
16706 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'
16708 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
16709 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'
16711 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16712 hardcode_libdir_separator_GCJ
=:
16715 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16716 if test "$GCC" = yes; then
16717 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
16718 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'
16719 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16721 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
16722 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'
16723 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~
16724 $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'
16726 # Both c and cxx compiler support -rpath directly
16727 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
16729 hardcode_libdir_separator_GCJ
=:
16733 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16734 hardcode_shlibpath_var_GCJ
=no
16735 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
16736 runpath_var
=LD_RUN_PATH
16737 hardcode_runpath_var
=yes
16741 no_undefined_flag_GCJ
=' -z text'
16742 if test "$GCC" = yes; then
16743 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16744 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16745 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16747 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16748 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16749 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16751 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16752 hardcode_shlibpath_var_GCJ
=no
16754 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16755 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16756 whole_archive_flag_spec_GCJ
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
16758 link_all_deplibs_GCJ
=yes
16762 if test "x$host_vendor" = xsequent
; then
16763 # Use $CC to link under sequent, because it throws in some extra .o
16764 # files that make .init and .fini sections work.
16765 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16767 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16769 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16770 hardcode_direct_GCJ
=yes
16771 hardcode_minus_L_GCJ
=yes
16772 hardcode_shlibpath_var_GCJ
=no
16776 case $host_vendor in
16778 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16779 hardcode_direct_GCJ
=yes # is this really true???
16782 ## LD is ld it makes a PLAMLIB
16783 ## CC just makes a GrossModule.
16784 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16785 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
16786 hardcode_direct_GCJ
=no
16789 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16790 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
16793 runpath_var
='LD_RUN_PATH'
16794 hardcode_shlibpath_var_GCJ
=no
16798 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16799 hardcode_shlibpath_var_GCJ
=no
16800 export_dynamic_flag_spec_GCJ
='-Bexport'
16804 if test -d /usr
/nec
; then
16805 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16806 hardcode_shlibpath_var_GCJ
=no
16807 runpath_var
=LD_RUN_PATH
16808 hardcode_runpath_var
=yes
16814 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16815 hardcode_direct_GCJ
=yes
16816 hardcode_minus_L_GCJ
=no
16817 hardcode_shlibpath_var_GCJ
=no
16818 hardcode_runpath_var
=yes
16819 runpath_var
=LD_RUN_PATH
16822 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
16823 no_undefined_flag_GCJ
='${wl}-z ${wl}text'
16824 if test "$GCC" = yes; then
16825 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16827 archive_cmds_GCJ
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16829 runpath_var
='LD_RUN_PATH'
16830 hardcode_shlibpath_var_GCJ
=no
16834 no_undefined_flag_GCJ
=' -z text'
16835 # $CC -shared without GNU ld will not create a library from C++
16836 # object files and a static libstdc++, better avoid it by now
16837 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16838 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16839 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16840 hardcode_libdir_flag_spec_GCJ
=
16841 hardcode_shlibpath_var_GCJ
=no
16842 runpath_var
='LD_RUN_PATH'
16846 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16847 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16848 hardcode_shlibpath_var_GCJ
=no
16857 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16858 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16859 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
16861 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16862 if test "$GCC" = yes; then
16863 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16867 # Do we need to explicitly link libc?
16869 case "x$archive_cmds_need_lc_GCJ" in
16871 # Assume -lc should be added
16872 archive_cmds_need_lc_GCJ
=yes
16874 if test "$enable_shared" = yes && test "$GCC" = yes; then
16875 case $archive_cmds_GCJ in
16877 # FIXME: we may have to deal with multi-command sequences.
16880 # Test whether the compiler implicitly links with -lc since on some
16881 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16882 # to ld, don't add -lc before -lgcc.
16883 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16884 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16886 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16889 (eval $ac_compile) 2>&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } 2>conftest.err
; then
16895 libobjs
=conftest.
$ac_objext
16897 wl
=$lt_prog_compiler_wl_GCJ
16903 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
16904 allow_undefined_flag_GCJ
=
16905 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16906 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); }
16911 archive_cmds_need_lc_GCJ
=no
16913 archive_cmds_need_lc_GCJ
=yes
16915 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
16917 cat conftest.err
1>&5
16920 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16921 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16928 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16929 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16930 library_names_spec
=
16931 libname_spec
='lib$name'
16935 postuninstall_cmds
=
16939 shlibpath_overrides_runpath
=unknown
16941 dynamic_linker
="$host_os ld.so"
16942 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16943 if test "$GCC" = yes; then
16944 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16945 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
16946 # if the path contains ";" then we assume it to be the separator
16947 # otherwise default to the standard path separator (i.e. ":") - it is
16948 # assumed that no part of a normal pathname contains ";" but that should
16949 # okay in the real world where ";" in dirpaths is itself problematic.
16950 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16952 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16955 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16957 need_lib_prefix
=unknown
16958 hardcode_into_libs
=no
16960 # when you set need_version to no, make sure it does not cause -set_version
16961 # flags to be left without arguments
16962 need_version
=unknown
16967 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16968 shlibpath_var
=LIBPATH
16970 # AIX 3 has no versioning support, so we append a major version to the name.
16971 soname_spec
='${libname}${release}${shared_ext}$major'
16978 hardcode_into_libs
=yes
16979 if test "$host_cpu" = ia64
; then
16980 # AIX 5 supports IA64
16981 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16982 shlibpath_var
=LD_LIBRARY_PATH
16984 # With GCC up to 2.95.x, collect2 would create an import file
16985 # for dependence libraries. The import file would start with
16986 # the line `#! .'. This would cause the generated library to
16987 # depend on `.', always an invalid library. This was fixed in
16988 # development snapshots of GCC prior to 3.0.
16990 aix4 | aix4.
[01] | aix4.
[01].
*)
16991 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16993 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
16996 can_build_shared
=no
17000 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17001 # soname into executable. Probably we can add versioning support to
17002 # collect2, so additional links can be useful in future.
17003 if test "$aix_use_runtimelinking" = yes; then
17004 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17005 # instead of lib<name>.a to let people know that these are not
17006 # typical AIX shared libraries.
17007 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17009 # We preserve .a as extension for shared libraries through AIX4.2
17010 # and later when we are not doing run time linking.
17011 library_names_spec
='${libname}${release}.a $libname.a'
17012 soname_spec
='${libname}${release}${shared_ext}$major'
17014 shlibpath_var
=LIBPATH
17019 library_names_spec
='$libname.ixlibrary $libname.a'
17020 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17021 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'
17025 library_names_spec
='${libname}${shared_ext}'
17026 dynamic_linker
="$host_os ld.so"
17027 shlibpath_var
=LIBRARY_PATH
17033 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17034 soname_spec
='${libname}${release}${shared_ext}$major'
17035 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17036 shlibpath_var
=LD_LIBRARY_PATH
17037 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17038 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17039 # the default ld.so.conf also contains /usr/contrib/lib and
17040 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17041 # libtool to hard-code these into programs
17044 cygwin
* | mingw
* | pw32
*)
17045 version_type
=windows
17050 case $GCC,$host_os in
17051 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
17052 library_names_spec
='$libname.dll.a'
17053 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17054 postinstall_cmds
='base_file=`basename \${file}`~
17055 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17056 dldir=$destdir/`dirname \$dlpath`~
17057 test -d \$dldir || mkdir -p \$dldir~
17058 $install_prog $dir/$dlname \$dldir/$dlname'
17059 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17060 dlpath=$dir/\$dldll~
17062 shlibpath_overrides_runpath
=yes
17066 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17067 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17068 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
17071 # MinGW DLLs use traditional 'lib' prefix
17072 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17073 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17074 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
17075 # It is most probably a Windows format PATH printed by
17076 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17077 # path with ; separators, and with drive letters. We can handle the
17078 # drive letters (cygwin fileutils understands them), so leave them,
17079 # especially as we might pass files found there to a mingw objdump,
17080 # which wouldn't understand a cygwinified path. Ahh.
17081 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17083 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17087 # pw32 DLLs use 'pw' prefix rather than 'lib'
17088 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17094 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17097 dynamic_linker
='Win32 ld.exe'
17098 # FIXME: first we should search . and the directory the executable is in
17102 darwin
* | rhapsody
*)
17103 dynamic_linker
="$host_os dyld"
17104 version_type
=darwin
17107 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17108 soname_spec
='${libname}${release}${major}$shared_ext'
17109 shlibpath_overrides_runpath
=yes
17110 shlibpath_var
=DYLD_LIBRARY_PATH
17111 shrext_cmds
='$(test .$module = .yes && echo .so || echo .dylib)'
17112 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17113 if test "$GCC" = yes; then
17114 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"`
17116 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
17118 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17125 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17126 soname_spec
='${libname}${release}${shared_ext}$major'
17127 shlibpath_var
=LD_LIBRARY_PATH
17138 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17139 soname_spec
='${libname}${release}${shared_ext}$major'
17140 shlibpath_var
=LD_LIBRARY_PATH
17141 shlibpath_overrides_runpath
=no
17142 hardcode_into_libs
=yes
17143 dynamic_linker
='GNU ld.so'
17146 freebsd
* | dragonfly
*)
17147 # DragonFly does not have aout. When/if they implement a new
17148 # versioning mechanism, adjust this.
17149 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17150 version_type
=freebsd-
$objformat
17151 case $version_type in
17153 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17158 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17162 shlibpath_var
=LD_LIBRARY_PATH
17165 shlibpath_overrides_runpath
=yes
17167 freebsd3.
[01]* | freebsdelf3.
[01]*)
17168 shlibpath_overrides_runpath
=yes
17169 hardcode_into_libs
=yes
17172 shlibpath_overrides_runpath
=no
17173 hardcode_into_libs
=yes
17182 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17183 soname_spec
='${libname}${release}${shared_ext}$major'
17184 shlibpath_var
=LD_LIBRARY_PATH
17185 hardcode_into_libs
=yes
17188 hpux9
* | hpux10
* | hpux11
*)
17189 # Give a soname corresponding to the major version so that dld.sl refuses to
17190 # link against other versions.
17194 case "$host_cpu" in
17197 hardcode_into_libs
=yes
17198 dynamic_linker
="$host_os dld.so"
17199 shlibpath_var
=LD_LIBRARY_PATH
17200 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17201 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17202 soname_spec
='${libname}${release}${shared_ext}$major'
17203 if test "X$HPUX_IA64_MODE" = X32
; then
17204 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17206 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17208 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17212 hardcode_into_libs
=yes
17213 dynamic_linker
="$host_os dld.sl"
17214 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17215 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17216 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17217 soname_spec
='${libname}${release}${shared_ext}$major'
17218 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17219 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17223 dynamic_linker
="$host_os dld.sl"
17224 shlibpath_var
=SHLIB_PATH
17225 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17226 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17227 soname_spec
='${libname}${release}${shared_ext}$major'
17230 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17231 postinstall_cmds
='chmod 555 $lib'
17234 irix5
* | irix6
* | nonstopux
*)
17236 nonstopux
*) version_type
=nonstopux
;;
17238 if test "$lt_cv_prog_gnu_ld" = yes; then
17246 soname_spec
='${libname}${release}${shared_ext}$major'
17247 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17249 irix5
* | nonstopux
*)
17250 libsuff
= shlibsuff
=
17253 case $LD in # libtool.m4 will add one of these switches to LD
17254 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17255 libsuff
= shlibsuff
= libmagic
=32-bit;;
17256 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17257 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17258 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17259 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17260 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17264 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17265 shlibpath_overrides_runpath
=no
17266 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17267 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17268 hardcode_into_libs
=yes
17271 # No shared lib support for Linux oldld, aout, or coff.
17272 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17276 # This must be Linux ELF.
17281 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17282 soname_spec
='${libname}${release}${shared_ext}$major'
17283 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17284 shlibpath_var
=LD_LIBRARY_PATH
17285 shlibpath_overrides_runpath
=no
17286 # This implies no fast_install, which is unacceptable.
17287 # Some rework will be needed to allow for fast_install
17288 # before this can be enabled.
17289 hardcode_into_libs
=yes
17291 # Append ld.so.conf contents to the search path
17292 if test -f /etc
/ld.so.conf
; then
17293 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' ' '`
17294 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17297 # We used to test for /lib/ld.so.1 and disable shared libraries on
17298 # powerpc, because MkLinux only supported shared libraries with the
17299 # GNU dynamic linker. Since this was broken with cross compilers,
17300 # most powerpc-linux boxes support dynamic linking these days and
17301 # people can always --disable-shared, the test was removed, and we
17302 # assume the GNU/Linux dynamic linker is in use.
17303 dynamic_linker
='GNU/Linux ld.so'
17310 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17311 soname_spec
='${libname}${release}${shared_ext}$major'
17312 shlibpath_var
=LD_LIBRARY_PATH
17313 shlibpath_overrides_runpath
=no
17314 hardcode_into_libs
=yes
17315 dynamic_linker
='GNU ld.so'
17322 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17323 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17324 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17325 dynamic_linker
='NetBSD (a.out) ld.so'
17327 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17328 soname_spec
='${libname}${release}${shared_ext}$major'
17329 dynamic_linker
='NetBSD ld.elf_so'
17331 shlibpath_var
=LD_LIBRARY_PATH
17332 shlibpath_overrides_runpath
=yes
17333 hardcode_into_libs
=yes
17338 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17339 shlibpath_var
=LD_LIBRARY_PATH
17340 shlibpath_overrides_runpath
=yes
17347 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17348 soname_spec
='${libname}${release}${shared_ext}$major'
17349 shlibpath_var
=LD_LIBRARY_PATH
17350 shlibpath_overrides_runpath
=yes
17357 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17358 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17359 shlibpath_var
=LD_LIBRARY_PATH
17360 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17362 openbsd2.
[89] | openbsd2.
[89].
*)
17363 shlibpath_overrides_runpath
=no
17366 shlibpath_overrides_runpath
=yes
17370 shlibpath_overrides_runpath
=yes
17375 libname_spec
='$name'
17378 library_names_spec
='$libname${shared_ext} $libname.a'
17379 dynamic_linker
='OS/2 ld.exe'
17380 shlibpath_var
=LIBPATH
17383 osf3
* | osf4
* | osf5
*)
17387 soname_spec
='${libname}${release}${shared_ext}$major'
17388 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17389 shlibpath_var
=LD_LIBRARY_PATH
17390 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17391 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17396 soname_spec
='${libname}${release}${shared_ext}$major'
17397 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17398 shlibpath_var
=LD_LIBRARY_PATH
17405 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17406 soname_spec
='${libname}${release}${shared_ext}$major'
17407 shlibpath_var
=LD_LIBRARY_PATH
17408 shlibpath_overrides_runpath
=yes
17409 hardcode_into_libs
=yes
17410 # ldd complains unless libraries are executable
17411 postinstall_cmds
='chmod +x $lib'
17416 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17417 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17418 shlibpath_var
=LD_LIBRARY_PATH
17419 shlibpath_overrides_runpath
=yes
17420 if test "$with_gnu_ld" = yes; then
17426 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17428 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17429 soname_spec
='${libname}${release}${shared_ext}$major'
17430 shlibpath_var
=LD_LIBRARY_PATH
17431 case $host_vendor in
17433 shlibpath_overrides_runpath
=no
17435 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17436 runpath_var
=LD_RUN_PATH
17444 shlibpath_overrides_runpath
=no
17445 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17451 if test -d /usr
/nec
;then
17453 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17454 soname_spec
='$libname${shared_ext}.$major'
17455 shlibpath_var
=LD_LIBRARY_PATH
17461 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17462 soname_spec
='${libname}${release}${shared_ext}$major'
17463 shlibpath_var
=LD_LIBRARY_PATH
17470 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17471 echo "${ECHO_T}$dynamic_linker" >&6
17472 test "$dynamic_linker" = no
&& can_build_shared
=no
17474 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17475 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17476 hardcode_action_GCJ
=
17477 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17478 test -n "$runpath_var_GCJ" || \
17479 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17481 # We can hardcode non-existant directories.
17482 if test "$hardcode_direct_GCJ" != no
&&
17483 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17484 # have to relink, otherwise we might link with an installed library
17485 # when we should be linking with a yet-to-be-installed one
17486 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17487 test "$hardcode_minus_L_GCJ" != no
; then
17488 # Linking always hardcodes the temporary library directory.
17489 hardcode_action_GCJ
=relink
17491 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17492 hardcode_action_GCJ
=immediate
17495 # We cannot hardcode anything, or else we can only hardcode existing
17497 hardcode_action_GCJ
=unsupported
17499 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17500 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17502 if test "$hardcode_action_GCJ" = relink
; then
17503 # Fast installation is not supported
17504 enable_fast_install
=no
17505 elif test "$shlibpath_overrides_runpath" = yes ||
17506 test "$enable_shared" = no
; then
17507 # Fast installation is not necessary
17508 enable_fast_install
=needless
17513 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17514 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17515 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
17516 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
17517 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
17518 echo "$as_me:$LINENO: result: yes" >&5
17519 echo "${ECHO_T}yes" >&6
17521 # FIXME - insert some real tests, host_os isn't really good enough
17524 if test -n "$STRIP" ; then
17525 striplib
="$STRIP -x"
17526 echo "$as_me:$LINENO: result: yes" >&5
17527 echo "${ECHO_T}yes" >&6
17529 echo "$as_me:$LINENO: result: no" >&5
17530 echo "${ECHO_T}no" >&6
17534 echo "$as_me:$LINENO: result: no" >&5
17535 echo "${ECHO_T}no" >&6
17540 if test "x$enable_dlopen" != xyes
; then
17541 enable_dlopen
=unknown
17542 enable_dlopen_self
=unknown
17543 enable_dlopen_self_static
=unknown
17550 lt_cv_dlopen
="load_add_on"
17552 lt_cv_dlopen_self
=yes
17556 lt_cv_dlopen
="LoadLibrary"
17561 lt_cv_dlopen
="dlopen"
17566 # if libdl is installed we need to link against it
17567 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17568 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17569 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17570 echo $ECHO_N "(cached) $ECHO_C" >&6
17572 ac_check_lib_save_LIBS
=$LIBS
17574 cat >conftest.
$ac_ext <<_ACEOF
17577 cat confdefs.h
>>conftest.
$ac_ext
17578 cat >>conftest.
$ac_ext <<_ACEOF
17579 /* end confdefs.h. */
17581 /* Override any gcc2 internal prototype to avoid an error. */
17585 /* We use char because int might match the return type of a gcc2
17586 builtin and then its argument prototype would still apply. */
17596 rm -f conftest.
$ac_objext conftest
$ac_exeext
17597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17598 (eval $ac_link) 2>conftest.er1
17600 grep -v '^ *+' conftest.er1
>conftest.err
17602 cat conftest.err
>&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); } &&
17605 { ac_try
='test -z "$ac_c_werror_flag"
17606 || test ! -s conftest.err'
17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608 (eval $ac_try) 2>&5
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; } &&
17612 { ac_try
='test -s conftest$ac_exeext'
17613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17614 (eval $ac_try) 2>&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; }; then
17618 ac_cv_lib_dl_dlopen
=yes
17620 echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.
$ac_ext >&5
17623 ac_cv_lib_dl_dlopen
=no
17625 rm -f conftest.err conftest.
$ac_objext \
17626 conftest
$ac_exeext conftest.
$ac_ext
17627 LIBS
=$ac_check_lib_save_LIBS
17629 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17630 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17631 if test $ac_cv_lib_dl_dlopen = yes; then
17632 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17635 lt_cv_dlopen
="dyld"
17637 lt_cv_dlopen_self
=yes
17644 echo "$as_me:$LINENO: checking for shl_load" >&5
17645 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17646 if test "${ac_cv_func_shl_load+set}" = set; then
17647 echo $ECHO_N "(cached) $ECHO_C" >&6
17649 cat >conftest.
$ac_ext <<_ACEOF
17652 cat confdefs.h
>>conftest.
$ac_ext
17653 cat >>conftest.
$ac_ext <<_ACEOF
17654 /* end confdefs.h. */
17655 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17657 #define shl_load innocuous_shl_load
17659 /* System header to define __stub macros and hopefully few prototypes,
17660 which can conflict with char shl_load (); below.
17661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17662 <limits.h> exists even on freestanding compilers. */
17665 # include <limits.h>
17667 # include <assert.h>
17672 /* Override any gcc2 internal prototype to avoid an error. */
17677 /* We use char because int might match the return type of a gcc2
17678 builtin and then its argument prototype would still apply. */
17680 /* The GNU C library defines this for functions which it implements
17681 to always fail with ENOSYS. Some functions are actually named
17682 something starting with __ and the normal name is an alias. */
17683 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17686 char (*f) () = shl_load;
17695 return f != shl_load;
17700 rm -f conftest.
$ac_objext conftest
$ac_exeext
17701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17702 (eval $ac_link) 2>conftest.er1
17704 grep -v '^ *+' conftest.er1
>conftest.err
17706 cat conftest.err
>&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); } &&
17709 { ac_try
='test -z "$ac_c_werror_flag"
17710 || test ! -s conftest.err'
17711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17712 (eval $ac_try) 2>&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); }; } &&
17716 { ac_try
='test -s conftest$ac_exeext'
17717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718 (eval $ac_try) 2>&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; }; then
17722 ac_cv_func_shl_load
=yes
17724 echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.
$ac_ext >&5
17727 ac_cv_func_shl_load
=no
17729 rm -f conftest.err conftest.
$ac_objext \
17730 conftest
$ac_exeext conftest.
$ac_ext
17732 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17733 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17734 if test $ac_cv_func_shl_load = yes; then
17735 lt_cv_dlopen
="shl_load"
17737 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17738 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17739 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17740 echo $ECHO_N "(cached) $ECHO_C" >&6
17742 ac_check_lib_save_LIBS
=$LIBS
17744 cat >conftest.
$ac_ext <<_ACEOF
17747 cat confdefs.h
>>conftest.
$ac_ext
17748 cat >>conftest.
$ac_ext <<_ACEOF
17749 /* end confdefs.h. */
17751 /* Override any gcc2 internal prototype to avoid an error. */
17755 /* We use char because int might match the return type of a gcc2
17756 builtin and then its argument prototype would still apply. */
17766 rm -f conftest.
$ac_objext conftest
$ac_exeext
17767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17768 (eval $ac_link) 2>conftest.er1
17770 grep -v '^ *+' conftest.er1
>conftest.err
17772 cat conftest.err
>&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); } &&
17775 { ac_try
='test -z "$ac_c_werror_flag"
17776 || test ! -s conftest.err'
17777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17778 (eval $ac_try) 2>&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }; } &&
17782 { ac_try
='test -s conftest$ac_exeext'
17783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784 (eval $ac_try) 2>&5
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; }; then
17788 ac_cv_lib_dld_shl_load
=yes
17790 echo "$as_me: failed program was:" >&5
17791 sed 's/^/| /' conftest.
$ac_ext >&5
17793 ac_cv_lib_dld_shl_load
=no
17795 rm -f conftest.err conftest.
$ac_objext \
17796 conftest
$ac_exeext conftest.
$ac_ext
17797 LIBS
=$ac_check_lib_save_LIBS
17799 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17800 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17801 if test $ac_cv_lib_dld_shl_load = yes; then
17802 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
17804 echo "$as_me:$LINENO: checking for dlopen" >&5
17805 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17806 if test "${ac_cv_func_dlopen+set}" = set; then
17807 echo $ECHO_N "(cached) $ECHO_C" >&6
17809 cat >conftest.
$ac_ext <<_ACEOF
17812 cat confdefs.h
>>conftest.
$ac_ext
17813 cat >>conftest.
$ac_ext <<_ACEOF
17814 /* end confdefs.h. */
17815 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17817 #define dlopen innocuous_dlopen
17819 /* System header to define __stub macros and hopefully few prototypes,
17820 which can conflict with char dlopen (); below.
17821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17822 <limits.h> exists even on freestanding compilers. */
17825 # include <limits.h>
17827 # include <assert.h>
17832 /* Override any gcc2 internal prototype to avoid an error. */
17837 /* We use char because int might match the return type of a gcc2
17838 builtin and then its argument prototype would still apply. */
17840 /* The GNU C library defines this for functions which it implements
17841 to always fail with ENOSYS. Some functions are actually named
17842 something starting with __ and the normal name is an alias. */
17843 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17846 char (*f) () = dlopen;
17855 return f != dlopen;
17860 rm -f conftest.
$ac_objext conftest
$ac_exeext
17861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17862 (eval $ac_link) 2>conftest.er1
17864 grep -v '^ *+' conftest.er1
>conftest.err
17866 cat conftest.err
>&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } &&
17869 { ac_try
='test -z "$ac_c_werror_flag"
17870 || test ! -s conftest.err'
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; } &&
17876 { ac_try
='test -s conftest$ac_exeext'
17877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878 (eval $ac_try) 2>&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; }; then
17882 ac_cv_func_dlopen
=yes
17884 echo "$as_me: failed program was:" >&5
17885 sed 's/^/| /' conftest.
$ac_ext >&5
17887 ac_cv_func_dlopen
=no
17889 rm -f conftest.err conftest.
$ac_objext \
17890 conftest
$ac_exeext conftest.
$ac_ext
17892 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17893 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17894 if test $ac_cv_func_dlopen = yes; then
17895 lt_cv_dlopen
="dlopen"
17897 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17898 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17899 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17900 echo $ECHO_N "(cached) $ECHO_C" >&6
17902 ac_check_lib_save_LIBS
=$LIBS
17904 cat >conftest.
$ac_ext <<_ACEOF
17907 cat confdefs.h
>>conftest.
$ac_ext
17908 cat >>conftest.
$ac_ext <<_ACEOF
17909 /* end confdefs.h. */
17911 /* Override any gcc2 internal prototype to avoid an error. */
17915 /* We use char because int might match the return type of a gcc2
17916 builtin and then its argument prototype would still apply. */
17926 rm -f conftest.
$ac_objext conftest
$ac_exeext
17927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17928 (eval $ac_link) 2>conftest.er1
17930 grep -v '^ *+' conftest.er1
>conftest.err
17932 cat conftest.err
>&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); } &&
17935 { ac_try
='test -z "$ac_c_werror_flag"
17936 || test ! -s conftest.err'
17937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938 (eval $ac_try) 2>&5
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); }; } &&
17942 { ac_try
='test -s conftest$ac_exeext'
17943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944 (eval $ac_try) 2>&5
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; }; then
17948 ac_cv_lib_dl_dlopen
=yes
17950 echo "$as_me: failed program was:" >&5
17951 sed 's/^/| /' conftest.
$ac_ext >&5
17953 ac_cv_lib_dl_dlopen
=no
17955 rm -f conftest.err conftest.
$ac_objext \
17956 conftest
$ac_exeext conftest.
$ac_ext
17957 LIBS
=$ac_check_lib_save_LIBS
17959 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17960 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17961 if test $ac_cv_lib_dl_dlopen = yes; then
17962 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17964 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17965 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17966 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17967 echo $ECHO_N "(cached) $ECHO_C" >&6
17969 ac_check_lib_save_LIBS
=$LIBS
17970 LIBS
="-lsvld $LIBS"
17971 cat >conftest.
$ac_ext <<_ACEOF
17974 cat confdefs.h
>>conftest.
$ac_ext
17975 cat >>conftest.
$ac_ext <<_ACEOF
17976 /* end confdefs.h. */
17978 /* Override any gcc2 internal prototype to avoid an error. */
17982 /* We use char because int might match the return type of a gcc2
17983 builtin and then its argument prototype would still apply. */
17993 rm -f conftest.
$ac_objext conftest
$ac_exeext
17994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17995 (eval $ac_link) 2>conftest.er1
17997 grep -v '^ *+' conftest.er1
>conftest.err
17999 cat conftest.err
>&5
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); } &&
18002 { ac_try
='test -z "$ac_c_werror_flag"
18003 || test ! -s conftest.err'
18004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005 (eval $ac_try) 2>&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; } &&
18009 { ac_try
='test -s conftest$ac_exeext'
18010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011 (eval $ac_try) 2>&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; }; then
18015 ac_cv_lib_svld_dlopen
=yes
18017 echo "$as_me: failed program was:" >&5
18018 sed 's/^/| /' conftest.
$ac_ext >&5
18020 ac_cv_lib_svld_dlopen
=no
18022 rm -f conftest.err conftest.
$ac_objext \
18023 conftest
$ac_exeext conftest.
$ac_ext
18024 LIBS
=$ac_check_lib_save_LIBS
18026 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18027 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18028 if test $ac_cv_lib_svld_dlopen = yes; then
18029 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18031 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18032 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18033 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18034 echo $ECHO_N "(cached) $ECHO_C" >&6
18036 ac_check_lib_save_LIBS
=$LIBS
18038 cat >conftest.
$ac_ext <<_ACEOF
18041 cat confdefs.h
>>conftest.
$ac_ext
18042 cat >>conftest.
$ac_ext <<_ACEOF
18043 /* end confdefs.h. */
18045 /* Override any gcc2 internal prototype to avoid an error. */
18049 /* We use char because int might match the return type of a gcc2
18050 builtin and then its argument prototype would still apply. */
18060 rm -f conftest.
$ac_objext conftest
$ac_exeext
18061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18062 (eval $ac_link) 2>conftest.er1
18064 grep -v '^ *+' conftest.er1
>conftest.err
18066 cat conftest.err
>&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); } &&
18069 { ac_try
='test -z "$ac_c_werror_flag"
18070 || test ! -s conftest.err'
18071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18072 (eval $ac_try) 2>&5
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); }; } &&
18076 { ac_try
='test -s conftest$ac_exeext'
18077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18078 (eval $ac_try) 2>&5
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); }; }; then
18082 ac_cv_lib_dld_dld_link
=yes
18084 echo "$as_me: failed program was:" >&5
18085 sed 's/^/| /' conftest.
$ac_ext >&5
18087 ac_cv_lib_dld_dld_link
=no
18089 rm -f conftest.err conftest.
$ac_objext \
18090 conftest
$ac_exeext conftest.
$ac_ext
18091 LIBS
=$ac_check_lib_save_LIBS
18093 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18094 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18095 if test $ac_cv_lib_dld_dld_link = yes; then
18096 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
18117 if test "x$lt_cv_dlopen" != xno
; then
18123 case $lt_cv_dlopen in
18125 save_CPPFLAGS
="$CPPFLAGS"
18126 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18128 save_LDFLAGS
="$LDFLAGS"
18129 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18132 LIBS
="$lt_cv_dlopen_libs $LIBS"
18134 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18135 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18136 if test "${lt_cv_dlopen_self+set}" = set; then
18137 echo $ECHO_N "(cached) $ECHO_C" >&6
18139 if test "$cross_compiling" = yes; then :
18140 lt_cv_dlopen_self
=cross
18142 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18143 lt_status
=$lt_dlunknown
18144 cat > conftest.
$ac_ext <<EOF
18145 #line 18145 "configure"
18146 #include "confdefs.h"
18155 # define LT_DLGLOBAL RTLD_GLOBAL
18158 # define LT_DLGLOBAL DL_GLOBAL
18160 # define LT_DLGLOBAL 0
18164 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18165 find out it does not work in some platform. */
18166 #ifndef LT_DLLAZY_OR_NOW
18168 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18171 # define LT_DLLAZY_OR_NOW DL_LAZY
18174 # define LT_DLLAZY_OR_NOW RTLD_NOW
18177 # define LT_DLLAZY_OR_NOW DL_NOW
18179 # define LT_DLLAZY_OR_NOW 0
18187 extern "C" void exit (int);
18190 void fnord() { int i=42;}
18193 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18194 int status = $lt_dlunknown;
18198 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18199 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18200 /* dlclose (self); */
18206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18207 (eval $ac_link) 2>&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18211 (.
/conftest
; exit; ) 2>/dev
/null
18213 case x
$lt_status in
18214 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18215 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18216 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
18219 # compilation failed
18220 lt_cv_dlopen_self
=no
18227 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18228 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18230 if test "x$lt_cv_dlopen_self" = xyes
; then
18231 LDFLAGS
="$LDFLAGS $link_static_flag"
18232 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18233 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18234 if test "${lt_cv_dlopen_self_static+set}" = set; then
18235 echo $ECHO_N "(cached) $ECHO_C" >&6
18237 if test "$cross_compiling" = yes; then :
18238 lt_cv_dlopen_self_static
=cross
18240 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18241 lt_status
=$lt_dlunknown
18242 cat > conftest.
$ac_ext <<EOF
18243 #line 18243 "configure"
18244 #include "confdefs.h"
18253 # define LT_DLGLOBAL RTLD_GLOBAL
18256 # define LT_DLGLOBAL DL_GLOBAL
18258 # define LT_DLGLOBAL 0
18262 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18263 find out it does not work in some platform. */
18264 #ifndef LT_DLLAZY_OR_NOW
18266 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18269 # define LT_DLLAZY_OR_NOW DL_LAZY
18272 # define LT_DLLAZY_OR_NOW RTLD_NOW
18275 # define LT_DLLAZY_OR_NOW DL_NOW
18277 # define LT_DLLAZY_OR_NOW 0
18285 extern "C" void exit (int);
18288 void fnord() { int i=42;}
18291 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18292 int status = $lt_dlunknown;
18296 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18297 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18298 /* dlclose (self); */
18304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18305 (eval $ac_link) 2>&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18309 (.
/conftest
; exit; ) 2>/dev
/null
18311 case x
$lt_status in
18312 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18313 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18314 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
18317 # compilation failed
18318 lt_cv_dlopen_self_static
=no
18325 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18326 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18329 CPPFLAGS
="$save_CPPFLAGS"
18330 LDFLAGS
="$save_LDFLAGS"
18335 case $lt_cv_dlopen_self in
18336 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18337 *) enable_dlopen_self
=unknown
;;
18340 case $lt_cv_dlopen_self_static in
18341 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18342 *) enable_dlopen_self_static
=unknown
;;
18347 # The else clause should only fire when bootstrapping the
18348 # libtool distribution, otherwise you forgot to ship ltmain.sh
18349 # with your package, and you will get complaints that there are
18350 # no rules to generate ltmain.sh.
18351 if test -f "$ltmain"; then
18352 # See if we are running on zsh, and set the options which allow our commands through
18353 # without removal of \ escapes.
18354 if test -n "${ZSH_VERSION+set}" ; then
18355 setopt NO_GLOB_SUBST
18357 # Now quote all the things that may contain metacharacters while being
18358 # careful not to overquote the AC_SUBSTed values. We take copies of the
18359 # variables and quote the copies for generation of the libtool script.
18360 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18362 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18363 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18364 deplibs_check_method reload_flag reload_cmds need_locks \
18365 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18366 lt_cv_sys_global_symbol_to_c_name_address \
18367 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18368 old_postinstall_cmds old_postuninstall_cmds \
18372 lt_prog_compiler_wl_GCJ \
18373 lt_prog_compiler_pic_GCJ \
18374 lt_prog_compiler_static_GCJ \
18375 lt_prog_compiler_no_builtin_flag_GCJ \
18376 export_dynamic_flag_spec_GCJ \
18377 thread_safe_flag_spec_GCJ \
18378 whole_archive_flag_spec_GCJ \
18379 enable_shared_with_static_runtimes_GCJ \
18380 old_archive_cmds_GCJ \
18381 old_archive_from_new_cmds_GCJ \
18382 predep_objects_GCJ \
18383 postdep_objects_GCJ \
18386 compiler_lib_search_path_GCJ \
18388 archive_expsym_cmds_GCJ \
18389 postinstall_cmds_GCJ \
18390 postuninstall_cmds_GCJ \
18391 old_archive_from_expsyms_cmds_GCJ \
18392 allow_undefined_flag_GCJ \
18393 no_undefined_flag_GCJ \
18394 export_symbols_cmds_GCJ \
18395 hardcode_libdir_flag_spec_GCJ \
18396 hardcode_libdir_flag_spec_ld_GCJ \
18397 hardcode_libdir_separator_GCJ \
18398 hardcode_automatic_GCJ \
18400 module_expsym_cmds_GCJ \
18401 lt_cv_prog_compiler_c_o_GCJ \
18402 exclude_expsyms_GCJ \
18403 include_expsyms_GCJ
; do
18406 old_archive_cmds_GCJ | \
18407 old_archive_from_new_cmds_GCJ | \
18408 archive_cmds_GCJ | \
18409 archive_expsym_cmds_GCJ | \
18410 module_cmds_GCJ | \
18411 module_expsym_cmds_GCJ | \
18412 old_archive_from_expsyms_cmds_GCJ | \
18413 export_symbols_cmds_GCJ | \
18414 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18415 postinstall_cmds | postuninstall_cmds | \
18416 old_postinstall_cmds | old_postuninstall_cmds | \
18417 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18418 # Double-quote double-evaled strings.
18419 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18422 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18428 *'\$0 --fallback-echo"')
18429 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18435 cat <<__EOF__ >> "$cfgfile"
18436 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18438 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18440 # Shell to use when invoking shell scripts.
18443 # Whether or not to build shared libraries.
18444 build_libtool_libs=$enable_shared
18446 # Whether or not to build static libraries.
18447 build_old_libs=$enable_static
18449 # Whether or not to add -lc for building shared libraries.
18450 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18452 # Whether or not to disallow shared libs when runtime libs are static
18453 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18455 # Whether or not to optimize for fast installation.
18456 fast_install=$enable_fast_install
18459 host_alias=$host_alias
18463 # The build system.
18464 build_alias=$build_alias
18468 # An echo program that does not interpret backslashes.
18473 AR_FLAGS=$lt_AR_FLAGS
18478 # A language-specific compiler.
18479 CC=$lt_compiler_GCJ
18481 # Is the compiler the GNU C compiler?
18487 # The linker used to build libraries.
18490 # Whether we need hard or soft links.
18493 # A BSD-compatible nm program.
18496 # A symbol stripping program
18499 # Used to examine libraries when file_magic_cmd begins "file"
18500 MAGIC_CMD=$MAGIC_CMD
18502 # Used on cygwin: DLL creation program.
18505 # Used on cygwin: object dumper.
18508 # Used on cygwin: assembler.
18511 # The name of the directory that contains temporary libtool files.
18514 # How to create reloadable object files.
18515 reload_flag=$lt_reload_flag
18516 reload_cmds=$lt_reload_cmds
18518 # How to pass a linker flag through the compiler.
18519 wl=$lt_lt_prog_compiler_wl_GCJ
18521 # Object file suffix (normally "o").
18522 objext="$ac_objext"
18524 # Old archive suffix (normally "a").
18527 # Shared library suffix (normally ".so").
18528 shrext_cmds='$shrext_cmds'
18530 # Executable file suffix (normally "").
18533 # Additional compiler flags for building library objects.
18534 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18537 # What is the maximum length of a command?
18538 max_cmd_len=$lt_cv_sys_max_cmd_len
18540 # Does compiler simultaneously support -c and -o options?
18541 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18543 # Must we lock files when doing compilation ?
18544 need_locks=$lt_need_locks
18546 # Do we need the lib prefix for modules?
18547 need_lib_prefix=$need_lib_prefix
18549 # Do we need a version for libraries?
18550 need_version=$need_version
18552 # Whether dlopen is supported.
18553 dlopen_support=$enable_dlopen
18555 # Whether dlopen of programs is supported.
18556 dlopen_self=$enable_dlopen_self
18558 # Whether dlopen of statically linked programs is supported.
18559 dlopen_self_static=$enable_dlopen_self_static
18561 # Compiler flag to prevent dynamic linking.
18562 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18564 # Compiler flag to turn off builtin functions.
18565 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18567 # Compiler flag to allow reflexive dlopens.
18568 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18570 # Compiler flag to generate shared objects directly from archives.
18571 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18573 # Compiler flag to generate thread-safe objects.
18574 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18576 # Library versioning type.
18577 version_type=$version_type
18579 # Format of library name prefix.
18580 libname_spec=$lt_libname_spec
18582 # List of archive names. First name is the real one, the rest are links.
18583 # The last name is the one that the linker finds with -lNAME.
18584 library_names_spec=$lt_library_names_spec
18586 # The coded name of the library, if different from the real name.
18587 soname_spec=$lt_soname_spec
18589 # Commands used to build and install an old-style archive.
18591 old_archive_cmds=$lt_old_archive_cmds_GCJ
18592 old_postinstall_cmds=$lt_old_postinstall_cmds
18593 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18595 # Create an old-style archive from a shared archive.
18596 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18598 # Create a temporary old-style archive to link instead of a shared archive.
18599 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18601 # Commands used to build and install a shared archive.
18602 archive_cmds=$lt_archive_cmds_GCJ
18603 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18604 postinstall_cmds=$lt_postinstall_cmds
18605 postuninstall_cmds=$lt_postuninstall_cmds
18607 # Commands used to build a loadable module (assumed same as above if empty)
18608 module_cmds=$lt_module_cmds_GCJ
18609 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18611 # Commands to strip libraries.
18612 old_striplib=$lt_old_striplib
18613 striplib=$lt_striplib
18615 # Dependencies to place before the objects being linked to create a
18617 predep_objects=$lt_predep_objects_GCJ
18619 # Dependencies to place after the objects being linked to create a
18621 postdep_objects=$lt_postdep_objects_GCJ
18623 # Dependencies to place before the objects being linked to create a
18625 predeps=$lt_predeps_GCJ
18627 # Dependencies to place after the objects being linked to create a
18629 postdeps=$lt_postdeps_GCJ
18631 # The library search path used internally by the compiler when linking
18632 # a shared library.
18633 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18635 # Method to check whether dependent libraries are shared objects.
18636 deplibs_check_method=$lt_deplibs_check_method
18638 # Command to use when deplibs_check_method == file_magic.
18639 file_magic_cmd=$lt_file_magic_cmd
18641 # Flag that allows shared libraries with undefined symbols to be built.
18642 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18644 # Flag that forces no undefined symbols.
18645 no_undefined_flag=$lt_no_undefined_flag_GCJ
18647 # Commands used to finish a libtool library installation in a directory.
18648 finish_cmds=$lt_finish_cmds
18650 # Same as above, but a single script fragment to be evaled but not shown.
18651 finish_eval=$lt_finish_eval
18653 # Take the output of nm and produce a listing of raw symbols and C names.
18654 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18656 # Transform the output of nm in a proper C declaration
18657 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18659 # Transform the output of nm in a C name address pair
18660 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18662 # This is the shared library runtime path variable.
18663 runpath_var=$runpath_var
18665 # This is the shared library path variable.
18666 shlibpath_var=$shlibpath_var
18668 # Is shlibpath searched before the hard-coded library search path?
18669 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18671 # How to hardcode a shared library path into an executable.
18672 hardcode_action=$hardcode_action_GCJ
18674 # Whether we should hardcode library paths into libraries.
18675 hardcode_into_libs=$hardcode_into_libs
18677 # Flag to hardcode \$libdir into a binary during linking.
18678 # This must work even if \$libdir does not exist.
18679 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18681 # If ld is used when linking, flag to hardcode \$libdir into
18682 # a binary during linking. This must work even if \$libdir does
18684 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18686 # Whether we need a single -rpath flag with a separated argument.
18687 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18689 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18690 # resulting binary.
18691 hardcode_direct=$hardcode_direct_GCJ
18693 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18694 # resulting binary.
18695 hardcode_minus_L=$hardcode_minus_L_GCJ
18697 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18698 # the resulting binary.
18699 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18701 # Set to yes if building a shared library automatically hardcodes DIR into the library
18702 # and all subsequent libraries and executables linked against it.
18703 hardcode_automatic=$hardcode_automatic_GCJ
18705 # Variables whose values should be saved in libtool wrapper scripts and
18706 # restored at relink time.
18707 variables_saved_for_relink="$variables_saved_for_relink"
18709 # Whether libtool must link a program against all its dependency libraries.
18710 link_all_deplibs=$link_all_deplibs_GCJ
18712 # Compile-time system search path for libraries
18713 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18715 # Run-time system search path for libraries
18716 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18718 # Fix the shell variable \$srcfile for the compiler.
18719 fix_srcfile_path="$fix_srcfile_path_GCJ"
18721 # Set to yes if exported symbols are required.
18722 always_export_symbols=$always_export_symbols_GCJ
18724 # The commands to list exported symbols.
18725 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18727 # The commands to extract the exported symbol list from a shared archive.
18728 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18730 # Symbols that should not be listed in the preloaded symbols.
18731 exclude_expsyms=$lt_exclude_expsyms_GCJ
18733 # Symbols that must always be exported.
18734 include_expsyms=$lt_include_expsyms_GCJ
18736 # ### END LIBTOOL TAG CONFIG: $tagname
18742 # If there is no Makefile yet, we rely on a make rule to execute
18743 # `config.status --recheck' to rerun these tests and create the
18744 # libtool script then.
18745 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18746 if test -f "$ltmain_in"; then
18747 test -f Makefile
&& make "$ltmain"
18753 ac_cpp
='$CPP $CPPFLAGS'
18754 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18755 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18756 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18769 # Source file extension for RC test sources.
18772 # Object file extension for compiled RC test sources.
18776 # Code to be used in simple compile tests
18777 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18779 # Code to be used in simple link tests
18780 lt_simple_link_test_code
="$lt_simple_compile_test_code"
18782 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18784 # If no C compiler was specified, use CC.
18787 # Allow CC to be a program name with arguments.
18791 # Allow CC to be a program name with arguments.
18796 lt_cv_prog_compiler_c_o_RC
=yes
18798 # The else clause should only fire when bootstrapping the
18799 # libtool distribution, otherwise you forgot to ship ltmain.sh
18800 # with your package, and you will get complaints that there are
18801 # no rules to generate ltmain.sh.
18802 if test -f "$ltmain"; then
18803 # See if we are running on zsh, and set the options which allow our commands through
18804 # without removal of \ escapes.
18805 if test -n "${ZSH_VERSION+set}" ; then
18806 setopt NO_GLOB_SUBST
18808 # Now quote all the things that may contain metacharacters while being
18809 # careful not to overquote the AC_SUBSTed values. We take copies of the
18810 # variables and quote the copies for generation of the libtool script.
18811 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18813 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18814 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18815 deplibs_check_method reload_flag reload_cmds need_locks \
18816 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18817 lt_cv_sys_global_symbol_to_c_name_address \
18818 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18819 old_postinstall_cmds old_postuninstall_cmds \
18823 lt_prog_compiler_wl_RC \
18824 lt_prog_compiler_pic_RC \
18825 lt_prog_compiler_static_RC \
18826 lt_prog_compiler_no_builtin_flag_RC \
18827 export_dynamic_flag_spec_RC \
18828 thread_safe_flag_spec_RC \
18829 whole_archive_flag_spec_RC \
18830 enable_shared_with_static_runtimes_RC \
18831 old_archive_cmds_RC \
18832 old_archive_from_new_cmds_RC \
18833 predep_objects_RC \
18834 postdep_objects_RC \
18837 compiler_lib_search_path_RC \
18839 archive_expsym_cmds_RC \
18840 postinstall_cmds_RC \
18841 postuninstall_cmds_RC \
18842 old_archive_from_expsyms_cmds_RC \
18843 allow_undefined_flag_RC \
18844 no_undefined_flag_RC \
18845 export_symbols_cmds_RC \
18846 hardcode_libdir_flag_spec_RC \
18847 hardcode_libdir_flag_spec_ld_RC \
18848 hardcode_libdir_separator_RC \
18849 hardcode_automatic_RC \
18851 module_expsym_cmds_RC \
18852 lt_cv_prog_compiler_c_o_RC \
18853 exclude_expsyms_RC \
18854 include_expsyms_RC
; do
18857 old_archive_cmds_RC | \
18858 old_archive_from_new_cmds_RC | \
18859 archive_cmds_RC | \
18860 archive_expsym_cmds_RC | \
18862 module_expsym_cmds_RC | \
18863 old_archive_from_expsyms_cmds_RC | \
18864 export_symbols_cmds_RC | \
18865 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18866 postinstall_cmds | postuninstall_cmds | \
18867 old_postinstall_cmds | old_postuninstall_cmds | \
18868 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18869 # Double-quote double-evaled strings.
18870 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18873 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18879 *'\$0 --fallback-echo"')
18880 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18886 cat <<__EOF__ >> "$cfgfile"
18887 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18889 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18891 # Shell to use when invoking shell scripts.
18894 # Whether or not to build shared libraries.
18895 build_libtool_libs=$enable_shared
18897 # Whether or not to build static libraries.
18898 build_old_libs=$enable_static
18900 # Whether or not to add -lc for building shared libraries.
18901 build_libtool_need_lc=$archive_cmds_need_lc_RC
18903 # Whether or not to disallow shared libs when runtime libs are static
18904 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18906 # Whether or not to optimize for fast installation.
18907 fast_install=$enable_fast_install
18910 host_alias=$host_alias
18914 # The build system.
18915 build_alias=$build_alias
18919 # An echo program that does not interpret backslashes.
18924 AR_FLAGS=$lt_AR_FLAGS
18929 # A language-specific compiler.
18932 # Is the compiler the GNU C compiler?
18938 # The linker used to build libraries.
18941 # Whether we need hard or soft links.
18944 # A BSD-compatible nm program.
18947 # A symbol stripping program
18950 # Used to examine libraries when file_magic_cmd begins "file"
18951 MAGIC_CMD=$MAGIC_CMD
18953 # Used on cygwin: DLL creation program.
18956 # Used on cygwin: object dumper.
18959 # Used on cygwin: assembler.
18962 # The name of the directory that contains temporary libtool files.
18965 # How to create reloadable object files.
18966 reload_flag=$lt_reload_flag
18967 reload_cmds=$lt_reload_cmds
18969 # How to pass a linker flag through the compiler.
18970 wl=$lt_lt_prog_compiler_wl_RC
18972 # Object file suffix (normally "o").
18973 objext="$ac_objext"
18975 # Old archive suffix (normally "a").
18978 # Shared library suffix (normally ".so").
18979 shrext_cmds='$shrext_cmds'
18981 # Executable file suffix (normally "").
18984 # Additional compiler flags for building library objects.
18985 pic_flag=$lt_lt_prog_compiler_pic_RC
18988 # What is the maximum length of a command?
18989 max_cmd_len=$lt_cv_sys_max_cmd_len
18991 # Does compiler simultaneously support -c and -o options?
18992 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18994 # Must we lock files when doing compilation ?
18995 need_locks=$lt_need_locks
18997 # Do we need the lib prefix for modules?
18998 need_lib_prefix=$need_lib_prefix
19000 # Do we need a version for libraries?
19001 need_version=$need_version
19003 # Whether dlopen is supported.
19004 dlopen_support=$enable_dlopen
19006 # Whether dlopen of programs is supported.
19007 dlopen_self=$enable_dlopen_self
19009 # Whether dlopen of statically linked programs is supported.
19010 dlopen_self_static=$enable_dlopen_self_static
19012 # Compiler flag to prevent dynamic linking.
19013 link_static_flag=$lt_lt_prog_compiler_static_RC
19015 # Compiler flag to turn off builtin functions.
19016 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19018 # Compiler flag to allow reflexive dlopens.
19019 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19021 # Compiler flag to generate shared objects directly from archives.
19022 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19024 # Compiler flag to generate thread-safe objects.
19025 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19027 # Library versioning type.
19028 version_type=$version_type
19030 # Format of library name prefix.
19031 libname_spec=$lt_libname_spec
19033 # List of archive names. First name is the real one, the rest are links.
19034 # The last name is the one that the linker finds with -lNAME.
19035 library_names_spec=$lt_library_names_spec
19037 # The coded name of the library, if different from the real name.
19038 soname_spec=$lt_soname_spec
19040 # Commands used to build and install an old-style archive.
19042 old_archive_cmds=$lt_old_archive_cmds_RC
19043 old_postinstall_cmds=$lt_old_postinstall_cmds
19044 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19046 # Create an old-style archive from a shared archive.
19047 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19049 # Create a temporary old-style archive to link instead of a shared archive.
19050 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19052 # Commands used to build and install a shared archive.
19053 archive_cmds=$lt_archive_cmds_RC
19054 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19055 postinstall_cmds=$lt_postinstall_cmds
19056 postuninstall_cmds=$lt_postuninstall_cmds
19058 # Commands used to build a loadable module (assumed same as above if empty)
19059 module_cmds=$lt_module_cmds_RC
19060 module_expsym_cmds=$lt_module_expsym_cmds_RC
19062 # Commands to strip libraries.
19063 old_striplib=$lt_old_striplib
19064 striplib=$lt_striplib
19066 # Dependencies to place before the objects being linked to create a
19068 predep_objects=$lt_predep_objects_RC
19070 # Dependencies to place after the objects being linked to create a
19072 postdep_objects=$lt_postdep_objects_RC
19074 # Dependencies to place before the objects being linked to create a
19076 predeps=$lt_predeps_RC
19078 # Dependencies to place after the objects being linked to create a
19080 postdeps=$lt_postdeps_RC
19082 # The library search path used internally by the compiler when linking
19083 # a shared library.
19084 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19086 # Method to check whether dependent libraries are shared objects.
19087 deplibs_check_method=$lt_deplibs_check_method
19089 # Command to use when deplibs_check_method == file_magic.
19090 file_magic_cmd=$lt_file_magic_cmd
19092 # Flag that allows shared libraries with undefined symbols to be built.
19093 allow_undefined_flag=$lt_allow_undefined_flag_RC
19095 # Flag that forces no undefined symbols.
19096 no_undefined_flag=$lt_no_undefined_flag_RC
19098 # Commands used to finish a libtool library installation in a directory.
19099 finish_cmds=$lt_finish_cmds
19101 # Same as above, but a single script fragment to be evaled but not shown.
19102 finish_eval=$lt_finish_eval
19104 # Take the output of nm and produce a listing of raw symbols and C names.
19105 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19107 # Transform the output of nm in a proper C declaration
19108 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19110 # Transform the output of nm in a C name address pair
19111 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19113 # This is the shared library runtime path variable.
19114 runpath_var=$runpath_var
19116 # This is the shared library path variable.
19117 shlibpath_var=$shlibpath_var
19119 # Is shlibpath searched before the hard-coded library search path?
19120 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19122 # How to hardcode a shared library path into an executable.
19123 hardcode_action=$hardcode_action_RC
19125 # Whether we should hardcode library paths into libraries.
19126 hardcode_into_libs=$hardcode_into_libs
19128 # Flag to hardcode \$libdir into a binary during linking.
19129 # This must work even if \$libdir does not exist.
19130 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19132 # If ld is used when linking, flag to hardcode \$libdir into
19133 # a binary during linking. This must work even if \$libdir does
19135 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19137 # Whether we need a single -rpath flag with a separated argument.
19138 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19140 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19141 # resulting binary.
19142 hardcode_direct=$hardcode_direct_RC
19144 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19145 # resulting binary.
19146 hardcode_minus_L=$hardcode_minus_L_RC
19148 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19149 # the resulting binary.
19150 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19152 # Set to yes if building a shared library automatically hardcodes DIR into the library
19153 # and all subsequent libraries and executables linked against it.
19154 hardcode_automatic=$hardcode_automatic_RC
19156 # Variables whose values should be saved in libtool wrapper scripts and
19157 # restored at relink time.
19158 variables_saved_for_relink="$variables_saved_for_relink"
19160 # Whether libtool must link a program against all its dependency libraries.
19161 link_all_deplibs=$link_all_deplibs_RC
19163 # Compile-time system search path for libraries
19164 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19166 # Run-time system search path for libraries
19167 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19169 # Fix the shell variable \$srcfile for the compiler.
19170 fix_srcfile_path="$fix_srcfile_path_RC"
19172 # Set to yes if exported symbols are required.
19173 always_export_symbols=$always_export_symbols_RC
19175 # The commands to list exported symbols.
19176 export_symbols_cmds=$lt_export_symbols_cmds_RC
19178 # The commands to extract the exported symbol list from a shared archive.
19179 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19181 # Symbols that should not be listed in the preloaded symbols.
19182 exclude_expsyms=$lt_exclude_expsyms_RC
19184 # Symbols that must always be exported.
19185 include_expsyms=$lt_include_expsyms_RC
19187 # ### END LIBTOOL TAG CONFIG: $tagname
19193 # If there is no Makefile yet, we rely on a make rule to execute
19194 # `config.status --recheck' to rerun these tests and create the
19195 # libtool script then.
19196 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19197 if test -f "$ltmain_in"; then
19198 test -f Makefile
&& make "$ltmain"
19204 ac_cpp
='$CPP $CPPFLAGS'
19205 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19206 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19207 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19214 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19215 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19216 { (exit 1); exit 1; }; }
19220 # Append the new tag name to the list of available tags.
19221 if test -n "$tagname" ; then
19222 available_tags
="$available_tags $tagname"
19228 # Now substitute the updated list of available tags.
19229 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19230 mv "${ofile}T" "$ofile"
19234 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19235 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19236 { (exit 1); exit 1; }; }
19242 # This can be used to rebuild libtool when needed
19243 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
19245 # Always use our own libtool.
19246 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
19248 # Prevent multiple expansion
19270 if test "X$prefix" = "XNONE"; then
19271 acl_final_prefix
="$ac_default_prefix"
19273 acl_final_prefix
="$prefix"
19275 if test "X$exec_prefix" = "XNONE"; then
19276 acl_final_exec_prefix
='${prefix}'
19278 acl_final_exec_prefix
="$exec_prefix"
19280 acl_save_prefix
="$prefix"
19281 prefix
="$acl_final_prefix"
19282 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
19283 prefix
="$acl_save_prefix"
19286 # Check whether --with-gnu-ld or --without-gnu-ld was given.
19287 if test "${with_gnu_ld+set}" = set; then
19288 withval
="$with_gnu_ld"
19289 test "$withval" = no || with_gnu_ld
=yes
19293 # Prepare PATH_SEPARATOR.
19294 # The user is always right.
19295 if test "${PATH_SEPARATOR+set}" != set; then
19296 echo "#! /bin/sh" >conf$$.sh
19297 echo "exit 0" >>conf$$.sh
19299 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
19307 if test "$GCC" = yes; then
19308 # Check if gcc -print-prog-name=ld gives a path.
19309 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
19310 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
19313 # gcc leaves a trailing carriage return which upsets mingw
19314 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19316 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19319 # Accept absolute paths.
19320 [\\/]* |
[A-Za-z
]:[\\/]*)
19321 re_direlt
='/[^/][^/]*/\.\./'
19322 # Canonicalize the path of ld
19323 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
19324 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
19325 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
19327 test -z "$LD" && LD
="$ac_prog"
19330 # If it fails, then pretend we aren't using GCC.
19334 # If it is relative, then search for the first ld in PATH.
19335 with_gnu_ld
=unknown
19338 elif test "$with_gnu_ld" = yes; then
19339 echo "$as_me:$LINENO: checking for GNU ld" >&5
19340 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
19342 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
19343 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
19345 if test "${acl_cv_path_LD+set}" = set; then
19346 echo $ECHO_N "(cached) $ECHO_C" >&6
19348 if test -z "$LD"; then
19349 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
19350 for ac_dir
in $PATH; do
19351 test -z "$ac_dir" && ac_dir
=.
19352 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19353 acl_cv_path_LD
="$ac_dir/$ac_prog"
19354 # Check to see if the program is GNU ld. I'd rather use --version,
19355 # but apparently some GNU ld's only accept -v.
19356 # Break only if it was the GNU/non-GNU ld that we prefer.
19357 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
19358 *GNU
* |
*'with BFD'*)
19359 test "$with_gnu_ld" != no
&& break ;;
19361 test "$with_gnu_ld" != yes && break ;;
19367 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
19371 LD
="$acl_cv_path_LD"
19372 if test -n "$LD"; then
19373 echo "$as_me:$LINENO: result: $LD" >&5
19374 echo "${ECHO_T}$LD" >&6
19376 echo "$as_me:$LINENO: result: no" >&5
19377 echo "${ECHO_T}no" >&6
19379 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
19380 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
19381 { (exit 1); exit 1; }; }
19382 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
19383 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
19384 if test "${acl_cv_prog_gnu_ld+set}" = set; then
19385 echo $ECHO_N "(cached) $ECHO_C" >&6
19387 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
19388 case `$LD -v 2>&1 </dev/null` in
19389 *GNU
* |
*'with BFD'*)
19390 acl_cv_prog_gnu_ld
=yes ;;
19392 acl_cv_prog_gnu_ld
=no
;;
19395 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
19396 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
19397 with_gnu_ld
=$acl_cv_prog_gnu_ld
19402 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
19403 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
19404 if test "${acl_cv_rpath+set}" = set; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
19408 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
19409 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
19411 rm -f .
/conftest.sh
19415 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
19416 echo "${ECHO_T}$acl_cv_rpath" >&6
19418 libext
="$acl_cv_libext"
19419 shlibext
="$acl_cv_shlibext"
19420 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
19421 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
19422 hardcode_direct
="$acl_cv_hardcode_direct"
19423 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
19424 # Check whether --enable-rpath or --disable-rpath was given.
19425 if test "${enable_rpath+set}" = set; then
19426 enableval
="$enable_rpath"
19437 echo "$as_me:$LINENO: checking how to link with librpathx" >&5
19438 echo $ECHO_N "checking how to link with librpathx... $ECHO_C" >&6
19439 if test "${ac_cv_librpathx_libs+set}" = set; then
19440 echo $ECHO_N "(cached) $ECHO_C" >&6
19447 acl_save_prefix
="$prefix"
19448 prefix
="$acl_final_prefix"
19449 acl_save_exec_prefix
="$exec_prefix"
19450 exec_prefix
="$acl_final_exec_prefix"
19452 eval additional_includedir
=\"$includedir\"
19453 eval additional_libdir
=\"$libdir\"
19455 exec_prefix
="$acl_save_exec_prefix"
19456 prefix
="$acl_save_prefix"
19459 # Check whether --with-librpathx-prefix or --without-librpathx-prefix was given.
19460 if test "${with_librpathx_prefix+set}" = set; then
19461 withval
="$with_librpathx_prefix"
19463 if test "X$withval" = "Xno"; then
19466 if test "X$withval" = "X"; then
19468 acl_save_prefix
="$prefix"
19469 prefix
="$acl_final_prefix"
19470 acl_save_exec_prefix
="$exec_prefix"
19471 exec_prefix
="$acl_final_exec_prefix"
19473 eval additional_includedir
=\"$includedir\"
19474 eval additional_libdir
=\"$libdir\"
19476 exec_prefix
="$acl_save_exec_prefix"
19477 prefix
="$acl_save_prefix"
19480 additional_includedir
="$withval/include"
19481 additional_libdir
="$withval/lib"
19491 names_already_handled
=
19492 names_next_round
='rpathx '
19493 while test -n "$names_next_round"; do
19494 names_this_round
="$names_next_round"
19496 for name
in $names_this_round; do
19498 for n
in $names_already_handled; do
19499 if test "$n" = "$name"; then
19500 already_handled
=yes
19504 if test -z "$already_handled"; then
19505 names_already_handled
="$names_already_handled $name"
19506 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19507 eval value
=\"\
$HAVE_LIB$uppername\"
19508 if test -n "$value"; then
19509 if test "$value" = yes; then
19510 eval value
=\"\
$LIB$uppername\"
19511 test -z "$value" || LIBRPATHX
="${LIBRPATHX}${LIBRPATHX:+ }$value"
19512 eval value
=\"\
$LTLIB$uppername\"
19513 test -z "$value" || LTLIBRPATHX
="${LTLIBRPATHX}${LTLIBRPATHX:+ }$value"
19522 if test $use_additional = yes; then
19523 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
19524 found_dir
="$additional_libdir"
19525 found_so
="$additional_libdir/lib$name.$shlibext"
19526 if test -f "$additional_libdir/lib$name.la"; then
19527 found_la
="$additional_libdir/lib$name.la"
19530 if test -f "$additional_libdir/lib$name.$libext"; then
19531 found_dir
="$additional_libdir"
19532 found_a
="$additional_libdir/lib$name.$libext"
19533 if test -f "$additional_libdir/lib$name.la"; then
19534 found_la
="$additional_libdir/lib$name.la"
19539 if test "X$found_dir" = "X"; then
19540 for x
in $LDFLAGS $LTLIBRPATHX; do
19542 acl_save_prefix
="$prefix"
19543 prefix
="$acl_final_prefix"
19544 acl_save_exec_prefix
="$exec_prefix"
19545 exec_prefix
="$acl_final_exec_prefix"
19547 exec_prefix
="$acl_save_exec_prefix"
19548 prefix
="$acl_save_prefix"
19552 dir
=`echo "X$x" | sed -e 's/^X-L//'`
19553 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
19555 found_so
="$dir/lib$name.$shlibext"
19556 if test -f "$dir/lib$name.la"; then
19557 found_la
="$dir/lib$name.la"
19560 if test -f "$dir/lib$name.$libext"; then
19562 found_a
="$dir/lib$name.$libext"
19563 if test -f "$dir/lib$name.la"; then
19564 found_la
="$dir/lib$name.la"
19570 if test "X$found_dir" != "X"; then
19575 if test "X$found_dir" != "X"; then
19576 LTLIBRPATHX
="${LTLIBRPATHX}${LTLIBRPATHX:+ }-L$found_dir -l$name"
19577 if test "X$found_so" != "X"; then
19578 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
19579 LIBRPATHX
="${LIBRPATHX}${LIBRPATHX:+ }$found_so"
19582 for x
in $ltrpathdirs; do
19583 if test "X$x" = "X$found_dir"; then
19588 if test -z "$haveit"; then
19589 ltrpathdirs
="$ltrpathdirs $found_dir"
19591 if test "$hardcode_direct" = yes; then
19592 LIBRPATHX
="${LIBRPATHX}${LIBRPATHX:+ }$found_so"
19594 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
19595 LIBRPATHX
="${LIBRPATHX}${LIBRPATHX:+ }$found_so"
19597 for x
in $rpathdirs; do
19598 if test "X$x" = "X$found_dir"; then
19603 if test -z "$haveit"; then
19604 rpathdirs
="$rpathdirs $found_dir"
19608 for x
in $LDFLAGS $LIBRPATHX; do
19610 acl_save_prefix
="$prefix"
19611 prefix
="$acl_final_prefix"
19612 acl_save_exec_prefix
="$exec_prefix"
19613 exec_prefix
="$acl_final_exec_prefix"
19615 exec_prefix
="$acl_save_exec_prefix"
19616 prefix
="$acl_save_prefix"
19618 if test "X$x" = "X-L$found_dir"; then
19623 if test -z "$haveit"; then
19624 LIBRPATHX
="${LIBRPATHX}${LIBRPATHX:+ }-L$found_dir"
19626 if test "$hardcode_minus_L" != no
; then
19627 LIBRPATHX
="${LIBRPATHX}${LIBRPATHX:+ }$found_so"
19629 LIBRPATHX
="${LIBRPATHX}${LIBRPATHX:+ }-l$name"
19635 if test "X$found_a" != "X"; then
19636 LIBRPATHX
="${LIBRPATHX}${LIBRPATHX:+ }$found_a"
19638 LIBRPATHX
="${LIBRPATHX}${LIBRPATHX:+ }-L$found_dir -l$name"
19641 additional_includedir
=
19642 case "$found_dir" in
19644 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19645 additional_includedir
="$basedir/include"
19648 if test "X$additional_includedir" != "X"; then
19649 if test "X$additional_includedir" != "X/usr/include"; then
19651 if test "X$additional_includedir" = "X/usr/local/include"; then
19652 if test -n "$GCC"; then
19654 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
19658 if test -z "$haveit"; then
19659 for x
in $CPPFLAGS $INCRPATHX; do
19661 acl_save_prefix
="$prefix"
19662 prefix
="$acl_final_prefix"
19663 acl_save_exec_prefix
="$exec_prefix"
19664 exec_prefix
="$acl_final_exec_prefix"
19666 exec_prefix
="$acl_save_exec_prefix"
19667 prefix
="$acl_save_prefix"
19669 if test "X$x" = "X-I$additional_includedir"; then
19674 if test -z "$haveit"; then
19675 if test -d "$additional_includedir"; then
19676 INCRPATHX
="${INCRPATHX}${INCRPATHX:+ }-I$additional_includedir"
19682 if test -n "$found_la"; then
19683 save_libdir
="$libdir"
19684 case "$found_la" in
19685 */* |
*\\*) .
"$found_la" ;;
19686 *) .
"./$found_la" ;;
19688 libdir
="$save_libdir"
19689 for dep
in $dependency_libs; do
19692 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
19693 if test "X$additional_libdir" != "X/usr/lib"; then
19695 if test "X$additional_libdir" = "X/usr/local/lib"; then
19696 if test -n "$GCC"; then
19698 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
19702 if test -z "$haveit"; then
19704 for x
in $LDFLAGS $LIBRPATHX; do
19706 acl_save_prefix
="$prefix"
19707 prefix
="$acl_final_prefix"
19708 acl_save_exec_prefix
="$exec_prefix"
19709 exec_prefix
="$acl_final_exec_prefix"
19711 exec_prefix
="$acl_save_exec_prefix"
19712 prefix
="$acl_save_prefix"
19714 if test "X$x" = "X-L$additional_libdir"; then
19719 if test -z "$haveit"; then
19720 if test -d "$additional_libdir"; then
19721 LIBRPATHX
="${LIBRPATHX}${LIBRPATHX:+ }-L$additional_libdir"
19725 for x
in $LDFLAGS $LTLIBRPATHX; do
19727 acl_save_prefix
="$prefix"
19728 prefix
="$acl_final_prefix"
19729 acl_save_exec_prefix
="$exec_prefix"
19730 exec_prefix
="$acl_final_exec_prefix"
19732 exec_prefix
="$acl_save_exec_prefix"
19733 prefix
="$acl_save_prefix"
19735 if test "X$x" = "X-L$additional_libdir"; then
19740 if test -z "$haveit"; then
19741 if test -d "$additional_libdir"; then
19742 LTLIBRPATHX
="${LTLIBRPATHX}${LTLIBRPATHX:+ }-L$additional_libdir"
19749 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
19750 if test "$enable_rpath" != no
; then
19752 for x
in $rpathdirs; do
19753 if test "X$x" = "X$dir"; then
19758 if test -z "$haveit"; then
19759 rpathdirs
="$rpathdirs $dir"
19762 for x
in $ltrpathdirs; do
19763 if test "X$x" = "X$dir"; then
19768 if test -z "$haveit"; then
19769 ltrpathdirs
="$ltrpathdirs $dir"
19774 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19777 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19780 LIBRPATHX
="${LIBRPATHX}${LIBRPATHX:+ }$dep"
19781 LTLIBRPATHX
="${LTLIBRPATHX}${LTLIBRPATHX:+ }$dep"
19787 LIBRPATHX
="${LIBRPATHX}${LIBRPATHX:+ }-l$name"
19788 LTLIBRPATHX
="${LTLIBRPATHX}${LTLIBRPATHX:+ }-l$name"
19794 if test "X$rpathdirs" != "X"; then
19795 if test -n "$hardcode_libdir_separator"; then
19797 for found_dir
in $rpathdirs; do
19798 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19800 acl_save_libdir
="$libdir"
19802 eval flag
=\"$hardcode_libdir_flag_spec\"
19803 libdir
="$acl_save_libdir"
19804 LIBRPATHX
="${LIBRPATHX}${LIBRPATHX:+ }$flag"
19806 for found_dir
in $rpathdirs; do
19807 acl_save_libdir
="$libdir"
19808 libdir
="$found_dir"
19809 eval flag
=\"$hardcode_libdir_flag_spec\"
19810 libdir
="$acl_save_libdir"
19811 LIBRPATHX
="${LIBRPATHX}${LIBRPATHX:+ }$flag"
19815 if test "X$ltrpathdirs" != "X"; then
19816 for found_dir
in $ltrpathdirs; do
19817 LTLIBRPATHX
="${LTLIBRPATHX}${LTLIBRPATHX:+ }-R$found_dir"
19821 ac_cv_librpathx_libs
="$LIBRPATHX"
19822 ac_cv_librpathx_ltlibs
="$LTLIBRPATHX"
19823 ac_cv_librpathx_cppflags
="$INCRPATHX"
19826 echo "$as_me:$LINENO: result: $ac_cv_librpathx_libs" >&5
19827 echo "${ECHO_T}$ac_cv_librpathx_libs" >&6
19828 LIBRPATHX
="$ac_cv_librpathx_libs"
19829 LTLIBRPATHX
="$ac_cv_librpathx_ltlibs"
19830 INCRPATHX
="$ac_cv_librpathx_cppflags"
19832 for element
in $INCRPATHX; do
19834 for x
in $CPPFLAGS; do
19836 acl_save_prefix
="$prefix"
19837 prefix
="$acl_final_prefix"
19838 acl_save_exec_prefix
="$exec_prefix"
19839 exec_prefix
="$acl_final_exec_prefix"
19841 exec_prefix
="$acl_save_exec_prefix"
19842 prefix
="$acl_save_prefix"
19844 if test "X$x" = "X$element"; then
19849 if test -z "$haveit"; then
19850 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
19861 ac_config_files
="$ac_config_files Makefile"
19862 cat >confcache
<<\_ACEOF
19863 # This file is a shell script that caches the results of configure
19864 # tests run on this system so they can be shared between configure
19865 # scripts and configure runs, see configure's option --config-cache.
19866 # It is not useful on other systems. If it contains results you don't
19867 # want to keep, you may remove or edit it.
19869 # config.status only pays attention to the cache file if you give it
19870 # the --recheck option to rerun configure.
19872 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19873 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19874 # following values.
19878 # The following way of writing the cache mishandles newlines in values,
19879 # but we know of no workaround that is simple, portable, and efficient.
19880 # So, don't put newlines in cache variables' values.
19881 # Ultrix sh set writes to stderr and can't be redirected directly,
19882 # and sets the high bit in the cache file unless we assign to the vars.
19885 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19887 # `set' does not quote correctly, so add quotes (double-quote
19888 # substitution turns \\\\ into \\, and sed turns \\ into \).
19891 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19894 # `set' quotes correctly as required by POSIX, so do not add quotes.
19896 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19903 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19905 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19907 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
19908 if test -w $cache_file; then
19909 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19910 cat confcache
>$cache_file
19912 echo "not updating unwritable cache $cache_file"
19917 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19918 # Let make expand exec_prefix.
19919 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19921 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19922 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19923 # trailing colons and then remove the whole line if VPATH becomes empty
19924 # (actually we leave an empty line to preserve line numbers).
19925 if test "x$srcdir" = x.
; then
19926 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
19927 s/:*\$(srcdir):*/:/;
19928 s/:*\${srcdir}:*/:/;
19930 s/^\([^=]*=[ ]*\):*/\1/;
19936 # Transform confdefs.h into DEFS.
19937 # Protect against shell expansion while executing Makefile rules.
19938 # Protect against Makefile macro expansion.
19940 # If the first sed substitution is executed (which looks for macros that
19941 # take arguments), then we branch to the quote section. Otherwise,
19942 # look for a macro that doesn't take arguments.
19943 cat >confdef2opt.
sed <<\_ACEOF
19946 s
,^
[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
19948 s
,^
[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
19952 s
,[ `~#$^&*(){}\\|;'"<>?],\\&,g
19958 # We use echo to avoid assuming a particular line-breaking character.
19959 # The extra dot is to prevent the shell from consuming trailing
19960 # line-breaks from the sub-command output. A line-break within
19961 # single-quotes doesn't work because, if this script is created in a
19962 # platform that uses two characters for line-breaks (e.g., DOS), tr
19964 ac_LF_and_DOT=`echo; echo .
`
19965 DEFS=`sed -n -f confdef2opt.
sed confdefs.h |
tr "$ac_LF_and_DOT" ' .'`
19966 rm -f confdef2opt.sed
19971 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19972 # 1. Remove the extension, and $U if already installed.
19973 ac_i=`echo "$ac_i" |
19974 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19976 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19977 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19979 LIBOBJS=$ac_libobjs
19981 LTLIBOBJS=$ac_ltlibobjs
19984 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19985 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19986 Usually this means the macro was only invoked conditionally." >&5
19987 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19988 Usually this means the macro was only invoked conditionally." >&2;}
19989 { (exit 1); exit 1; }; }
19991 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19992 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19993 Usually this means the macro was only invoked conditionally." >&5
19994 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19995 Usually this means the macro was only invoked conditionally." >&2;}
19996 { (exit 1); exit 1; }; }
19998 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19999 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20000 Usually this means the macro was only invoked conditionally." >&5
20001 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20002 Usually this means the macro was only invoked conditionally." >&2;}
20003 { (exit 1); exit 1; }; }
20006 : ${CONFIG_STATUS=./config.status}
20007 ac_clean_files_save=$ac_clean_files
20008 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20009 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20010 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20011 cat >$CONFIG_STATUS <<_ACEOF
20013 # Generated by $as_me.
20014 # Run this file to recreate the current configuration.
20015 # Compiler output produced by configure, useful for debugging
20016 # configure, is in config.log if it exists.
20019 ac_cs_recheck=false
20021 SHELL=\${CONFIG_SHELL-$SHELL}
20024 cat >>$CONFIG_STATUS <<\_ACEOF
20025 ## --------------------- ##
20026 ## M4sh Initialization. ##
20027 ## --------------------- ##
20029 # Be Bourne compatible
20030 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20033 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20034 # is contrary to our usage. Disable this feature.
20035 alias -g '${1+"$@"}'='"$@"'
20036 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20039 DUALCASE=1; export DUALCASE # for MKS sh
20041 # Support unset when possible.
20042 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20049 # Work around bugs in pre-3.0 UWIN ksh.
20050 $as_unset ENV MAIL MAILPATH
20057 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20058 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20059 LC_TELEPHONE LC_TIME
20061 if (set +x; test -z "`(eval $as_var=C
; export $as_var) 2>&1`"); then
20062 eval $as_var=C; export $as_var
20068 # Required to use basename.
20069 if expr a : '\(a\)' >/dev/null 2>&1; then
20075 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20076 as_basename=basename
20082 # Name of the executable.
20083 as_me=`$as_basename "$0" ||
20084 $as_expr X
/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20085 X
"$0" : 'X\(//\)$' \| \
20086 X
"$0" : 'X\(/\)$' \| \
20087 .
: '\(.\)' 2>/dev
/null ||
20089 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20090 /^X\/\(\/\/\)$/{ s//\1/; q; }
20091 /^X\/\(\/\).*/{ s//\1/; q; }
20095 # PATH needs CR, and LINENO needs CR and PATH.
20096 # Avoid depending upon Character Ranges.
20097 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20098 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20099 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20100 as_cr_digits='0123456789'
20101 as_cr_alnum=$as_cr_Letters$as_cr_digits
20103 # The user is always right.
20104 if test "${PATH_SEPARATOR+set}" != set; then
20105 echo "#! /bin/sh" >conf$$.sh
20106 echo "exit 0" >>conf$$.sh
20108 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20117 as_lineno_1=$LINENO
20118 as_lineno_2=$LINENO
20119 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev
/null
`
20120 test "x$as_lineno_1" != "x$as_lineno_2" &&
20121 test "x$as_lineno_3" = "x$as_lineno_2" || {
20122 # Find who we are. Look in the path if we contain no path at all
20125 *[\\/]* ) as_myself=$0 ;;
20126 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20127 for as_dir in $PATH
20130 test -z "$as_dir" && as_dir=.
20131 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20136 # We did not find ourselves, most probably we were run as `sh COMMAND
'
20137 # in which case we are not to be found in the path.
20138 if test "x$as_myself" = x; then
20141 if test ! -f "$as_myself"; then
20142 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20143 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20144 { (exit 1); exit 1; }; }
20146 case $CONFIG_SHELL in
20148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20149 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20152 test -z "$as_dir" && as_dir=.
20153 for as_base in sh bash ksh sh5; do
20156 if ("$as_dir/$as_base" -c '
20157 as_lineno_1
=$LINENO
20158 as_lineno_2
=$LINENO
20159 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
20160 test "x$as_lineno_1" != "x$as_lineno_2" &&
20161 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20162 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20163 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20164 CONFIG_SHELL=$as_dir/$as_base
20165 export CONFIG_SHELL
20166 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20174 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20175 # uniformly replaced by the line number. The first 'sed' inserts a
20176 # line-number line before each line; the second 'sed' does the real
20177 # work. The second script uses 'N
' to pair each line-number line
20178 # with the numbered line, and appends trailing '-' during
20179 # substitution so that $LINENO is not a special case at line end.
20180 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20181 # second 'sed' script. Blame Lee E. McMahon for sed's syntax.
:-)
20182 sed '=' <$as_myself |
20187 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20190 s,^['$as_cr_digits']*\n,,
20191 ' >$as_me.lineno
&&
20192 chmod +x
$as_me.lineno ||
20193 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20194 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20195 { (exit 1); exit 1; }; }
20197 # Don't try to exec as it changes $[0], causing all sort of problems
20198 # (the dirname of $[0] is not the place where we might find the
20199 # original and so on. Autoconf is especially sensible to this).
20201 # Exit status is that of the last command.
20206 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20207 *c
*,-n*) ECHO_N
= ECHO_C
='
20209 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
20210 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
20213 if expr a
: '\(a\)' >/dev
/null
2>&1; then
20219 rm -f conf$$ conf$$.exe conf$$.
file
20221 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20222 # We could just check for DJGPP; but this test a) works b) is more generic
20223 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20224 if test -f conf$$.exe
; then
20225 # Don't use ln at all; we don't have any links
20230 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20235 rm -f conf$$ conf$$.exe conf$$.
file
20237 if mkdir
-p .
2>/dev
/null
; then
20240 test -d .
/-p && rmdir .
/-p
20244 as_executable_p
="test -f"
20246 # Sed expression to map a string onto a valid CPP name.
20247 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20249 # Sed expression to map a string onto a valid variable name.
20250 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20254 # We need space, tab and new line, in precisely that order.
20264 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20265 # report actual input values of CONFIG_FILES etc. instead of their
20266 # values after options handling. Logging --version etc. is OK.
20270 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20271 ## Running $as_me. ##
20276 This file was extended by $as_me, which was
20277 generated by GNU Autoconf 2.59. Invocation command line was
20279 CONFIG_FILES = $CONFIG_FILES
20280 CONFIG_HEADERS = $CONFIG_HEADERS
20281 CONFIG_LINKS = $CONFIG_LINKS
20282 CONFIG_COMMANDS = $CONFIG_COMMANDS
20286 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20290 # Files that config.status was made for.
20291 if test -n "$ac_config_files"; then
20292 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20295 if test -n "$ac_config_headers"; then
20296 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20299 if test -n "$ac_config_links"; then
20300 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20303 if test -n "$ac_config_commands"; then
20304 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20307 cat >>$CONFIG_STATUS <<\_ACEOF
20310 \`$as_me' instantiates files from templates according to the
20311 current configuration.
20313 Usage: $0 [OPTIONS] [FILE]...
20315 -h, --help print this help, then exit
20316 -V, --version print version number, then exit
20317 -q, --quiet do not print progress messages
20318 -d, --debug don't remove temporary files
20319 --recheck update $as_me by reconfiguring in the same conditions
20320 --file=FILE[:TEMPLATE]
20321 instantiate the configuration file FILE
20323 Configuration files:
20326 Configuration commands:
20329 Report bugs to <bug-autoconf@gnu.org>."
20332 cat >>$CONFIG_STATUS <<_ACEOF
20335 configured by $0, generated by GNU Autoconf 2.59,
20336 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20338 Copyright (C) 2003 Free Software Foundation, Inc.
20339 This config.status script is free software; the Free Software Foundation
20340 gives unlimited permission to copy, distribute and modify it."
20345 cat >>$CONFIG_STATUS <<\_ACEOF
20346 # If no file are specified by the user, then we need to provide default
20347 # value. By we need to know if files were specified by the user.
20353 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
20354 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
20362 *) # This is not an option, so the user has probably given explicit
20365 ac_need_defaults
=false
;;
20369 # Handling of the options.
20371 cat >>$CONFIG_STATUS <<\_ACEOF
20372 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20374 --version |
--vers* |
-V )
20375 echo "$ac_cs_version"; exit 0 ;;
20377 # Conflict between --help and --header
20378 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20379 Try \`$0 --help' for more information." >&5
20380 echo "$as_me: error: ambiguous option: $1
20381 Try \`$0 --help' for more information." >&2;}
20382 { (exit 1); exit 1; }; };;
20383 --help |
--hel |
-h )
20384 echo "$ac_cs_usage"; exit 0 ;;
20385 --debug |
--d* |
-d )
20387 --file |
--fil |
--fi |
--f )
20389 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
20390 ac_need_defaults
=false
;;
20391 --header |
--heade |
--head |
--hea )
20393 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
20394 ac_need_defaults
=false
;;
20395 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20396 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20399 # This is an error.
20400 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20401 Try \`$0 --help' for more information." >&5
20402 echo "$as_me: error: unrecognized option: $1
20403 Try \`$0 --help' for more information." >&2;}
20404 { (exit 1); exit 1; }; } ;;
20406 *) ac_config_targets
="$ac_config_targets $1" ;;
20412 ac_configure_extra_args
=
20414 if $ac_cs_silent; then
20416 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20420 cat >>$CONFIG_STATUS <<_ACEOF
20421 if \$ac_cs_recheck; then
20422 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20423 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20428 cat >>$CONFIG_STATUS <<_ACEOF
20430 # INIT-COMMANDS section.
20433 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20439 cat >>$CONFIG_STATUS <<\_ACEOF
20440 for ac_config_target
in $ac_config_targets
20442 case "$ac_config_target" in
20443 # Handling of arguments.
20444 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20445 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
20446 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20447 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20448 { (exit 1); exit 1; }; };;
20452 # If the user did not use the arguments to specify the items to instantiate,
20453 # then the envvar interface is used. Set only those that are not.
20454 # We use the long form for the default assignment because of an extremely
20455 # bizarre bug on SunOS 4.1.3.
20456 if $ac_need_defaults; then
20457 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20458 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20461 # Have a temporary directory for convenience. Make it in the build tree
20462 # simply because there is no reason to put it here, and in addition,
20463 # creating and moving files from /tmp can sometimes cause problems.
20464 # Create a temporary directory, and hook for its removal unless debugging.
20467 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20468 trap '{ (exit 1); exit 1; }' 1 2 13 15
20471 # Create a (secure) tmp directory for tmp files.
20474 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20475 test -n "$tmp" && test -d "$tmp"
20478 tmp
=.
/confstat$$
-$RANDOM
20479 (umask 077 && mkdir
$tmp)
20482 echo "$me: cannot create a temporary directory in ." >&2
20483 { (exit 1); exit 1; }
20488 cat >>$CONFIG_STATUS <<_ACEOF
20491 # CONFIG_FILES section.
20494 # No need to generate the scripts if there are no CONFIG_FILES.
20495 # This happens for instance when ./config.status config.h
20496 if test -n "\$CONFIG_FILES"; then
20497 # Protect against being on the right side of a sed subst in config.status.
20498 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20499 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20500 s,@SHELL@,$SHELL,;t t
20501 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20502 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20503 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20504 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20505 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20506 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20507 s,@exec_prefix@,$exec_prefix,;t t
20508 s,@prefix@,$prefix,;t t
20509 s,@program_transform_name@,$program_transform_name,;t t
20510 s,@bindir@,$bindir,;t t
20511 s,@sbindir@,$sbindir,;t t
20512 s,@libexecdir@,$libexecdir,;t t
20513 s,@datadir@,$datadir,;t t
20514 s,@sysconfdir@,$sysconfdir,;t t
20515 s,@sharedstatedir@,$sharedstatedir,;t t
20516 s,@localstatedir@,$localstatedir,;t t
20517 s,@libdir@,$libdir,;t t
20518 s,@includedir@,$includedir,;t t
20519 s,@oldincludedir@,$oldincludedir,;t t
20520 s,@infodir@,$infodir,;t t
20521 s,@mandir@,$mandir,;t t
20522 s,@build_alias@,$build_alias,;t t
20523 s,@host_alias@,$host_alias,;t t
20524 s,@target_alias@,$target_alias,;t t
20525 s,@DEFS@,$DEFS,;t t
20526 s,@ECHO_C@,$ECHO_C,;t t
20527 s,@ECHO_N@,$ECHO_N,;t t
20528 s,@ECHO_T@,$ECHO_T,;t t
20529 s,@LIBS@,$LIBS,;t t
20530 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20531 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20532 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20533 s,@CYGPATH_W@,$CYGPATH_W,;t t
20534 s,@PACKAGE@,$PACKAGE,;t t
20535 s,@VERSION@,$VERSION,;t t
20536 s,@ACLOCAL@,$ACLOCAL,;t t
20537 s,@AUTOCONF@,$AUTOCONF,;t t
20538 s,@AUTOMAKE@,$AUTOMAKE,;t t
20539 s,@AUTOHEADER@,$AUTOHEADER,;t t
20540 s,@MAKEINFO@,$MAKEINFO,;t t
20541 s,@install_sh@,$install_sh,;t t
20542 s,@STRIP@,$STRIP,;t t
20543 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20544 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20545 s,@mkdir_p@,$mkdir_p,;t t
20547 s,@SET_MAKE@,$SET_MAKE,;t t
20548 s,@am__leading_dot@,$am__leading_dot,;t t
20549 s,@AMTAR@,$AMTAR,;t t
20550 s,@am__tar@,$am__tar,;t t
20551 s,@am__untar@,$am__untar,;t t
20553 s,@CFLAGS@,$CFLAGS,;t t
20554 s,@LDFLAGS@,$LDFLAGS,;t t
20555 s,@CPPFLAGS@,$CPPFLAGS,;t t
20556 s,@ac_ct_CC@,$ac_ct_CC,;t t
20557 s,@EXEEXT@,$EXEEXT,;t t
20558 s,@OBJEXT@,$OBJEXT,;t t
20559 s,@DEPDIR@,$DEPDIR,;t t
20560 s,@am__include@,$am__include,;t t
20561 s,@am__quote@,$am__quote,;t t
20562 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20563 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20564 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20565 s,@CCDEPMODE@,$CCDEPMODE,;t t
20566 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20567 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20568 s,@build@,$build,;t t
20569 s,@build_cpu@,$build_cpu,;t t
20570 s,@build_vendor@,$build_vendor,;t t
20571 s,@build_os@,$build_os,;t t
20572 s,@host@,$host,;t t
20573 s,@host_cpu@,$host_cpu,;t t
20574 s,@host_vendor@,$host_vendor,;t t
20575 s,@host_os@,$host_os,;t t
20576 s,@EGREP@,$EGREP,;t t
20577 s,@LN_S@,$LN_S,;t t
20578 s,@ECHO@,$ECHO,;t t
20580 s,@ac_ct_AR@,$ac_ct_AR,;t t
20581 s,@RANLIB@,$RANLIB,;t t
20582 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20585 s,@CXXFLAGS@,$CXXFLAGS,;t t
20586 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20587 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20588 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20589 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20590 s,@CXXCPP@,$CXXCPP,;t t
20592 s,@FFLAGS@,$FFLAGS,;t t
20593 s,@ac_ct_F77@,$ac_ct_F77,;t t
20594 s,@LIBTOOL@,$LIBTOOL,;t t
20595 s,@LIBRPATHX@,$LIBRPATHX,;t t
20596 s,@LTLIBRPATHX@,$LTLIBRPATHX,;t t
20597 s,@global_top_auxdir@,$global_top_auxdir,;t t
20598 s,@LIBOBJS@,$LIBOBJS,;t t
20599 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20604 cat >>$CONFIG_STATUS <<\_ACEOF
20605 # Split the substitutions into bite-sized pieces for seds with
20606 # small command number limits, like on Digital OSF/1 and HP-UX.
20607 ac_max_sed_lines
=48
20608 ac_sed_frag
=1 # Number of current file.
20609 ac_beg
=1 # First line for current file.
20610 ac_end
=$ac_max_sed_lines # Line after last line for current file.
20613 while $ac_more_lines; do
20614 if test $ac_beg -gt 1; then
20615 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
20617 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
20619 if test ! -s $tmp/subs.frag
; then
20620 ac_more_lines
=false
20622 # The purpose of the label and of the branching condition is to
20623 # speed up the sed processing (if there are no `@' at all, there
20624 # is no need to browse any of the substitutions).
20625 # These are the two extra sed commands mentioned above.
20627 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
20628 if test -z "$ac_sed_cmds"; then
20629 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
20631 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20633 ac_sed_frag
=`expr $ac_sed_frag + 1`
20635 ac_end
=`expr $ac_end + $ac_max_sed_lines`
20638 if test -z "$ac_sed_cmds"; then
20641 fi # test -n "$CONFIG_FILES"
20644 cat >>$CONFIG_STATUS <<\_ACEOF
20645 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
20646 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20648 - |
*:- |
*:-:* ) # input from stdin
20650 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20651 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20652 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
20653 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
20654 * ) ac_file_in
=$ac_file.
in ;;
20657 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20658 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
20659 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20660 X"$ac_file" : 'X\(//\)[^/]' \| \
20661 X"$ac_file" : 'X\(//\)$' \| \
20662 X"$ac_file" : 'X\(/\)' \| \
20663 . : '\(.\)' 2>/dev/null ||
20665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20666 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20667 /^X\(\/\/\)$/{ s//\1/; q; }
20668 /^X\(\/\).*/{ s//\1/; q; }
20670 { if $as_mkdir_p; then
20675 while test ! -d "$as_dir"; do
20676 as_dirs
="$as_dir $as_dirs"
20677 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
20678 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20679 X"$as_dir" : 'X\(//\)[^/]' \| \
20680 X"$as_dir" : 'X\(//\)$' \| \
20681 X"$as_dir" : 'X\(/\)' \| \
20682 . : '\(.\)' 2>/dev/null ||
20684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20686 /^X\(\/\/\)$/{ s//\1/; q; }
20687 /^X\(\/\).*/{ s//\1/; q; }
20690 test ! -n "$as_dirs" || mkdir
$as_dirs
20691 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20692 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20693 { (exit 1); exit 1; }; }; }
20697 if test "$ac_dir" != .
; then
20698 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20699 # A "../" for each directory in $ac_dir_suffix.
20700 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20702 ac_dir_suffix
= ac_top_builddir
=
20706 .
) # No --srcdir option. We are building in place.
20708 if test -z "$ac_top_builddir"; then
20711 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
20713 [\\/]* | ?
:[\\/]* ) # Absolute path.
20714 ac_srcdir
=$srcdir$ac_dir_suffix;
20715 ac_top_srcdir
=$srcdir ;;
20716 *) # Relative path.
20717 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
20718 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
20721 # Do not use `cd foo && pwd` to compute absolute paths, because
20722 # the directories may not exist.
20724 .
) ac_abs_builddir
="$ac_dir";;
20727 .
) ac_abs_builddir
=`pwd`;;
20728 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
20729 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
20732 case $ac_abs_builddir in
20733 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20735 case ${ac_top_builddir}.
in
20736 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
20737 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
20738 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
20741 case $ac_abs_builddir in
20742 .
) ac_abs_srcdir
=$ac_srcdir;;
20745 .
) ac_abs_srcdir
=$ac_abs_builddir;;
20746 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
20747 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
20750 case $ac_abs_builddir in
20751 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
20753 case $ac_top_srcdir in
20754 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
20755 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
20756 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
20762 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20763 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
20766 if test x
"$ac_file" != x-
; then
20767 { echo "$as_me:$LINENO: creating $ac_file" >&5
20768 echo "$as_me: creating $ac_file" >&6;}
20771 # Let's still pretend it is `configure' which instantiates (i.e., don't
20772 # use $as_me), people would be surprised to read:
20773 # /* config.h. Generated by config.status. */
20774 if test x
"$ac_file" = x-
; then
20777 configure_input
="$ac_file. "
20779 configure_input
=$configure_input"Generated from `echo $ac_file_in |
20780 sed 's,.*/,,'` by configure."
20782 # First look for the input files in the build tree, otherwise in the
20784 ac_file_inputs
=`IFS=:
20785 for f in $ac_file_in; do
20787 -) echo $tmp/stdin ;;
20789 # Absolute (can't be DOS-style, as IFS=:)
20790 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20791 echo "$as_me: error: cannot find input file: $f" >&2;}
20792 { (exit 1); exit 1; }; }
20795 if test -f "$f"; then
20798 elif test -f "$srcdir/$f"; then
20803 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20804 echo "$as_me: error: cannot find input file: $f" >&2;}
20805 { (exit 1); exit 1; }; }
20808 done` ||
{ (exit 1); exit 1; }
20810 cat >>$CONFIG_STATUS <<_ACEOF
20814 cat >>$CONFIG_STATUS <<\_ACEOF
20816 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20817 s
,@configure_input@
,$configure_input,;t t
20818 s
,@srcdir@
,$ac_srcdir,;t t
20819 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
20820 s
,@top_srcdir@
,$ac_top_srcdir,;t t
20821 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
20822 s
,@builddir@
,$ac_builddir,;t t
20823 s
,@abs_builddir@
,$ac_abs_builddir,;t t
20824 s
,@top_builddir@
,$ac_top_builddir,;t t
20825 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
20826 s
,@INSTALL@
,$ac_INSTALL,;t t
20827 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20829 if test x"$ac_file" != x-; then
20830 mv $tmp/out $ac_file
20838 cat >>$CONFIG_STATUS <<\_ACEOF
20841 # CONFIG_COMMANDS section.
20843 for ac_file in : $CONFIG_COMMANDS; do test "x
$ac_file" = x: && continue
20844 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20845 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20846 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20847 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20848 X"$ac_dest" : 'X\(//\)[^/]' \| \
20849 X"$ac_dest" : 'X\(//\)$' \| \
20850 X"$ac_dest" : 'X\(/\)' \| \
20851 . : '\(.\)' 2>/dev/null ||
20853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20854 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20855 /^X\(\/\/\)$/{ s//\1/; q; }
20856 /^X\(\/\).*/{ s//\1/; q; }
20858 { if $as_mkdir_p; then
20863 while test ! -d "$as_dir"; do
20864 as_dirs="$as_dir $as_dirs"
20865 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20866 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20867 X"$as_dir" : 'X\(//\)[^/]' \| \
20868 X"$as_dir" : 'X\(//\)$' \| \
20869 X"$as_dir" : 'X\(/\)' \| \
20870 . : '\(.\)' 2>/dev/null ||
20872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20874 /^X\(\/\/\)$/{ s//\1/; q; }
20875 /^X\(\/\).*/{ s//\1/; q; }
20878 test ! -n "$as_dirs" || mkdir $as_dirs
20879 fi || { { echo "$as_me:$LINENO: error
: cannot create directory
\"$ac_dir\"" >&5
20880 echo "$as_me: error
: cannot create directory
\"$ac_dir\"" >&2;}
20881 { (exit 1); exit 1; }; }; }
20885 if test "$ac_dir" != .; then
20886 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20887 # A "..
/" for each directory in $ac_dir_suffix.
20888 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20890 ac_dir_suffix= ac_top_builddir=
20894 .) # No --srcdir option. We are building in place.
20896 if test -z "$ac_top_builddir"; then
20899 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20901 [\\/]* | ?:[\\/]* ) # Absolute path.
20902 ac_srcdir=$srcdir$ac_dir_suffix;
20903 ac_top_srcdir=$srcdir ;;
20904 *) # Relative path.
20905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20909 # Do not use `cd foo && pwd` to compute absolute paths, because
20910 # the directories may not exist.
20912 .) ac_abs_builddir="$ac_dir";;
20915 .) ac_abs_builddir=`pwd`;;
20916 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20917 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20920 case $ac_abs_builddir in
20921 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20923 case ${ac_top_builddir}. in
20924 .) ac_abs_top_builddir=$ac_abs_builddir;;
20925 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20926 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20929 case $ac_abs_builddir in
20930 .) ac_abs_srcdir=$ac_srcdir;;
20933 .) ac_abs_srcdir=$ac_abs_builddir;;
20934 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20935 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20938 case $ac_abs_builddir in
20939 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20941 case $ac_top_srcdir in
20942 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20943 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20944 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20949 { echo "$as_me:$LINENO: executing
$ac_dest commands
" >&5
20950 echo "$as_me: executing
$ac_dest commands
" >&6;}
20952 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20953 # Strip MF so we end up with the name of the file.
20954 mf=`echo "$mf" | sed -e 's/:.*$//'`
20955 # Check whether this is an Automake generated Makefile or not.
20956 # We used to match only the files named `Makefile.in', but
20957 # some people rename them; so instead we look at the file content.
20958 # Grep'ing the first line is not enough: some people post-process
20959 # each Makefile.in and add a new line on top of each file to say so.
20960 # So let's grep whole file.
20961 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20962 dirpart=`(dirname "$mf") 2>/dev/null ||
20963 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20964 X"$mf" : 'X\(//\)[^/]' \| \
20965 X"$mf" : 'X\(//\)$' \| \
20966 X"$mf" : 'X\(/\)' \| \
20967 . : '\(.\)' 2>/dev/null ||
20969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20970 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20971 /^X\(\/\/\)$/{ s//\1/; q; }
20972 /^X\(\/\).*/{ s//\1/; q; }
20977 # Extract the definition of DEPDIR, am__include, and am__quote
20978 # from the Makefile without running `make'.
20979 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20980 test -z "$DEPDIR" && continue
20981 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20982 test -z "am__include
" && continue
20983 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20984 # When using ansi2knr, U may be empty or an underscore; expand it
20985 U=`sed -n 's/^U = //p' < "$mf"`
20986 # Find all dependency output files, they are included files with
20987 # $(DEPDIR) in their names. We invoke sed twice because it is the
20988 # simplest approach to changing $(DEPDIR) to its actual value in the
20990 for file in `sed -n "
20991 s
/^
$am__include $am__quote\
(.
*(DEPDIR
).
*\
)$am__quote"'$/\1/p' <"$mf" | \
20992 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20993 # Make sure the directory exists.
20994 test -f "$dirpart/$file" && continue
20995 fdir=`(dirname "$file") 2>/dev/null ||
20996 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20997 X"$file" : 'X\(//\)[^/]' \| \
20998 X"$file" : 'X\(//\)$' \| \
20999 X"$file" : 'X\(/\)' \| \
21000 . : '\(.\)' 2>/dev/null ||
21002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21004 /^X\(\/\/\)$/{ s//\1/; q; }
21005 /^X\(\/\).*/{ s//\1/; q; }
21007 { if $as_mkdir_p; then
21008 mkdir -p $dirpart/$fdir
21010 as_dir=$dirpart/$fdir
21012 while test ! -d "$as_dir"; do
21013 as_dirs="$as_dir $as_dirs"
21014 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21015 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21016 X"$as_dir" : 'X\(//\)[^/]' \| \
21017 X"$as_dir" : 'X\(//\)$' \| \
21018 X"$as_dir" : 'X\(/\)' \| \
21019 . : '\(.\)' 2>/dev/null ||
21021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21023 /^X\(\/\/\)$/{ s//\1/; q; }
21024 /^X\(\/\).*/{ s//\1/; q; }
21027 test ! -n "$as_dirs" || mkdir $as_dirs
21028 fi || { { echo "$as_me:$LINENO: error
: cannot create directory
$dirpart/$fdir" >&5
21029 echo "$as_me: error
: cannot create directory
$dirpart/$fdir" >&2;}
21030 { (exit 1); exit 1; }; }; }
21032 # echo "creating
$dirpart/$file"
21033 echo '# dummy' > "$dirpart/$file"
21041 cat >>$CONFIG_STATUS <<\_ACEOF
21043 { (exit 0); exit 0; }
21045 chmod +x $CONFIG_STATUS
21046 ac_clean_files=$ac_clean_files_save
21049 # configure is writing to config.log, and then calls config.status.
21050 # config.status does its own redirection, appending to config.log.
21051 # Unfortunately, on DOS this fails, as config.log is still kept open
21052 # by configure, so config.status won't be able to write to it; its
21053 # output is simply discarded. So we exec the FD to /dev/null,
21054 # effectively closing config.log, so it can be properly (re)opened and
21055 # appended to by config.status. When coming back to configure, we
21056 # need to make the FD available again.
21057 if test "$no_create" != yes; then
21059 ac_config_status_args=
21060 test "$silent" = yes &&
21061 ac_config_status_args="$ac_config_status_args --quiet"
21063 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21065 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21066 # would make configure fail if this is the last instruction.
21067 $ac_cs_success || { (exit 1); exit 1; }