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 # Factoring default headers for most tests.
429 ac_includes_default
="\
432 # include <sys/types.h>
435 # include <sys/stat.h>
446 # if !STDC_HEADERS && HAVE_MEMORY_H
452 # include <strings.h>
455 # include <inttypes.h>
465 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 META_NAME META_VERSION META_RELEASE META_ALIAS META_DATE META_AUTHOR META_LT_CURRENT META_LT_REVISION META_LT_AGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 SED 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 LINUX LINUX_OBJ kmoduledir KERNELMAKE_PARAMS KERNELCPPFLAGS KERNELCFLAGS LIBOBJS LTLIBOBJS'
468 # Initialize some variables set by options.
470 ac_init_version
=false
471 # The variables have the same names as the options, with
472 # dashes changed to underlines.
480 program_transform_name
=s
,x
,x
,
488 # Installation directory options.
489 # These are left unexpanded so users can "make install exec_prefix=/foo"
490 # and all the variables that are supposed to be based on exec_prefix
491 # by default will actually change.
492 # Use braces instead of parens because sh, perl, etc. also accept them.
493 bindir
='${exec_prefix}/bin'
494 sbindir
='${exec_prefix}/sbin'
495 libexecdir
='${exec_prefix}/libexec'
496 datadir
='${prefix}/share'
497 sysconfdir
='${prefix}/etc'
498 sharedstatedir
='${prefix}/com'
499 localstatedir
='${prefix}/var'
500 libdir
='${exec_prefix}/lib'
501 includedir
='${prefix}/include'
502 oldincludedir
='/usr/include'
503 infodir
='${prefix}/info'
504 mandir
='${prefix}/man'
509 # If the previous option needs an argument, assign it.
510 if test -n "$ac_prev"; then
511 eval "$ac_prev=\$ac_option"
516 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518 # Accept the important Cygnus configure options, so we can diagnose typos.
522 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
524 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
527 -build |
--build |
--buil |
--bui |
--bu)
528 ac_prev
=build_alias
;;
529 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
530 build_alias
=$ac_optarg ;;
532 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
533 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
534 ac_prev
=cache_file
;;
535 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
536 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
537 cache_file
=$ac_optarg ;;
540 cache_file
=config.cache
;;
542 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
544 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
546 datadir
=$ac_optarg ;;
548 -disable-* |
--disable-*)
549 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
550 # Reject names that are not valid shell variable names.
551 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
552 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553 { (exit 1); exit 1; }; }
554 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
555 eval "enable_$ac_feature=no" ;;
557 -enable-* |
--enable-*)
558 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
559 # Reject names that are not valid shell variable names.
560 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
561 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
562 { (exit 1); exit 1; }; }
563 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
565 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568 eval "enable_$ac_feature='$ac_optarg'" ;;
570 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
571 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
572 |
--exec |
--exe |
--ex)
573 ac_prev
=exec_prefix
;;
574 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
575 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
576 |
--exec=* |
--exe=* |
--ex=*)
577 exec_prefix
=$ac_optarg ;;
579 -gas |
--gas |
--ga |
--g)
580 # Obsolete; use --with-gas.
583 -help |
--help |
--hel |
--he |
-h)
585 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
586 ac_init_help
=recursive
;;
587 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
588 ac_init_help
=short
;;
590 -host |
--host |
--hos |
--ho)
591 ac_prev
=host_alias
;;
592 -host=* |
--host=* |
--hos=* |
--ho=*)
593 host_alias
=$ac_optarg ;;
595 -includedir |
--includedir |
--includedi |
--included |
--include \
596 |
--includ |
--inclu |
--incl |
--inc)
597 ac_prev
=includedir
;;
598 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
599 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
600 includedir
=$ac_optarg ;;
602 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
604 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
605 infodir
=$ac_optarg ;;
607 -libdir |
--libdir |
--libdi |
--libd)
609 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
612 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
613 |
--libexe |
--libex |
--libe)
614 ac_prev
=libexecdir
;;
615 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
616 |
--libexe=* |
--libex=* |
--libe=*)
617 libexecdir
=$ac_optarg ;;
619 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
620 |
--localstate |
--localstat |
--localsta |
--localst \
621 |
--locals |
--local |
--loca |
--loc |
--lo)
622 ac_prev
=localstatedir
;;
623 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
624 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
625 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
626 localstatedir
=$ac_optarg ;;
628 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
630 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
634 # Obsolete; use --without-fp.
637 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
638 |
--no-cr |
--no-c |
-n)
641 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
642 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
645 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
646 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
647 |
--oldin |
--oldi |
--old |
--ol |
--o)
648 ac_prev
=oldincludedir
;;
649 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
650 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
651 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
652 oldincludedir
=$ac_optarg ;;
654 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
656 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
659 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
660 |
--program-pre |
--program-pr |
--program-p)
661 ac_prev
=program_prefix
;;
662 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
663 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
664 program_prefix
=$ac_optarg ;;
666 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
667 |
--program-suf |
--program-su |
--program-s)
668 ac_prev
=program_suffix
;;
669 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
670 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
671 program_suffix
=$ac_optarg ;;
673 -program-transform-name |
--program-transform-name \
674 |
--program-transform-nam |
--program-transform-na \
675 |
--program-transform-n |
--program-transform- \
676 |
--program-transform |
--program-transfor \
677 |
--program-transfo |
--program-transf \
678 |
--program-trans |
--program-tran \
679 |
--progr-tra |
--program-tr |
--program-t)
680 ac_prev
=program_transform_name
;;
681 -program-transform-name=* |
--program-transform-name=* \
682 |
--program-transform-nam=* |
--program-transform-na=* \
683 |
--program-transform-n=* |
--program-transform-=* \
684 |
--program-transform=* |
--program-transfor=* \
685 |
--program-transfo=* |
--program-transf=* \
686 |
--program-trans=* |
--program-tran=* \
687 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
688 program_transform_name
=$ac_optarg ;;
690 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
691 |
-silent |
--silent |
--silen |
--sile |
--sil)
694 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
696 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
698 sbindir
=$ac_optarg ;;
700 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
701 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
702 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
704 ac_prev
=sharedstatedir
;;
705 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
706 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
707 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
709 sharedstatedir
=$ac_optarg ;;
711 -site |
--site |
--sit)
713 -site=* |
--site=* |
--sit=*)
716 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
718 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
721 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
722 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
723 ac_prev
=sysconfdir
;;
724 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
725 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
726 sysconfdir
=$ac_optarg ;;
728 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
729 ac_prev
=target_alias
;;
730 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
731 target_alias
=$ac_optarg ;;
733 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
736 -version |
--version |
--versio |
--versi |
--vers |
-V)
740 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
741 # Reject names that are not valid shell variable names.
742 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
743 { echo "$as_me: error: invalid package name: $ac_package" >&2
744 { (exit 1); exit 1; }; }
745 ac_package
=`echo $ac_package| sed 's/-/_/g'`
747 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750 eval "with_$ac_package='$ac_optarg'" ;;
752 -without-* |
--without-*)
753 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
754 # Reject names that are not valid shell variable names.
755 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
756 { echo "$as_me: error: invalid package name: $ac_package" >&2
757 { (exit 1); exit 1; }; }
758 ac_package
=`echo $ac_package | sed 's/-/_/g'`
759 eval "with_$ac_package=no" ;;
762 # Obsolete; use --with-x.
765 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
766 |
--x-incl |
--x-inc |
--x-in |
--x-i)
767 ac_prev
=x_includes
;;
768 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
769 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
770 x_includes
=$ac_optarg ;;
772 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
773 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
774 ac_prev
=x_libraries
;;
775 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
776 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
777 x_libraries
=$ac_optarg ;;
779 -*) { echo "$as_me: error: unrecognized option: $ac_option
780 Try \`$0 --help' for more information." >&2
781 { (exit 1); exit 1; }; }
785 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
786 # Reject names that are not valid shell variable names.
787 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
788 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
789 { (exit 1); exit 1; }; }
790 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
791 eval "$ac_envvar='$ac_optarg'"
795 # FIXME: should be removed in autoconf 3.0.
796 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
797 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
798 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
799 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805 if test -n "$ac_prev"; then
806 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
807 { echo "$as_me: error: missing argument to $ac_option" >&2
808 { (exit 1); exit 1; }; }
811 # Be sure to have absolute paths.
812 for ac_var
in exec_prefix prefix
814 eval ac_val
=$
`echo $ac_var`
816 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
817 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
818 { (exit 1); exit 1; }; };;
822 # Be sure to have absolute paths.
823 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824 localstatedir libdir includedir oldincludedir infodir mandir
826 eval ac_val
=$
`echo $ac_var`
828 [\\/$
]* | ?
:[\\/]* ) ;;
829 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830 { (exit 1); exit 1; }; };;
834 # There might be people who depend on the old broken behavior: `$host'
835 # used to hold the argument of --host etc.
836 # FIXME: To remove some day.
841 # FIXME: To remove some day.
842 if test "x$host_alias" != x
; then
843 if test "x$build_alias" = x
; then
844 cross_compiling
=maybe
845 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
846 If a cross compiler is detected then cross compile mode will be used." >&2
847 elif test "x$build_alias" != "x$host_alias"; then
853 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
855 test "$silent" = yes && exec 6>/dev
/null
858 # Find the source files, if location was not specified.
859 if test -z "$srcdir"; then
860 ac_srcdir_defaulted
=yes
861 # Try the directory containing this script, then its parent.
862 ac_confdir
=`(dirname "$0") 2>/dev/null ||
863 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
864 X"$0" : 'X\(//\)[^/]' \| \
865 X"$0" : 'X\(//\)$' \| \
866 X"$0" : 'X\(/\)' \| \
867 . : '\(.\)' 2>/dev/null ||
869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
871 /^X\(\/\/\)$/{ s//\1/; q; }
872 /^X\(\/\).*/{ s//\1/; q; }
875 if test ! -r $srcdir/$ac_unique_file; then
879 ac_srcdir_defaulted
=no
881 if test ! -r $srcdir/$ac_unique_file; then
882 if test "$ac_srcdir_defaulted" = yes; then
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
884 { (exit 1); exit 1; }; }
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
887 { (exit 1); exit 1; }; }
890 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
891 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
892 { (exit 1); exit 1; }; }
893 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
894 ac_env_build_alias_set
=${build_alias+set}
895 ac_env_build_alias_value
=$build_alias
896 ac_cv_env_build_alias_set
=${build_alias+set}
897 ac_cv_env_build_alias_value
=$build_alias
898 ac_env_host_alias_set
=${host_alias+set}
899 ac_env_host_alias_value
=$host_alias
900 ac_cv_env_host_alias_set
=${host_alias+set}
901 ac_cv_env_host_alias_value
=$host_alias
902 ac_env_target_alias_set
=${target_alias+set}
903 ac_env_target_alias_value
=$target_alias
904 ac_cv_env_target_alias_set
=${target_alias+set}
905 ac_cv_env_target_alias_value
=$target_alias
906 ac_env_CC_set
=${CC+set}
908 ac_cv_env_CC_set
=${CC+set}
909 ac_cv_env_CC_value
=$CC
910 ac_env_CFLAGS_set
=${CFLAGS+set}
911 ac_env_CFLAGS_value
=$CFLAGS
912 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
913 ac_cv_env_CFLAGS_value
=$CFLAGS
914 ac_env_LDFLAGS_set
=${LDFLAGS+set}
915 ac_env_LDFLAGS_value
=$LDFLAGS
916 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
917 ac_cv_env_LDFLAGS_value
=$LDFLAGS
918 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
919 ac_env_CPPFLAGS_value
=$CPPFLAGS
920 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
921 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
922 ac_env_CPP_set
=${CPP+set}
923 ac_env_CPP_value
=$CPP
924 ac_cv_env_CPP_set
=${CPP+set}
925 ac_cv_env_CPP_value
=$CPP
926 ac_env_CXX_set
=${CXX+set}
927 ac_env_CXX_value
=$CXX
928 ac_cv_env_CXX_set
=${CXX+set}
929 ac_cv_env_CXX_value
=$CXX
930 ac_env_CXXFLAGS_set
=${CXXFLAGS+set}
931 ac_env_CXXFLAGS_value
=$CXXFLAGS
932 ac_cv_env_CXXFLAGS_set
=${CXXFLAGS+set}
933 ac_cv_env_CXXFLAGS_value
=$CXXFLAGS
934 ac_env_CXXCPP_set
=${CXXCPP+set}
935 ac_env_CXXCPP_value
=$CXXCPP
936 ac_cv_env_CXXCPP_set
=${CXXCPP+set}
937 ac_cv_env_CXXCPP_value
=$CXXCPP
938 ac_env_F77_set
=${F77+set}
939 ac_env_F77_value
=$F77
940 ac_cv_env_F77_set
=${F77+set}
941 ac_cv_env_F77_value
=$F77
942 ac_env_FFLAGS_set
=${FFLAGS+set}
943 ac_env_FFLAGS_value
=$FFLAGS
944 ac_cv_env_FFLAGS_set
=${FFLAGS+set}
945 ac_cv_env_FFLAGS_value
=$FFLAGS
948 # Report the --help message.
950 if test "$ac_init_help" = "long"; then
951 # Omit some internal or obsolete options to make the list less imposing.
952 # This message is too long to be a string in the A/UX 3.1 sh.
954 \`configure' configures this package to adapt to many kinds of systems.
956 Usage: $0 [OPTION]... [VAR=VALUE]...
958 To assign environment variables (e.g., CC, CFLAGS...), specify them as
959 VAR=VALUE. See below for descriptions of some of the useful variables.
961 Defaults for the options are specified in brackets.
964 -h, --help display this help and exit
965 --help=short display options specific to this package
966 --help=recursive display the short help of all the included packages
967 -V, --version display version information and exit
968 -q, --quiet, --silent do not print \`checking...' messages
969 --cache-file=FILE cache test results in FILE [disabled]
970 -C, --config-cache alias for \`--cache-file=config.cache'
971 -n, --no-create do not create output files
972 --srcdir=DIR find the sources in DIR [configure dir or \`..']
977 Installation directories:
978 --prefix=PREFIX install architecture-independent files in PREFIX
980 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
983 By default, \`make install' will install all the files in
984 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
985 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
986 for instance \`--prefix=\$HOME'.
988 For better control, use the options below.
990 Fine tuning of the installation directories:
991 --bindir=DIR user executables [EPREFIX/bin]
992 --sbindir=DIR system admin executables [EPREFIX/sbin]
993 --libexecdir=DIR program executables [EPREFIX/libexec]
994 --datadir=DIR read-only architecture-independent data [PREFIX/share]
995 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
996 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
997 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
998 --libdir=DIR object code libraries [EPREFIX/lib]
999 --includedir=DIR C header files [PREFIX/include]
1000 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1001 --infodir=DIR info documentation [PREFIX/info]
1002 --mandir=DIR man documentation [PREFIX/man]
1008 --program-prefix=PREFIX prepend PREFIX to installed program names
1009 --program-suffix=SUFFIX append SUFFIX to installed program names
1010 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1013 --build=BUILD configure
for building on BUILD
[guessed
]
1014 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1015 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
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 --enable-maintainer-mode enable make rules and dependencies not useful
1027 (and sometimes confusing
) to the casual installer
1028 --disable-dependency-tracking speeds up one-time build
1029 --enable-dependency-tracking do not reject slow dependency extractors
1030 --enable-shared[=PKGS
]
1031 build shared libraries
[default
=yes]
1032 --enable-static[=PKGS
]
1033 build static libraries
[default
=yes]
1034 --enable-fast-install[=PKGS
]
1035 optimize
for fast installation
[default
=yes]
1036 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1037 --enable-debug Enable generic debug support
(default off
)
1038 --enable-debug-kmem Enable kmem debug support
(default off
)
1039 --enable-debug-mutex Enable mutex debug support
(default off
)
1040 --enable-debug-kstat Enable kstat debug support
(default off
)
1041 --enable-debug-callb Enable callb debug support
(default off
)
1044 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1045 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1046 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1047 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1050 include additional configurations
[automatic
]
1051 --with-linux=PATH Path to kernel
source
1052 --with-linux-obj=PATH Path to kernel build objects
1054 Some influential environment variables
:
1055 CC C compiler
command
1056 CFLAGS C compiler flags
1057 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1058 nonstandard directory
<lib dir
>
1059 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
1060 headers
in a nonstandard directory
<include dir
>
1062 CXX C
++ compiler
command
1063 CXXFLAGS C
++ compiler flags
1064 CXXCPP C
++ preprocessor
1065 F77 Fortran
77 compiler
command
1066 FFLAGS Fortran
77 compiler flags
1068 Use these variables to override the choices made by
`configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1074 if test "$ac_init_help" = "recursive"; then
1075 # If there are subdirs, report their specific --help.
1077 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1078 test -d $ac_dir || continue
1081 if test "$ac_dir" != .; then
1082 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1083 # A "../" for each directory in $ac_dir_suffix.
1084 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
1086 ac_dir_suffix= ac_top_builddir=
1090 .) # No --srcdir option. We are building in place.
1092 if test -z "$ac_top_builddir"; then
1095 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1097 [\\/]* | ?:[\\/]* ) # Absolute path.
1098 ac_srcdir=$srcdir$ac_dir_suffix;
1099 ac_top_srcdir=$srcdir ;;
1101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1102 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105 # Do not use `cd foo
&& pwd` to compute absolute paths, because
1106 # the directories may not exist.
1108 .) ac_abs_builddir="$ac_dir";;
1111 .) ac_abs_builddir=`pwd`;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1113 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116 case $ac_abs_builddir in
1117 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1119 case ${ac_top_builddir}. in
1120 .) ac_abs_top_builddir=$ac_abs_builddir;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125 case $ac_abs_builddir in
1126 .) ac_abs_srcdir=$ac_srcdir;;
1129 .) ac_abs_srcdir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134 case $ac_abs_builddir in
1135 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1137 case $ac_top_srcdir in
1138 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1145 # Check for guested configure; otherwise get Cygnus style configure.
1146 if test -f $ac_srcdir/configure.gnu; then
1148 $SHELL $ac_srcdir/configure.gnu --help=recursive
1149 elif test -f $ac_srcdir/configure; then
1151 $SHELL $ac_srcdir/configure --help=recursive
1152 elif test -f $ac_srcdir/configure.ac ||
1153 test -f $ac_srcdir/configure.in; then
1155 $ac_configure --help
1157 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1163 test -n "$ac_init_help" && exit 0
1164 if $ac_init_version; then
1167 Copyright (C) 2003 Free Software Foundation, Inc.
1168 This configure script is free software; the Free Software Foundation
1169 gives unlimited permission to copy, distribute and modify it.
1175 This file contains any messages produced by compilers while
1176 running configure, to aid debugging if configure makes a mistake.
1178 It was created by $as_me, which was
1179 generated by GNU Autoconf 2.59. Invocation command line was
1190 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1191 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1192 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1193 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1194 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1196 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1197 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1199 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1200 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1201 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1202 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1203 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1204 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1205 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1213 test -z "$as_dir" && as_dir=.
1214 echo "PATH: $as_dir"
1229 # Keep a trace of the command line.
1230 # Strip out --no-create and --no-recursion so they do not pile up.
1231 # Strip out --silent because we don't want to record it for future runs.
1232 # Also quote any args containing shell meta-characters.
1233 # Make two passes to allow for proper duplicate-argument suppression.
1238 ac_must_keep_next=false
1244 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246 | -silent | --silent | --silen | --sile | --sil)
1248 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1249 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1252 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1254 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1255 if test $ac_must_keep_next = true; then
1256 ac_must_keep_next=false # Got value, back to normal.
1259 *=* | --config-cache | -C | -disable-* | --disable-* \
1260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1262 | -with-* | --with-* | -without-* | --without-* | --x)
1263 case "$ac_configure_args0 " in
1264 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1267 -* ) ac_must_keep_next=true ;;
1270 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1271 # Get rid of the leading space.
1277 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1278 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1280 # When interrupted or exit'd, cleanup temporary files, and complete
1281 # config.log. We remove comments because anyway the quotes in there
1282 # would cause problems or look ugly.
1283 # WARNING: Be sure not to use single quotes in there, as some shells,
1284 # such as our DU 5.0 friend, will then `close
' the trap.
1285 trap 'exit_status
=$?
1286 # Save into config.log some information that might help in debugging.
1291 ## ---------------- ##
1292 ## Cache variables. ##
1293 ## ---------------- ##
1296 # The following way of writing the cache mishandles newlines in values,
1299 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1302 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1307 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1314 ## ----------------- ##
1315 ## Output variables. ##
1316 ## ----------------- ##
1319 for ac_var
in $ac_subst_vars
1321 eval ac_val
=$
`echo $ac_var`
1322 echo "$ac_var='"'"'$ac_val'"'"'"
1326 if test -n "$ac_subst_files"; then
1333 for ac_var
in $ac_subst_files
1335 eval ac_val
=$
`echo $ac_var`
1336 echo "$ac_var='"'"'$ac_val'"'"'"
1341 if test -s confdefs.h
; then
1348 sed "/^$/d" confdefs.h |
sort
1351 test "$ac_signal" != 0 &&
1352 echo "$as_me: caught signal $ac_signal"
1353 echo "$as_me: exit $exit_status"
1355 rm -f core
*.core
&&
1356 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1359 for ac_signal in 1 2 13 15; do
1360 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1364 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1365 rm -rf conftest* confdefs.h
1366 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1369 # Predefined preprocessor variables.
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_NAME "$PACKAGE_NAME"
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_STRING "$PACKAGE_STRING"
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1396 # Let the site file select an alternate cache file if it wants to.
1397 # Prefer explicitly selected file to automatically selected ones.
1398 if test -z "$CONFIG_SITE"; then
1399 if test "x$prefix" != xNONE; then
1400 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1402 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1405 for ac_site_file in $CONFIG_SITE; do
1406 if test -r "$ac_site_file"; then
1407 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1408 echo "$as_me: loading site script $ac_site_file" >&6;}
1409 sed 's
/^
/|
/' "$ac_site_file" >&5
1414 if test -r "$cache_file"; then
1415 # Some versions of bash will fail to source /dev/null (special
1416 # files actually), so we avoid doing that.
1417 if test -f "$cache_file"; then
1418 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1419 echo "$as_me: loading cache $cache_file" >&6;}
1421 [\\/]* | ?:[\\/]* ) . $cache_file;;
1422 *) . ./$cache_file;;
1426 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1427 echo "$as_me: creating cache $cache_file" >&6;}
1431 # Check that the precious variables saved in the cache have kept the same
1433 ac_cache_corrupted=false
1434 for ac_var in `(set) 2>&1 |
1435 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1436 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1437 eval ac_new_set=\$ac_env_${ac_var}_set
1438 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1439 eval ac_new_val="\$ac_env_${ac_var}_value"
1440 case $ac_old_set,$ac_new_set in
1442 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1443 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1444 ac_cache_corrupted=: ;;
1446 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1451 if test "x$ac_old_val" != "x$ac_new_val"; then
1452 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1453 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1454 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1455 echo "$as_me: former value: $ac_old_val" >&2;}
1456 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1457 echo "$as_me: current value: $ac_new_val" >&2;}
1458 ac_cache_corrupted=:
1461 # Pass precious variables to config.status.
1462 if test "$ac_new_set" = set; then
1464 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1465 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1466 *) ac_arg=$ac_var=$ac_new_val ;;
1468 case " $ac_configure_args " in
1469 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1470 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1474 if $ac_cache_corrupted; then
1475 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1476 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1477 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1478 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1479 { (exit 1); exit 1; }; }
1483 ac_cpp='$CPP $CPPFLAGS'
1484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1485 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1507 echo "$as_me:$LINENO: checking metadata" >&5
1508 echo $ECHO_N "checking metadata... $ECHO_C" >&6
1511 _spl_ac_meta_got_file=no
1512 if test -f "$META"; then
1513 _spl_ac_meta_got_file=yes
1516 -e "BEGIN { \\$key=shift @ARGV; }"\
1517 -e "next unless s/^\s*\\$key[:=]//i;"\
1518 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1521 -e "s/^(['\"])(.*)\1/\\$2/;"\
1523 -e "END { print \\$val if defined \\$val; }"\
1524 '(?:NAME|PROJECT|PACKAGE)' $META`;
1525 if test -n "$META_NAME"; then
1527 cat >>confdefs.h <<_ACEOF
1528 #define META_NAME "$META_NAME"
1534 META_VERSION=`perl
-n\
1535 -e "BEGIN { \\$key=shift @ARGV; }"\
1536 -e "next unless s/^\s*\\$key[:=]//i;"\
1537 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1540 -e "s/^(['\"])(.*)\1/\\$2/;"\
1542 -e "END { print \\$val if defined \\$val; }"\
1544 if test -n "$META_VERSION"; then
1546 cat >>confdefs.h <<_ACEOF
1547 #define META_VERSION "$META_VERSION"
1553 META_RELEASE=`perl
-n\
1554 -e "BEGIN { \\$key=shift @ARGV; }"\
1555 -e "next unless s/^\s*\\$key[:=]//i;"\
1556 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1559 -e "s/^(['\"])(.*)\1/\\$2/;"\
1561 -e "END { print \\$val if defined \\$val; }"\
1563 if test -n "$META_RELEASE"; then
1565 cat >>confdefs.h <<_ACEOF
1566 #define META_RELEASE "$META_RELEASE"
1572 if test -n "$META_NAME" -a -n "$META_VERSION"; then
1573 META_ALIAS="$META_NAME-$META_VERSION"
1574 test -n "$META_RELEASE" &&
1575 META_ALIAS="$META_ALIAS-$META_RELEASE"
1577 cat >>confdefs.h <<_ACEOF
1578 #define META_ALIAS "$META_ALIAS"
1585 -e "BEGIN { \\$key=shift @ARGV; }"\
1586 -e "next unless s/^\s*\\$key[:=]//i;"\
1587 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1590 -e "s/^(['\"])(.*)\1/\\$2/;"\
1592 -e "END { print \\$val if defined \\$val; }"\
1594 if test -n "$META_DATE"; then
1596 cat >>confdefs.h <<_ACEOF
1597 #define META_DATE "$META_DATE"
1603 META_AUTHOR=`perl
-n\
1604 -e "BEGIN { \\$key=shift @ARGV; }"\
1605 -e "next unless s/^\s*\\$key[:=]//i;"\
1606 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1609 -e "s/^(['\"])(.*)\1/\\$2/;"\
1611 -e "END { print \\$val if defined \\$val; }"\
1613 if test -n "$META_AUTHOR"; then
1615 cat >>confdefs.h <<_ACEOF
1616 #define META_AUTHOR "$META_AUTHOR"
1623 META_LT_CURRENT=`perl
-n\
1624 -e "BEGIN { \\$key=shift @ARGV; }"\
1625 -e "next unless s/^\s*\\$key[:=]//i;"\
1626 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1629 -e "s/^(['\"])(.*)\1/\\$2/;"\
1631 -e "END { print \\$val if defined \\$val; }"\
1632 'LT_CURRENT' $META`;
1633 META_LT_REVISION=`perl
-n\
1634 -e "BEGIN { \\$key=shift @ARGV; }"\
1635 -e "next unless s/^\s*\\$key[:=]//i;"\
1636 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1639 -e "s/^(['\"])(.*)\1/\\$2/;"\
1641 -e "END { print \\$val if defined \\$val; }"\
1642 'LT_REVISION' $META`;
1643 META_LT_AGE=`perl
-n\
1644 -e "BEGIN { \\$key=shift @ARGV; }"\
1645 -e "next unless s/^\s*\\$key[:=]//i;"\
1646 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1649 -e "s/^(['\"])(.*)\1/\\$2/;"\
1651 -e "END { print \\$val if defined \\$val; }"\
1653 if test -n "$META_LT_CURRENT" \
1654 -o -n "$META_LT_REVISION" \
1655 -o -n "$META_LT_AGE"; then
1656 test -n "$META_LT_CURRENT" || META_LT_CURRENT="0"
1657 test -n "$META_LT_REVISION" || META_LT_REVISION="0"
1658 test -n "$META_LT_AGE" || META_LT_AGE="0"
1660 cat >>confdefs.h <<_ACEOF
1661 #define META_LT_CURRENT "$META_LT_CURRENT"
1665 cat >>confdefs.h <<_ACEOF
1666 #define META_LT_REVISION "$META_LT_REVISION"
1670 cat >>confdefs.h <<_ACEOF
1671 #define META_LT_AGE "$META_LT_AGE"
1680 echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5
1681 echo "${ECHO_T}$_spl_ac_meta_got_file" >&6
1685 for ac_dir in config $srcdir/config; do
1686 if test -f $ac_dir/install-sh; then
1688 ac_install_sh="$ac_aux_dir/install-sh -c"
1690 elif test -f $ac_dir/install.sh; then
1692 ac_install_sh="$ac_aux_dir/install.sh -c"
1694 elif test -f $ac_dir/shtool; then
1696 ac_install_sh="$ac_aux_dir/shtool install -c"
1700 if test -z "$ac_aux_dir"; then
1701 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1702 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1703 { (exit 1); exit 1; }; }
1705 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1706 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1707 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1709 # Make sure we can run config.sub.
1710 $ac_config_sub sun4 >/dev/null 2>&1 ||
1711 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1712 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1713 { (exit 1); exit 1; }; }
1715 echo "$as_me:$LINENO: checking build system type" >&5
1716 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1717 if test "${ac_cv_build+set}" = set; then
1718 echo $ECHO_N "(cached) $ECHO_C" >&6
1720 ac_cv_build_alias=$build_alias
1721 test -z "$ac_cv_build_alias" &&
1722 ac_cv_build_alias=`$ac_config_guess`
1723 test -z "$ac_cv_build_alias" &&
1724 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1725 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1726 { (exit 1); exit 1; }; }
1727 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1728 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1729 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1730 { (exit 1); exit 1; }; }
1733 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1734 echo "${ECHO_T}$ac_cv_build" >&6
1736 build_cpu=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1737 build_vendor=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1738 build_os=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1741 echo "$as_me:$LINENO: checking host system type" >&5
1742 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1743 if test "${ac_cv_host+set}" = set; then
1744 echo $ECHO_N "(cached) $ECHO_C" >&6
1746 ac_cv_host_alias=$host_alias
1747 test -z "$ac_cv_host_alias" &&
1748 ac_cv_host_alias=$ac_cv_build_alias
1749 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1750 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1751 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1752 { (exit 1); exit 1; }; }
1755 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1756 echo "${ECHO_T}$ac_cv_host" >&6
1758 host_cpu=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1759 host_vendor=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1760 host_os=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1763 echo "$as_me:$LINENO: checking target system type" >&5
1764 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1765 if test "${ac_cv_target+set}" = set; then
1766 echo $ECHO_N "(cached) $ECHO_C" >&6
1768 ac_cv_target_alias=$target_alias
1769 test "x$ac_cv_target_alias" = "x" &&
1770 ac_cv_target_alias=$ac_cv_host_alias
1771 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1772 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1773 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1774 { (exit 1); exit 1; }; }
1777 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1778 echo "${ECHO_T}$ac_cv_target" >&6
1779 target=$ac_cv_target
1780 target_cpu=`echo $ac_cv_target |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1781 target_vendor=`echo $ac_cv_target |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1782 target_os=`echo $ac_cv_target |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1785 # The aliases save the names the user supplied, while $host etc.
1786 # will get canonicalized.
1787 test -n "$target_alias" &&
1788 test "$program_prefix$program_suffix$program_transform_name" = \
1790 program_prefix=${target_alias}-
1791 am__api_version="1.9"
1792 # Find a good install program. We prefer a C program (faster),
1793 # so one script is as good as another. But avoid the broken or
1794 # incompatible versions:
1795 # SysV /etc/install, /usr/sbin/install
1796 # SunOS /usr/etc/install
1797 # IRIX /sbin/install
1799 # AmigaOS /C/install, which installs bootblocks on floppy discs
1800 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1801 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1802 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1803 # OS/2's system install, which has a completely different semantic
1804 # ./install, which can be erroneously created by make from ./install.sh.
1805 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1806 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1807 if test -z "$INSTALL"; then
1808 if test "${ac_cv_path_install+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 test -z "$as_dir" && as_dir=.
1816 # Account for people who put trailing slashes in PATH elements.
1818 ./ | .// | /cC/* | \
1819 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1820 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1823 # OSF1 and SCO ODT 3.0 have their own names for install.
1824 # Don't use installbsd from OSF since it installs stuff as root
1826 for ac_prog in ginstall scoinst install; do
1827 for ac_exec_ext in '' $ac_executable_extensions; do
1828 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1829 if test $ac_prog = install &&
1830 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1831 # AIX install. It has an incompatible calling convention.
1833 elif test $ac_prog = install &&
1834 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1835 # program-specific install script used by HP pwplus--don't use.
1838 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1850 if test "${ac_cv_path_install+set}" = set; then
1851 INSTALL=$ac_cv_path_install
1853 # As a last resort, use the slow shell script. We don't cache a
1854 # path for INSTALL within a source directory, because that will
1855 # break other packages using the cache if that directory is
1856 # removed, or if the path is relative.
1857 INSTALL=$ac_install_sh
1860 echo "$as_me:$LINENO: result: $INSTALL" >&5
1861 echo "${ECHO_T}$INSTALL" >&6
1863 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1864 # It thinks the first close brace ends the variable substitution.
1865 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1867 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1869 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1871 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1872 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1875 echo timestamp > conftest.file
1876 # Do `set' in a subshell so we don't clobber the current shell
's
1877 # arguments. Must try -L first in case configure is actually a
1878 # symlink; some systems play weird games with the mod time of symlinks
1879 # (eg FreeBSD returns the mod time of the symlink's containing
1882 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1883 if test "$*" = "X"; then
1885 set X
`ls -t $srcdir/configure conftest.file`
1888 if test "$*" != "X $srcdir/configure conftest.file" \
1889 && test "$*" != "X conftest.file $srcdir/configure"; then
1891 # If neither matched, then we have a broken ls. This can happen
1892 # if, for instance, CONFIG_SHELL is bash and it inherits a
1893 # broken ls alias from the environment. This has actually
1894 # happened. Such a system could not be considered "sane".
1895 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1896 alias in your environment" >&5
1897 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1898 alias in your environment" >&2;}
1899 { (exit 1); exit 1; }; }
1902 test "$2" = conftest.
file
1908 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1909 Check your system clock" >&5
1910 echo "$as_me: error: newly created file is older than distributed files!
1911 Check your system clock" >&2;}
1912 { (exit 1); exit 1; }; }
1914 echo "$as_me:$LINENO: result: yes" >&5
1915 echo "${ECHO_T}yes" >&6
1916 test "$program_prefix" != NONE
&&
1917 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1918 # Use a double $ so make ignores it.
1919 test "$program_suffix" != NONE
&&
1920 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1921 # Double any \ or $. echo might interpret backslashes.
1922 # By default was `s,x,x', remove it if useless.
1923 cat <<\_ACEOF
>conftest.
sed
1924 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1926 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1929 # expand $ac_aux_dir to an absolute path
1930 am_aux_dir
=`cd $ac_aux_dir && pwd`
1932 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1933 # Use eval to expand $SHELL
1934 if eval "$MISSING --run true"; then
1935 am_missing_run
="$MISSING --run "
1938 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1939 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1942 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
1943 # We used to keeping the `.' as first argument, in order to
1944 # allow $(mkdir_p) to be used without argument. As in
1945 # $(mkdir_p) $(somedir)
1946 # where $(somedir) is conditionally defined. However this is wrong
1948 # 1. if the package is installed by a user who cannot write `.'
1949 # make install will fail,
1950 # 2. the above comment should most certainly read
1951 # $(mkdir_p) $(DESTDIR)$(somedir)
1952 # so it does not work when $(somedir) is undefined and
1953 # $(DESTDIR) is not.
1954 # To support the latter case, we have to write
1955 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1956 # so the `.' trick is pointless.
1957 mkdir_p
='mkdir -p --'
1959 # On NextStep and OpenStep, the `mkdir' command does not
1960 # recognize any option. It will interpret all options as
1961 # directories to create, and then abort because `.' already
1963 for d
in .
/-p .
/--version;
1965 test -d $d && rmdir $d
1967 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1968 if test -f "$ac_aux_dir/mkinstalldirs"; then
1969 mkdir_p
='$(mkinstalldirs)'
1971 mkdir_p
='$(install_sh) -d'
1975 for ac_prog
in gawk mawk nawk
awk
1977 # Extract the first word of "$ac_prog", so it can be a program name with args.
1978 set dummy
$ac_prog; ac_word
=$2
1979 echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1981 if test "${ac_cv_prog_AWK+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1984 if test -n "$AWK"; then
1985 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1987 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1991 test -z "$as_dir" && as_dir
=.
1992 for ac_exec_ext
in '' $ac_executable_extensions; do
1993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1994 ac_cv_prog_AWK
="$ac_prog"
1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 if test -n "$AWK"; then
2005 echo "$as_me:$LINENO: result: $AWK" >&5
2006 echo "${ECHO_T}$AWK" >&6
2008 echo "$as_me:$LINENO: result: no" >&5
2009 echo "${ECHO_T}no" >&6
2012 test -n "$AWK" && break
2015 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2016 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2017 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
2018 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 cat >conftest.
make <<\_ACEOF
2023 @
echo 'ac_maketemp="$(MAKE)"'
2025 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2026 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2027 if test -n "$ac_maketemp"; then
2028 eval ac_cv_prog_make_
${ac_make}_set
=yes
2030 eval ac_cv_prog_make_
${ac_make}_set
=no
2034 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2035 echo "$as_me:$LINENO: result: yes" >&5
2036 echo "${ECHO_T}yes" >&6
2039 echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2041 SET_MAKE
="MAKE=${MAKE-make}"
2044 rm -rf .tst
2>/dev
/null
2045 mkdir .tst
2>/dev
/null
2046 if test -d .tst
; then
2051 rmdir .tst
2>/dev
/null
2053 # test to see if srcdir already configured
2054 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2055 test -f $srcdir/config.status
; then
2056 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2057 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2058 { (exit 1); exit 1; }; }
2061 # test whether we have cygpath
2062 if test -z "$CYGPATH_W"; then
2063 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2064 CYGPATH_W
='cygpath -w'
2071 # Define the identity of the package.
2073 VERSION
=$META_VERSION
2076 cat >>confdefs.h
<<_ACEOF
2077 #define PACKAGE "$PACKAGE"
2081 cat >>confdefs.h
<<_ACEOF
2082 #define VERSION "$VERSION"
2085 # Some tools Automake needs.
2087 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2090 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2093 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2096 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2099 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2101 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
2103 # Installed binaries are usually stripped using `strip' when the user
2104 # run `make install-strip'. However `strip' might not be the right
2105 # tool to use in cross-compilation environments, therefore Automake
2106 # will honor the `STRIP' environment variable to overrule this program.
2107 if test "$cross_compiling" != no
; then
2108 if test -n "$ac_tool_prefix"; then
2109 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2110 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2111 echo "$as_me:$LINENO: checking for $ac_word" >&5
2112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2113 if test "${ac_cv_prog_STRIP+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 if test -n "$STRIP"; then
2117 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2123 test -z "$as_dir" && as_dir
=.
2124 for ac_exec_ext
in '' $ac_executable_extensions; do
2125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2126 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135 STRIP
=$ac_cv_prog_STRIP
2136 if test -n "$STRIP"; then
2137 echo "$as_me:$LINENO: result: $STRIP" >&5
2138 echo "${ECHO_T}$STRIP" >&6
2140 echo "$as_me:$LINENO: result: no" >&5
2141 echo "${ECHO_T}no" >&6
2145 if test -z "$ac_cv_prog_STRIP"; then
2147 # Extract the first word of "strip", so it can be a program name with args.
2148 set dummy strip
; ac_word
=$2
2149 echo "$as_me:$LINENO: checking for $ac_word" >&5
2150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2151 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2154 if test -n "$ac_ct_STRIP"; then
2155 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2157 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2161 test -z "$as_dir" && as_dir
=.
2162 for ac_exec_ext
in '' $ac_executable_extensions; do
2163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2164 ac_cv_prog_ac_ct_STRIP
="strip"
2165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2171 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
2174 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2175 if test -n "$ac_ct_STRIP"; then
2176 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2177 echo "${ECHO_T}$ac_ct_STRIP" >&6
2179 echo "$as_me:$LINENO: result: no" >&5
2180 echo "${ECHO_T}no" >&6
2185 STRIP
="$ac_cv_prog_STRIP"
2189 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
2191 # We need awk for the "check" target. The system "awk" is bad on
2193 # Always define AMTAR for backward compatibility.
2195 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2197 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2203 ac_config_headers
="$ac_config_headers spl_config.h"
2205 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2206 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2207 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2208 if test "${enable_maintainer_mode+set}" = set; then
2209 enableval
="$enable_maintainer_mode"
2210 USE_MAINTAINER_MODE
=$enableval
2212 USE_MAINTAINER_MODE
=no
2214 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2215 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2218 if test $USE_MAINTAINER_MODE = yes; then
2219 MAINTAINER_MODE_TRUE
=
2220 MAINTAINER_MODE_FALSE
='#'
2222 MAINTAINER_MODE_TRUE
='#'
2223 MAINTAINER_MODE_FALSE
=
2226 MAINT
=$MAINTAINER_MODE_TRUE
2230 # Find a good install program. We prefer a C program (faster),
2231 # so one script is as good as another. But avoid the broken or
2232 # incompatible versions:
2233 # SysV /etc/install, /usr/sbin/install
2234 # SunOS /usr/etc/install
2235 # IRIX /sbin/install
2237 # AmigaOS /C/install, which installs bootblocks on floppy discs
2238 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2239 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2240 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2241 # OS/2's system install, which has a completely different semantic
2242 # ./install, which can be erroneously created by make from ./install.sh.
2243 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2244 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2245 if test -z "$INSTALL"; then
2246 if test "${ac_cv_path_install+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2249 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2253 test -z "$as_dir" && as_dir
=.
2254 # Account for people who put trailing slashes in PATH elements.
2256 .
/ | .
// |
/cC
/* | \
2257 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2258 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2261 # OSF1 and SCO ODT 3.0 have their own names for install.
2262 # Don't use installbsd from OSF since it installs stuff as root
2264 for ac_prog
in ginstall scoinst
install; do
2265 for ac_exec_ext
in '' $ac_executable_extensions; do
2266 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2267 if test $ac_prog = install &&
2268 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2269 # AIX install. It has an incompatible calling convention.
2271 elif test $ac_prog = install &&
2272 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2273 # program-specific install script used by HP pwplus--don't use.
2276 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2288 if test "${ac_cv_path_install+set}" = set; then
2289 INSTALL
=$ac_cv_path_install
2291 # As a last resort, use the slow shell script. We don't cache a
2292 # path for INSTALL within a source directory, because that will
2293 # break other packages using the cache if that directory is
2294 # removed, or if the path is relative.
2295 INSTALL
=$ac_install_sh
2298 echo "$as_me:$LINENO: result: $INSTALL" >&5
2299 echo "${ECHO_T}$INSTALL" >&6
2301 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2302 # It thinks the first close brace ends the variable substitution.
2303 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2305 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2307 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2310 ac_cpp
='$CPP $CPPFLAGS'
2311 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2314 if test -n "$ac_tool_prefix"; then
2315 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2316 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2317 echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2319 if test "${ac_cv_prog_CC+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 if test -n "$CC"; then
2323 ac_cv_prog_CC
="$CC" # Let the user override the test.
2325 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2329 test -z "$as_dir" && as_dir
=.
2330 for ac_exec_ext
in '' $ac_executable_extensions; do
2331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2332 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 if test -n "$CC"; then
2343 echo "$as_me:$LINENO: result: $CC" >&5
2344 echo "${ECHO_T}$CC" >&6
2346 echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6
2351 if test -z "$ac_cv_prog_CC"; then
2353 # Extract the first word of "gcc", so it can be a program name with args.
2354 set dummy gcc
; ac_word
=$2
2355 echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2357 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 if test -n "$ac_ct_CC"; then
2361 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2367 test -z "$as_dir" && as_dir
=.
2368 for ac_exec_ext
in '' $ac_executable_extensions; do
2369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2370 ac_cv_prog_ac_ct_CC
="gcc"
2371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2380 if test -n "$ac_ct_CC"; then
2381 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2382 echo "${ECHO_T}$ac_ct_CC" >&6
2384 echo "$as_me:$LINENO: result: no" >&5
2385 echo "${ECHO_T}no" >&6
2393 if test -z "$CC"; then
2394 if test -n "$ac_tool_prefix"; then
2395 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2396 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2397 echo "$as_me:$LINENO: checking for $ac_word" >&5
2398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2399 if test "${ac_cv_prog_CC+set}" = set; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6
2402 if test -n "$CC"; then
2403 ac_cv_prog_CC
="$CC" # Let the user override the test.
2405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2409 test -z "$as_dir" && as_dir
=.
2410 for ac_exec_ext
in '' $ac_executable_extensions; do
2411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2412 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422 if test -n "$CC"; then
2423 echo "$as_me:$LINENO: result: $CC" >&5
2424 echo "${ECHO_T}$CC" >&6
2426 echo "$as_me:$LINENO: result: no" >&5
2427 echo "${ECHO_T}no" >&6
2431 if test -z "$ac_cv_prog_CC"; then
2433 # Extract the first word of "cc", so it can be a program name with args.
2434 set dummy cc
; ac_word
=$2
2435 echo "$as_me:$LINENO: checking for $ac_word" >&5
2436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2437 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2440 if test -n "$ac_ct_CC"; then
2441 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2443 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2447 test -z "$as_dir" && as_dir
=.
2448 for ac_exec_ext
in '' $ac_executable_extensions; do
2449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2450 ac_cv_prog_ac_ct_CC
="cc"
2451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2460 if test -n "$ac_ct_CC"; then
2461 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2462 echo "${ECHO_T}$ac_ct_CC" >&6
2464 echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6
2474 if test -z "$CC"; then
2475 # Extract the first word of "cc", so it can be a program name with args.
2476 set dummy cc
; ac_word
=$2
2477 echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2479 if test "${ac_cv_prog_CC+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 if test -n "$CC"; then
2483 ac_cv_prog_CC
="$CC" # Let the user override the test.
2486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2490 test -z "$as_dir" && as_dir
=.
2491 for ac_exec_ext
in '' $ac_executable_extensions; do
2492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2493 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2494 ac_prog_rejected
=yes
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2504 if test $ac_prog_rejected = yes; then
2505 # We found a bogon in the path, so make sure we never use it.
2506 set dummy
$ac_cv_prog_CC
2508 if test $# != 0; then
2509 # We chose a different compiler from the bogus one.
2510 # However, it has the same basename, so the bogon will be chosen
2511 # first if we set CC to just the basename; use the full file name.
2513 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2519 if test -n "$CC"; then
2520 echo "$as_me:$LINENO: result: $CC" >&5
2521 echo "${ECHO_T}$CC" >&6
2523 echo "$as_me:$LINENO: result: no" >&5
2524 echo "${ECHO_T}no" >&6
2528 if test -z "$CC"; then
2529 if test -n "$ac_tool_prefix"; then
2532 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2533 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2534 echo "$as_me:$LINENO: checking for $ac_word" >&5
2535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2536 if test "${ac_cv_prog_CC+set}" = set; then
2537 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 if test -n "$CC"; then
2540 ac_cv_prog_CC
="$CC" # Let the user override the test.
2542 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2546 test -z "$as_dir" && as_dir
=.
2547 for ac_exec_ext
in '' $ac_executable_extensions; do
2548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2549 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2559 if test -n "$CC"; then
2560 echo "$as_me:$LINENO: result: $CC" >&5
2561 echo "${ECHO_T}$CC" >&6
2563 echo "$as_me:$LINENO: result: no" >&5
2564 echo "${ECHO_T}no" >&6
2567 test -n "$CC" && break
2570 if test -z "$CC"; then
2574 # Extract the first word of "$ac_prog", so it can be a program name with args.
2575 set dummy
$ac_prog; ac_word
=$2
2576 echo "$as_me:$LINENO: checking for $ac_word" >&5
2577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2578 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2581 if test -n "$ac_ct_CC"; then
2582 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2588 test -z "$as_dir" && as_dir
=.
2589 for ac_exec_ext
in '' $ac_executable_extensions; do
2590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2591 ac_cv_prog_ac_ct_CC
="$ac_prog"
2592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2601 if test -n "$ac_ct_CC"; then
2602 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2603 echo "${ECHO_T}$ac_ct_CC" >&6
2605 echo "$as_me:$LINENO: result: no" >&5
2606 echo "${ECHO_T}no" >&6
2609 test -n "$ac_ct_CC" && break
2618 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2619 See \`config.log' for more details." >&5
2620 echo "$as_me: error: no acceptable C compiler found in \$PATH
2621 See \`config.log' for more details." >&2;}
2622 { (exit 1); exit 1; }; }
2624 # Provide some information about the compiler.
2625 echo "$as_me:$LINENO:" \
2626 "checking for C compiler version" >&5
2627 ac_compiler
=`set X $ac_compile; echo $2`
2628 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2629 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }
2633 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2634 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }
2638 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2639 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }
2644 cat >conftest.
$ac_ext <<_ACEOF
2647 cat confdefs.h
>>conftest.
$ac_ext
2648 cat >>conftest.
$ac_ext <<_ACEOF
2649 /* end confdefs.h. */
2659 ac_clean_files_save
=$ac_clean_files
2660 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2661 # Try to create an executable without -o first, disregard a.out.
2662 # It will help us diagnose broken compilers, and finding out an intuition
2664 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2665 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2666 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2667 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2668 (eval $ac_link_default) 2>&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; then
2672 # Find the output, starting from the most likely. This scheme is
2673 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2676 # Be careful to initialize this variable, since it used to be cached.
2677 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2679 # b.out is created by i960 compilers.
2680 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2682 test -f "$ac_file" ||
continue
2684 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2687 # This is the source file.
2690 # We found the default executable, but exeext='' is most
2694 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2695 # FIXME: I believe we export ac_cv_exeext for Libtool,
2696 # but it would be cool to find out if it's true. Does anybody
2697 # maintain Libtool? --akim.
2705 echo "$as_me: failed program was:" >&5
2706 sed 's/^/| /' conftest.
$ac_ext >&5
2708 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2709 See \`config.log' for more details." >&5
2710 echo "$as_me: error: C compiler cannot create executables
2711 See \`config.log' for more details." >&2;}
2712 { (exit 77); exit 77; }; }
2715 ac_exeext
=$ac_cv_exeext
2716 echo "$as_me:$LINENO: result: $ac_file" >&5
2717 echo "${ECHO_T}$ac_file" >&6
2719 # Check the compiler produces executables we can run. If not, either
2720 # the compiler is broken, or we cross compile.
2721 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2722 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2723 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2724 # If not cross compiling, check that we can run a simple program.
2725 if test "$cross_compiling" != yes; then
2726 if { ac_try
='./$ac_file'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; }; then
2734 if test "$cross_compiling" = maybe
; then
2737 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2738 If you meant to cross compile, use \`--host'.
2739 See \`config.log' for more details." >&5
2740 echo "$as_me: error: cannot run C compiled programs.
2741 If you meant to cross compile, use \`--host'.
2742 See \`config.log' for more details." >&2;}
2743 { (exit 1); exit 1; }; }
2747 echo "$as_me:$LINENO: result: yes" >&5
2748 echo "${ECHO_T}yes" >&6
2750 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2751 ac_clean_files
=$ac_clean_files_save
2752 # Check the compiler produces executables we can run. If not, either
2753 # the compiler is broken, or we cross compile.
2754 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2755 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2756 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2757 echo "${ECHO_T}$cross_compiling" >&6
2759 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2760 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2762 (eval $ac_link) 2>&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; then
2766 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2767 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2768 # work properly (i.e., refer to `conftest.exe'), while it won't with
2770 for ac_file
in conftest.exe conftest conftest.
*; do
2771 test -f "$ac_file" ||
continue
2773 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2774 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2781 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2782 See \`config.log' for more details." >&5
2783 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2784 See \`config.log' for more details." >&2;}
2785 { (exit 1); exit 1; }; }
2788 rm -f conftest
$ac_cv_exeext
2789 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2790 echo "${ECHO_T}$ac_cv_exeext" >&6
2792 rm -f conftest.
$ac_ext
2793 EXEEXT
=$ac_cv_exeext
2795 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2796 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2797 if test "${ac_cv_objext+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2800 cat >conftest.
$ac_ext <<_ACEOF
2803 cat confdefs.h
>>conftest.
$ac_ext
2804 cat >>conftest.
$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2815 rm -f conftest.o conftest.obj
2816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2817 (eval $ac_compile) 2>&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; then
2821 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2823 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2824 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2829 echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.
$ac_ext >&5
2832 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2833 See \`config.log' for more details." >&5
2834 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2835 See \`config.log' for more details." >&2;}
2836 { (exit 1); exit 1; }; }
2839 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2841 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2842 echo "${ECHO_T}$ac_cv_objext" >&6
2843 OBJEXT
=$ac_cv_objext
2845 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2846 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2847 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 cat >conftest.
$ac_ext <<_ACEOF
2853 cat confdefs.h
>>conftest.
$ac_ext
2854 cat >>conftest.
$ac_ext <<_ACEOF
2855 /* end confdefs.h. */
2868 rm -f conftest.
$ac_objext
2869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2870 (eval $ac_compile) 2>conftest.er1
2872 grep -v '^ *+' conftest.er1
>conftest.err
2874 cat conftest.err
>&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); } &&
2877 { ac_try
='test -z "$ac_c_werror_flag"
2878 || test ! -s conftest.err'
2879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }; } &&
2884 { ac_try
='test -s conftest.$ac_objext'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; }; then
2892 echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.
$ac_ext >&5
2897 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2898 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2901 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2902 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2903 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2904 ac_test_CFLAGS
=${CFLAGS+set}
2905 ac_save_CFLAGS
=$CFLAGS
2907 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2908 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2909 if test "${ac_cv_prog_cc_g+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 cat >conftest.
$ac_ext <<_ACEOF
2915 cat confdefs.h
>>conftest.
$ac_ext
2916 cat >>conftest.
$ac_ext <<_ACEOF
2917 /* end confdefs.h. */
2927 rm -f conftest.
$ac_objext
2928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2929 (eval $ac_compile) 2>conftest.er1
2931 grep -v '^ *+' conftest.er1
>conftest.err
2933 cat conftest.err
>&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } &&
2936 { ac_try
='test -z "$ac_c_werror_flag"
2937 || test ! -s conftest.err'
2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; } &&
2943 { ac_try
='test -s conftest.$ac_objext'
2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; }; then
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.
$ac_ext >&5
2956 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2958 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2959 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2960 if test "$ac_test_CFLAGS" = set; then
2961 CFLAGS
=$ac_save_CFLAGS
2962 elif test $ac_cv_prog_cc_g = yes; then
2963 if test "$GCC" = yes; then
2969 if test "$GCC" = yes; then
2975 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2976 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2977 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2980 ac_cv_prog_cc_stdc
=no
2982 cat >conftest.
$ac_ext <<_ACEOF
2985 cat confdefs.h
>>conftest.
$ac_ext
2986 cat >>conftest.
$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
2990 #include <sys/types.h>
2991 #include <sys/stat.h>
2992 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2993 struct buf { int x; };
2994 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2995 static char *e (p, i)
3001 static char *f (char * (*g) (char **, int), char **p, ...)
3006 s = g (p, va_arg (v,int));
3011 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3012 function prototypes and stuff, but not '\xHH' hex character constants.
3013 These don't provoke an error unfortunately, instead are silently treated
3014 as 'x'. The following induces an error, until -std1 is added to get
3015 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3016 array size at least. It's necessary to write '\x00'==0 to get something
3017 that's true only with -std1. */
3018 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3020 int test (int i, double x);
3021 struct s1 {int (*f) (int a);};
3022 struct s2 {int (*f) (double a);};
3023 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3029 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3034 # Don't try gcc -ansi; that turns off useful extensions and
3035 # breaks some systems' header files.
3036 # AIX -qlanglvl=ansi
3037 # Ultrix and OSF/1 -std1
3038 # HP-UX 10.20 and later -Ae
3039 # HP-UX older versions -Aa -D_HPUX_SOURCE
3040 # SVR4 -Xc -D__EXTENSIONS__
3041 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3043 CC
="$ac_save_CC $ac_arg"
3044 rm -f conftest.
$ac_objext
3045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3046 (eval $ac_compile) 2>conftest.er1
3048 grep -v '^ *+' conftest.er1
>conftest.err
3050 cat conftest.err
>&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } &&
3053 { ac_try
='test -z "$ac_c_werror_flag"
3054 || test ! -s conftest.err'
3055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; } &&
3060 { ac_try
='test -s conftest.$ac_objext'
3061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; }; then
3066 ac_cv_prog_cc_stdc
=$ac_arg
3069 echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.
$ac_ext >&5
3073 rm -f conftest.err conftest.
$ac_objext
3075 rm -f conftest.
$ac_ext conftest.
$ac_objext
3080 case "x$ac_cv_prog_cc_stdc" in
3082 echo "$as_me:$LINENO: result: none needed" >&5
3083 echo "${ECHO_T}none needed" >&6 ;;
3085 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3086 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3087 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3090 # Some people use a C++ compiler to compile C. Since we use `exit',
3091 # in C++ we need to declare it. In case someone uses the same compiler
3092 # for both compiling C and C++ we need to have the C++ compiler decide
3093 # the declaration of exit, since it's the most demanding environment.
3094 cat >conftest.
$ac_ext <<_ACEOF
3099 rm -f conftest.
$ac_objext
3100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3101 (eval $ac_compile) 2>conftest.er1
3103 grep -v '^ *+' conftest.er1
>conftest.err
3105 cat conftest.err
>&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } &&
3108 { ac_try
='test -z "$ac_c_werror_flag"
3109 || test ! -s conftest.err'
3110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; } &&
3115 { ac_try
='test -s conftest.$ac_objext'
3116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; }; then
3121 for ac_declaration
in \
3123 'extern "C" void std::exit (int) throw (); using std::exit;' \
3124 'extern "C" void std::exit (int); using std::exit;' \
3125 'extern "C" void exit (int) throw ();' \
3126 'extern "C" void exit (int);' \
3129 cat >conftest.
$ac_ext <<_ACEOF
3132 cat confdefs.h
>>conftest.
$ac_ext
3133 cat >>conftest.
$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3145 rm -f conftest.
$ac_objext
3146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3147 (eval $ac_compile) 2>conftest.er1
3149 grep -v '^ *+' conftest.er1
>conftest.err
3151 cat conftest.err
>&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } &&
3154 { ac_try
='test -z "$ac_c_werror_flag"
3155 || test ! -s conftest.err'
3156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; } &&
3161 { ac_try
='test -s conftest.$ac_objext'
3162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; }; then
3169 echo "$as_me: failed program was:" >&5
3170 sed 's/^/| /' conftest.
$ac_ext >&5
3174 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3175 cat >conftest.
$ac_ext <<_ACEOF
3178 cat confdefs.h
>>conftest.
$ac_ext
3179 cat >>conftest.
$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3190 rm -f conftest.
$ac_objext
3191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3192 (eval $ac_compile) 2>conftest.er1
3194 grep -v '^ *+' conftest.er1
>conftest.err
3196 cat conftest.err
>&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } &&
3199 { ac_try
='test -z "$ac_c_werror_flag"
3200 || test ! -s conftest.err'
3201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; } &&
3206 { ac_try
='test -s conftest.$ac_objext'
3207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }; }; then
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.
$ac_ext >&5
3218 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3221 if test -n "$ac_declaration"; then
3222 echo '#ifdef __cplusplus' >>confdefs.h
3223 echo $ac_declaration >>confdefs.h
3224 echo '#endif' >>confdefs.h
3228 echo "$as_me: failed program was:" >&5
3229 sed 's/^/| /' conftest.
$ac_ext >&5
3232 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3234 ac_cpp
='$CPP $CPPFLAGS'
3235 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3238 DEPDIR
="${am__leading_dot}deps"
3240 ac_config_commands
="$ac_config_commands depfiles"
3243 am_make
=${MAKE-make}
3244 cat > confinc
<< 'END'
3249 # If we don't find an include directive, just comment out the code.
3250 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3251 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3255 # First try GNU make style include.
3256 echo "include confinc" > confmf
3257 # We grep out `Entering directory' and `Leaving directory'
3258 # messages which can occur if `w' ends up in MAKEFLAGS.
3259 # In particular we don't look at `^make:' because GNU make might
3260 # be invoked under some other name (usually "gmake"), in which
3261 # case it prints its new name instead of `make'.
3262 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3267 # Now try BSD make style include.
3268 if test "$am__include" = "#"; then
3269 echo '.include "confinc"' > confmf
3270 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3271 am__include
=.include
3278 echo "$as_me:$LINENO: result: $_am_result" >&5
3279 echo "${ECHO_T}$_am_result" >&6
3280 rm -f confinc confmf
3282 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3283 if test "${enable_dependency_tracking+set}" = set; then
3284 enableval
="$enable_dependency_tracking"
3287 if test "x$enable_dependency_tracking" != xno
; then
3288 am_depcomp
="$ac_aux_dir/depcomp"
3293 if test "x$enable_dependency_tracking" != xno; then
3304 depcc
="$CC" am_compiler_list
=
3306 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3307 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3308 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3312 # We make a subdir and do the tests there. Otherwise we can end up
3313 # making bogus files that we don't know about and never remove. For
3314 # instance it was reported that on HP-UX the gcc test will end up
3315 # making a dummy file named `D' -- because `-MD' means `put the output
3318 # Copy depcomp to subdir because otherwise we won't find it if we're
3319 # using a relative directory.
3320 cp "$am_depcomp" conftest.dir
3322 # We will build objects and dependencies in a subdirectory because
3323 # it helps to detect inapplicable dependency modes. For instance
3324 # both Tru64's cc and ICC support -MD to output dependencies as a
3325 # side effect of compilation, but ICC will put the dependencies in
3326 # the current directory while Tru64 will put them in the object
3330 am_cv_CC_dependencies_compiler_type
=none
3331 if test "$am_compiler_list" = ""; then
3332 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3334 for depmode
in $am_compiler_list; do
3335 # Setup a source with many dependencies, because some compilers
3336 # like to wrap large dependency lists on column 80 (with \), and
3337 # we should not choose a depcomp mode which is confused by this.
3339 # We need to recreate these files for each test, as the compiler may
3340 # overwrite some of them when testing with obscure command lines.
3341 # This happens at least with the AIX C compiler.
3343 for i
in 1 2 3 4 5 6; do
3344 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3345 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3346 # Solaris 8's {/usr,}/bin/sh.
3347 touch sub
/conftst
$i.h
3349 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3353 # after this tag, mechanisms are not by side-effect, so they'll
3354 # only be used when explicitly requested
3355 if test "x$enable_dependency_tracking" = xyes
; then
3363 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3364 # mode. It turns out that the SunPro C++ compiler does not properly
3365 # handle `-M -o', and we need to detect this.
3366 if depmode
=$depmode \
3367 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3368 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3369 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3370 >/dev
/null
2>conftest.err
&&
3371 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3372 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3373 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3374 # icc doesn't choke on unknown options, it will just issue warnings
3375 # or remarks (even with -Werror). So we grep stderr for any message
3376 # that says an option was ignored or not supported.
3377 # When given -MP, icc 7.0 and 7.1 complain thusly:
3378 # icc: Command line warning: ignoring option '-M'; no argument required
3379 # The diagnosis changed in icc 8.0:
3380 # icc: Command line remark: option '-MP' not supported
3381 if (grep 'ignoring option' conftest.err ||
3382 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3383 am_cv_CC_dependencies_compiler_type
=$depmode
3392 am_cv_CC_dependencies_compiler_type
=none
3396 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3397 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3398 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3403 test "x$enable_dependency_tracking" != xno \
3404 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3406 am__fastdepCC_FALSE
='#'
3408 am__fastdepCC_TRUE
='#'
3409 am__fastdepCC_FALSE
=
3413 # Check whether --enable-shared or --disable-shared was given.
3414 if test "${enable_shared+set}" = set; then
3415 enableval
="$enable_shared"
3416 p
=${PACKAGE-default}
3418 yes) enable_shared
=yes ;;
3419 no
) enable_shared
=no
;;
3422 # Look at the argument we got. We use all the common list separators.
3423 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3424 for pkg
in $enableval; do
3426 if test "X$pkg" = "X$p"; then
3437 # Check whether --enable-static or --disable-static was given.
3438 if test "${enable_static+set}" = set; then
3439 enableval
="$enable_static"
3440 p
=${PACKAGE-default}
3442 yes) enable_static
=yes ;;
3443 no
) enable_static
=no
;;
3446 # Look at the argument we got. We use all the common list separators.
3447 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3448 for pkg
in $enableval; do
3450 if test "X$pkg" = "X$p"; then
3461 # Check whether --enable-fast-install or --disable-fast-install was given.
3462 if test "${enable_fast_install+set}" = set; then
3463 enableval
="$enable_fast_install"
3464 p
=${PACKAGE-default}
3466 yes) enable_fast_install
=yes ;;
3467 no
) enable_fast_install
=no
;;
3469 enable_fast_install
=no
3470 # Look at the argument we got. We use all the common list separators.
3471 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3472 for pkg
in $enableval; do
3474 if test "X$pkg" = "X$p"; then
3475 enable_fast_install
=yes
3482 enable_fast_install
=yes
3485 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3486 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3487 if test "${lt_cv_path_SED+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 # Loop through the user's path and test for sed and gsed.
3491 # Then use that list of sed's as ones to test for truncation.
3492 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3496 test -z "$as_dir" && as_dir
=.
3497 for lt_ac_prog
in sed gsed
; do
3498 for ac_exec_ext
in '' $ac_executable_extensions; do
3499 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3500 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3508 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3509 # along with /bin/sed that truncates output.
3510 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
3511 test ! -f $lt_ac_sed && continue
3512 cat /dev
/null
> conftest.
in
3514 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
3515 # Check for GNU sed and select it if it is found.
3516 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
3517 lt_cv_path_SED
=$lt_ac_sed
3521 cat conftest.
in conftest.
in >conftest.tmp
3522 mv conftest.tmp conftest.
in
3523 cp conftest.
in conftest.
nl
3525 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
3526 cmp -s conftest.out conftest.
nl ||
break
3527 # 10000 chars as input seems more than enough
3528 test $lt_ac_count -gt 10 && break
3529 lt_ac_count
=`expr $lt_ac_count + 1`
3530 if test $lt_ac_count -gt $lt_ac_max; then
3531 lt_ac_max
=$lt_ac_count
3532 lt_cv_path_SED
=$lt_ac_sed
3541 echo "$as_me:$LINENO: result: $SED" >&5
3542 echo "${ECHO_T}$SED" >&6
3544 echo "$as_me:$LINENO: checking for egrep" >&5
3545 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3546 if test "${ac_cv_prog_egrep+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3550 then ac_cv_prog_egrep
='grep -E'
3551 else ac_cv_prog_egrep
='egrep'
3554 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3555 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3556 EGREP
=$ac_cv_prog_egrep
3560 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3561 if test "${with_gnu_ld+set}" = set; then
3562 withval
="$with_gnu_ld"
3563 test "$withval" = no || with_gnu_ld
=yes
3568 if test "$GCC" = yes; then
3569 # Check if gcc -print-prog-name=ld gives a path.
3570 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3571 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3574 # gcc leaves a trailing carriage return which upsets mingw
3575 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3577 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
3580 # Accept absolute paths.
3582 re_direlt
='/[^/][^/]*/\.\./'
3583 # Canonicalize the pathname of ld
3584 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
3585 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
3586 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3588 test -z "$LD" && LD
="$ac_prog"
3591 # If it fails, then pretend we aren't using GCC.
3595 # If it is relative, then search for the first ld in PATH.
3599 elif test "$with_gnu_ld" = yes; then
3600 echo "$as_me:$LINENO: checking for GNU ld" >&5
3601 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3603 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3604 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3606 if test "${lt_cv_path_LD+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 if test -z "$LD"; then
3610 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3611 for ac_dir
in $PATH; do
3613 test -z "$ac_dir" && ac_dir
=.
3614 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
3615 lt_cv_path_LD
="$ac_dir/$ac_prog"
3616 # Check to see if the program is GNU ld. I'd rather use --version,
3617 # but apparently some variants of GNU ld only accept -v.
3618 # Break only if it was the GNU/non-GNU ld that we prefer.
3619 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3620 *GNU
* |
*'with BFD'*)
3621 test "$with_gnu_ld" != no
&& break
3624 test "$with_gnu_ld" != yes && break
3631 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
3636 if test -n "$LD"; then
3637 echo "$as_me:$LINENO: result: $LD" >&5
3638 echo "${ECHO_T}$LD" >&6
3640 echo "$as_me:$LINENO: result: no" >&5
3641 echo "${ECHO_T}no" >&6
3643 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3644 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3645 { (exit 1); exit 1; }; }
3646 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3647 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3648 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3652 case `$LD -v 2>&1 </dev/null` in
3653 *GNU
* |
*'with BFD'*)
3654 lt_cv_prog_gnu_ld
=yes
3657 lt_cv_prog_gnu_ld
=no
3661 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3662 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3663 with_gnu_ld
=$lt_cv_prog_gnu_ld
3666 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3667 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3668 if test "${lt_cv_ld_reload_flag+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 lt_cv_ld_reload_flag
='-r'
3673 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3674 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3675 reload_flag
=$lt_cv_ld_reload_flag
3676 case $reload_flag in
3678 *) reload_flag
=" $reload_flag" ;;
3680 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
3683 if test "$GCC" = yes; then
3684 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3686 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
3691 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3692 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3693 if test "${lt_cv_path_NM+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 if test -n "$NM"; then
3697 # Let the user override the test.
3700 lt_nm_to_check
="${ac_tool_prefix}nm"
3701 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3702 lt_nm_to_check
="$lt_nm_to_check nm"
3704 for lt_tmp_nm
in $lt_nm_to_check; do
3705 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3706 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
3708 test -z "$ac_dir" && ac_dir
=.
3709 tmp_nm
="$ac_dir/$lt_tmp_nm"
3710 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
3711 # Check to see if the nm accepts a BSD-compat flag.
3712 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3713 # nm: unknown option "B" ignored
3714 # Tru64's nm complains that /dev/null is an invalid object file
3715 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3716 */dev
/null
* |
*'Invalid file or object type'*)
3717 lt_cv_path_NM
="$tmp_nm -B"
3721 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3723 lt_cv_path_NM
="$tmp_nm -p"
3727 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3728 continue # so that we can try to find one that supports BSD flags
3737 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
3740 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3741 echo "${ECHO_T}$lt_cv_path_NM" >&6
3744 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3745 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3747 if test "$LN_S" = "ln -s"; then
3748 echo "$as_me:$LINENO: result: yes" >&5
3749 echo "${ECHO_T}yes" >&6
3751 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3752 echo "${ECHO_T}no, using $LN_S" >&6
3755 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3756 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3757 if test "${lt_cv_deplibs_check_method+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 lt_cv_file_magic_cmd
='$MAGIC_CMD'
3761 lt_cv_file_magic_test_file
=
3762 lt_cv_deplibs_check_method
='unknown'
3763 # Need to set the preceding variable on all platforms that support
3764 # interlibrary dependencies.
3765 # 'none' -- dependencies not supported.
3766 # `unknown' -- same as none, but documents that we really don't know.
3767 # 'pass_all' -- all dependencies passed with no checks.
3768 # 'test_compile' -- check by making test program.
3769 # 'file_magic [[regex]]' -- check by looking for files in library path
3770 # which responds to the $file_magic_cmd with a given extended regex.
3771 # If you have `file' or equivalent on your system and you're not sure
3772 # whether `pass_all' will *always* work, you probably want this one.
3776 lt_cv_deplibs_check_method
=pass_all
3780 lt_cv_deplibs_check_method
=pass_all
3784 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3785 lt_cv_file_magic_cmd
='/usr/bin/file -L'
3786 lt_cv_file_magic_test_file
=/shlib
/libc.so
3790 # func_win32_libid is a shell function defined in ltmain.sh
3791 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
3792 lt_cv_file_magic_cmd
='func_win32_libid'
3796 # Base MSYS/MinGW do not provide the 'file' command needed by
3797 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3798 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
3799 lt_cv_file_magic_cmd
='$OBJDUMP -f'
3802 darwin
* | rhapsody
*)
3803 lt_cv_deplibs_check_method
=pass_all
3806 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
3807 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
3810 # Not sure whether the presence of OpenBSD here was a mistake.
3811 # Let's accept both of them until this is cleared up.
3812 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3813 lt_cv_file_magic_cmd
=/usr
/bin
/file
3814 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
3818 lt_cv_deplibs_check_method
=pass_all
3823 lt_cv_deplibs_check_method
=pass_all
3826 hpux10.20
* | hpux11
*)
3827 lt_cv_file_magic_cmd
=/usr
/bin
/file
3830 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3831 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
3834 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]'
3835 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
3838 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3839 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
3845 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3846 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
3849 irix5
* | irix6
* | nonstopux
*)
3851 *-32|
*"-32 ") libmagic
=32-bit;;
3852 *-n32|
*"-n32 ") libmagic
=N32
;;
3853 *-64|
*"-64 ") libmagic
=64-bit;;
3854 *) libmagic
=never-match
;;
3856 lt_cv_deplibs_check_method
=pass_all
3859 # This must be Linux ELF.
3861 lt_cv_deplibs_check_method
=pass_all
3865 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
3866 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3868 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3873 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3874 lt_cv_file_magic_cmd
=/usr
/bin
/file
3875 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
3879 lt_cv_deplibs_check_method
=unknown
3883 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3884 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3886 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3890 osf3
* | osf4
* | osf5
*)
3891 lt_cv_deplibs_check_method
=pass_all
3895 lt_cv_deplibs_check_method
=pass_all
3899 case $host_vendor in
3901 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]'
3902 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
3905 lt_cv_deplibs_check_method
=pass_all
3908 lt_cv_file_magic_cmd
='/bin/file'
3909 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3912 lt_cv_file_magic_cmd
='/bin/file'
3913 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3914 lt_cv_file_magic_test_file
=/lib
/libc.so
3917 lt_cv_deplibs_check_method
=pass_all
3920 lt_cv_deplibs_check_method
=pass_all
3925 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
3926 lt_cv_deplibs_check_method
=pass_all
3931 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3932 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3933 file_magic_cmd
=$lt_cv_file_magic_cmd
3934 deplibs_check_method
=$lt_cv_deplibs_check_method
3935 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
3940 # If no C compiler was specified, use CC.
3943 # If no C compiler flags were specified, use CFLAGS.
3944 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
3946 # Allow CC to be a program name with arguments.
3950 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3951 if test "${enable_libtool_lock+set}" = set; then
3952 enableval
="$enable_libtool_lock"
3955 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
3957 # Some flags need to be propagated to the compiler or linker for good
3961 # Find out which ABI we are using.
3962 echo 'int i;' > conftest.
$ac_ext
3963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3964 (eval $ac_compile) 2>&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); }; then
3968 case `/usr/bin/file conftest.$ac_objext` in
3980 # Find out which ABI we are using.
3981 echo '#line 3981 "configure"' > conftest.
$ac_ext
3982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3983 (eval $ac_compile) 2>&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; then
3987 if test "$lt_cv_prog_gnu_ld" = yes; then
3988 case `/usr/bin/file conftest.$ac_objext` in
3990 LD
="${LD-ld} -melf32bsmip"
3993 LD
="${LD-ld} -melf32bmipn32"
3996 LD
="${LD-ld} -melf64bmip"
4000 case `/usr/bin/file conftest.$ac_objext` in
4016 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
4017 # Find out which ABI we are using.
4018 echo 'int i;' > conftest.
$ac_ext
4019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4020 (eval $ac_compile) 2>&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); }; then
4024 case `/usr/bin/file conftest.o` in
4028 LD
="${LD-ld} -m elf_i386"
4030 ppc64-
*linux
*|powerpc64-
*linux
*)
4031 LD
="${LD-ld} -m elf32ppclinux"
4034 LD
="${LD-ld} -m elf_s390"
4037 LD
="${LD-ld} -m elf32_sparc"
4044 LD
="${LD-ld} -m elf_x86_64"
4046 ppc
*-*linux
*|powerpc
*-*linux
*)
4047 LD
="${LD-ld} -m elf64ppc"
4050 LD
="${LD-ld} -m elf64_s390"
4053 LD
="${LD-ld} -m elf64_sparc"
4063 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4064 SAVE_CFLAGS
="$CFLAGS"
4065 CFLAGS
="$CFLAGS -belf"
4066 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4067 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4068 if test "${lt_cv_cc_needs_belf+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 ac_cpp
='$CPP $CPPFLAGS'
4073 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4074 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4075 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4077 cat >conftest.
$ac_ext <<_ACEOF
4080 cat confdefs.h
>>conftest.
$ac_ext
4081 cat >>conftest.
$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4092 rm -f conftest.
$ac_objext conftest
$ac_exeext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4094 (eval $ac_link) 2>conftest.er1
4096 grep -v '^ *+' conftest.er1
>conftest.err
4098 cat conftest.err
>&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); } &&
4101 { ac_try
='test -z "$ac_c_werror_flag"
4102 || test ! -s conftest.err'
4103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; } &&
4108 { ac_try
='test -s conftest$ac_exeext'
4109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; }; then
4114 lt_cv_cc_needs_belf
=yes
4116 echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.
$ac_ext >&5
4119 lt_cv_cc_needs_belf
=no
4121 rm -f conftest.err conftest.
$ac_objext \
4122 conftest
$ac_exeext conftest.
$ac_ext
4124 ac_cpp
='$CPP $CPPFLAGS'
4125 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4126 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4127 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4130 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4131 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4132 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
4133 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4134 CFLAGS
="$SAVE_CFLAGS"
4138 # Find out which ABI we are using.
4139 echo 'int i;' > conftest.
$ac_ext
4140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4141 (eval $ac_compile) 2>&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; then
4145 case `/usr/bin/file conftest.o` in
4147 case $lt_cv_prog_gnu_ld in
4148 yes*) LD
="${LD-ld} -m elf64_sparc" ;;
4149 *) LD
="${LD-ld} -64" ;;
4160 need_locks
="$enable_libtool_lock"
4164 ac_cpp
='$CPP $CPPFLAGS'
4165 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4168 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4169 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4170 # On Suns, sometimes $CPP names a directory.
4171 if test -n "$CPP" && test -d "$CPP"; then
4174 if test -z "$CPP"; then
4175 if test "${ac_cv_prog_CPP+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 # Double quotes because CPP needs to be expanded
4179 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4182 for ac_c_preproc_warn_flag
in '' yes
4184 # Use a header file that comes with gcc, so configuring glibc
4185 # with a fresh cross-compiler works.
4186 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4187 # <limits.h> exists even on freestanding compilers.
4188 # On the NeXT, cc -E runs the code through the compiler's parser,
4189 # not just through cpp. "Syntax error" is here to catch this case.
4190 cat >conftest.
$ac_ext <<_ACEOF
4193 cat confdefs.h
>>conftest.
$ac_ext
4194 cat >>conftest.
$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4197 # include <limits.h>
4199 # include <assert.h>
4203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4204 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4206 grep -v '^ *+' conftest.er1
>conftest.err
4208 cat conftest.err
>&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } >/dev
/null
; then
4211 if test -s conftest.err
; then
4212 ac_cpp_err
=$ac_c_preproc_warn_flag
4213 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4220 if test -z "$ac_cpp_err"; then
4223 echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.
$ac_ext >&5
4226 # Broken: fails on valid input.
4229 rm -f conftest.err conftest.
$ac_ext
4231 # OK, works on sane cases. Now check whether non-existent headers
4232 # can be detected and how.
4233 cat >conftest.
$ac_ext <<_ACEOF
4236 cat confdefs.h
>>conftest.
$ac_ext
4237 cat >>conftest.
$ac_ext <<_ACEOF
4238 /* end confdefs.h. */
4239 #include <ac_nonexistent.h>
4241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4242 (eval $ac_cpp conftest.
$ac_ext) 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); } >/dev
/null
; then
4249 if test -s conftest.err
; then
4250 ac_cpp_err
=$ac_c_preproc_warn_flag
4251 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4258 if test -z "$ac_cpp_err"; then
4259 # Broken: success on invalid input.
4262 echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.
$ac_ext >&5
4265 # Passes both tests.
4269 rm -f conftest.err conftest.
$ac_ext
4272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4273 rm -f conftest.err conftest.
$ac_ext
4274 if $ac_preproc_ok; then
4286 echo "$as_me:$LINENO: result: $CPP" >&5
4287 echo "${ECHO_T}$CPP" >&6
4289 for ac_c_preproc_warn_flag
in '' yes
4291 # Use a header file that comes with gcc, so configuring glibc
4292 # with a fresh cross-compiler works.
4293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4294 # <limits.h> exists even on freestanding compilers.
4295 # On the NeXT, cc -E runs the code through the compiler's parser,
4296 # not just through cpp. "Syntax error" is here to catch this case.
4297 cat >conftest.
$ac_ext <<_ACEOF
4300 cat confdefs.h
>>conftest.
$ac_ext
4301 cat >>conftest.
$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4304 # include <limits.h>
4306 # include <assert.h>
4310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4311 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4313 grep -v '^ *+' conftest.er1
>conftest.err
4315 cat conftest.err
>&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } >/dev
/null
; then
4318 if test -s conftest.err
; then
4319 ac_cpp_err
=$ac_c_preproc_warn_flag
4320 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4327 if test -z "$ac_cpp_err"; then
4330 echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.
$ac_ext >&5
4333 # Broken: fails on valid input.
4336 rm -f conftest.err conftest.
$ac_ext
4338 # OK, works on sane cases. Now check whether non-existent headers
4339 # can be detected and how.
4340 cat >conftest.
$ac_ext <<_ACEOF
4343 cat confdefs.h
>>conftest.
$ac_ext
4344 cat >>conftest.
$ac_ext <<_ACEOF
4345 /* end confdefs.h. */
4346 #include <ac_nonexistent.h>
4348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4349 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4351 grep -v '^ *+' conftest.er1
>conftest.err
4353 cat conftest.err
>&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } >/dev
/null
; then
4356 if test -s conftest.err
; then
4357 ac_cpp_err
=$ac_c_preproc_warn_flag
4358 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4365 if test -z "$ac_cpp_err"; then
4366 # Broken: success on invalid input.
4369 echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.
$ac_ext >&5
4372 # Passes both tests.
4376 rm -f conftest.err conftest.
$ac_ext
4379 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4380 rm -f conftest.err conftest.
$ac_ext
4381 if $ac_preproc_ok; then
4384 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4385 See \`config.log' for more details." >&5
4386 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4387 See \`config.log' for more details." >&2;}
4388 { (exit 1); exit 1; }; }
4392 ac_cpp
='$CPP $CPPFLAGS'
4393 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4398 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4399 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4400 if test "${ac_cv_header_stdc+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 cat >conftest.
$ac_ext <<_ACEOF
4406 cat confdefs.h
>>conftest.
$ac_ext
4407 cat >>conftest.
$ac_ext <<_ACEOF
4408 /* end confdefs.h. */
4422 rm -f conftest.
$ac_objext
4423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4424 (eval $ac_compile) 2>conftest.er1
4426 grep -v '^ *+' conftest.er1
>conftest.err
4428 cat conftest.err
>&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); } &&
4431 { ac_try
='test -z "$ac_c_werror_flag"
4432 || test ! -s conftest.err'
4433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); }; } &&
4438 { ac_try
='test -s conftest.$ac_objext'
4439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); }; }; then
4444 ac_cv_header_stdc
=yes
4446 echo "$as_me: failed program was:" >&5
4447 sed 's/^/| /' conftest.
$ac_ext >&5
4449 ac_cv_header_stdc
=no
4451 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4453 if test $ac_cv_header_stdc = yes; then
4454 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4455 cat >conftest.
$ac_ext <<_ACEOF
4458 cat confdefs.h
>>conftest.
$ac_ext
4459 cat >>conftest.
$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4465 $EGREP "memchr" >/dev
/null
2>&1; then
4468 ac_cv_header_stdc
=no
4474 if test $ac_cv_header_stdc = yes; then
4475 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4476 cat >conftest.
$ac_ext <<_ACEOF
4479 cat confdefs.h
>>conftest.
$ac_ext
4480 cat >>conftest.
$ac_ext <<_ACEOF
4481 /* end confdefs.h. */
4485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4486 $EGREP "free" >/dev
/null
2>&1; then
4489 ac_cv_header_stdc
=no
4495 if test $ac_cv_header_stdc = yes; then
4496 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4497 if test "$cross_compiling" = yes; then
4500 cat >conftest.
$ac_ext <<_ACEOF
4503 cat confdefs.h
>>conftest.
$ac_ext
4504 cat >>conftest.
$ac_ext <<_ACEOF
4505 /* end confdefs.h. */
4507 #if ((' ' & 0x0FF) == 0x020)
4508 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4509 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4511 # define ISLOWER(c) \
4512 (('a' <= (c) && (c) <= 'i') \
4513 || ('j' <= (c) && (c) <= 'r') \
4514 || ('s' <= (c) && (c) <= 'z'))
4515 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4518 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4523 for (i = 0; i < 256; i++)
4524 if (XOR (islower (i), ISLOWER (i))
4525 || toupper (i) != TOUPPER (i))
4530 rm -f conftest
$ac_exeext
4531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4532 (eval $ac_link) 2>&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4543 echo "$as_me: program exited with status $ac_status" >&5
4544 echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.
$ac_ext >&5
4548 ac_cv_header_stdc
=no
4550 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4554 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4555 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4556 if test $ac_cv_header_stdc = yes; then
4558 cat >>confdefs.h
<<\_ACEOF
4559 #define STDC_HEADERS 1
4564 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4574 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4575 inttypes.h stdint.h unistd.h
4577 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4578 echo "$as_me:$LINENO: checking for $ac_header" >&5
4579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 cat >conftest.
$ac_ext <<_ACEOF
4586 cat confdefs.h
>>conftest.
$ac_ext
4587 cat >>conftest.
$ac_ext <<_ACEOF
4588 /* end confdefs.h. */
4589 $ac_includes_default
4591 #include <$ac_header>
4593 rm -f conftest.
$ac_objext
4594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4595 (eval $ac_compile) 2>conftest.er1
4597 grep -v '^ *+' conftest.er1
>conftest.err
4599 cat conftest.err
>&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } &&
4602 { ac_try
='test -z "$ac_c_werror_flag"
4603 || test ! -s conftest.err'
4604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; } &&
4609 { ac_try
='test -s conftest.$ac_objext'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; }; then
4615 eval "$as_ac_Header=yes"
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.
$ac_ext >&5
4620 eval "$as_ac_Header=no"
4622 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4627 cat >>confdefs.h
<<_ACEOF
4628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4637 for ac_header
in dlfcn.h
4639 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4641 echo "$as_me:$LINENO: checking for $ac_header" >&5
4642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4649 # Is the header compilable?
4650 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4652 cat >conftest.
$ac_ext <<_ACEOF
4655 cat confdefs.h
>>conftest.
$ac_ext
4656 cat >>conftest.
$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4658 $ac_includes_default
4659 #include <$ac_header>
4661 rm -f conftest.
$ac_objext
4662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4663 (eval $ac_compile) 2>conftest.er1
4665 grep -v '^ *+' conftest.er1
>conftest.err
4667 cat conftest.err
>&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } &&
4670 { ac_try
='test -z "$ac_c_werror_flag"
4671 || test ! -s conftest.err'
4672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); }; } &&
4677 { ac_try
='test -s conftest.$ac_objext'
4678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; }; then
4683 ac_header_compiler
=yes
4685 echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.
$ac_ext >&5
4688 ac_header_compiler
=no
4690 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4691 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4692 echo "${ECHO_T}$ac_header_compiler" >&6
4694 # Is the header present?
4695 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4697 cat >conftest.
$ac_ext <<_ACEOF
4700 cat confdefs.h
>>conftest.
$ac_ext
4701 cat >>conftest.
$ac_ext <<_ACEOF
4702 /* end confdefs.h. */
4703 #include <$ac_header>
4705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4706 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4708 grep -v '^ *+' conftest.er1
>conftest.err
4710 cat conftest.err
>&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); } >/dev
/null
; then
4713 if test -s conftest.err
; then
4714 ac_cpp_err
=$ac_c_preproc_warn_flag
4715 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4722 if test -z "$ac_cpp_err"; then
4723 ac_header_preproc
=yes
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.
$ac_ext >&5
4728 ac_header_preproc
=no
4730 rm -f conftest.err conftest.
$ac_ext
4731 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4732 echo "${ECHO_T}$ac_header_preproc" >&6
4734 # So? What about this header?
4735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4741 ac_header_preproc
=yes
4744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4751 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4758 ## ------------------------------------------ ##
4759 ## Report this to the AC_PACKAGE_NAME lists. ##
4760 ## ------------------------------------------ ##
4763 sed "s/^/$as_me: WARNING: /" >&2
4766 echo "$as_me:$LINENO: checking for $ac_header" >&5
4767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4769 echo $ECHO_N "(cached) $ECHO_C" >&6
4771 eval "$as_ac_Header=\$ac_header_preproc"
4773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4778 cat >>confdefs.h
<<_ACEOF
4779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4787 ac_cpp
='$CXXCPP $CPPFLAGS'
4788 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4789 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4790 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4791 if test -n "$ac_tool_prefix"; then
4792 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
4794 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4795 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4796 echo "$as_me:$LINENO: checking for $ac_word" >&5
4797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4798 if test "${ac_cv_prog_CXX+set}" = set; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4801 if test -n "$CXX"; then
4802 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4808 test -z "$as_dir" && as_dir
=.
4809 for ac_exec_ext
in '' $ac_executable_extensions; do
4810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4811 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 if test -n "$CXX"; then
4822 echo "$as_me:$LINENO: result: $CXX" >&5
4823 echo "${ECHO_T}$CXX" >&6
4825 echo "$as_me:$LINENO: result: no" >&5
4826 echo "${ECHO_T}no" >&6
4829 test -n "$CXX" && break
4832 if test -z "$CXX"; then
4834 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
4836 # Extract the first word of "$ac_prog", so it can be a program name with args.
4837 set dummy
$ac_prog; ac_word
=$2
4838 echo "$as_me:$LINENO: checking for $ac_word" >&5
4839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4840 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4843 if test -n "$ac_ct_CXX"; then
4844 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4846 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4850 test -z "$as_dir" && as_dir
=.
4851 for ac_exec_ext
in '' $ac_executable_extensions; do
4852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4853 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4862 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4863 if test -n "$ac_ct_CXX"; then
4864 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4865 echo "${ECHO_T}$ac_ct_CXX" >&6
4867 echo "$as_me:$LINENO: result: no" >&5
4868 echo "${ECHO_T}no" >&6
4871 test -n "$ac_ct_CXX" && break
4873 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
4879 # Provide some information about the compiler.
4880 echo "$as_me:$LINENO:" \
4881 "checking for C++ compiler version" >&5
4882 ac_compiler
=`set X $ac_compile; echo $2`
4883 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4884 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }
4888 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4889 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }
4893 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4894 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }
4899 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4900 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4901 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 cat >conftest.
$ac_ext <<_ACEOF
4907 cat confdefs.h
>>conftest.
$ac_ext
4908 cat >>conftest.
$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4922 rm -f conftest.
$ac_objext
4923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4924 (eval $ac_compile) 2>conftest.er1
4926 grep -v '^ *+' conftest.er1
>conftest.err
4928 cat conftest.err
>&5
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); } &&
4931 { ac_try
='test -z "$ac_cxx_werror_flag"
4932 || test ! -s conftest.err'
4933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); }; } &&
4938 { ac_try
='test -s conftest.$ac_objext'
4939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); }; }; then
4946 echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.
$ac_ext >&5
4951 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4952 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4955 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4956 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4957 GXX
=`test $ac_compiler_gnu = yes && echo yes`
4958 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4959 ac_save_CXXFLAGS
=$CXXFLAGS
4961 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4962 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4963 if test "${ac_cv_prog_cxx_g+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4966 cat >conftest.
$ac_ext <<_ACEOF
4969 cat confdefs.h
>>conftest.
$ac_ext
4970 cat >>conftest.
$ac_ext <<_ACEOF
4971 /* end confdefs.h. */
4981 rm -f conftest.
$ac_objext
4982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4983 (eval $ac_compile) 2>conftest.er1
4985 grep -v '^ *+' conftest.er1
>conftest.err
4987 cat conftest.err
>&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } &&
4990 { ac_try
='test -z "$ac_cxx_werror_flag"
4991 || test ! -s conftest.err'
4992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); }; } &&
4997 { ac_try
='test -s conftest.$ac_objext'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; }; then
5003 ac_cv_prog_cxx_g
=yes
5005 echo "$as_me: failed program was:" >&5
5006 sed 's/^/| /' conftest.
$ac_ext >&5
5010 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5012 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5013 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5014 if test "$ac_test_CXXFLAGS" = set; then
5015 CXXFLAGS
=$ac_save_CXXFLAGS
5016 elif test $ac_cv_prog_cxx_g = yes; then
5017 if test "$GXX" = yes; then
5023 if test "$GXX" = yes; then
5029 for ac_declaration
in \
5031 'extern "C" void std::exit (int) throw (); using std::exit;' \
5032 'extern "C" void std::exit (int); using std::exit;' \
5033 'extern "C" void exit (int) throw ();' \
5034 'extern "C" void exit (int);' \
5037 cat >conftest.
$ac_ext <<_ACEOF
5040 cat confdefs.h
>>conftest.
$ac_ext
5041 cat >>conftest.
$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5053 rm -f conftest.
$ac_objext
5054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5055 (eval $ac_compile) 2>conftest.er1
5057 grep -v '^ *+' conftest.er1
>conftest.err
5059 cat conftest.err
>&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } &&
5062 { ac_try
='test -z "$ac_cxx_werror_flag"
5063 || test ! -s conftest.err'
5064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }; } &&
5069 { ac_try
='test -s conftest.$ac_objext'
5070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }; }; then
5077 echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.
$ac_ext >&5
5082 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5083 cat >conftest.
$ac_ext <<_ACEOF
5086 cat confdefs.h
>>conftest.
$ac_ext
5087 cat >>conftest.
$ac_ext <<_ACEOF
5088 /* end confdefs.h. */
5098 rm -f conftest.
$ac_objext
5099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5100 (eval $ac_compile) 2>conftest.er1
5102 grep -v '^ *+' conftest.er1
>conftest.err
5104 cat conftest.err
>&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } &&
5107 { ac_try
='test -z "$ac_cxx_werror_flag"
5108 || test ! -s conftest.err'
5109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); }; } &&
5114 { ac_try
='test -s conftest.$ac_objext'
5115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }; }; then
5122 echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.
$ac_ext >&5
5126 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5129 if test -n "$ac_declaration"; then
5130 echo '#ifdef __cplusplus' >>confdefs.h
5131 echo $ac_declaration >>confdefs.h
5132 echo '#endif' >>confdefs.h
5136 ac_cpp
='$CXXCPP $CPPFLAGS'
5137 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5141 depcc
="$CXX" am_compiler_list
=
5143 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5144 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5145 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5149 # We make a subdir and do the tests there. Otherwise we can end up
5150 # making bogus files that we don't know about and never remove. For
5151 # instance it was reported that on HP-UX the gcc test will end up
5152 # making a dummy file named `D' -- because `-MD' means `put the output
5155 # Copy depcomp to subdir because otherwise we won't find it if we're
5156 # using a relative directory.
5157 cp "$am_depcomp" conftest.dir
5159 # We will build objects and dependencies in a subdirectory because
5160 # it helps to detect inapplicable dependency modes. For instance
5161 # both Tru64's cc and ICC support -MD to output dependencies as a
5162 # side effect of compilation, but ICC will put the dependencies in
5163 # the current directory while Tru64 will put them in the object
5167 am_cv_CXX_dependencies_compiler_type
=none
5168 if test "$am_compiler_list" = ""; then
5169 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5171 for depmode
in $am_compiler_list; do
5172 # Setup a source with many dependencies, because some compilers
5173 # like to wrap large dependency lists on column 80 (with \), and
5174 # we should not choose a depcomp mode which is confused by this.
5176 # We need to recreate these files for each test, as the compiler may
5177 # overwrite some of them when testing with obscure command lines.
5178 # This happens at least with the AIX C compiler.
5180 for i
in 1 2 3 4 5 6; do
5181 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5182 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5183 # Solaris 8's {/usr,}/bin/sh.
5184 touch sub
/conftst
$i.h
5186 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5190 # after this tag, mechanisms are not by side-effect, so they'll
5191 # only be used when explicitly requested
5192 if test "x$enable_dependency_tracking" = xyes
; then
5200 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5201 # mode. It turns out that the SunPro C++ compiler does not properly
5202 # handle `-M -o', and we need to detect this.
5203 if depmode
=$depmode \
5204 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
5205 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5206 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
5207 >/dev
/null
2>conftest.err
&&
5208 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5209 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
5210 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5211 # icc doesn't choke on unknown options, it will just issue warnings
5212 # or remarks (even with -Werror). So we grep stderr for any message
5213 # that says an option was ignored or not supported.
5214 # When given -MP, icc 7.0 and 7.1 complain thusly:
5215 # icc: Command line warning: ignoring option '-M'; no argument required
5216 # The diagnosis changed in icc 8.0:
5217 # icc: Command line remark: option '-MP' not supported
5218 if (grep 'ignoring option' conftest.err ||
5219 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5220 am_cv_CXX_dependencies_compiler_type
=$depmode
5229 am_cv_CXX_dependencies_compiler_type
=none
5233 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5234 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5235 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
5240 test "x$enable_dependency_tracking" != xno \
5241 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
5242 am__fastdepCXX_TRUE
=
5243 am__fastdepCXX_FALSE
='#'
5245 am__fastdepCXX_TRUE
='#'
5246 am__fastdepCXX_FALSE
=
5252 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5253 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5254 (test "X$CXX" != "Xg++"))) ; then
5256 ac_cpp
='$CXXCPP $CPPFLAGS'
5257 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5258 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5259 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5260 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5261 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5262 if test -z "$CXXCPP"; then
5263 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5266 # Double quotes because CXXCPP needs to be expanded
5267 for CXXCPP
in "$CXX -E" "/lib/cpp"
5270 for ac_cxx_preproc_warn_flag
in '' yes
5272 # Use a header file that comes with gcc, so configuring glibc
5273 # with a fresh cross-compiler works.
5274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5275 # <limits.h> exists even on freestanding compilers.
5276 # On the NeXT, cc -E runs the code through the compiler's parser,
5277 # not just through cpp. "Syntax error" is here to catch this case.
5278 cat >conftest.
$ac_ext <<_ACEOF
5281 cat confdefs.h
>>conftest.
$ac_ext
5282 cat >>conftest.
$ac_ext <<_ACEOF
5283 /* end confdefs.h. */
5285 # include <limits.h>
5287 # include <assert.h>
5291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5292 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5294 grep -v '^ *+' conftest.er1
>conftest.err
5296 cat conftest.err
>&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } >/dev
/null
; then
5299 if test -s conftest.err
; then
5300 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5301 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5308 if test -z "$ac_cpp_err"; then
5311 echo "$as_me: failed program was:" >&5
5312 sed 's/^/| /' conftest.
$ac_ext >&5
5314 # Broken: fails on valid input.
5317 rm -f conftest.err conftest.
$ac_ext
5319 # OK, works on sane cases. Now check whether non-existent headers
5320 # can be detected and how.
5321 cat >conftest.
$ac_ext <<_ACEOF
5324 cat confdefs.h
>>conftest.
$ac_ext
5325 cat >>conftest.
$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327 #include <ac_nonexistent.h>
5329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5330 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5332 grep -v '^ *+' conftest.er1
>conftest.err
5334 cat conftest.err
>&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } >/dev
/null
; then
5337 if test -s conftest.err
; then
5338 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5339 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5346 if test -z "$ac_cpp_err"; then
5347 # Broken: success on invalid input.
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.
$ac_ext >&5
5353 # Passes both tests.
5357 rm -f conftest.err conftest.
$ac_ext
5360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5361 rm -f conftest.err conftest.
$ac_ext
5362 if $ac_preproc_ok; then
5367 ac_cv_prog_CXXCPP
=$CXXCPP
5370 CXXCPP
=$ac_cv_prog_CXXCPP
5372 ac_cv_prog_CXXCPP
=$CXXCPP
5374 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5375 echo "${ECHO_T}$CXXCPP" >&6
5377 for ac_cxx_preproc_warn_flag
in '' yes
5379 # Use a header file that comes with gcc, so configuring glibc
5380 # with a fresh cross-compiler works.
5381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5382 # <limits.h> exists even on freestanding compilers.
5383 # On the NeXT, cc -E runs the code through the compiler's parser,
5384 # not just through cpp. "Syntax error" is here to catch this case.
5385 cat >conftest.
$ac_ext <<_ACEOF
5388 cat confdefs.h
>>conftest.
$ac_ext
5389 cat >>conftest.
$ac_ext <<_ACEOF
5390 /* end confdefs.h. */
5392 # include <limits.h>
5394 # include <assert.h>
5398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5399 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5401 grep -v '^ *+' conftest.er1
>conftest.err
5403 cat conftest.err
>&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } >/dev
/null
; then
5406 if test -s conftest.err
; then
5407 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5408 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5415 if test -z "$ac_cpp_err"; then
5418 echo "$as_me: failed program was:" >&5
5419 sed 's/^/| /' conftest.
$ac_ext >&5
5421 # Broken: fails on valid input.
5424 rm -f conftest.err conftest.
$ac_ext
5426 # OK, works on sane cases. Now check whether non-existent headers
5427 # can be detected and how.
5428 cat >conftest.
$ac_ext <<_ACEOF
5431 cat confdefs.h
>>conftest.
$ac_ext
5432 cat >>conftest.
$ac_ext <<_ACEOF
5433 /* end confdefs.h. */
5434 #include <ac_nonexistent.h>
5436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5437 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5439 grep -v '^ *+' conftest.er1
>conftest.err
5441 cat conftest.err
>&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } >/dev
/null
; then
5444 if test -s conftest.err
; then
5445 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5446 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5453 if test -z "$ac_cpp_err"; then
5454 # Broken: success on invalid input.
5457 echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.
$ac_ext >&5
5460 # Passes both tests.
5464 rm -f conftest.err conftest.
$ac_ext
5467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5468 rm -f conftest.err conftest.
$ac_ext
5469 if $ac_preproc_ok; then
5472 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5473 See \`config.log' for more details." >&5
5474 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5475 See \`config.log' for more details." >&2;}
5476 { (exit 1); exit 1; }; }
5480 ac_cpp
='$CXXCPP $CPPFLAGS'
5481 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5482 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5483 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5489 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5490 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5491 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
5492 if test -n "$ac_tool_prefix"; then
5493 for ac_prog
in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5496 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5497 echo "$as_me:$LINENO: checking for $ac_word" >&5
5498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5499 if test "${ac_cv_prog_F77+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 if test -n "$F77"; then
5503 ac_cv_prog_F77
="$F77" # Let the user override the test.
5505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5509 test -z "$as_dir" && as_dir
=.
5510 for ac_exec_ext
in '' $ac_executable_extensions; do
5511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5512 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
5513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 if test -n "$F77"; then
5523 echo "$as_me:$LINENO: result: $F77" >&5
5524 echo "${ECHO_T}$F77" >&6
5526 echo "$as_me:$LINENO: result: no" >&5
5527 echo "${ECHO_T}no" >&6
5530 test -n "$F77" && break
5533 if test -z "$F77"; then
5535 for ac_prog
in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5537 # Extract the first word of "$ac_prog", so it can be a program name with args.
5538 set dummy
$ac_prog; ac_word
=$2
5539 echo "$as_me:$LINENO: checking for $ac_word" >&5
5540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5541 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 if test -n "$ac_ct_F77"; then
5545 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
5547 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5551 test -z "$as_dir" && as_dir
=.
5552 for ac_exec_ext
in '' $ac_executable_extensions; do
5553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5554 ac_cv_prog_ac_ct_F77
="$ac_prog"
5555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5563 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
5564 if test -n "$ac_ct_F77"; then
5565 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5566 echo "${ECHO_T}$ac_ct_F77" >&6
5568 echo "$as_me:$LINENO: result: no" >&5
5569 echo "${ECHO_T}no" >&6
5572 test -n "$ac_ct_F77" && break
5579 # Provide some information about the compiler.
5580 echo "$as_me:5580:" \
5581 "checking for Fortran 77 compiler version" >&5
5582 ac_compiler
=`set X $ac_compile; echo $2`
5583 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5584 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); }
5588 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5589 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }
5593 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5594 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }
5600 # If we don't use `.F' as extension, the preprocessor is not run on the
5601 # input file. (Note that this only needs to work for GNU compilers.)
5604 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5605 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5606 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 cat >conftest.
$ac_ext <<_ACEOF
5617 rm -f conftest.
$ac_objext
5618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5619 (eval $ac_compile) 2>conftest.er1
5621 grep -v '^ *+' conftest.er1
>conftest.err
5623 cat conftest.err
>&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } &&
5626 { ac_try
='test -z "$ac_f77_werror_flag"
5627 || test ! -s conftest.err'
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; } &&
5633 { ac_try
='test -s conftest.$ac_objext'
5634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; }; then
5641 echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.
$ac_ext >&5
5646 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5647 ac_cv_f77_compiler_gnu
=$ac_compiler_gnu
5650 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5651 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5653 ac_test_FFLAGS
=${FFLAGS+set}
5654 ac_save_FFLAGS
=$FFLAGS
5656 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5657 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5658 if test "${ac_cv_prog_f77_g+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5662 cat >conftest.
$ac_ext <<_ACEOF
5667 rm -f conftest.
$ac_objext
5668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5669 (eval $ac_compile) 2>conftest.er1
5671 grep -v '^ *+' conftest.er1
>conftest.err
5673 cat conftest.err
>&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } &&
5676 { ac_try
='test -z "$ac_f77_werror_flag"
5677 || test ! -s conftest.err'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; } &&
5683 { ac_try
='test -s conftest.$ac_objext'
5684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; }; then
5689 ac_cv_prog_f77_g
=yes
5691 echo "$as_me: failed program was:" >&5
5692 sed 's/^/| /' conftest.
$ac_ext >&5
5696 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5699 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5700 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5701 if test "$ac_test_FFLAGS" = set; then
5702 FFLAGS
=$ac_save_FFLAGS
5703 elif test $ac_cv_prog_f77_g = yes; then
5704 if test "x$ac_cv_f77_compiler_gnu" = xyes
; then
5710 if test "x$ac_cv_f77_compiler_gnu" = xyes
; then
5717 G77
=`test $ac_compiler_gnu = yes && echo yes`
5719 ac_cpp
='$CPP $CPPFLAGS'
5720 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5721 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5722 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5726 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5728 # find the maximum length of command line arguments
5729 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5730 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5731 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5739 # On DJGPP, this test can blow up pretty badly due to problems in libc
5740 # (any single argument exceeding 2000 bytes causes a buffer overrun
5741 # during glob expansion). Even if it were fixed, the result of this
5742 # check would be larger than it should be.
5743 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5747 # Under GNU Hurd, this test is not required because there is
5748 # no limit to the length of command line arguments.
5749 # Libtool will interpret -1 as no limit whatsoever
5750 lt_cv_sys_max_cmd_len
=-1;
5754 # On Win9x/ME, this test blows up -- it succeeds, but takes
5755 # about 5 minutes as the teststring grows exponentially.
5756 # Worse, since 9x/ME are not pre-emptively multitasking,
5757 # you end up with a "frozen" computer, even though with patience
5758 # the test eventually succeeds (with a max line length of 256k).
5759 # Instead, let's just punt: use the minimum linelength reported by
5760 # all of the supported platforms: 8192 (on NT/2K/XP).
5761 lt_cv_sys_max_cmd_len
=8192;
5765 # On AmigaOS with pdksh, this test takes hours, literally.
5766 # So we just punt and use a minimum line length of 8192.
5767 lt_cv_sys_max_cmd_len
=8192;
5770 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5771 # This has been around since 386BSD, at least. Likely further.
5772 if test -x /sbin
/sysctl
; then
5773 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5774 elif test -x /usr
/sbin
/sysctl
; then
5775 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5777 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5779 # And add a safety zone
5780 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5781 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5785 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5786 lt_cv_sys_max_cmd_len
=196608
5790 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5791 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5792 # nice to cause kernel panics so lets avoid the loop below.
5793 # First set a reasonable default.
5794 lt_cv_sys_max_cmd_len
=16384
5796 if test -x /sbin
/sysconfig
; then
5797 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5798 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5803 lt_cv_sys_max_cmd_len
=102400
5805 sysv5
* | sco5v6
* | sysv4.2uw2
*)
5806 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5807 if test -n "$kargmax"; then
5808 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
5810 lt_cv_sys_max_cmd_len
=32768
5814 # If test is not a shell built-in, we'll probably end up computing a
5815 # maximum length that is only half of the actual maximum length, but
5817 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5818 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5819 = "XX$teststring") >/dev
/null
2>&1 &&
5820 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
5821 lt_cv_sys_max_cmd_len
=$new_result &&
5822 test $i != 17 # 1/2 MB should be enough
5825 teststring
=$teststring$teststring
5828 # Add a significant safety factor because C++ compilers can tack on massive
5829 # amounts of additional arguments before passing them to the linker.
5830 # It appears as though 1/2 is a usable value.
5831 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5837 if test -n $lt_cv_sys_max_cmd_len ; then
5838 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5839 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5841 echo "$as_me:$LINENO: result: none" >&5
5842 echo "${ECHO_T}none" >&6
5848 # Check for command to grab the raw symbol name followed by C symbol from nm.
5849 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5850 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5851 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 # These are sane defaults that work on at least a few old systems.
5856 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5858 # Character class describing NM global symbol codes.
5859 symcode
='[BCDEGRST]'
5861 # Regexp to match symbols that can be accessed directly from C.
5862 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
5864 # Transform an extracted symbol line into a proper C declaration
5865 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5867 # Transform an extracted symbol line into symbol name and symbol address
5868 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'"
5870 # Define system-specific variables.
5875 cygwin
* | mingw
* | pw32
*)
5876 symcode
='[ABCDGISTW]'
5878 hpux
*) # Its linker distinguishes data from code symbols
5879 if test "$host_cpu" = ia64
; then
5880 symcode
='[ABCDEGRST]'
5882 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5883 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5886 if test "$host_cpu" = ia64
; then
5887 symcode
='[ABCDGIRSTW]'
5888 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5889 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'"
5893 symcode
='[BCDEGRST]'
5896 symcode
='[BCDEGQRST]'
5907 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
5915 # Handle CRLF in mingw tool chain
5919 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5923 # If we're using GNU nm, then use its standard symbol codes.
5924 case `$NM -V 2>&1` in
5925 *GNU
* |
*'with BFD'*)
5926 symcode
='[ABCDGIRSTW]' ;;
5929 # Try without a prefix undercore, then with it.
5930 for ac_symprfx
in "" "_"; do
5932 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5933 symxfrm
="\\1 $ac_symprfx\\2 \\2"
5935 # Write the raw and C identifiers.
5936 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5938 # Check to see that the pipe works correctly.
5942 cat > conftest.
$ac_ext <<EOF
5947 void nm_test_func(){}
5951 int main(){nm_test_var='a';nm_test_func();return(0);}
5954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5955 (eval $ac_compile) 2>&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; then
5959 # Now try to grab the symbols.
5961 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5962 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } && test -s "$nlist"; then
5966 # Try sorting and uniquifying the output.
5967 if sort "$nlist" |
uniq > "$nlist"T
; then
5968 mv -f "$nlist"T
"$nlist"
5973 # Make sure that we snagged all the symbols we need.
5974 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
5975 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
5976 cat <<EOF > conftest.$ac_ext
5982 # Now generate the symbol file.
5983 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5985 cat <<EOF >> conftest.$ac_ext
5986 #if defined (__STDC__) && __STDC__
5987 # define lt_ptr_t void *
5989 # define lt_ptr_t char *
5993 /* The mapping between symbol names and symbols. */
5998 lt_preloaded_symbols[] =
6001 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
6002 cat <<\EOF
>> conftest.
$ac_ext
6010 # Now try linking the two files.
6011 mv conftest.
$ac_objext conftstm.
$ac_objext
6012 lt_save_LIBS
="$LIBS"
6013 lt_save_CFLAGS
="$CFLAGS"
6014 LIBS
="conftstm.$ac_objext"
6015 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6017 (eval $ac_link) 2>&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
6023 LIBS
="$lt_save_LIBS"
6024 CFLAGS
="$lt_save_CFLAGS"
6026 echo "cannot find nm_test_func in $nlist" >&5
6029 echo "cannot find nm_test_var in $nlist" >&5
6032 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6035 echo "$progname: failed program was:" >&5
6036 cat conftest.
$ac_ext >&5
6038 rm -f conftest
* conftst
*
6040 # Do not use the global_symbol_pipe unless it works.
6041 if test "$pipe_works" = yes; then
6044 lt_cv_sys_global_symbol_pipe
=
6050 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6051 lt_cv_sys_global_symbol_to_cdecl
=
6053 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6054 echo "$as_me:$LINENO: result: failed" >&5
6055 echo "${ECHO_T}failed" >&6
6057 echo "$as_me:$LINENO: result: ok" >&5
6058 echo "${ECHO_T}ok" >&6
6061 echo "$as_me:$LINENO: checking for objdir" >&5
6062 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6063 if test "${lt_cv_objdir+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6066 rm -f .libs
2>/dev
/null
6067 mkdir .libs
2>/dev
/null
6068 if test -d .libs
; then
6071 # MS-DOS does not allow filenames that begin with a dot.
6074 rmdir .libs
2>/dev
/null
6076 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6077 echo "${ECHO_T}$lt_cv_objdir" >&6
6078 objdir
=$lt_cv_objdir
6086 # AIX sometimes has problems with the GCC collect2 program. For some
6087 # reason, if we set the COLLECT_NAMES environment variable, the problems
6088 # vanish in a puff of smoke.
6089 if test "X${COLLECT_NAMES+set}" != Xset
; then
6091 export COLLECT_NAMES
6096 # Sed substitution that helps us do robust quoting. It backslashifies
6097 # metacharacters that are still active within double-quoted strings.
6098 Xsed
='sed -e 1s/^X//'
6099 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
6101 # Same as above, but do not quote variable references.
6102 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
6104 # Sed substitution to delay expansion of an escaped shell variable in a
6105 # double_quote_subst'ed string.
6106 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
6108 # Sed substitution to avoid accidental globbing in evaled expressions
6109 no_glob_subst
='s/\*/\\\*/g'
6115 default_ofile
=libtool
6116 can_build_shared
=yes
6118 # All known linkers require a `.a' archive for static linking (except MSVC,
6119 # which needs '.lib').
6121 ltmain
="$ac_aux_dir/ltmain.sh"
6122 ofile
="$default_ofile"
6123 with_gnu_ld
="$lt_cv_prog_gnu_ld"
6125 if test -n "$ac_tool_prefix"; then
6126 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6127 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6128 echo "$as_me:$LINENO: checking for $ac_word" >&5
6129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6130 if test "${ac_cv_prog_AR+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6133 if test -n "$AR"; then
6134 ac_cv_prog_AR
="$AR" # Let the user override the test.
6136 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6140 test -z "$as_dir" && as_dir
=.
6141 for ac_exec_ext
in '' $ac_executable_extensions; do
6142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6143 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6153 if test -n "$AR"; then
6154 echo "$as_me:$LINENO: result: $AR" >&5
6155 echo "${ECHO_T}$AR" >&6
6157 echo "$as_me:$LINENO: result: no" >&5
6158 echo "${ECHO_T}no" >&6
6162 if test -z "$ac_cv_prog_AR"; then
6164 # Extract the first word of "ar", so it can be a program name with args.
6165 set dummy
ar; ac_word
=$2
6166 echo "$as_me:$LINENO: checking for $ac_word" >&5
6167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6168 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 if test -n "$ac_ct_AR"; then
6172 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6178 test -z "$as_dir" && as_dir
=.
6179 for ac_exec_ext
in '' $ac_executable_extensions; do
6180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6181 ac_cv_prog_ac_ct_AR
="ar"
6182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6188 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR
="false"
6191 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6192 if test -n "$ac_ct_AR"; then
6193 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6194 echo "${ECHO_T}$ac_ct_AR" >&6
6196 echo "$as_me:$LINENO: result: no" >&5
6197 echo "${ECHO_T}no" >&6
6205 if test -n "$ac_tool_prefix"; then
6206 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6207 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6208 echo "$as_me:$LINENO: checking for $ac_word" >&5
6209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6210 if test "${ac_cv_prog_RANLIB+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6213 if test -n "$RANLIB"; then
6214 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6220 test -z "$as_dir" && as_dir
=.
6221 for ac_exec_ext
in '' $ac_executable_extensions; do
6222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6223 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6232 RANLIB
=$ac_cv_prog_RANLIB
6233 if test -n "$RANLIB"; then
6234 echo "$as_me:$LINENO: result: $RANLIB" >&5
6235 echo "${ECHO_T}$RANLIB" >&6
6237 echo "$as_me:$LINENO: result: no" >&5
6238 echo "${ECHO_T}no" >&6
6242 if test -z "$ac_cv_prog_RANLIB"; then
6243 ac_ct_RANLIB
=$RANLIB
6244 # Extract the first word of "ranlib", so it can be a program name with args.
6245 set dummy ranlib
; ac_word
=$2
6246 echo "$as_me:$LINENO: checking for $ac_word" >&5
6247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6248 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 if test -n "$ac_ct_RANLIB"; then
6252 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6258 test -z "$as_dir" && as_dir
=.
6259 for ac_exec_ext
in '' $ac_executable_extensions; do
6260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6261 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
6271 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6272 if test -n "$ac_ct_RANLIB"; then
6273 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6274 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6276 echo "$as_me:$LINENO: result: no" >&5
6277 echo "${ECHO_T}no" >&6
6280 RANLIB
=$ac_ct_RANLIB
6282 RANLIB
="$ac_cv_prog_RANLIB"
6285 if test -n "$ac_tool_prefix"; then
6286 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6287 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6288 echo "$as_me:$LINENO: checking for $ac_word" >&5
6289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6290 if test "${ac_cv_prog_STRIP+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 if test -n "$STRIP"; then
6294 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6300 test -z "$as_dir" && as_dir
=.
6301 for ac_exec_ext
in '' $ac_executable_extensions; do
6302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6303 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 STRIP
=$ac_cv_prog_STRIP
6313 if test -n "$STRIP"; then
6314 echo "$as_me:$LINENO: result: $STRIP" >&5
6315 echo "${ECHO_T}$STRIP" >&6
6317 echo "$as_me:$LINENO: result: no" >&5
6318 echo "${ECHO_T}no" >&6
6322 if test -z "$ac_cv_prog_STRIP"; then
6324 # Extract the first word of "strip", so it can be a program name with args.
6325 set dummy strip
; ac_word
=$2
6326 echo "$as_me:$LINENO: checking for $ac_word" >&5
6327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6328 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 if test -n "$ac_ct_STRIP"; then
6332 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6334 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6338 test -z "$as_dir" && as_dir
=.
6339 for ac_exec_ext
in '' $ac_executable_extensions; do
6340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6341 ac_cv_prog_ac_ct_STRIP
="strip"
6342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6348 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
6351 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6352 if test -n "$ac_ct_STRIP"; then
6353 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6354 echo "${ECHO_T}$ac_ct_STRIP" >&6
6356 echo "$as_me:$LINENO: result: no" >&5
6357 echo "${ECHO_T}no" >&6
6362 STRIP
="$ac_cv_prog_STRIP"
6367 old_CFLAGS
="$CFLAGS"
6369 # Set sane defaults for various variables
6370 test -z "$AR" && AR
=ar
6371 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6372 test -z "$AS" && AS
=as
6373 test -z "$CC" && CC
=cc
6374 test -z "$LTCC" && LTCC
=$CC
6375 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
6376 test -z "$DLLTOOL" && DLLTOOL
=dlltool
6377 test -z "$LD" && LD
=ld
6378 test -z "$LN_S" && LN_S
="ln -s"
6379 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
6380 test -z "$NM" && NM
=nm
6381 test -z "$SED" && SED
=sed
6382 test -z "$OBJDUMP" && OBJDUMP
=objdump
6383 test -z "$RANLIB" && RANLIB
=:
6384 test -z "$STRIP" && STRIP
=:
6385 test -z "$ac_objext" && ac_objext
=o
6387 # Determine commands to create old-style static archives.
6388 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6389 old_postinstall_cmds
='chmod 644 $oldlib'
6390 old_postuninstall_cmds
=
6392 if test -n "$RANLIB"; then
6395 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6398 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6401 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6404 for cc_temp
in $compiler""; do
6406 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
6407 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
6412 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6415 # Only perform the check for file, if the check method requires it
6416 case $deplibs_check_method in
6418 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6419 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6420 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6421 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6422 echo $ECHO_N "(cached) $ECHO_C" >&6
6426 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6429 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6430 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6431 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6432 for ac_dir
in $ac_dummy; do
6434 test -z "$ac_dir" && ac_dir
=.
6435 if test -f $ac_dir/${ac_tool_prefix}file; then
6436 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
6437 if test -n "$file_magic_test_file"; then
6438 case $deplibs_check_method in
6440 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6441 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6442 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6443 $EGREP "$file_magic_regex" > /dev
/null
; then
6448 *** Warning: the command libtool uses to detect shared libraries,
6449 *** $file_magic_cmd, produces output that libtool cannot recognize.
6450 *** The result is that libtool may fail to recognize shared libraries
6451 *** as such. This will affect the creation of libtool libraries that
6452 *** depend on shared libraries, but programs linked with such libtool
6453 *** libraries will work regardless of this problem. Nevertheless, you
6454 *** may want to report the problem to your system manager and/or to
6455 *** bug-libtool@gnu.org
6465 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6470 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6471 if test -n "$MAGIC_CMD"; then
6472 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6473 echo "${ECHO_T}$MAGIC_CMD" >&6
6475 echo "$as_me:$LINENO: result: no" >&5
6476 echo "${ECHO_T}no" >&6
6479 if test -z "$lt_cv_path_MAGIC_CMD"; then
6480 if test -n "$ac_tool_prefix"; then
6481 echo "$as_me:$LINENO: checking for file" >&5
6482 echo $ECHO_N "checking for file... $ECHO_C" >&6
6483 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6488 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6491 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6492 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6493 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6494 for ac_dir
in $ac_dummy; do
6496 test -z "$ac_dir" && ac_dir
=.
6497 if test -f $ac_dir/file; then
6498 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
6499 if test -n "$file_magic_test_file"; then
6500 case $deplibs_check_method in
6502 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6503 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6504 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6505 $EGREP "$file_magic_regex" > /dev
/null
; then
6510 *** Warning: the command libtool uses to detect shared libraries,
6511 *** $file_magic_cmd, produces output that libtool cannot recognize.
6512 *** The result is that libtool may fail to recognize shared libraries
6513 *** as such. This will affect the creation of libtool libraries that
6514 *** depend on shared libraries, but programs linked with such libtool
6515 *** libraries will work regardless of this problem. Nevertheless, you
6516 *** may want to report the problem to your system manager and/or to
6517 *** bug-libtool@gnu.org
6527 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6532 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6533 if test -n "$MAGIC_CMD"; then
6534 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6535 echo "${ECHO_T}$MAGIC_CMD" >&6
6537 echo "$as_me:$LINENO: result: no" >&5
6538 echo "${ECHO_T}no" >&6
6553 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6554 if test "${enable_libtool_lock+set}" = set; then
6555 enableval
="$enable_libtool_lock"
6558 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6561 # Check whether --with-pic or --without-pic was given.
6562 if test "${with_pic+set}" = set; then
6568 test -z "$pic_mode" && pic_mode
=default
6570 # Use C for the default configuration in the libtool script
6574 ac_cpp
='$CPP $CPPFLAGS'
6575 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6576 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6577 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6580 # Source file extension for C test sources.
6583 # Object file extension for compiled C test sources.
6587 # Code to be used in simple compile tests
6588 lt_simple_compile_test_code
="int some_variable = 0;\n"
6590 # Code to be used in simple link tests
6591 lt_simple_link_test_code
='int main(){return(0);}\n'
6594 # If no C compiler was specified, use CC.
6597 # If no C compiler flags were specified, use CFLAGS.
6598 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
6600 # Allow CC to be a program name with arguments.
6604 # save warnings/boilerplate of simple test code
6605 ac_outfile
=conftest.
$ac_objext
6606 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
6607 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
6608 _lt_compiler_boilerplate
=`cat conftest.err`
6611 ac_outfile
=conftest.
$ac_objext
6612 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
6613 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
6614 _lt_linker_boilerplate
=`cat conftest.err`
6619 lt_prog_compiler_no_builtin_flag
=
6621 if test "$GCC" = yes; then
6622 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
6625 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6626 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6627 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 lt_cv_prog_compiler_rtti_exceptions
=no
6631 ac_outfile
=conftest.
$ac_objext
6632 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6633 lt_compiler_flag
="-fno-rtti -fno-exceptions"
6634 # Insert the option either (1) after the last *FLAGS variable, or
6635 # (2) before a word containing "conftest.", or (3) at the end.
6636 # Note that $ac_compile itself does not contain backslashes and begins
6637 # with a dollar sign (not a hyphen), so the echo should work correctly.
6638 # The option is referenced via a variable to avoid confusing sed.
6639 lt_compile
=`echo "$ac_compile" | $SED \
6640 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6642 -e 's:$: $lt_compiler_flag:'`
6643 (eval echo "\"\$as_me:6643: $lt_compile\"" >&5)
6644 (eval "$lt_compile" 2>conftest.err
)
6646 cat conftest.err
>&5
6647 echo "$as_me:6647: \$? = $ac_status" >&5
6648 if (exit $ac_status) && test -s "$ac_outfile"; then
6649 # The compiler can only warn and ignore the option if not recognized
6650 # So say no if there are warnings other than the usual output.
6651 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
6652 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
6653 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
6654 lt_cv_prog_compiler_rtti_exceptions
=yes
6660 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6661 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6663 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
6664 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6671 lt_prog_compiler_wl
=
6672 lt_prog_compiler_pic
=
6673 lt_prog_compiler_static
=
6675 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6676 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6678 if test "$GCC" = yes; then
6679 lt_prog_compiler_wl
='-Wl,'
6680 lt_prog_compiler_static
='-static'
6684 # All AIX code is PIC.
6685 if test "$host_cpu" = ia64
; then
6686 # AIX 5 now supports IA64 processor
6687 lt_prog_compiler_static
='-Bstatic'
6692 # FIXME: we need at least 68020 code to build shared libraries, but
6693 # adding the `-m68020' flag to GCC prevents building anything better,
6695 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
6698 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
6699 # PIC is the default for these OSes.
6702 mingw
* | pw32
* | os2
*)
6703 # This hack is so that the source file can tell whether it is being
6704 # built for inclusion in a dll (and should export symbols for example).
6705 lt_prog_compiler_pic
='-DDLL_EXPORT'
6708 darwin
* | rhapsody
*)
6709 # PIC is the default on this platform
6710 # Common symbols not allowed in MH_DYLIB files
6711 lt_prog_compiler_pic
='-fno-common'
6715 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6716 # Instead, we relocate shared libraries at runtime.
6720 # Just because we use GCC doesn't mean we suddenly get shared libraries
6721 # on systems that don't support them.
6722 lt_prog_compiler_can_build_shared
=no
6727 if test -d /usr
/nec
; then
6728 lt_prog_compiler_pic
=-Kconform_pic
6733 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6740 lt_prog_compiler_pic
='-fPIC'
6746 lt_prog_compiler_pic
='-fPIC'
6750 # PORTME Check for flag to pass linker flags through the system compiler.
6753 lt_prog_compiler_wl
='-Wl,'
6754 if test "$host_cpu" = ia64
; then
6755 # AIX 5 now supports IA64 processor
6756 lt_prog_compiler_static
='-Bstatic'
6758 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
6762 # PIC is the default on this platform
6763 # Common symbols not allowed in MH_DYLIB files
6764 case $cc_basename in
6766 lt_prog_compiler_pic
='-qnocommon'
6767 lt_prog_compiler_wl
='-Wl,'
6772 mingw
* | pw32
* | os2
*)
6773 # This hack is so that the source file can tell whether it is being
6774 # built for inclusion in a dll (and should export symbols for example).
6775 lt_prog_compiler_pic
='-DDLL_EXPORT'
6778 hpux9
* | hpux10
* | hpux11
*)
6779 lt_prog_compiler_wl
='-Wl,'
6780 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6787 lt_prog_compiler_pic
='+Z'
6790 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6791 lt_prog_compiler_static
='${wl}-a ${wl}archive'
6794 irix5
* | irix6
* | nonstopux
*)
6795 lt_prog_compiler_wl
='-Wl,'
6796 # PIC (with -KPIC) is the default.
6797 lt_prog_compiler_static
='-non_shared'
6801 lt_prog_compiler_pic
='-KPIC'
6802 lt_prog_compiler_static
='-Bstatic'
6806 case $cc_basename in
6808 lt_prog_compiler_wl
='-Wl,'
6809 lt_prog_compiler_pic
='-KPIC'
6810 lt_prog_compiler_static
='-static'
6812 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
6813 # Portland Group compilers (*not* the Pentium gcc compiler,
6814 # which looks to be a dead project)
6815 lt_prog_compiler_wl
='-Wl,'
6816 lt_prog_compiler_pic
='-fpic'
6817 lt_prog_compiler_static
='-Bstatic'
6820 lt_prog_compiler_wl
='-Wl,'
6821 # All Alpha code is PIC.
6822 lt_prog_compiler_static
='-non_shared'
6827 osf3
* | osf4
* | osf5
*)
6828 lt_prog_compiler_wl
='-Wl,'
6829 # All OSF/1 code is PIC.
6830 lt_prog_compiler_static
='-non_shared'
6834 lt_prog_compiler_pic
='-KPIC'
6835 lt_prog_compiler_static
='-Bstatic'
6836 case $cc_basename in
6838 lt_prog_compiler_wl
='-Qoption ld ';;
6840 lt_prog_compiler_wl
='-Wl,';;
6845 lt_prog_compiler_wl
='-Qoption ld '
6846 lt_prog_compiler_pic
='-PIC'
6847 lt_prog_compiler_static
='-Bstatic'
6850 sysv4 | sysv4.2uw2
* | sysv4.3
*)
6851 lt_prog_compiler_wl
='-Wl,'
6852 lt_prog_compiler_pic
='-KPIC'
6853 lt_prog_compiler_static
='-Bstatic'
6857 if test -d /usr
/nec
;then
6858 lt_prog_compiler_pic
='-Kconform_pic'
6859 lt_prog_compiler_static
='-Bstatic'
6863 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
6864 lt_prog_compiler_wl
='-Wl,'
6865 lt_prog_compiler_pic
='-KPIC'
6866 lt_prog_compiler_static
='-Bstatic'
6870 lt_prog_compiler_wl
='-Wl,'
6871 lt_prog_compiler_can_build_shared
=no
6875 lt_prog_compiler_pic
='-pic'
6876 lt_prog_compiler_static
='-Bstatic'
6880 lt_prog_compiler_can_build_shared
=no
6885 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6886 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6889 # Check to make sure the PIC flag actually works.
6891 if test -n "$lt_prog_compiler_pic"; then
6893 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6894 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6895 if test "${lt_prog_compiler_pic_works+set}" = set; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 lt_prog_compiler_pic_works
=no
6899 ac_outfile
=conftest.
$ac_objext
6900 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6901 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
6902 # Insert the option either (1) after the last *FLAGS variable, or
6903 # (2) before a word containing "conftest.", or (3) at the end.
6904 # Note that $ac_compile itself does not contain backslashes and begins
6905 # with a dollar sign (not a hyphen), so the echo should work correctly.
6906 # The option is referenced via a variable to avoid confusing sed.
6907 lt_compile
=`echo "$ac_compile" | $SED \
6908 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6910 -e 's:$: $lt_compiler_flag:'`
6911 (eval echo "\"\$as_me:6911: $lt_compile\"" >&5)
6912 (eval "$lt_compile" 2>conftest.err
)
6914 cat conftest.err
>&5
6915 echo "$as_me:6915: \$? = $ac_status" >&5
6916 if (exit $ac_status) && test -s "$ac_outfile"; then
6917 # The compiler can only warn and ignore the option if not recognized
6918 # So say no if there are warnings other than the usual output.
6919 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
6920 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
6921 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
6922 lt_prog_compiler_pic_works
=yes
6928 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6929 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6931 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
6932 case $lt_prog_compiler_pic in
6934 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
6937 lt_prog_compiler_pic
=
6938 lt_prog_compiler_can_build_shared
=no
6943 # For platforms which do not support PIC, -DPIC is meaningless:
6945 lt_prog_compiler_pic
=
6948 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
6953 # Check to make sure the static flag actually works.
6955 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
6956 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6957 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6958 if test "${lt_prog_compiler_static_works+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6961 lt_prog_compiler_static_works
=no
6962 save_LDFLAGS
="$LDFLAGS"
6963 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
6964 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
6965 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
6966 # The linker can only warn and ignore the option if not recognized
6967 # So say no if there are warnings
6968 if test -s conftest.err
; then
6969 # Append any errors to the config.log.
6970 cat conftest.err
1>&5
6971 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
6972 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
6973 if diff conftest.exp conftest.er2
>/dev
/null
; then
6974 lt_prog_compiler_static_works
=yes
6977 lt_prog_compiler_static_works
=yes
6981 LDFLAGS
="$save_LDFLAGS"
6984 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6985 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6987 if test x
"$lt_prog_compiler_static_works" = xyes
; then
6990 lt_prog_compiler_static
=
6994 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6995 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6996 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 lt_cv_prog_compiler_c_o
=no
7000 $rm -r conftest
2>/dev
/null
7004 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7006 lt_compiler_flag
="-o out/conftest2.$ac_objext"
7007 # Insert the option either (1) after the last *FLAGS variable, or
7008 # (2) before a word containing "conftest.", or (3) at the end.
7009 # Note that $ac_compile itself does not contain backslashes and begins
7010 # with a dollar sign (not a hyphen), so the echo should work correctly.
7011 lt_compile
=`echo "$ac_compile" | $SED \
7012 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7014 -e 's:$: $lt_compiler_flag:'`
7015 (eval echo "\"\$as_me:7015: $lt_compile\"" >&5)
7016 (eval "$lt_compile" 2>out
/conftest.err
)
7018 cat out
/conftest.err
>&5
7019 echo "$as_me:7019: \$? = $ac_status" >&5
7020 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
7022 # The compiler can only warn and ignore the option if not recognized
7023 # So say no if there are warnings
7024 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
7025 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
7026 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
7027 lt_cv_prog_compiler_c_o
=yes
7032 # SGI C++ compiler will create directory out/ii_files/ for
7033 # template instantiation
7034 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
7035 $rm out
/* && rmdir out
7041 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7042 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7045 hard_links
="nottested"
7046 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
7047 # do not overwrite the value of need_locks provided by the user
7048 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7049 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7052 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7054 ln conftest.a conftest.b
2>&5 || hard_links
=no
7055 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7056 echo "$as_me:$LINENO: result: $hard_links" >&5
7057 echo "${ECHO_T}$hard_links" >&6
7058 if test "$hard_links" = no
; then
7059 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7060 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7067 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7068 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7071 allow_undefined_flag
=
7072 enable_shared_with_static_runtimes
=no
7074 archive_expsym_cmds
=
7075 old_archive_From_new_cmds
=
7076 old_archive_from_expsyms_cmds
=
7077 export_dynamic_flag_spec
=
7078 whole_archive_flag_spec
=
7079 thread_safe_flag_spec
=
7080 hardcode_libdir_flag_spec
=
7081 hardcode_libdir_flag_spec_ld
=
7082 hardcode_libdir_separator
=
7085 hardcode_shlibpath_var
=unsupported
7086 link_all_deplibs
=unknown
7087 hardcode_automatic
=no
7090 always_export_symbols
=no
7091 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7092 # include_expsyms should be a list of space-separated symbols to be *always*
7093 # included in the symbol list
7095 # exclude_expsyms can be an extended regexp of symbols to exclude
7096 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7097 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7098 # as well as any symbol that contains `d'.
7099 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
7100 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7101 # platforms (ab)use it in PIC code, but their linkers get confused if
7102 # the symbol is explicitly referenced. Since portable code cannot
7103 # rely on this symbol name, it's probably fine to never include it in
7104 # preloaded symbol tables.
7105 extract_expsyms_cmds
=
7106 # Just being paranoid about ensuring that cc_basename is set.
7107 for cc_temp
in $compiler""; do
7109 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7110 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7115 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7118 cygwin
* | mingw
* | pw32
*)
7119 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7120 # When not using gcc, we currently assume that we are using
7121 # Microsoft Visual C++.
7122 if test "$GCC" != yes; then
7127 # we just hope/assume this is gcc and not c89 (= MSVC++)
7136 if test "$with_gnu_ld" = yes; then
7137 # If archive_cmds runs LD, not CC, wlarc should be empty
7140 # Set some defaults for GNU ld with shared library support. These
7141 # are reset later if shared libraries are not supported. Putting them
7142 # here allows them to be overridden if necessary.
7143 runpath_var
=LD_RUN_PATH
7144 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
7145 export_dynamic_flag_spec
='${wl}--export-dynamic'
7146 # ancient GNU ld didn't support --whole-archive et. al.
7147 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
7148 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7150 whole_archive_flag_spec
=
7152 supports_anon_versioning
=no
7153 case `$LD -v 2>/dev/null` in
7154 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
7155 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
7156 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
7157 *\
2.11.
*) ;; # other 2.11 versions
7158 *) supports_anon_versioning
=yes ;;
7161 # See if GNU ld supports shared libraries.
7163 aix3
* | aix4
* | aix5
*)
7164 # On AIX/PPC, the GNU linker is very broken
7165 if test "$host_cpu" != ia64
; then
7169 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7170 *** to be unable to reliably create shared libraries on AIX.
7171 *** Therefore, libtool is disabling shared libraries support. If you
7172 *** really care for shared libraries, you may want to modify your PATH
7173 *** so that a non-GNU linker is found, and then restart.
7180 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)'
7181 hardcode_libdir_flag_spec
='-L$libdir'
7182 hardcode_minus_L
=yes
7184 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7185 # that the semantics of dynamic libraries on AmigaOS, at least up
7186 # to version 4, is to share data among multiple programs linked
7187 # with the same dynamic library. Since this doesn't match the
7188 # behavior of shared libraries on other platforms, we can't use
7194 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7195 allow_undefined_flag
=unsupported
7196 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7197 # support --undefined. This deserves some investigation. FIXME
7198 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7204 cygwin
* | mingw
* | pw32
*)
7205 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7206 # as there is no search path for DLLs.
7207 hardcode_libdir_flag_spec
='-L$libdir'
7208 allow_undefined_flag
=unsupported
7209 always_export_symbols
=no
7210 enable_shared_with_static_runtimes
=yes
7211 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7213 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
7214 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7215 # If the export-symbols file already is a .def file (1st line
7216 # is EXPORTS), use it as is; otherwise, prepend...
7217 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7218 cp $export_symbols $output_objdir/$soname.def;
7220 echo EXPORTS > $output_objdir/$soname.def;
7221 cat $export_symbols >> $output_objdir/$soname.def;
7223 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7231 hardcode_shlibpath_var
=no
7232 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7233 export_dynamic_flag_spec
='${wl}-E'
7234 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7235 # Instead, shared libraries are loaded at an image base (0x10000000 by
7236 # default) and relocated if they conflict, which is a slow very memory
7237 # consuming and fragmenting process. To avoid this, we pick a random,
7238 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7239 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7240 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7241 archive_expsym_cmds
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7245 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7247 case $cc_basename,$host_cpu in
7248 pgcc
*) # Portland Group C compiler
7249 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7250 tmp_addflag
=' $pic_flag'
7252 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
7253 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7254 tmp_addflag
=' $pic_flag -Mnomain' ;;
7255 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
7256 tmp_addflag
=' -i_dynamic' ;;
7257 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
7258 tmp_addflag
=' -i_dynamic -nofor_main' ;;
7259 ifc
* | ifort
*) # Intel Fortran compiler
7260 tmp_addflag
=' -nofor_main' ;;
7262 archive_cmds
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7264 if test $supports_anon_versioning = yes; then
7265 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
7266 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7267 $echo "local: *; };" >> $output_objdir/$libname.ver~
7268 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7276 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7277 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7280 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7281 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7286 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
7290 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7291 *** create shared libraries on Solaris systems. Therefore, libtool
7292 *** is disabling shared libraries support. We urge you to upgrade GNU
7293 *** binutils to release 2.9.1 or newer. Another option is to modify
7294 *** your PATH or compiler configuration so that the native linker is
7295 *** used, and then restart.
7298 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7299 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7300 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7306 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
7307 case `$LD -v 2>&1` in
7308 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
7312 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7313 *** reliably create shared libraries on SCO systems. Therefore, libtool
7314 *** is disabling shared libraries support. We urge you to upgrade GNU
7315 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7316 *** your PATH or compiler configuration so that the native linker is
7317 *** used, and then restart.
7322 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7323 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7324 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7325 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7334 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7337 hardcode_shlibpath_var
=no
7341 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7342 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7343 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7350 if test "$ld_shlibs" = no
; then
7352 hardcode_libdir_flag_spec
=
7353 export_dynamic_flag_spec
=
7354 whole_archive_flag_spec
=
7357 # PORTME fill in a description of your system's linker (not GNU ld)
7360 allow_undefined_flag
=unsupported
7361 always_export_symbols
=yes
7362 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'
7363 # Note: this linker hardcodes the directories in LIBPATH if there
7364 # are no directories specified by -L.
7365 hardcode_minus_L
=yes
7366 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7367 # Neither direct hardcoding nor static linking is supported with a
7369 hardcode_direct
=unsupported
7374 if test "$host_cpu" = ia64
; then
7375 # On IA64, the linker does run time linking by default, so we don't
7376 # have to do anything special.
7377 aix_use_runtimelinking
=no
7378 exp_sym_flag
='-Bexport'
7381 # If we're using GNU nm, then we don't want the "-C" option.
7382 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7383 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
7384 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'
7386 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'
7388 aix_use_runtimelinking
=no
7390 # Test if we are trying to use run time linking or normal
7391 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7392 # need to do runtime linking.
7393 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
7394 for ld_flag
in $LDFLAGS; do
7395 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
7396 aix_use_runtimelinking
=yes
7403 exp_sym_flag
='-bexport'
7404 no_entry_flag
='-bnoentry'
7407 # When large executables or shared objects are built, AIX ld can
7408 # have problems creating the table of contents. If linking a library
7409 # or program results in "error TOC overflow" add -mminimal-toc to
7410 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7411 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7415 hardcode_libdir_separator
=':'
7416 link_all_deplibs
=yes
7418 if test "$GCC" = yes; then
7419 case $host_os in aix4.
[012]|aix4.
[012].
*)
7420 # We only want to do this on AIX 4.2 and lower, the check
7421 # below for broken collect2 doesn't work under 4.3+
7422 collect2name
=`${CC} -print-prog-name=collect2`
7423 if test -f "$collect2name" && \
7424 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
7426 # We have reworked collect2
7429 # We have old collect2
7430 hardcode_direct
=unsupported
7431 # It fails to find uninstalled libraries when the uninstalled
7432 # path is not listed in the libpath. Setting hardcode_minus_L
7433 # to unsupported forces relinking
7434 hardcode_minus_L
=yes
7435 hardcode_libdir_flag_spec
='-L$libdir'
7436 hardcode_libdir_separator
=
7440 shared_flag
='-shared'
7441 if test "$aix_use_runtimelinking" = yes; then
7442 shared_flag
="$shared_flag "'${wl}-G'
7446 if test "$host_cpu" = ia64
; then
7447 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7448 # chokes on -Wl,-G. The following line is correct:
7451 if test "$aix_use_runtimelinking" = yes; then
7452 shared_flag
='${wl}-G'
7454 shared_flag
='${wl}-bM:SRE'
7459 # It seems that -bexpall does not export symbols beginning with
7460 # underscore (_), so it is better to generate a list of symbols to export.
7461 always_export_symbols
=yes
7462 if test "$aix_use_runtimelinking" = yes; then
7463 # Warning - without using the other runtime loading flags (-brtl),
7464 # -berok will link without error, but may produce a broken library.
7465 allow_undefined_flag
='-berok'
7466 # Determine the default libpath from the value encoded in an empty executable.
7467 cat >conftest.
$ac_ext <<_ACEOF
7470 cat confdefs.h
>>conftest.
$ac_ext
7471 cat >>conftest.
$ac_ext <<_ACEOF
7472 /* end confdefs.h. */
7482 rm -f conftest.
$ac_objext conftest
$ac_exeext
7483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7484 (eval $ac_link) 2>conftest.er1
7486 grep -v '^ *+' conftest.er1
>conftest.err
7488 cat conftest.err
>&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); } &&
7491 { ac_try
='test -z "$ac_c_werror_flag"
7492 || test ! -s conftest.err'
7493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); }; } &&
7498 { ac_try
='test -s conftest$ac_exeext'
7499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); }; }; then
7505 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7507 # Check for a 64-bit object if we didn't find anything.
7508 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; }
7511 echo "$as_me: failed program was:" >&5
7512 sed 's/^/| /' conftest.
$ac_ext >&5
7515 rm -f conftest.err conftest.
$ac_objext \
7516 conftest
$ac_exeext conftest.
$ac_ext
7517 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
7519 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
7520 archive_expsym_cmds
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7522 if test "$host_cpu" = ia64
; then
7523 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
7524 allow_undefined_flag
="-z nodefs"
7525 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7527 # Determine the default libpath from the value encoded in an empty executable.
7528 cat >conftest.
$ac_ext <<_ACEOF
7531 cat confdefs.h
>>conftest.
$ac_ext
7532 cat >>conftest.
$ac_ext <<_ACEOF
7533 /* end confdefs.h. */
7543 rm -f conftest.
$ac_objext conftest
$ac_exeext
7544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7545 (eval $ac_link) 2>conftest.er1
7547 grep -v '^ *+' conftest.er1
>conftest.err
7549 cat conftest.err
>&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); } &&
7552 { ac_try
='test -z "$ac_c_werror_flag"
7553 || test ! -s conftest.err'
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; } &&
7559 { ac_try
='test -s conftest$ac_exeext'
7560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); }; }; then
7566 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7568 # Check for a 64-bit object if we didn't find anything.
7569 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; }
7572 echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.
$ac_ext >&5
7576 rm -f conftest.err conftest.
$ac_objext \
7577 conftest
$ac_exeext conftest.
$ac_ext
7578 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
7580 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
7581 # Warning - without using the other run time loading flags,
7582 # -berok will link without error, but may produce a broken library.
7583 no_undefined_flag
=' ${wl}-bernotok'
7584 allow_undefined_flag
=' ${wl}-berok'
7585 # Exported symbols can be pulled into shared objects from archives
7586 whole_archive_flag_spec
='$convenience'
7587 archive_cmds_need_lc
=yes
7588 # This is similar to how AIX traditionally builds its shared libraries.
7589 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7595 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)'
7596 hardcode_libdir_flag_spec
='-L$libdir'
7597 hardcode_minus_L
=yes
7598 # see comment about different semantics on the GNU ld section
7603 export_dynamic_flag_spec
=-rdynamic
7606 cygwin
* | mingw
* | pw32
*)
7607 # When not using gcc, we currently assume that we are using
7608 # Microsoft Visual C++.
7609 # hardcode_libdir_flag_spec is actually meaningless, as there is
7610 # no search path for DLLs.
7611 hardcode_libdir_flag_spec
=' '
7612 allow_undefined_flag
=unsupported
7613 # Tell ltmain to make .lib files, not .a files.
7615 # Tell ltmain to make .dll files, not .so files.
7617 # FIXME: Setting linknames here is a bad hack.
7618 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7619 # The linker will automatically build a .lib file if we build a DLL.
7620 old_archive_From_new_cmds
='true'
7621 # FIXME: Should let the user specify the lib program.
7622 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
7623 fix_srcfile_path
='`cygpath -w "$srcfile"`'
7624 enable_shared_with_static_runtimes
=yes
7627 darwin
* | rhapsody
*)
7629 rhapsody
* | darwin1.
[012])
7630 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
7633 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7634 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7636 case ${MACOSX_DEPLOYMENT_TARGET} in
7638 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7641 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
7647 archive_cmds_need_lc
=no
7649 hardcode_automatic
=yes
7650 hardcode_shlibpath_var
=unsupported
7651 whole_archive_flag_spec
=''
7652 link_all_deplibs
=yes
7653 if test "$GCC" = yes ; then
7654 output_verbose_link_cmd
='echo'
7655 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7656 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7657 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7658 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}'
7659 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}'
7661 case $cc_basename in
7663 output_verbose_link_cmd
='echo'
7664 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7665 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7666 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7667 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}'
7668 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}'
7678 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7679 hardcode_libdir_flag_spec
='-L$libdir'
7680 hardcode_shlibpath_var
=no
7687 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7688 # support. Future versions do this automatically, but an explicit c++rt0.o
7689 # does not break anything, and helps significantly (at the cost of a little
7692 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7693 hardcode_libdir_flag_spec
='-R$libdir'
7695 hardcode_shlibpath_var
=no
7698 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7700 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7702 hardcode_minus_L
=yes
7703 hardcode_shlibpath_var
=no
7706 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7707 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
7708 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7709 hardcode_libdir_flag_spec
='-R$libdir'
7711 hardcode_shlibpath_var
=no
7715 if test "$GCC" = yes; then
7716 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'
7718 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'
7720 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7721 hardcode_libdir_separator
=:
7724 # hardcode_minus_L: Not really in the search PATH,
7725 # but as the default location of the library.
7726 hardcode_minus_L
=yes
7727 export_dynamic_flag_spec
='${wl}-E'
7731 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
7732 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7734 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7736 if test "$with_gnu_ld" = no
; then
7737 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7738 hardcode_libdir_separator
=:
7741 export_dynamic_flag_spec
='${wl}-E'
7743 # hardcode_minus_L: Not really in the search PATH,
7744 # but as the default location of the library.
7745 hardcode_minus_L
=yes
7750 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
7753 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7756 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7759 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7765 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7768 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7771 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7775 if test "$with_gnu_ld" = no
; then
7776 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7777 hardcode_libdir_separator
=:
7781 hardcode_libdir_flag_spec_ld
='+b $libdir'
7783 hardcode_shlibpath_var
=no
7787 export_dynamic_flag_spec
='${wl}-E'
7789 # hardcode_minus_L: Not really in the search PATH,
7790 # but as the default location of the library.
7791 hardcode_minus_L
=yes
7797 irix5
* | irix6
* | nonstopux
*)
7798 if test "$GCC" = yes; then
7799 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'
7801 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'
7802 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
7804 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7805 hardcode_libdir_separator
=:
7806 link_all_deplibs
=yes
7810 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7811 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7813 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7815 hardcode_libdir_flag_spec
='-R$libdir'
7817 hardcode_shlibpath_var
=no
7821 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7823 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7824 hardcode_libdir_separator
=:
7825 hardcode_shlibpath_var
=no
7830 hardcode_shlibpath_var
=no
7831 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7832 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7833 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7834 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7835 export_dynamic_flag_spec
='${wl}-E'
7838 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
7839 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7840 hardcode_libdir_flag_spec
='-R$libdir'
7843 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7844 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7851 hardcode_libdir_flag_spec
='-L$libdir'
7852 hardcode_minus_L
=yes
7853 allow_undefined_flag
=unsupported
7854 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'
7855 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7859 if test "$GCC" = yes; then
7860 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
7861 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'
7863 allow_undefined_flag
=' -expect_unresolved \*'
7864 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'
7866 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7867 hardcode_libdir_separator
=:
7870 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
7871 if test "$GCC" = yes; then
7872 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
7873 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'
7874 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7876 allow_undefined_flag
=' -expect_unresolved \*'
7877 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'
7878 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7879 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7881 # Both c and cxx compiler support -rpath directly
7882 hardcode_libdir_flag_spec
='-rpath $libdir'
7884 hardcode_libdir_separator
=:
7888 no_undefined_flag
=' -z text'
7889 if test "$GCC" = yes; then
7891 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7892 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7893 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7896 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7897 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7898 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7900 hardcode_libdir_flag_spec
='-R$libdir'
7901 hardcode_shlibpath_var
=no
7903 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
7905 # The compiler driver will combine linker options so we
7906 # cannot just pass the convience library names through
7907 # without $wl, iff we do not link with $LD.
7908 # Luckily, gcc supports the same syntax we need for Sun Studio.
7909 # Supported since Solaris 2.6 (maybe 2.5.1?)
7912 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
7914 whole_archive_flag_spec
='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7917 link_all_deplibs
=yes
7921 if test "x$host_vendor" = xsequent
; then
7922 # Use $CC to link under sequent, because it throws in some extra .o
7923 # files that make .init and .fini sections work.
7924 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7926 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7928 hardcode_libdir_flag_spec
='-L$libdir'
7930 hardcode_minus_L
=yes
7931 hardcode_shlibpath_var
=no
7935 case $host_vendor in
7937 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7938 hardcode_direct
=yes # is this really true???
7941 ## LD is ld it makes a PLAMLIB
7942 ## CC just makes a GrossModule.
7943 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7944 reload_cmds
='$CC -r -o $output$reload_objs'
7948 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7949 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
7952 runpath_var
='LD_RUN_PATH'
7953 hardcode_shlibpath_var
=no
7957 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7958 hardcode_shlibpath_var
=no
7959 export_dynamic_flag_spec
='-Bexport'
7963 if test -d /usr
/nec
; then
7964 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7965 hardcode_shlibpath_var
=no
7966 runpath_var
=LD_RUN_PATH
7967 hardcode_runpath_var
=yes
7972 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
7973 no_undefined_flag
='${wl}-z,text'
7974 archive_cmds_need_lc
=no
7975 hardcode_shlibpath_var
=no
7976 runpath_var
='LD_RUN_PATH'
7978 if test "$GCC" = yes; then
7979 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7980 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7982 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7983 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7987 sysv5
* | sco3.2v5
* | sco5v6
*)
7988 # Note: We can NOT use -z defs as we might desire, because we do not
7989 # link with -lc, and that would cause any symbols used from libc to
7990 # always be unresolved, which means just about no library would
7991 # ever link correctly. If we're not using GNU ld we use -z text
7992 # though, which does catch some bad symbols but isn't as heavy-handed
7994 no_undefined_flag
='${wl}-z,text'
7995 allow_undefined_flag
='${wl}-z,nodefs'
7996 archive_cmds_need_lc
=no
7997 hardcode_shlibpath_var
=no
7998 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7999 hardcode_libdir_separator
=':'
8000 link_all_deplibs
=yes
8001 export_dynamic_flag_spec
='${wl}-Bexport'
8002 runpath_var
='LD_RUN_PATH'
8004 if test "$GCC" = yes; then
8005 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8006 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8008 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8009 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8014 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8015 hardcode_libdir_flag_spec
='-L$libdir'
8016 hardcode_shlibpath_var
=no
8025 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8026 echo "${ECHO_T}$ld_shlibs" >&6
8027 test "$ld_shlibs" = no
&& can_build_shared
=no
8030 # Do we need to explicitly link libc?
8032 case "x$archive_cmds_need_lc" in
8034 # Assume -lc should be added
8035 archive_cmds_need_lc
=yes
8037 if test "$enable_shared" = yes && test "$GCC" = yes; then
8038 case $archive_cmds in
8040 # FIXME: we may have to deal with multi-command sequences.
8043 # Test whether the compiler implicitly links with -lc since on some
8044 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8045 # to ld, don't add -lc before -lgcc.
8046 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8047 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8049 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
8051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8052 (eval $ac_compile) 2>&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } 2>conftest.err
; then
8058 libobjs
=conftest.
$ac_objext
8060 wl
=$lt_prog_compiler_wl
8061 pic_flag
=$lt_prog_compiler_pic
8067 lt_save_allow_undefined_flag
=$allow_undefined_flag
8068 allow_undefined_flag
=
8069 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8070 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); }
8075 archive_cmds_need_lc
=no
8077 archive_cmds_need_lc
=yes
8079 allow_undefined_flag
=$lt_save_allow_undefined_flag
8081 cat conftest.err
1>&5
8084 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8085 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8092 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8093 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8095 libname_spec
='lib$name'
8103 shlibpath_overrides_runpath
=unknown
8105 dynamic_linker
="$host_os ld.so"
8106 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
8107 if test "$GCC" = yes; then
8108 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8109 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
8110 # if the path contains ";" then we assume it to be the separator
8111 # otherwise default to the standard path separator (i.e. ":") - it is
8112 # assumed that no part of a normal pathname contains ";" but that should
8113 # okay in the real world where ";" in dirpaths is itself problematic.
8114 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8116 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8119 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
8121 need_lib_prefix
=unknown
8122 hardcode_into_libs
=no
8124 # when you set need_version to no, make sure it does not cause -set_version
8125 # flags to be left without arguments
8126 need_version
=unknown
8131 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
8132 shlibpath_var
=LIBPATH
8134 # AIX 3 has no versioning support, so we append a major version to the name.
8135 soname_spec
='${libname}${release}${shared_ext}$major'
8142 hardcode_into_libs
=yes
8143 if test "$host_cpu" = ia64
; then
8144 # AIX 5 supports IA64
8145 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8146 shlibpath_var
=LD_LIBRARY_PATH
8148 # With GCC up to 2.95.x, collect2 would create an import file
8149 # for dependence libraries. The import file would start with
8150 # the line `#! .'. This would cause the generated library to
8151 # depend on `.', always an invalid library. This was fixed in
8152 # development snapshots of GCC prior to 3.0.
8154 aix4 | aix4.
[01] | aix4.
[01].
*)
8155 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8157 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
8164 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8165 # soname into executable. Probably we can add versioning support to
8166 # collect2, so additional links can be useful in future.
8167 if test "$aix_use_runtimelinking" = yes; then
8168 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8169 # instead of lib<name>.a to let people know that these are not
8170 # typical AIX shared libraries.
8171 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8173 # We preserve .a as extension for shared libraries through AIX4.2
8174 # and later when we are not doing run time linking.
8175 library_names_spec
='${libname}${release}.a $libname.a'
8176 soname_spec
='${libname}${release}${shared_ext}$major'
8178 shlibpath_var
=LIBPATH
8183 library_names_spec
='$libname.ixlibrary $libname.a'
8184 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8185 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'
8189 library_names_spec
='${libname}${shared_ext}'
8190 dynamic_linker
="$host_os ld.so"
8191 shlibpath_var
=LIBRARY_PATH
8197 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8198 soname_spec
='${libname}${release}${shared_ext}$major'
8199 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
8200 shlibpath_var
=LD_LIBRARY_PATH
8201 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8202 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
8203 # the default ld.so.conf also contains /usr/contrib/lib and
8204 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8205 # libtool to hard-code these into programs
8208 cygwin
* | mingw
* | pw32
*)
8209 version_type
=windows
8214 case $GCC,$host_os in
8215 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
8216 library_names_spec
='$libname.dll.a'
8217 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8218 postinstall_cmds
='base_file=`basename \${file}`~
8219 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8220 dldir=$destdir/`dirname \$dlpath`~
8221 test -d \$dldir || mkdir -p \$dldir~
8222 $install_prog $dir/$dlname \$dldir/$dlname~
8223 chmod a+x \$dldir/$dlname'
8224 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8225 dlpath=$dir/\$dldll~
8227 shlibpath_overrides_runpath
=yes
8231 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8232 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8233 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
8236 # MinGW DLLs use traditional 'lib' prefix
8237 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8238 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8239 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
8240 # It is most probably a Windows format PATH printed by
8241 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8242 # path with ; separators, and with drive letters. We can handle the
8243 # drive letters (cygwin fileutils understands them), so leave them,
8244 # especially as we might pass files found there to a mingw objdump,
8245 # which wouldn't understand a cygwinified path. Ahh.
8246 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8248 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8252 # pw32 DLLs use 'pw' prefix rather than 'lib'
8253 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8259 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8262 dynamic_linker
='Win32 ld.exe'
8263 # FIXME: first we should search . and the directory the executable is in
8267 darwin
* | rhapsody
*)
8268 dynamic_linker
="$host_os dyld"
8272 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8273 soname_spec
='${libname}${release}${major}$shared_ext'
8274 shlibpath_overrides_runpath
=yes
8275 shlibpath_var
=DYLD_LIBRARY_PATH
8276 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
8277 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8278 if test "$GCC" = yes; then
8279 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"`
8281 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
8283 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
8290 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8291 soname_spec
='${libname}${release}${shared_ext}$major'
8292 shlibpath_var
=LD_LIBRARY_PATH
8303 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8304 soname_spec
='${libname}${release}${shared_ext}$major'
8305 shlibpath_var
=LD_LIBRARY_PATH
8306 shlibpath_overrides_runpath
=no
8307 hardcode_into_libs
=yes
8308 dynamic_linker
='GNU ld.so'
8311 freebsd
* | dragonfly
*)
8312 # DragonFly does not have aout. When/if they implement a new
8313 # versioning mechanism, adjust this.
8314 if test -x /usr
/bin
/objformat
; then
8315 objformat
=`/usr/bin/objformat`
8318 freebsd
[123]*) objformat
=aout
;;
8322 version_type
=freebsd-
$objformat
8323 case $version_type in
8325 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8330 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8334 shlibpath_var
=LD_LIBRARY_PATH
8337 shlibpath_overrides_runpath
=yes
8339 freebsd3.
[01]* | freebsdelf3.
[01]*)
8340 shlibpath_overrides_runpath
=yes
8341 hardcode_into_libs
=yes
8343 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
8344 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
8345 shlibpath_overrides_runpath
=no
8346 hardcode_into_libs
=yes
8348 freebsd
*) # from 4.6 on
8349 shlibpath_overrides_runpath
=yes
8350 hardcode_into_libs
=yes
8359 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8360 soname_spec
='${libname}${release}${shared_ext}$major'
8361 shlibpath_var
=LD_LIBRARY_PATH
8362 hardcode_into_libs
=yes
8365 hpux9
* | hpux10
* | hpux11
*)
8366 # Give a soname corresponding to the major version so that dld.sl refuses to
8367 # link against other versions.
8374 hardcode_into_libs
=yes
8375 dynamic_linker
="$host_os dld.so"
8376 shlibpath_var
=LD_LIBRARY_PATH
8377 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8378 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8379 soname_spec
='${libname}${release}${shared_ext}$major'
8380 if test "X$HPUX_IA64_MODE" = X32
; then
8381 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8383 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
8385 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8389 hardcode_into_libs
=yes
8390 dynamic_linker
="$host_os dld.sl"
8391 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
8392 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8393 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8394 soname_spec
='${libname}${release}${shared_ext}$major'
8395 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8396 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8400 dynamic_linker
="$host_os dld.sl"
8401 shlibpath_var
=SHLIB_PATH
8402 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
8403 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8404 soname_spec
='${libname}${release}${shared_ext}$major'
8407 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8408 postinstall_cmds
='chmod 555 $lib'
8415 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8416 soname_spec
='${libname}${release}${shared_ext}$major'
8417 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
8418 shlibpath_var
=LD_LIBRARY_PATH
8419 shlibpath_overrides_runpath
=no
8420 hardcode_into_libs
=yes
8423 irix5
* | irix6
* | nonstopux
*)
8425 nonstopux
*) version_type
=nonstopux
;;
8427 if test "$lt_cv_prog_gnu_ld" = yes; then
8435 soname_spec
='${libname}${release}${shared_ext}$major'
8436 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8438 irix5
* | nonstopux
*)
8442 case $LD in # libtool.m4 will add one of these switches to LD
8443 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
8444 libsuff
= shlibsuff
= libmagic
=32-bit;;
8445 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
8446 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
8447 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
8448 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
8449 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
8453 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
8454 shlibpath_overrides_runpath
=no
8455 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8456 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
8457 hardcode_into_libs
=yes
8460 # No shared lib support for Linux oldld, aout, or coff.
8461 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
8465 # This must be Linux ELF.
8470 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8471 soname_spec
='${libname}${release}${shared_ext}$major'
8472 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8473 shlibpath_var
=LD_LIBRARY_PATH
8474 shlibpath_overrides_runpath
=no
8475 # This implies no fast_install, which is unacceptable.
8476 # Some rework will be needed to allow for fast_install
8477 # before this can be enabled.
8478 hardcode_into_libs
=yes
8480 # find out which ABI we are using
8483 x86_64
*|s390x
*|powerpc64
*)
8484 echo '#line 8484 "configure"' > conftest.
$ac_ext
8485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8486 (eval $ac_compile) 2>&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; then
8490 case `/usr/bin/file conftest.$ac_objext` in
8493 sys_lib_search_path_spec
="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8501 # Append ld.so.conf contents to the search path
8502 if test -f /etc
/ld.so.conf
; then
8503 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8504 sys_lib_dlsearch_path_spec
="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8507 # We used to test for /lib/ld.so.1 and disable shared libraries on
8508 # powerpc, because MkLinux only supported shared libraries with the
8509 # GNU dynamic linker. Since this was broken with cross compilers,
8510 # most powerpc-linux boxes support dynamic linking these days and
8511 # people can always --disable-shared, the test was removed, and we
8512 # assume the GNU/Linux dynamic linker is in use.
8513 dynamic_linker
='GNU/Linux ld.so'
8520 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8521 soname_spec
='${libname}${release}${shared_ext}$major'
8522 shlibpath_var
=LD_LIBRARY_PATH
8523 shlibpath_overrides_runpath
=no
8524 hardcode_into_libs
=yes
8525 dynamic_linker
='GNU ld.so'
8532 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8533 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8534 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8535 dynamic_linker
='NetBSD (a.out) ld.so'
8537 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8538 soname_spec
='${libname}${release}${shared_ext}$major'
8539 dynamic_linker
='NetBSD ld.elf_so'
8541 shlibpath_var
=LD_LIBRARY_PATH
8542 shlibpath_overrides_runpath
=yes
8543 hardcode_into_libs
=yes
8548 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8549 shlibpath_var
=LD_LIBRARY_PATH
8550 shlibpath_overrides_runpath
=yes
8557 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8558 soname_spec
='${libname}${release}${shared_ext}$major'
8559 shlibpath_var
=LD_LIBRARY_PATH
8560 shlibpath_overrides_runpath
=yes
8565 sys_lib_dlsearch_path_spec
="/usr/lib"
8567 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8569 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
8570 *) need_version
=no
;;
8572 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8573 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8574 shlibpath_var
=LD_LIBRARY_PATH
8575 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8577 openbsd2.
[89] | openbsd2.
[89].
*)
8578 shlibpath_overrides_runpath
=no
8581 shlibpath_overrides_runpath
=yes
8585 shlibpath_overrides_runpath
=yes
8590 libname_spec
='$name'
8593 library_names_spec
='$libname${shared_ext} $libname.a'
8594 dynamic_linker
='OS/2 ld.exe'
8595 shlibpath_var
=LIBPATH
8598 osf3
* | osf4
* | osf5
*)
8602 soname_spec
='${libname}${release}${shared_ext}$major'
8603 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8604 shlibpath_var
=LD_LIBRARY_PATH
8605 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8606 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
8613 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8614 soname_spec
='${libname}${release}${shared_ext}$major'
8615 shlibpath_var
=LD_LIBRARY_PATH
8616 shlibpath_overrides_runpath
=yes
8617 hardcode_into_libs
=yes
8618 # ldd complains unless libraries are executable
8619 postinstall_cmds
='chmod +x $lib'
8624 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8625 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8626 shlibpath_var
=LD_LIBRARY_PATH
8627 shlibpath_overrides_runpath
=yes
8628 if test "$with_gnu_ld" = yes; then
8636 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8637 soname_spec
='${libname}${release}${shared_ext}$major'
8638 shlibpath_var
=LD_LIBRARY_PATH
8639 case $host_vendor in
8641 shlibpath_overrides_runpath
=no
8643 export_dynamic_flag_spec
='${wl}-Blargedynsym'
8644 runpath_var
=LD_RUN_PATH
8652 shlibpath_overrides_runpath
=no
8653 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
8659 if test -d /usr
/nec
;then
8661 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8662 soname_spec
='$libname${shared_ext}.$major'
8663 shlibpath_var
=LD_LIBRARY_PATH
8667 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
8668 version_type
=freebsd-elf
8671 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8672 soname_spec
='${libname}${release}${shared_ext}$major'
8673 shlibpath_var
=LD_LIBRARY_PATH
8674 hardcode_into_libs
=yes
8675 if test "$with_gnu_ld" = yes; then
8676 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8677 shlibpath_overrides_runpath
=no
8679 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
8680 shlibpath_overrides_runpath
=yes
8683 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
8687 sys_lib_dlsearch_path_spec
='/usr/lib'
8692 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8693 soname_spec
='${libname}${release}${shared_ext}$major'
8694 shlibpath_var
=LD_LIBRARY_PATH
8701 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8702 echo "${ECHO_T}$dynamic_linker" >&6
8703 test "$dynamic_linker" = no
&& can_build_shared
=no
8705 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
8706 if test "$GCC" = yes; then
8707 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8710 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8711 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8713 if test -n "$hardcode_libdir_flag_spec" || \
8714 test -n "$runpath_var" || \
8715 test "X$hardcode_automatic" = "Xyes" ; then
8717 # We can hardcode non-existant directories.
8718 if test "$hardcode_direct" != no
&&
8719 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8720 # have to relink, otherwise we might link with an installed library
8721 # when we should be linking with a yet-to-be-installed one
8722 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8723 test "$hardcode_minus_L" != no
; then
8724 # Linking always hardcodes the temporary library directory.
8725 hardcode_action
=relink
8727 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8728 hardcode_action
=immediate
8731 # We cannot hardcode anything, or else we can only hardcode existing
8733 hardcode_action
=unsupported
8735 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8736 echo "${ECHO_T}$hardcode_action" >&6
8738 if test "$hardcode_action" = relink
; then
8739 # Fast installation is not supported
8740 enable_fast_install
=no
8741 elif test "$shlibpath_overrides_runpath" = yes ||
8742 test "$enable_shared" = no
; then
8743 # Fast installation is not necessary
8744 enable_fast_install
=needless
8749 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8750 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8751 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
8752 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
8753 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
8754 echo "$as_me:$LINENO: result: yes" >&5
8755 echo "${ECHO_T}yes" >&6
8757 # FIXME - insert some real tests, host_os isn't really good enough
8760 if test -n "$STRIP" ; then
8761 striplib
="$STRIP -x"
8762 echo "$as_me:$LINENO: result: yes" >&5
8763 echo "${ECHO_T}yes" >&6
8765 echo "$as_me:$LINENO: result: no" >&5
8766 echo "${ECHO_T}no" >&6
8770 echo "$as_me:$LINENO: result: no" >&5
8771 echo "${ECHO_T}no" >&6
8776 if test "x$enable_dlopen" != xyes
; then
8777 enable_dlopen
=unknown
8778 enable_dlopen_self
=unknown
8779 enable_dlopen_self_static
=unknown
8786 lt_cv_dlopen
="load_add_on"
8788 lt_cv_dlopen_self
=yes
8792 lt_cv_dlopen
="LoadLibrary"
8797 lt_cv_dlopen
="dlopen"
8802 # if libdl is installed we need to link against it
8803 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8804 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8805 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8808 ac_check_lib_save_LIBS
=$LIBS
8810 cat >conftest.
$ac_ext <<_ACEOF
8813 cat confdefs.h
>>conftest.
$ac_ext
8814 cat >>conftest.
$ac_ext <<_ACEOF
8815 /* end confdefs.h. */
8817 /* Override any gcc2 internal prototype to avoid an error. */
8821 /* We use char because int might match the return type of a gcc2
8822 builtin and then its argument prototype would still apply. */
8832 rm -f conftest.
$ac_objext conftest
$ac_exeext
8833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8834 (eval $ac_link) 2>conftest.er1
8836 grep -v '^ *+' conftest.er1
>conftest.err
8838 cat conftest.err
>&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } &&
8841 { ac_try
='test -z "$ac_c_werror_flag"
8842 || test ! -s conftest.err'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; } &&
8848 { ac_try
='test -s conftest$ac_exeext'
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; }; then
8854 ac_cv_lib_dl_dlopen
=yes
8856 echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.
$ac_ext >&5
8859 ac_cv_lib_dl_dlopen
=no
8861 rm -f conftest.err conftest.
$ac_objext \
8862 conftest
$ac_exeext conftest.
$ac_ext
8863 LIBS
=$ac_check_lib_save_LIBS
8865 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8866 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8867 if test $ac_cv_lib_dl_dlopen = yes; then
8868 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
8873 lt_cv_dlopen_self
=yes
8880 echo "$as_me:$LINENO: checking for shl_load" >&5
8881 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8882 if test "${ac_cv_func_shl_load+set}" = set; then
8883 echo $ECHO_N "(cached) $ECHO_C" >&6
8885 cat >conftest.
$ac_ext <<_ACEOF
8888 cat confdefs.h
>>conftest.
$ac_ext
8889 cat >>conftest.
$ac_ext <<_ACEOF
8890 /* end confdefs.h. */
8891 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8893 #define shl_load innocuous_shl_load
8895 /* System header to define __stub macros and hopefully few prototypes,
8896 which can conflict with char shl_load (); below.
8897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8898 <limits.h> exists even on freestanding compilers. */
8901 # include <limits.h>
8903 # include <assert.h>
8908 /* Override any gcc2 internal prototype to avoid an error. */
8913 /* We use char because int might match the return type of a gcc2
8914 builtin and then its argument prototype would still apply. */
8916 /* The GNU C library defines this for functions which it implements
8917 to always fail with ENOSYS. Some functions are actually named
8918 something starting with __ and the normal name is an alias. */
8919 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8922 char (*f) () = shl_load;
8931 return f != shl_load;
8936 rm -f conftest.
$ac_objext conftest
$ac_exeext
8937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8938 (eval $ac_link) 2>conftest.er1
8940 grep -v '^ *+' conftest.er1
>conftest.err
8942 cat conftest.err
>&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } &&
8945 { ac_try
='test -z "$ac_c_werror_flag"
8946 || test ! -s conftest.err'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; } &&
8952 { ac_try
='test -s conftest$ac_exeext'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; }; then
8958 ac_cv_func_shl_load
=yes
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.
$ac_ext >&5
8963 ac_cv_func_shl_load
=no
8965 rm -f conftest.err conftest.
$ac_objext \
8966 conftest
$ac_exeext conftest.
$ac_ext
8968 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8969 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8970 if test $ac_cv_func_shl_load = yes; then
8971 lt_cv_dlopen
="shl_load"
8973 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8974 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8975 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8976 echo $ECHO_N "(cached) $ECHO_C" >&6
8978 ac_check_lib_save_LIBS
=$LIBS
8980 cat >conftest.
$ac_ext <<_ACEOF
8983 cat confdefs.h
>>conftest.
$ac_ext
8984 cat >>conftest.
$ac_ext <<_ACEOF
8985 /* end confdefs.h. */
8987 /* Override any gcc2 internal prototype to avoid an error. */
8991 /* We use char because int might match the return type of a gcc2
8992 builtin and then its argument prototype would still apply. */
9002 rm -f conftest.
$ac_objext conftest
$ac_exeext
9003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9004 (eval $ac_link) 2>conftest.er1
9006 grep -v '^ *+' conftest.er1
>conftest.err
9008 cat conftest.err
>&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } &&
9011 { ac_try
='test -z "$ac_c_werror_flag"
9012 || test ! -s conftest.err'
9013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); }; } &&
9018 { ac_try
='test -s conftest$ac_exeext'
9019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); }; }; then
9024 ac_cv_lib_dld_shl_load
=yes
9026 echo "$as_me: failed program was:" >&5
9027 sed 's/^/| /' conftest.
$ac_ext >&5
9029 ac_cv_lib_dld_shl_load
=no
9031 rm -f conftest.err conftest.
$ac_objext \
9032 conftest
$ac_exeext conftest.
$ac_ext
9033 LIBS
=$ac_check_lib_save_LIBS
9035 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9036 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9037 if test $ac_cv_lib_dld_shl_load = yes; then
9038 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
9040 echo "$as_me:$LINENO: checking for dlopen" >&5
9041 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9042 if test "${ac_cv_func_dlopen+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9045 cat >conftest.
$ac_ext <<_ACEOF
9048 cat confdefs.h
>>conftest.
$ac_ext
9049 cat >>conftest.
$ac_ext <<_ACEOF
9050 /* end confdefs.h. */
9051 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9053 #define dlopen innocuous_dlopen
9055 /* System header to define __stub macros and hopefully few prototypes,
9056 which can conflict with char dlopen (); below.
9057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9058 <limits.h> exists even on freestanding compilers. */
9061 # include <limits.h>
9063 # include <assert.h>
9068 /* Override any gcc2 internal prototype to avoid an error. */
9073 /* We use char because int might match the return type of a gcc2
9074 builtin and then its argument prototype would still apply. */
9076 /* The GNU C library defines this for functions which it implements
9077 to always fail with ENOSYS. Some functions are actually named
9078 something starting with __ and the normal name is an alias. */
9079 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9082 char (*f) () = dlopen;
9096 rm -f conftest.
$ac_objext conftest
$ac_exeext
9097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9098 (eval $ac_link) 2>conftest.er1
9100 grep -v '^ *+' conftest.er1
>conftest.err
9102 cat conftest.err
>&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); } &&
9105 { ac_try
='test -z "$ac_c_werror_flag"
9106 || test ! -s conftest.err'
9107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); }; } &&
9112 { ac_try
='test -s conftest$ac_exeext'
9113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; }; then
9118 ac_cv_func_dlopen
=yes
9120 echo "$as_me: failed program was:" >&5
9121 sed 's/^/| /' conftest.
$ac_ext >&5
9123 ac_cv_func_dlopen
=no
9125 rm -f conftest.err conftest.
$ac_objext \
9126 conftest
$ac_exeext conftest.
$ac_ext
9128 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9129 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9130 if test $ac_cv_func_dlopen = yes; then
9131 lt_cv_dlopen
="dlopen"
9133 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9134 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9135 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9138 ac_check_lib_save_LIBS
=$LIBS
9140 cat >conftest.
$ac_ext <<_ACEOF
9143 cat confdefs.h
>>conftest.
$ac_ext
9144 cat >>conftest.
$ac_ext <<_ACEOF
9145 /* end confdefs.h. */
9147 /* Override any gcc2 internal prototype to avoid an error. */
9151 /* We use char because int might match the return type of a gcc2
9152 builtin and then its argument prototype would still apply. */
9162 rm -f conftest.
$ac_objext conftest
$ac_exeext
9163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9164 (eval $ac_link) 2>conftest.er1
9166 grep -v '^ *+' conftest.er1
>conftest.err
9168 cat conftest.err
>&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } &&
9171 { ac_try
='test -z "$ac_c_werror_flag"
9172 || test ! -s conftest.err'
9173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); }; } &&
9178 { ac_try
='test -s conftest$ac_exeext'
9179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); }; }; then
9184 ac_cv_lib_dl_dlopen
=yes
9186 echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.
$ac_ext >&5
9189 ac_cv_lib_dl_dlopen
=no
9191 rm -f conftest.err conftest.
$ac_objext \
9192 conftest
$ac_exeext conftest.
$ac_ext
9193 LIBS
=$ac_check_lib_save_LIBS
9195 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9196 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9197 if test $ac_cv_lib_dl_dlopen = yes; then
9198 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
9200 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9201 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9202 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9203 echo $ECHO_N "(cached) $ECHO_C" >&6
9205 ac_check_lib_save_LIBS
=$LIBS
9207 cat >conftest.
$ac_ext <<_ACEOF
9210 cat confdefs.h
>>conftest.
$ac_ext
9211 cat >>conftest.
$ac_ext <<_ACEOF
9212 /* end confdefs.h. */
9214 /* Override any gcc2 internal prototype to avoid an error. */
9218 /* We use char because int might match the return type of a gcc2
9219 builtin and then its argument prototype would still apply. */
9229 rm -f conftest.
$ac_objext conftest
$ac_exeext
9230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9231 (eval $ac_link) 2>conftest.er1
9233 grep -v '^ *+' conftest.er1
>conftest.err
9235 cat conftest.err
>&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); } &&
9238 { ac_try
='test -z "$ac_c_werror_flag"
9239 || test ! -s conftest.err'
9240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); }; } &&
9245 { ac_try
='test -s conftest$ac_exeext'
9246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); }; }; then
9251 ac_cv_lib_svld_dlopen
=yes
9253 echo "$as_me: failed program was:" >&5
9254 sed 's/^/| /' conftest.
$ac_ext >&5
9256 ac_cv_lib_svld_dlopen
=no
9258 rm -f conftest.err conftest.
$ac_objext \
9259 conftest
$ac_exeext conftest.
$ac_ext
9260 LIBS
=$ac_check_lib_save_LIBS
9262 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9263 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9264 if test $ac_cv_lib_svld_dlopen = yes; then
9265 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
9267 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9268 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9269 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9270 echo $ECHO_N "(cached) $ECHO_C" >&6
9272 ac_check_lib_save_LIBS
=$LIBS
9274 cat >conftest.
$ac_ext <<_ACEOF
9277 cat confdefs.h
>>conftest.
$ac_ext
9278 cat >>conftest.
$ac_ext <<_ACEOF
9279 /* end confdefs.h. */
9281 /* Override any gcc2 internal prototype to avoid an error. */
9285 /* We use char because int might match the return type of a gcc2
9286 builtin and then its argument prototype would still apply. */
9296 rm -f conftest.
$ac_objext conftest
$ac_exeext
9297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9298 (eval $ac_link) 2>conftest.er1
9300 grep -v '^ *+' conftest.er1
>conftest.err
9302 cat conftest.err
>&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); } &&
9305 { ac_try
='test -z "$ac_c_werror_flag"
9306 || test ! -s conftest.err'
9307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); }; } &&
9312 { ac_try
='test -s conftest$ac_exeext'
9313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); }; }; then
9318 ac_cv_lib_dld_dld_link
=yes
9320 echo "$as_me: failed program was:" >&5
9321 sed 's/^/| /' conftest.
$ac_ext >&5
9323 ac_cv_lib_dld_dld_link
=no
9325 rm -f conftest.err conftest.
$ac_objext \
9326 conftest
$ac_exeext conftest.
$ac_ext
9327 LIBS
=$ac_check_lib_save_LIBS
9329 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9330 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9331 if test $ac_cv_lib_dld_dld_link = yes; then
9332 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
9353 if test "x$lt_cv_dlopen" != xno
; then
9359 case $lt_cv_dlopen in
9361 save_CPPFLAGS
="$CPPFLAGS"
9362 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
9364 save_LDFLAGS
="$LDFLAGS"
9365 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
9368 LIBS
="$lt_cv_dlopen_libs $LIBS"
9370 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9371 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9372 if test "${lt_cv_dlopen_self+set}" = set; then
9373 echo $ECHO_N "(cached) $ECHO_C" >&6
9375 if test "$cross_compiling" = yes; then :
9376 lt_cv_dlopen_self
=cross
9378 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
9379 lt_status
=$lt_dlunknown
9380 cat > conftest.
$ac_ext <<EOF
9381 #line 9381 "configure"
9382 #include "confdefs.h"
9391 # define LT_DLGLOBAL RTLD_GLOBAL
9394 # define LT_DLGLOBAL DL_GLOBAL
9396 # define LT_DLGLOBAL 0
9400 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9401 find out it does not work in some platform. */
9402 #ifndef LT_DLLAZY_OR_NOW
9404 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9407 # define LT_DLLAZY_OR_NOW DL_LAZY
9410 # define LT_DLLAZY_OR_NOW RTLD_NOW
9413 # define LT_DLLAZY_OR_NOW DL_NOW
9415 # define LT_DLLAZY_OR_NOW 0
9423 extern "C" void exit (int);
9426 void fnord() { int i=42;}
9429 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9430 int status = $lt_dlunknown;
9434 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9435 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9436 /* dlclose (self); */
9444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9445 (eval $ac_link) 2>&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
9449 (.
/conftest
; exit; ) >&5 2>/dev
/null
9452 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
9453 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
9454 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
9457 # compilation failed
9458 lt_cv_dlopen_self
=no
9465 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9466 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9468 if test "x$lt_cv_dlopen_self" = xyes
; then
9469 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
9470 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9471 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9472 if test "${lt_cv_dlopen_self_static+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9475 if test "$cross_compiling" = yes; then :
9476 lt_cv_dlopen_self_static
=cross
9478 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
9479 lt_status
=$lt_dlunknown
9480 cat > conftest.
$ac_ext <<EOF
9481 #line 9481 "configure"
9482 #include "confdefs.h"
9491 # define LT_DLGLOBAL RTLD_GLOBAL
9494 # define LT_DLGLOBAL DL_GLOBAL
9496 # define LT_DLGLOBAL 0
9500 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9501 find out it does not work in some platform. */
9502 #ifndef LT_DLLAZY_OR_NOW
9504 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9507 # define LT_DLLAZY_OR_NOW DL_LAZY
9510 # define LT_DLLAZY_OR_NOW RTLD_NOW
9513 # define LT_DLLAZY_OR_NOW DL_NOW
9515 # define LT_DLLAZY_OR_NOW 0
9523 extern "C" void exit (int);
9526 void fnord() { int i=42;}
9529 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9530 int status = $lt_dlunknown;
9534 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9535 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9536 /* dlclose (self); */
9544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9545 (eval $ac_link) 2>&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
9549 (.
/conftest
; exit; ) >&5 2>/dev
/null
9552 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
9553 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
9554 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
9557 # compilation failed
9558 lt_cv_dlopen_self_static
=no
9565 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9566 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9569 CPPFLAGS
="$save_CPPFLAGS"
9570 LDFLAGS
="$save_LDFLAGS"
9575 case $lt_cv_dlopen_self in
9576 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
9577 *) enable_dlopen_self
=unknown
;;
9580 case $lt_cv_dlopen_self_static in
9581 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
9582 *) enable_dlopen_self_static
=unknown
;;
9587 # Report which library types will actually be built
9588 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9589 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9590 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9591 echo "${ECHO_T}$can_build_shared" >&6
9593 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9594 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9595 test "$can_build_shared" = "no" && enable_shared
=no
9597 # On AIX, shared libraries and static libraries use the same namespace, and
9598 # are all built from PIC.
9601 test "$enable_shared" = yes && enable_static
=no
9602 if test -n "$RANLIB"; then
9603 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
9604 postinstall_cmds
='$RANLIB $lib'
9609 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
9610 test "$enable_shared" = yes && enable_static
=no
9614 echo "$as_me:$LINENO: result: $enable_shared" >&5
9615 echo "${ECHO_T}$enable_shared" >&6
9617 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9618 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9619 # Make sure either enable_shared or enable_static is yes.
9620 test "$enable_shared" = yes || enable_static
=yes
9621 echo "$as_me:$LINENO: result: $enable_static" >&5
9622 echo "${ECHO_T}$enable_static" >&6
9624 # The else clause should only fire when bootstrapping the
9625 # libtool distribution, otherwise you forgot to ship ltmain.sh
9626 # with your package, and you will get complaints that there are
9627 # no rules to generate ltmain.sh.
9628 if test -f "$ltmain"; then
9629 # See if we are running on zsh, and set the options which allow our commands through
9630 # without removal of \ escapes.
9631 if test -n "${ZSH_VERSION+set}" ; then
9632 setopt NO_GLOB_SUBST
9634 # Now quote all the things that may contain metacharacters while being
9635 # careful not to overquote the AC_SUBSTed values. We take copies of the
9636 # variables and quote the copies for generation of the libtool script.
9637 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9639 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9640 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9641 deplibs_check_method reload_flag reload_cmds need_locks \
9642 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9643 lt_cv_sys_global_symbol_to_c_name_address \
9644 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9645 old_postinstall_cmds old_postuninstall_cmds \
9649 lt_prog_compiler_wl \
9650 lt_prog_compiler_pic \
9651 lt_prog_compiler_static \
9652 lt_prog_compiler_no_builtin_flag \
9653 export_dynamic_flag_spec \
9654 thread_safe_flag_spec \
9655 whole_archive_flag_spec \
9656 enable_shared_with_static_runtimes \
9658 old_archive_from_new_cmds \
9663 compiler_lib_search_path \
9665 archive_expsym_cmds \
9667 postuninstall_cmds \
9668 old_archive_from_expsyms_cmds \
9669 allow_undefined_flag \
9671 export_symbols_cmds \
9672 hardcode_libdir_flag_spec \
9673 hardcode_libdir_flag_spec_ld \
9674 hardcode_libdir_separator \
9675 hardcode_automatic \
9677 module_expsym_cmds \
9678 lt_cv_prog_compiler_c_o \
9683 old_archive_cmds | \
9684 old_archive_from_new_cmds | \
9686 archive_expsym_cmds | \
9688 module_expsym_cmds | \
9689 old_archive_from_expsyms_cmds | \
9690 export_symbols_cmds | \
9691 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9692 postinstall_cmds | postuninstall_cmds | \
9693 old_postinstall_cmds | old_postuninstall_cmds | \
9694 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
9695 # Double-quote double-evaled strings.
9696 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9699 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9705 *'\$0 --fallback-echo"')
9706 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9711 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9713 { echo "$as_me:$LINENO: creating $ofile" >&5
9714 echo "$as_me: creating $ofile" >&6;}
9716 cat <<__EOF__ >> "$cfgfile"
9719 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9720 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9721 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9723 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9724 # Free Software Foundation, Inc.
9726 # This file is part of GNU Libtool:
9727 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9729 # This program is free software; you can redistribute it and/or modify
9730 # it under the terms of the GNU General Public License as published by
9731 # the Free Software Foundation; either version 2 of the License, or
9732 # (at your option) any later version.
9734 # This program is distributed in the hope that it will be useful, but
9735 # WITHOUT ANY WARRANTY; without even the implied warranty of
9736 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9737 # General Public License for more details.
9739 # You should have received a copy of the GNU General Public License
9740 # along with this program; if not, write to the Free Software
9741 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9743 # As a special exception to the GNU General Public License, if you
9744 # distribute this file as part of a program that contains a
9745 # configuration script generated by Autoconf, you may include it under
9746 # the same distribution terms that you use for the rest of that program.
9748 # A sed program that does not truncate output.
9751 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9752 Xsed="$SED -e 1s/^X//"
9754 # The HP-UX ksh and POSIX shell print the target directory to stdout
9756 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9758 # The names of the tagged configurations supported by this script.
9761 # ### BEGIN LIBTOOL CONFIG
9763 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9765 # Shell to use when invoking shell scripts.
9768 # Whether or not to build shared libraries.
9769 build_libtool_libs=$enable_shared
9771 # Whether or not to build static libraries.
9772 build_old_libs=$enable_static
9774 # Whether or not to add -lc for building shared libraries.
9775 build_libtool_need_lc=$archive_cmds_need_lc
9777 # Whether or not to disallow shared libs when runtime libs are static
9778 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9780 # Whether or not to optimize for fast installation.
9781 fast_install=$enable_fast_install
9784 host_alias=$host_alias
9789 build_alias=$build_alias
9793 # An echo program that does not interpret backslashes.
9798 AR_FLAGS=$lt_AR_FLAGS
9803 # LTCC compiler flags.
9804 LTCFLAGS=$lt_LTCFLAGS
9806 # A language-specific compiler.
9809 # Is the compiler the GNU C compiler?
9812 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9813 gcc_ver=\`gcc -dumpversion\`
9818 # The linker used to build libraries.
9821 # Whether we need hard or soft links.
9824 # A BSD-compatible nm program.
9827 # A symbol stripping program
9830 # Used to examine libraries when file_magic_cmd begins "file"
9831 MAGIC_CMD=$MAGIC_CMD
9833 # Used on cygwin: DLL creation program.
9836 # Used on cygwin: object dumper.
9839 # Used on cygwin: assembler.
9842 # The name of the directory that contains temporary libtool files.
9845 # How to create reloadable object files.
9846 reload_flag=$lt_reload_flag
9847 reload_cmds=$lt_reload_cmds
9849 # How to pass a linker flag through the compiler.
9850 wl=$lt_lt_prog_compiler_wl
9852 # Object file suffix (normally "o").
9855 # Old archive suffix (normally "a").
9858 # Shared library suffix (normally ".so").
9859 shrext_cmds='$shrext_cmds'
9861 # Executable file suffix (normally "").
9864 # Additional compiler flags for building library objects.
9865 pic_flag=$lt_lt_prog_compiler_pic
9868 # What is the maximum length of a command?
9869 max_cmd_len=$lt_cv_sys_max_cmd_len
9871 # Does compiler simultaneously support -c and -o options?
9872 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9874 # Must we lock files when doing compilation?
9875 need_locks=$lt_need_locks
9877 # Do we need the lib prefix for modules?
9878 need_lib_prefix=$need_lib_prefix
9880 # Do we need a version for libraries?
9881 need_version=$need_version
9883 # Whether dlopen is supported.
9884 dlopen_support=$enable_dlopen
9886 # Whether dlopen of programs is supported.
9887 dlopen_self=$enable_dlopen_self
9889 # Whether dlopen of statically linked programs is supported.
9890 dlopen_self_static=$enable_dlopen_self_static
9892 # Compiler flag to prevent dynamic linking.
9893 link_static_flag=$lt_lt_prog_compiler_static
9895 # Compiler flag to turn off builtin functions.
9896 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9898 # Compiler flag to allow reflexive dlopens.
9899 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9901 # Compiler flag to generate shared objects directly from archives.
9902 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9904 # Compiler flag to generate thread-safe objects.
9905 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9907 # Library versioning type.
9908 version_type=$version_type
9910 # Format of library name prefix.
9911 libname_spec=$lt_libname_spec
9913 # List of archive names. First name is the real one, the rest are links.
9914 # The last name is the one that the linker finds with -lNAME.
9915 library_names_spec=$lt_library_names_spec
9917 # The coded name of the library, if different from the real name.
9918 soname_spec=$lt_soname_spec
9920 # Commands used to build and install an old-style archive.
9922 old_archive_cmds=$lt_old_archive_cmds
9923 old_postinstall_cmds=$lt_old_postinstall_cmds
9924 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9926 # Create an old-style archive from a shared archive.
9927 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9929 # Create a temporary old-style archive to link instead of a shared archive.
9930 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9932 # Commands used to build and install a shared archive.
9933 archive_cmds=$lt_archive_cmds
9934 archive_expsym_cmds=$lt_archive_expsym_cmds
9935 postinstall_cmds=$lt_postinstall_cmds
9936 postuninstall_cmds=$lt_postuninstall_cmds
9938 # Commands used to build a loadable module (assumed same as above if empty)
9939 module_cmds=$lt_module_cmds
9940 module_expsym_cmds=$lt_module_expsym_cmds
9942 # Commands to strip libraries.
9943 old_striplib=$lt_old_striplib
9944 striplib=$lt_striplib
9946 # Dependencies to place before the objects being linked to create a
9948 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9950 # Dependencies to place after the objects being linked to create a
9952 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9954 # Dependencies to place before the objects being linked to create a
9958 # Dependencies to place after the objects being linked to create a
9960 postdeps=$lt_postdeps
9962 # The library search path used internally by the compiler when linking
9964 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9966 # Method to check whether dependent libraries are shared objects.
9967 deplibs_check_method=$lt_deplibs_check_method
9969 # Command to use when deplibs_check_method == file_magic.
9970 file_magic_cmd=$lt_file_magic_cmd
9972 # Flag that allows shared libraries with undefined symbols to be built.
9973 allow_undefined_flag=$lt_allow_undefined_flag
9975 # Flag that forces no undefined symbols.
9976 no_undefined_flag=$lt_no_undefined_flag
9978 # Commands used to finish a libtool library installation in a directory.
9979 finish_cmds=$lt_finish_cmds
9981 # Same as above, but a single script fragment to be evaled but not shown.
9982 finish_eval=$lt_finish_eval
9984 # Take the output of nm and produce a listing of raw symbols and C names.
9985 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9987 # Transform the output of nm in a proper C declaration
9988 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9990 # Transform the output of nm in a C name address pair
9991 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9993 # This is the shared library runtime path variable.
9994 runpath_var=$runpath_var
9996 # This is the shared library path variable.
9997 shlibpath_var=$shlibpath_var
9999 # Is shlibpath searched before the hard-coded library search path?
10000 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10002 # How to hardcode a shared library path into an executable.
10003 hardcode_action=$hardcode_action
10005 # Whether we should hardcode library paths into libraries.
10006 hardcode_into_libs=$hardcode_into_libs
10008 # Flag to hardcode \$libdir into a binary during linking.
10009 # This must work even if \$libdir does not exist.
10010 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10012 # If ld is used when linking, flag to hardcode \$libdir into
10013 # a binary during linking. This must work even if \$libdir does
10015 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10017 # Whether we need a single -rpath flag with a separated argument.
10018 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10020 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10021 # resulting binary.
10022 hardcode_direct=$hardcode_direct
10024 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10025 # resulting binary.
10026 hardcode_minus_L=$hardcode_minus_L
10028 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10029 # the resulting binary.
10030 hardcode_shlibpath_var=$hardcode_shlibpath_var
10032 # Set to yes if building a shared library automatically hardcodes DIR into the library
10033 # and all subsequent libraries and executables linked against it.
10034 hardcode_automatic=$hardcode_automatic
10036 # Variables whose values should be saved in libtool wrapper scripts and
10037 # restored at relink time.
10038 variables_saved_for_relink="$variables_saved_for_relink"
10040 # Whether libtool must link a program against all its dependency libraries.
10041 link_all_deplibs=$link_all_deplibs
10043 # Compile-time system search path for libraries
10044 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10046 # Run-time system search path for libraries
10047 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10049 # Fix the shell variable \$srcfile for the compiler.
10050 fix_srcfile_path="$fix_srcfile_path"
10052 # Set to yes if exported symbols are required.
10053 always_export_symbols=$always_export_symbols
10055 # The commands to list exported symbols.
10056 export_symbols_cmds=$lt_export_symbols_cmds
10058 # The commands to extract the exported symbol list from a shared archive.
10059 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10061 # Symbols that should not be listed in the preloaded symbols.
10062 exclude_expsyms=$lt_exclude_expsyms
10064 # Symbols that must always be exported.
10065 include_expsyms=$lt_include_expsyms
10067 # ### END LIBTOOL CONFIG
10074 cat <<\EOF
>> "$cfgfile"
10076 # AIX sometimes has problems with the GCC collect2 program. For some
10077 # reason, if we set the COLLECT_NAMES environment variable, the problems
10078 # vanish in a puff of smoke.
10079 if test "X${COLLECT_NAMES+set}" != Xset
; then
10081 export COLLECT_NAMES
10087 # We use sed instead of cat because bash on DJGPP gets confused if
10088 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10089 # text mode, it properly converts lines to CR/LF. This bash problem
10090 # is reportedly fixed, but why not run on old versions too?
10091 sed '$q' "$ltmain" >> "$cfgfile" ||
(rm -f "$cfgfile"; exit 1)
10093 mv -f "$cfgfile" "$ofile" || \
10094 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10098 # If there is no Makefile yet, we rely on a make rule to execute
10099 # `config.status --recheck' to rerun these tests and create the
10100 # libtool script then.
10101 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10102 if test -f "$ltmain_in"; then
10103 test -f Makefile
&& make "$ltmain"
10109 ac_cpp
='$CPP $CPPFLAGS'
10110 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10111 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10112 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10117 # Check whether --with-tags or --without-tags was given.
10118 if test "${with_tags+set}" = set; then
10119 withval
="$with_tags"
10120 tagnames
="$withval"
10123 if test -f "$ltmain" && test -n "$tagnames"; then
10124 if test ! -f "${ofile}"; then
10125 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10126 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10129 if test -z "$LTCC"; then
10130 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10131 if test -z "$LTCC"; then
10132 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10133 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10135 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10136 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10139 if test -z "$LTCFLAGS"; then
10140 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10143 # Extract list of available tagged configurations in $ofile.
10144 # Note that this assumes the entire list is on one line.
10145 available_tags
=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10147 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
10148 for tagname
in $tagnames; do
10150 # Check whether tagname contains only valid characters
10151 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10153 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10154 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10155 { (exit 1); exit 1; }; }
10159 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev
/null
10161 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10162 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10163 { (exit 1); exit 1; }; }
10166 # Update the list of available tags.
10167 if test -n "$tagname"; then
10168 echo appending configuration tag
\"$tagname\" to
$ofile
10172 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10173 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10174 (test "X$CXX" != "Xg++"))) ; then
10176 ac_cpp
='$CXXCPP $CPPFLAGS'
10177 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10178 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10179 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10184 archive_cmds_need_lc_CXX
=no
10185 allow_undefined_flag_CXX
=
10186 always_export_symbols_CXX
=no
10187 archive_expsym_cmds_CXX
=
10188 export_dynamic_flag_spec_CXX
=
10189 hardcode_direct_CXX
=no
10190 hardcode_libdir_flag_spec_CXX
=
10191 hardcode_libdir_flag_spec_ld_CXX
=
10192 hardcode_libdir_separator_CXX
=
10193 hardcode_minus_L_CXX
=no
10194 hardcode_shlibpath_var_CXX
=unsupported
10195 hardcode_automatic_CXX
=no
10197 module_expsym_cmds_CXX
=
10198 link_all_deplibs_CXX
=unknown
10199 old_archive_cmds_CXX
=$old_archive_cmds
10200 no_undefined_flag_CXX
=
10201 whole_archive_flag_spec_CXX
=
10202 enable_shared_with_static_runtimes_CXX
=no
10204 # Dependencies to place before and after the object being linked:
10205 predep_objects_CXX
=
10206 postdep_objects_CXX
=
10209 compiler_lib_search_path_CXX
=
10211 # Source file extension for C++ test sources.
10214 # Object file extension for compiled C++ test sources.
10218 # Code to be used in simple compile tests
10219 lt_simple_compile_test_code
="int some_variable = 0;\n"
10221 # Code to be used in simple link tests
10222 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }\n'
10224 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10226 # If no C compiler was specified, use CC.
10229 # If no C compiler flags were specified, use CFLAGS.
10230 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
10232 # Allow CC to be a program name with arguments.
10236 # save warnings/boilerplate of simple test code
10237 ac_outfile
=conftest.
$ac_objext
10238 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
10239 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
10240 _lt_compiler_boilerplate
=`cat conftest.err`
10243 ac_outfile
=conftest.
$ac_objext
10244 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
10245 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
10246 _lt_linker_boilerplate
=`cat conftest.err`
10250 # Allow CC to be a program name with arguments.
10255 lt_save_with_gnu_ld
=$with_gnu_ld
10256 lt_save_path_LD
=$lt_cv_path_LD
10257 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10258 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
10260 $as_unset lt_cv_prog_gnu_ld
10262 if test -n "${lt_cv_path_LDCXX+set}"; then
10263 lt_cv_path_LD
=$lt_cv_path_LDCXX
10265 $as_unset lt_cv_path_LD
10267 test -z "${LDCXX+set}" || LD
=$LDCXX
10271 for cc_temp
in $compiler""; do
10273 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
10274 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
10279 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10282 # We don't want -fno-exception wen compiling C++ code, so set the
10283 # no_builtin_flag separately
10284 if test "$GXX" = yes; then
10285 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
10287 lt_prog_compiler_no_builtin_flag_CXX
=
10290 if test "$GXX" = yes; then
10291 # Set up default GNU C++ configuration
10294 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10295 if test "${with_gnu_ld+set}" = set; then
10296 withval
="$with_gnu_ld"
10297 test "$withval" = no || with_gnu_ld
=yes
10302 if test "$GCC" = yes; then
10303 # Check if gcc -print-prog-name=ld gives a path.
10304 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10305 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10308 # gcc leaves a trailing carriage return which upsets mingw
10309 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10311 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10314 # Accept absolute paths.
10316 re_direlt
='/[^/][^/]*/\.\./'
10317 # Canonicalize the pathname of ld
10318 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
10319 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10320 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10322 test -z "$LD" && LD
="$ac_prog"
10325 # If it fails, then pretend we aren't using GCC.
10329 # If it is relative, then search for the first ld in PATH.
10330 with_gnu_ld
=unknown
10333 elif test "$with_gnu_ld" = yes; then
10334 echo "$as_me:$LINENO: checking for GNU ld" >&5
10335 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10337 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10338 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10340 if test "${lt_cv_path_LD+set}" = set; then
10341 echo $ECHO_N "(cached) $ECHO_C" >&6
10343 if test -z "$LD"; then
10344 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
10345 for ac_dir
in $PATH; do
10347 test -z "$ac_dir" && ac_dir
=.
10348 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10349 lt_cv_path_LD
="$ac_dir/$ac_prog"
10350 # Check to see if the program is GNU ld. I'd rather use --version,
10351 # but apparently some variants of GNU ld only accept -v.
10352 # Break only if it was the GNU/non-GNU ld that we prefer.
10353 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10354 *GNU
* |
*'with BFD'*)
10355 test "$with_gnu_ld" != no
&& break
10358 test "$with_gnu_ld" != yes && break
10365 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
10369 LD
="$lt_cv_path_LD"
10370 if test -n "$LD"; then
10371 echo "$as_me:$LINENO: result: $LD" >&5
10372 echo "${ECHO_T}$LD" >&6
10374 echo "$as_me:$LINENO: result: no" >&5
10375 echo "${ECHO_T}no" >&6
10377 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10378 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10379 { (exit 1); exit 1; }; }
10380 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10381 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10382 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
10385 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10386 case `$LD -v 2>&1 </dev/null` in
10387 *GNU
* |
*'with BFD'*)
10388 lt_cv_prog_gnu_ld
=yes
10391 lt_cv_prog_gnu_ld
=no
10395 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10396 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10397 with_gnu_ld
=$lt_cv_prog_gnu_ld
10401 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10402 # archiving commands below assume that GNU ld is being used.
10403 if test "$with_gnu_ld" = yes; then
10404 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10405 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'
10407 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
10408 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
10410 # If archive_cmds runs LD, not CC, wlarc should be empty
10411 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10412 # investigate it a little bit more. (MM)
10415 # ancient GNU ld didn't support --whole-archive et. al.
10416 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10417 grep 'no-whole-archive' > /dev
/null
; then
10418 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10420 whole_archive_flag_spec_CXX
=
10426 # A generic and very simple default shared library creation
10427 # command for GNU C++ for the case where it uses the native
10428 # linker, instead of GNU ld. If possible, this setting should
10429 # overridden to take advantage of the native linker features on
10430 # the platform it is being used on.
10431 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10434 # Commands to make compiler produce verbose output that lists
10435 # what "hidden" libraries, object files and flags are used when
10436 # linking a shared library.
10437 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10445 # PORTME: fill in a description of your system's C++ link characteristics
10446 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10447 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10451 # FIXME: insert proper C++ library support
10455 if test "$host_cpu" = ia64
; then
10456 # On IA64, the linker does run time linking by default, so we don't
10457 # have to do anything special.
10458 aix_use_runtimelinking
=no
10459 exp_sym_flag
='-Bexport'
10462 aix_use_runtimelinking
=no
10464 # Test if we are trying to use run time linking or normal
10465 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10466 # need to do runtime linking.
10467 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
10468 for ld_flag
in $LDFLAGS; do
10471 aix_use_runtimelinking
=yes
10479 exp_sym_flag
='-bexport'
10480 no_entry_flag
='-bnoentry'
10483 # When large executables or shared objects are built, AIX ld can
10484 # have problems creating the table of contents. If linking a library
10485 # or program results in "error TOC overflow" add -mminimal-toc to
10486 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10487 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10489 archive_cmds_CXX
=''
10490 hardcode_direct_CXX
=yes
10491 hardcode_libdir_separator_CXX
=':'
10492 link_all_deplibs_CXX
=yes
10494 if test "$GXX" = yes; then
10495 case $host_os in aix4.
[012]|aix4.
[012].
*)
10496 # We only want to do this on AIX 4.2 and lower, the check
10497 # below for broken collect2 doesn't work under 4.3+
10498 collect2name
=`${CC} -print-prog-name=collect2`
10499 if test -f "$collect2name" && \
10500 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
10502 # We have reworked collect2
10503 hardcode_direct_CXX
=yes
10505 # We have old collect2
10506 hardcode_direct_CXX
=unsupported
10507 # It fails to find uninstalled libraries when the uninstalled
10508 # path is not listed in the libpath. Setting hardcode_minus_L
10509 # to unsupported forces relinking
10510 hardcode_minus_L_CXX
=yes
10511 hardcode_libdir_flag_spec_CXX
='-L$libdir'
10512 hardcode_libdir_separator_CXX
=
10516 shared_flag
='-shared'
10517 if test "$aix_use_runtimelinking" = yes; then
10518 shared_flag
="$shared_flag "'${wl}-G'
10522 if test "$host_cpu" = ia64
; then
10523 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10524 # chokes on -Wl,-G. The following line is correct:
10527 if test "$aix_use_runtimelinking" = yes; then
10528 shared_flag
='${wl}-G'
10530 shared_flag
='${wl}-bM:SRE'
10535 # It seems that -bexpall does not export symbols beginning with
10536 # underscore (_), so it is better to generate a list of symbols to export.
10537 always_export_symbols_CXX
=yes
10538 if test "$aix_use_runtimelinking" = yes; then
10539 # Warning - without using the other runtime loading flags (-brtl),
10540 # -berok will link without error, but may produce a broken library.
10541 allow_undefined_flag_CXX
='-berok'
10542 # Determine the default libpath from the value encoded in an empty executable.
10543 cat >conftest.
$ac_ext <<_ACEOF
10546 cat confdefs.h
>>conftest.
$ac_ext
10547 cat >>conftest.
$ac_ext <<_ACEOF
10548 /* end confdefs.h. */
10558 rm -f conftest.
$ac_objext conftest
$ac_exeext
10559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10560 (eval $ac_link) 2>conftest.er1
10562 grep -v '^ *+' conftest.er1
>conftest.err
10564 cat conftest.err
>&5
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); } &&
10567 { ac_try
='test -z "$ac_cxx_werror_flag"
10568 || test ! -s conftest.err'
10569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10570 (eval $ac_try) 2>&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); }; } &&
10574 { ac_try
='test -s conftest$ac_exeext'
10575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10576 (eval $ac_try) 2>&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); }; }; then
10581 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10583 # Check for a 64-bit object if we didn't find anything.
10584 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; }
10587 echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.
$ac_ext >&5
10591 rm -f conftest.err conftest.
$ac_objext \
10592 conftest
$ac_exeext conftest.
$ac_ext
10593 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10595 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
10597 archive_expsym_cmds_CXX
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10599 if test "$host_cpu" = ia64
; then
10600 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
10601 allow_undefined_flag_CXX
="-z nodefs"
10602 archive_expsym_cmds_CXX
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10604 # Determine the default libpath from the value encoded in an empty executable.
10605 cat >conftest.
$ac_ext <<_ACEOF
10608 cat confdefs.h
>>conftest.
$ac_ext
10609 cat >>conftest.
$ac_ext <<_ACEOF
10610 /* end confdefs.h. */
10620 rm -f conftest.
$ac_objext conftest
$ac_exeext
10621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10622 (eval $ac_link) 2>conftest.er1
10624 grep -v '^ *+' conftest.er1
>conftest.err
10626 cat conftest.err
>&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); } &&
10629 { ac_try
='test -z "$ac_cxx_werror_flag"
10630 || test ! -s conftest.err'
10631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10632 (eval $ac_try) 2>&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; } &&
10636 { ac_try
='test -s conftest$ac_exeext'
10637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10638 (eval $ac_try) 2>&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); }; }; then
10643 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10645 # Check for a 64-bit object if we didn't find anything.
10646 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; }
10649 echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.
$ac_ext >&5
10653 rm -f conftest.err conftest.
$ac_objext \
10654 conftest
$ac_exeext conftest.
$ac_ext
10655 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10657 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
10658 # Warning - without using the other run time loading flags,
10659 # -berok will link without error, but may produce a broken library.
10660 no_undefined_flag_CXX
=' ${wl}-bernotok'
10661 allow_undefined_flag_CXX
=' ${wl}-berok'
10662 # Exported symbols can be pulled into shared objects from archives
10663 whole_archive_flag_spec_CXX
='$convenience'
10664 archive_cmds_need_lc_CXX
=yes
10665 # This is similar to how AIX traditionally builds its shared libraries.
10666 archive_expsym_cmds_CXX
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10672 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
10673 allow_undefined_flag_CXX
=unsupported
10674 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10675 # support --undefined. This deserves some investigation. FIXME
10676 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10683 case $cc_basename in
10685 # FIXME: insert proper C++ library support
10691 cygwin
* | mingw
* | pw32
*)
10692 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10693 # as there is no search path for DLLs.
10694 hardcode_libdir_flag_spec_CXX
='-L$libdir'
10695 allow_undefined_flag_CXX
=unsupported
10696 always_export_symbols_CXX
=no
10697 enable_shared_with_static_runtimes_CXX
=yes
10699 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
10700 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10701 # If the export-symbols file already is a .def file (1st line
10702 # is EXPORTS), use it as is; otherwise, prepend...
10703 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10704 cp $export_symbols $output_objdir/$soname.def;
10706 echo EXPORTS > $output_objdir/$soname.def;
10707 cat $export_symbols >> $output_objdir/$soname.def;
10709 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10714 darwin
* | rhapsody
*)
10716 rhapsody
* | darwin1.
[012])
10717 allow_undefined_flag_CXX
='${wl}-undefined ${wl}suppress'
10720 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10721 allow_undefined_flag_CXX
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10723 case ${MACOSX_DEPLOYMENT_TARGET} in
10725 allow_undefined_flag_CXX
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10728 allow_undefined_flag_CXX
='${wl}-undefined ${wl}dynamic_lookup'
10734 archive_cmds_need_lc_CXX
=no
10735 hardcode_direct_CXX
=no
10736 hardcode_automatic_CXX
=yes
10737 hardcode_shlibpath_var_CXX
=unsupported
10738 whole_archive_flag_spec_CXX
=''
10739 link_all_deplibs_CXX
=yes
10741 if test "$GXX" = yes ; then
10742 lt_int_apple_cc_single_mod
=no
10743 output_verbose_link_cmd
='echo'
10744 if $CC -dumpspecs 2>&1 |
$EGREP 'single_module' >/dev
/null
; then
10745 lt_int_apple_cc_single_mod
=yes
10747 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
10748 archive_cmds_CXX
='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10750 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'
10752 module_cmds_CXX
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10753 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10754 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
10755 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}'
10757 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}'
10759 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}'
10761 case $cc_basename in
10763 output_verbose_link_cmd
='echo'
10764 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'
10765 module_cmds_CXX
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10766 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10767 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}'
10768 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}'
10778 case $cc_basename in
10780 # FIXME: insert proper C++ library support
10784 # Green Hills C++ Compiler
10785 # FIXME: insert proper C++ library support
10789 # FIXME: insert proper C++ library support
10795 # C++ shared libraries reported to be fairly broken before switch to ELF
10799 archive_cmds_need_lc_CXX
=no
10801 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
10802 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10809 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10810 hardcode_libdir_separator_CXX
=:
10811 export_dynamic_flag_spec_CXX
='${wl}-E'
10812 hardcode_direct_CXX
=yes
10813 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10814 # but as the default
10815 # location of the library.
10817 case $cc_basename in
10819 # FIXME: insert proper C++ library support
10823 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'
10824 # Commands to make compiler produce verbose output that lists
10825 # what "hidden" libraries, object files and flags are used when
10826 # linking a shared library.
10828 # There doesn't appear to be a way to prevent this compiler from
10829 # explicitly linking system object files so we need to strip them
10830 # from the output so that they don't get included in the library
10832 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'
10835 if test "$GXX" = yes; then
10836 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'
10838 # FIXME: insert proper C++ library support
10845 if test $with_gnu_ld = no
; then
10846 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10847 hardcode_libdir_separator_CXX
=:
10851 hardcode_libdir_flag_spec_ld_CXX
='+b $libdir'
10854 export_dynamic_flag_spec_CXX
='${wl}-E'
10860 hardcode_direct_CXX
=no
10861 hardcode_shlibpath_var_CXX
=no
10864 hardcode_direct_CXX
=yes
10865 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10866 # but as the default
10867 # location of the library.
10871 case $cc_basename in
10873 # FIXME: insert proper C++ library support
10879 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10882 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10885 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10888 # Commands to make compiler produce verbose output that lists
10889 # what "hidden" libraries, object files and flags are used when
10890 # linking a shared library.
10892 # There doesn't appear to be a way to prevent this compiler from
10893 # explicitly linking system object files so we need to strip them
10894 # from the output so that they don't get included in the library
10896 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'
10899 if test "$GXX" = yes; then
10900 if test $with_gnu_ld = no
; then
10903 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10906 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10909 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'
10914 # FIXME: insert proper C++ library support
10921 hardcode_direct_CXX
=no
10922 hardcode_shlibpath_var_CXX
=no
10923 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10924 export_dynamic_flag_spec_CXX
='${wl}-E'
10925 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10926 # Instead, shared libraries are loaded at an image base (0x10000000 by
10927 # default) and relocated if they conflict, which is a slow very memory
10928 # consuming and fragmenting process. To avoid this, we pick a random,
10929 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10930 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10931 archive_cmds_CXX
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10932 archive_expsym_cmds_CXX
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10935 case $cc_basename in
10938 archive_cmds_CXX
='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10940 # Archives containing C++ object files must be created using
10941 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10942 # necessary to make sure instantiated templates are included
10944 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
10947 if test "$GXX" = yes; then
10948 if test "$with_gnu_ld" = no
; then
10949 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10951 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'
10954 link_all_deplibs_CXX
=yes
10957 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10958 hardcode_libdir_separator_CXX
=:
10961 case $cc_basename in
10963 # Kuck and Associates, Inc. (KAI) C++ Compiler
10965 # KCC will only create a shared library if the output file
10966 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10967 # to its proper name (with version) after linking.
10968 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'
10969 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'
10970 # Commands to make compiler produce verbose output that lists
10971 # what "hidden" libraries, object files and flags are used when
10972 # linking a shared library.
10974 # There doesn't appear to be a way to prevent this compiler from
10975 # explicitly linking system object files so we need to strip them
10976 # from the output so that they don't get included in the library
10978 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'
10980 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
10981 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
10983 # Archives containing C++ object files must be created using
10984 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10985 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
10990 # version 8.0 and above of icpc choke on multiply defined symbols
10991 # if we add $predep_objects and $postdep_objects, however 7.1 and
10992 # earlier do not add the objects themselves.
10993 case `$CC -V 2>&1` in
10995 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10996 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'
10998 *) # Version 8.0 or newer
11001 ia64
*) tmp_idyn
=' -i_dynamic';;
11003 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11004 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'
11007 archive_cmds_need_lc_CXX
=no
11008 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11009 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11010 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11013 # Portland Group C++ compiler
11014 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11015 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11017 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
11018 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11019 whole_archive_flag_spec_CXX
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11023 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11024 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'
11026 runpath_var
=LD_RUN_PATH
11027 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11028 hardcode_libdir_separator_CXX
=:
11030 # Commands to make compiler produce verbose output that lists
11031 # what "hidden" libraries, object files and flags are used when
11032 # linking a shared library.
11034 # There doesn't appear to be a way to prevent this compiler from
11035 # explicitly linking system object files so we need to strip them
11036 # from the output so that they don't get included in the library
11038 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'
11043 # FIXME: insert proper C++ library support
11047 # FIXME: insert proper C++ library support
11051 case $cc_basename in
11053 # FIXME: insert proper C++ library support
11057 # FIXME: insert proper C++ library support
11063 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11064 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11066 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11067 hardcode_direct_CXX
=yes
11068 hardcode_shlibpath_var_CXX
=no
11070 # Workaround some broken pre-1.5 toolchains
11071 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11074 # C++ shared libraries are fairly broken
11078 hardcode_direct_CXX
=yes
11079 hardcode_shlibpath_var_CXX
=no
11080 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11081 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11082 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11083 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11084 export_dynamic_flag_spec_CXX
='${wl}-E'
11085 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11087 output_verbose_link_cmd
='echo'
11090 case $cc_basename in
11092 # Kuck and Associates, Inc. (KAI) C++ Compiler
11094 # KCC will only create a shared library if the output file
11095 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11096 # to its proper name (with version) after linking.
11097 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'
11099 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11100 hardcode_libdir_separator_CXX
=:
11102 # Archives containing C++ object files must be created using
11103 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11104 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11108 # Rational C++ 2.4.1
11109 # FIXME: insert proper C++ library support
11113 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11114 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11116 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11117 hardcode_libdir_separator_CXX
=:
11119 # Commands to make compiler produce verbose output that lists
11120 # what "hidden" libraries, object files and flags are used when
11121 # linking a shared library.
11123 # There doesn't appear to be a way to prevent this compiler from
11124 # explicitly linking system object files so we need to strip them
11125 # from the output so that they don't get included in the library
11127 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'
11130 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11131 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11132 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11134 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11135 hardcode_libdir_separator_CXX
=:
11137 # Commands to make compiler produce verbose output that lists
11138 # what "hidden" libraries, object files and flags are used when
11139 # linking a shared library.
11140 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11143 # FIXME: insert proper C++ library support
11150 case $cc_basename in
11152 # Kuck and Associates, Inc. (KAI) C++ Compiler
11154 # KCC will only create a shared library if the output file
11155 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11156 # to its proper name (with version) after linking.
11157 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'
11159 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11160 hardcode_libdir_separator_CXX
=:
11162 # Archives containing C++ object files must be created using
11163 # the KAI C++ compiler.
11164 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
11167 # Rational C++ 2.4.1
11168 # FIXME: insert proper C++ library support
11172 allow_undefined_flag_CXX
=' -expect_unresolved \*'
11173 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11174 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11175 echo "-hidden">> $lib.exp~
11176 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11179 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11180 hardcode_libdir_separator_CXX
=:
11182 # Commands to make compiler produce verbose output that lists
11183 # what "hidden" libraries, object files and flags are used when
11184 # linking a shared library.
11186 # There doesn't appear to be a way to prevent this compiler from
11187 # explicitly linking system object files so we need to strip them
11188 # from the output so that they don't get included in the library
11190 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'
11193 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11194 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11195 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11197 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11198 hardcode_libdir_separator_CXX
=:
11200 # Commands to make compiler produce verbose output that lists
11201 # what "hidden" libraries, object files and flags are used when
11202 # linking a shared library.
11203 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11206 # FIXME: insert proper C++ library support
11213 # FIXME: insert proper C++ library support
11217 case $cc_basename in
11220 # FIXME: insert proper C++ library support
11225 # FIXME: insert proper C++ library support
11229 # FIXME: insert proper C++ library support
11235 case $cc_basename in
11237 # Sun C++ 4.2, 5.x and Centerline C++
11238 archive_cmds_need_lc_CXX
=yes
11239 no_undefined_flag_CXX
=' -zdefs'
11240 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11241 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11242 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11244 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11245 hardcode_shlibpath_var_CXX
=no
11247 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11249 # The C++ compiler is used as linker so we must use $wl
11250 # flag to pass the commands to the underlying system
11251 # linker. We must also pass each convience library through
11252 # to the system linker between allextract/defaultextract.
11253 # The C++ compiler will combine linker options so we
11254 # cannot just pass the convience library names through
11256 # Supported since Solaris 2.6 (maybe 2.5.1?)
11257 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11260 link_all_deplibs_CXX
=yes
11262 output_verbose_link_cmd
='echo'
11264 # Archives containing C++ object files must be created using
11265 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11266 # necessary to make sure instantiated templates are included
11268 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
11271 # Green Hills C++ Compiler
11272 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11274 # The C++ compiler must be used to create the archive.
11275 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11278 # GNU C++ compiler with Solaris linker
11279 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11280 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
11281 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
11282 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11283 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11284 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11286 # Commands to make compiler produce verbose output that lists
11287 # what "hidden" libraries, object files and flags are used when
11288 # linking a shared library.
11289 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11291 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11293 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11294 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11295 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11297 # Commands to make compiler produce verbose output that lists
11298 # what "hidden" libraries, object files and flags are used when
11299 # linking a shared library.
11300 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11303 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
11308 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
11309 no_undefined_flag_CXX
='${wl}-z,text'
11310 archive_cmds_need_lc_CXX
=no
11311 hardcode_shlibpath_var_CXX
=no
11312 runpath_var
='LD_RUN_PATH'
11314 case $cc_basename in
11316 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11317 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11320 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11321 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11325 sysv5
* | sco3.2v5
* | sco5v6
*)
11326 # Note: We can NOT use -z defs as we might desire, because we do not
11327 # link with -lc, and that would cause any symbols used from libc to
11328 # always be unresolved, which means just about no library would
11329 # ever link correctly. If we're not using GNU ld we use -z text
11330 # though, which does catch some bad symbols but isn't as heavy-handed
11332 # For security reasons, it is highly recommended that you always
11333 # use absolute paths for naming shared libraries, and exclude the
11334 # DT_RUNPATH tag from executables and libraries. But doing so
11335 # requires that you compile everything twice, which is a pain.
11336 # So that behaviour is only enabled if SCOABSPATH is set to a
11337 # non-empty value in the environment. Most likely only useful for
11338 # creating official distributions of packages.
11339 # This is a hack until libtool officially supports absolute path
11340 # names for shared libraries.
11341 no_undefined_flag_CXX
='${wl}-z,text'
11342 allow_undefined_flag_CXX
='${wl}-z,nodefs'
11343 archive_cmds_need_lc_CXX
=no
11344 hardcode_shlibpath_var_CXX
=no
11345 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11346 hardcode_libdir_separator_CXX
=':'
11347 link_all_deplibs_CXX
=yes
11348 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
11349 runpath_var
='LD_RUN_PATH'
11351 case $cc_basename in
11353 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11354 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11357 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11358 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11363 case $cc_basename in
11365 # NonStop-UX NCC 3.20
11366 # FIXME: insert proper C++ library support
11370 # FIXME: insert proper C++ library support
11376 # FIXME: insert proper C++ library support
11380 # FIXME: insert proper C++ library support
11384 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11385 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11386 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
11392 cat > conftest.
$ac_ext <<EOF
11396 Foo (void) { a = 0; }
11402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11403 (eval $ac_compile) 2>&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; then
11407 # Parse the compiler output and extract the necessary
11408 # objects, libraries and library flags.
11410 # Sentinel used to keep track of whether or not we are before
11411 # the conftest object file.
11412 pre_test_object_deps_done
=no
11414 # The `*' in the case matches for architectures that use `case' in
11415 # $output_verbose_cmd can trigger glob expansion during the loop
11416 # eval without this substitution.
11417 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11419 for p
in `eval $output_verbose_link_cmd`; do
11423 # Some compilers place space between "-{L,R}" and the path.
11424 # Remove the space.
11425 if test $p = "-L" \
11426 ||
test $p = "-R"; then
11433 if test "$pre_test_object_deps_done" = no
; then
11436 # Internal compiler library paths should come after those
11437 # provided the user. The postdeps already come after the
11438 # user supplied libs so there is no need to process them.
11439 if test -z "$compiler_lib_search_path_CXX"; then
11440 compiler_lib_search_path_CXX
="${prev}${p}"
11442 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
11445 # The "-l" case would never come before the object being
11446 # linked, so don't bother handling this case.
11449 if test -z "$postdeps_CXX"; then
11450 postdeps_CXX
="${prev}${p}"
11452 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
11458 # This assumes that the test object file only shows up
11459 # once in the compiler output.
11460 if test "$p" = "conftest.$objext"; then
11461 pre_test_object_deps_done
=yes
11465 if test "$pre_test_object_deps_done" = no
; then
11466 if test -z "$predep_objects_CXX"; then
11467 predep_objects_CXX
="$p"
11469 predep_objects_CXX
="$predep_objects_CXX $p"
11472 if test -z "$postdep_objects_CXX"; then
11473 postdep_objects_CXX
="$p"
11475 postdep_objects_CXX
="$postdep_objects_CXX $p"
11480 *) ;; # Ignore the rest.
11488 echo "libtool.m4: error: problem compiling CXX test program"
11491 $rm -f confest.
$objext
11493 # PORTME: override above test on systems where it is broken
11496 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11497 # hack all around it, let's just trust "g++" to DTRT.
11498 predep_objects_CXX
=
11499 postdep_objects_CXX
=
11504 case $cc_basename in
11506 # Adding this requires a known-good setup of shared libraries for
11507 # Sun compiler versions before 5.6, else PIC objects from an old
11508 # archive will be linked into the output, leading to subtle bugs.
11509 postdeps_CXX
='-lCstd -lCrun'
11516 case " $postdeps_CXX " in
11517 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
11520 lt_prog_compiler_wl_CXX
=
11521 lt_prog_compiler_pic_CXX
=
11522 lt_prog_compiler_static_CXX
=
11524 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11525 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11527 # C++ specific cases for pic, static, wl, etc.
11528 if test "$GXX" = yes; then
11529 lt_prog_compiler_wl_CXX
='-Wl,'
11530 lt_prog_compiler_static_CXX
='-static'
11534 # All AIX code is PIC.
11535 if test "$host_cpu" = ia64
; then
11536 # AIX 5 now supports IA64 processor
11537 lt_prog_compiler_static_CXX
='-Bstatic'
11541 # FIXME: we need at least 68020 code to build shared libraries, but
11542 # adding the `-m68020' flag to GCC prevents building anything better,
11544 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
11546 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
11547 # PIC is the default for these OSes.
11549 mingw
* | os2
* | pw32
*)
11550 # This hack is so that the source file can tell whether it is being
11551 # built for inclusion in a dll (and should export symbols for example).
11552 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
11554 darwin
* | rhapsody
*)
11555 # PIC is the default on this platform
11556 # Common symbols not allowed in MH_DYLIB files
11557 lt_prog_compiler_pic_CXX
='-fno-common'
11560 # DJGPP does not support shared libraries at all
11561 lt_prog_compiler_pic_CXX
=
11564 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11565 # Instead, we relocate shared libraries at runtime.
11568 if test -d /usr
/nec
; then
11569 lt_prog_compiler_pic_CXX
=-Kconform_pic
11573 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11574 # not for PA HP-UX.
11579 lt_prog_compiler_pic_CXX
='-fPIC'
11584 lt_prog_compiler_pic_CXX
='-fPIC'
11590 # All AIX code is PIC.
11591 if test "$host_cpu" = ia64
; then
11592 # AIX 5 now supports IA64 processor
11593 lt_prog_compiler_static_CXX
='-Bstatic'
11595 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
11599 case $cc_basename in
11601 # Green Hills C++ Compiler
11602 # _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"
11607 # PIC is the default on this platform
11608 # Common symbols not allowed in MH_DYLIB files
11609 case $cc_basename in
11611 lt_prog_compiler_pic_CXX
='-qnocommon'
11612 lt_prog_compiler_wl_CXX
='-Wl,'
11617 case $cc_basename in
11619 lt_prog_compiler_pic_CXX
='-KPIC'
11622 # Green Hills C++ Compiler
11623 lt_prog_compiler_pic_CXX
='-pic'
11629 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
11630 # FreeBSD uses GNU C++
11632 hpux9
* | hpux10
* | hpux11
*)
11633 case $cc_basename in
11635 lt_prog_compiler_wl_CXX
='-Wl,'
11636 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
11637 if test "$host_cpu" != ia64
; then
11638 lt_prog_compiler_pic_CXX
='+Z'
11642 lt_prog_compiler_wl_CXX
='-Wl,'
11643 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
11649 lt_prog_compiler_pic_CXX
='+Z'
11658 # This is c89, which is MS Visual C++ (no shared libs)
11659 # Anyone wants to do a port?
11661 irix5
* | irix6
* | nonstopux
*)
11662 case $cc_basename in
11664 lt_prog_compiler_wl_CXX
='-Wl,'
11665 lt_prog_compiler_static_CXX
='-non_shared'
11666 # CC pic flag -KPIC is the default.
11673 case $cc_basename in
11676 lt_prog_compiler_wl_CXX
='--backend -Wl,'
11677 lt_prog_compiler_pic_CXX
='-fPIC'
11681 lt_prog_compiler_wl_CXX
='-Wl,'
11682 lt_prog_compiler_pic_CXX
='-KPIC'
11683 lt_prog_compiler_static_CXX
='-static'
11686 # Portland Group C++ compiler.
11687 lt_prog_compiler_wl_CXX
='-Wl,'
11688 lt_prog_compiler_pic_CXX
='-fpic'
11689 lt_prog_compiler_static_CXX
='-Bstatic'
11693 # Make sure the PIC flag is empty. It appears that all Alpha
11694 # Linux and Compaq Tru64 Unix objects are PIC.
11695 lt_prog_compiler_pic_CXX
=
11696 lt_prog_compiler_static_CXX
='-non_shared'
11707 case $cc_basename in
11709 lt_prog_compiler_pic_CXX
='-W c,exportall'
11717 osf3
* | osf4
* | osf5
*)
11718 case $cc_basename in
11720 lt_prog_compiler_wl_CXX
='--backend -Wl,'
11723 # Rational C++ 2.4.1
11724 lt_prog_compiler_pic_CXX
='-pic'
11727 # Digital/Compaq C++
11728 lt_prog_compiler_wl_CXX
='-Wl,'
11729 # Make sure the PIC flag is empty. It appears that all Alpha
11730 # Linux and Compaq Tru64 Unix objects are PIC.
11731 lt_prog_compiler_pic_CXX
=
11732 lt_prog_compiler_static_CXX
='-non_shared'
11741 case $cc_basename in
11743 # Sun C++ 4.2, 5.x and Centerline C++
11744 lt_prog_compiler_pic_CXX
='-KPIC'
11745 lt_prog_compiler_static_CXX
='-Bstatic'
11746 lt_prog_compiler_wl_CXX
='-Qoption ld '
11749 # Green Hills C++ Compiler
11750 lt_prog_compiler_pic_CXX
='-PIC'
11757 case $cc_basename in
11760 lt_prog_compiler_pic_CXX
='-pic'
11761 lt_prog_compiler_static_CXX
='-Bstatic'
11765 lt_prog_compiler_pic_CXX
='-pic'
11772 case $cc_basename in
11774 # NonStop-UX NCC 3.20
11775 lt_prog_compiler_pic_CXX
='-KPIC'
11781 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
11782 case $cc_basename in
11784 lt_prog_compiler_wl_CXX
='-Wl,'
11785 lt_prog_compiler_pic_CXX
='-KPIC'
11786 lt_prog_compiler_static_CXX
='-Bstatic'
11793 lt_prog_compiler_can_build_shared_CXX
=no
11798 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11799 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11802 # Check to make sure the PIC flag actually works.
11804 if test -n "$lt_prog_compiler_pic_CXX"; then
11806 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11807 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11808 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11809 echo $ECHO_N "(cached) $ECHO_C" >&6
11811 lt_prog_compiler_pic_works_CXX
=no
11812 ac_outfile
=conftest.
$ac_objext
11813 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11814 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
11815 # Insert the option either (1) after the last *FLAGS variable, or
11816 # (2) before a word containing "conftest.", or (3) at the end.
11817 # Note that $ac_compile itself does not contain backslashes and begins
11818 # with a dollar sign (not a hyphen), so the echo should work correctly.
11819 # The option is referenced via a variable to avoid confusing sed.
11820 lt_compile
=`echo "$ac_compile" | $SED \
11821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11823 -e 's:$: $lt_compiler_flag:'`
11824 (eval echo "\"\$as_me:11824: $lt_compile\"" >&5)
11825 (eval "$lt_compile" 2>conftest.err
)
11827 cat conftest.err
>&5
11828 echo "$as_me:11828: \$? = $ac_status" >&5
11829 if (exit $ac_status) && test -s "$ac_outfile"; then
11830 # The compiler can only warn and ignore the option if not recognized
11831 # So say no if there are warnings other than the usual output.
11832 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
11833 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
11834 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
11835 lt_prog_compiler_pic_works_CXX
=yes
11841 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11842 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11844 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
11845 case $lt_prog_compiler_pic_CXX in
11847 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
11850 lt_prog_compiler_pic_CXX
=
11851 lt_prog_compiler_can_build_shared_CXX
=no
11856 # For platforms which do not support PIC, -DPIC is meaningless:
11858 lt_prog_compiler_pic_CXX
=
11861 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
11866 # Check to make sure the static flag actually works.
11868 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
11869 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11870 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11871 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11872 echo $ECHO_N "(cached) $ECHO_C" >&6
11874 lt_prog_compiler_static_works_CXX
=no
11875 save_LDFLAGS
="$LDFLAGS"
11876 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
11877 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
11878 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
11879 # The linker can only warn and ignore the option if not recognized
11880 # So say no if there are warnings
11881 if test -s conftest.err
; then
11882 # Append any errors to the config.log.
11883 cat conftest.err
1>&5
11884 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
11885 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
11886 if diff conftest.exp conftest.er2
>/dev
/null
; then
11887 lt_prog_compiler_static_works_CXX
=yes
11890 lt_prog_compiler_static_works_CXX
=yes
11894 LDFLAGS
="$save_LDFLAGS"
11897 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11898 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11900 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
11903 lt_prog_compiler_static_CXX
=
11907 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11908 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11909 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11910 echo $ECHO_N "(cached) $ECHO_C" >&6
11912 lt_cv_prog_compiler_c_o_CXX
=no
11913 $rm -r conftest
2>/dev
/null
11917 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11919 lt_compiler_flag
="-o out/conftest2.$ac_objext"
11920 # Insert the option either (1) after the last *FLAGS variable, or
11921 # (2) before a word containing "conftest.", or (3) at the end.
11922 # Note that $ac_compile itself does not contain backslashes and begins
11923 # with a dollar sign (not a hyphen), so the echo should work correctly.
11924 lt_compile
=`echo "$ac_compile" | $SED \
11925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11927 -e 's:$: $lt_compiler_flag:'`
11928 (eval echo "\"\$as_me:11928: $lt_compile\"" >&5)
11929 (eval "$lt_compile" 2>out
/conftest.err
)
11931 cat out
/conftest.err
>&5
11932 echo "$as_me:11932: \$? = $ac_status" >&5
11933 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
11935 # The compiler can only warn and ignore the option if not recognized
11936 # So say no if there are warnings
11937 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
11938 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
11939 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
11940 lt_cv_prog_compiler_c_o_CXX
=yes
11945 # SGI C++ compiler will create directory out/ii_files/ for
11946 # template instantiation
11947 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
11948 $rm out
/* && rmdir out
11954 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11955 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11958 hard_links
="nottested"
11959 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
11960 # do not overwrite the value of need_locks provided by the user
11961 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11962 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11965 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
11967 ln conftest.a conftest.b
2>&5 || hard_links
=no
11968 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
11969 echo "$as_me:$LINENO: result: $hard_links" >&5
11970 echo "${ECHO_T}$hard_links" >&6
11971 if test "$hard_links" = no
; then
11972 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11973 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11980 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11981 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11983 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11986 # If we're using GNU nm, then we don't want the "-C" option.
11987 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11988 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
11989 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'
11991 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'
11995 export_symbols_cmds_CXX
="$ltdll_cmds"
11998 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'
12001 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12005 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12006 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12007 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
12010 # Do we need to explicitly link libc?
12012 case "x$archive_cmds_need_lc_CXX" in
12014 # Assume -lc should be added
12015 archive_cmds_need_lc_CXX
=yes
12017 if test "$enable_shared" = yes && test "$GCC" = yes; then
12018 case $archive_cmds_CXX in
12020 # FIXME: we may have to deal with multi-command sequences.
12023 # Test whether the compiler implicitly links with -lc since on some
12024 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12025 # to ld, don't add -lc before -lgcc.
12026 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12027 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12029 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
12031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12032 (eval $ac_compile) 2>&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); } 2>conftest.err
; then
12038 libobjs
=conftest.
$ac_objext
12040 wl
=$lt_prog_compiler_wl_CXX
12041 pic_flag
=$lt_prog_compiler_pic_CXX
12047 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
12048 allow_undefined_flag_CXX
=
12049 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12050 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }
12055 archive_cmds_need_lc_CXX
=no
12057 archive_cmds_need_lc_CXX
=yes
12059 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
12061 cat conftest.err
1>&5
12064 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12065 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12072 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12073 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12074 library_names_spec
=
12075 libname_spec
='lib$name'
12079 postuninstall_cmds
=
12083 shlibpath_overrides_runpath
=unknown
12085 dynamic_linker
="$host_os ld.so"
12086 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
12087 if test "$GCC" = yes; then
12088 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12089 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
12090 # if the path contains ";" then we assume it to be the separator
12091 # otherwise default to the standard path separator (i.e. ":") - it is
12092 # assumed that no part of a normal pathname contains ";" but that should
12093 # okay in the real world where ";" in dirpaths is itself problematic.
12094 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12096 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12099 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
12101 need_lib_prefix
=unknown
12102 hardcode_into_libs
=no
12104 # when you set need_version to no, make sure it does not cause -set_version
12105 # flags to be left without arguments
12106 need_version
=unknown
12111 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
12112 shlibpath_var
=LIBPATH
12114 # AIX 3 has no versioning support, so we append a major version to the name.
12115 soname_spec
='${libname}${release}${shared_ext}$major'
12122 hardcode_into_libs
=yes
12123 if test "$host_cpu" = ia64
; then
12124 # AIX 5 supports IA64
12125 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12126 shlibpath_var
=LD_LIBRARY_PATH
12128 # With GCC up to 2.95.x, collect2 would create an import file
12129 # for dependence libraries. The import file would start with
12130 # the line `#! .'. This would cause the generated library to
12131 # depend on `.', always an invalid library. This was fixed in
12132 # development snapshots of GCC prior to 3.0.
12134 aix4 | aix4.
[01] | aix4.
[01].
*)
12135 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12137 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
12140 can_build_shared
=no
12144 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12145 # soname into executable. Probably we can add versioning support to
12146 # collect2, so additional links can be useful in future.
12147 if test "$aix_use_runtimelinking" = yes; then
12148 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12149 # instead of lib<name>.a to let people know that these are not
12150 # typical AIX shared libraries.
12151 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12153 # We preserve .a as extension for shared libraries through AIX4.2
12154 # and later when we are not doing run time linking.
12155 library_names_spec
='${libname}${release}.a $libname.a'
12156 soname_spec
='${libname}${release}${shared_ext}$major'
12158 shlibpath_var
=LIBPATH
12163 library_names_spec
='$libname.ixlibrary $libname.a'
12164 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12165 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'
12169 library_names_spec
='${libname}${shared_ext}'
12170 dynamic_linker
="$host_os ld.so"
12171 shlibpath_var
=LIBRARY_PATH
12177 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12178 soname_spec
='${libname}${release}${shared_ext}$major'
12179 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
12180 shlibpath_var
=LD_LIBRARY_PATH
12181 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12182 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
12183 # the default ld.so.conf also contains /usr/contrib/lib and
12184 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12185 # libtool to hard-code these into programs
12188 cygwin
* | mingw
* | pw32
*)
12189 version_type
=windows
12194 case $GCC,$host_os in
12195 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
12196 library_names_spec
='$libname.dll.a'
12197 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12198 postinstall_cmds
='base_file=`basename \${file}`~
12199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12200 dldir=$destdir/`dirname \$dlpath`~
12201 test -d \$dldir || mkdir -p \$dldir~
12202 $install_prog $dir/$dlname \$dldir/$dlname~
12203 chmod a+x \$dldir/$dlname'
12204 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12205 dlpath=$dir/\$dldll~
12207 shlibpath_overrides_runpath
=yes
12211 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12212 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12213 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
12216 # MinGW DLLs use traditional 'lib' prefix
12217 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12218 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12219 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
12220 # It is most probably a Windows format PATH printed by
12221 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12222 # path with ; separators, and with drive letters. We can handle the
12223 # drive letters (cygwin fileutils understands them), so leave them,
12224 # especially as we might pass files found there to a mingw objdump,
12225 # which wouldn't understand a cygwinified path. Ahh.
12226 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12228 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12232 # pw32 DLLs use 'pw' prefix rather than 'lib'
12233 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12239 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12242 dynamic_linker
='Win32 ld.exe'
12243 # FIXME: first we should search . and the directory the executable is in
12247 darwin
* | rhapsody
*)
12248 dynamic_linker
="$host_os dyld"
12249 version_type
=darwin
12252 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12253 soname_spec
='${libname}${release}${major}$shared_ext'
12254 shlibpath_overrides_runpath
=yes
12255 shlibpath_var
=DYLD_LIBRARY_PATH
12256 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
12257 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12258 if test "$GCC" = yes; then
12259 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"`
12261 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
12263 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
12270 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12271 soname_spec
='${libname}${release}${shared_ext}$major'
12272 shlibpath_var
=LD_LIBRARY_PATH
12283 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12284 soname_spec
='${libname}${release}${shared_ext}$major'
12285 shlibpath_var
=LD_LIBRARY_PATH
12286 shlibpath_overrides_runpath
=no
12287 hardcode_into_libs
=yes
12288 dynamic_linker
='GNU ld.so'
12291 freebsd
* | dragonfly
*)
12292 # DragonFly does not have aout. When/if they implement a new
12293 # versioning mechanism, adjust this.
12294 if test -x /usr
/bin
/objformat
; then
12295 objformat
=`/usr/bin/objformat`
12298 freebsd
[123]*) objformat
=aout
;;
12299 *) objformat
=elf
;;
12302 version_type
=freebsd-
$objformat
12303 case $version_type in
12305 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12310 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12314 shlibpath_var
=LD_LIBRARY_PATH
12317 shlibpath_overrides_runpath
=yes
12319 freebsd3.
[01]* | freebsdelf3.
[01]*)
12320 shlibpath_overrides_runpath
=yes
12321 hardcode_into_libs
=yes
12323 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
12324 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
12325 shlibpath_overrides_runpath
=no
12326 hardcode_into_libs
=yes
12328 freebsd
*) # from 4.6 on
12329 shlibpath_overrides_runpath
=yes
12330 hardcode_into_libs
=yes
12339 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12340 soname_spec
='${libname}${release}${shared_ext}$major'
12341 shlibpath_var
=LD_LIBRARY_PATH
12342 hardcode_into_libs
=yes
12345 hpux9
* | hpux10
* | hpux11
*)
12346 # Give a soname corresponding to the major version so that dld.sl refuses to
12347 # link against other versions.
12354 hardcode_into_libs
=yes
12355 dynamic_linker
="$host_os dld.so"
12356 shlibpath_var
=LD_LIBRARY_PATH
12357 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12358 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12359 soname_spec
='${libname}${release}${shared_ext}$major'
12360 if test "X$HPUX_IA64_MODE" = X32
; then
12361 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12363 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
12365 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12369 hardcode_into_libs
=yes
12370 dynamic_linker
="$host_os dld.sl"
12371 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
12372 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12373 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12374 soname_spec
='${libname}${release}${shared_ext}$major'
12375 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12376 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12380 dynamic_linker
="$host_os dld.sl"
12381 shlibpath_var
=SHLIB_PATH
12382 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
12383 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12384 soname_spec
='${libname}${release}${shared_ext}$major'
12387 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12388 postinstall_cmds
='chmod 555 $lib'
12395 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12396 soname_spec
='${libname}${release}${shared_ext}$major'
12397 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
12398 shlibpath_var
=LD_LIBRARY_PATH
12399 shlibpath_overrides_runpath
=no
12400 hardcode_into_libs
=yes
12403 irix5
* | irix6
* | nonstopux
*)
12405 nonstopux
*) version_type
=nonstopux
;;
12407 if test "$lt_cv_prog_gnu_ld" = yes; then
12415 soname_spec
='${libname}${release}${shared_ext}$major'
12416 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12418 irix5
* | nonstopux
*)
12419 libsuff
= shlibsuff
=
12422 case $LD in # libtool.m4 will add one of these switches to LD
12423 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
12424 libsuff
= shlibsuff
= libmagic
=32-bit;;
12425 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
12426 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
12427 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
12428 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
12429 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
12433 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
12434 shlibpath_overrides_runpath
=no
12435 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12436 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
12437 hardcode_into_libs
=yes
12440 # No shared lib support for Linux oldld, aout, or coff.
12441 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
12445 # This must be Linux ELF.
12450 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12451 soname_spec
='${libname}${release}${shared_ext}$major'
12452 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12453 shlibpath_var
=LD_LIBRARY_PATH
12454 shlibpath_overrides_runpath
=no
12455 # This implies no fast_install, which is unacceptable.
12456 # Some rework will be needed to allow for fast_install
12457 # before this can be enabled.
12458 hardcode_into_libs
=yes
12460 # find out which ABI we are using
12462 case "$host_cpu" in
12463 x86_64
*|s390x
*|powerpc64
*)
12464 echo '#line 12464 "configure"' > conftest.
$ac_ext
12465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12466 (eval $ac_compile) 2>&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; then
12470 case `/usr/bin/file conftest.$ac_objext` in
12473 sys_lib_search_path_spec
="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12481 # Append ld.so.conf contents to the search path
12482 if test -f /etc
/ld.so.conf
; then
12483 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12484 sys_lib_dlsearch_path_spec
="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12487 # We used to test for /lib/ld.so.1 and disable shared libraries on
12488 # powerpc, because MkLinux only supported shared libraries with the
12489 # GNU dynamic linker. Since this was broken with cross compilers,
12490 # most powerpc-linux boxes support dynamic linking these days and
12491 # people can always --disable-shared, the test was removed, and we
12492 # assume the GNU/Linux dynamic linker is in use.
12493 dynamic_linker
='GNU/Linux ld.so'
12500 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12501 soname_spec
='${libname}${release}${shared_ext}$major'
12502 shlibpath_var
=LD_LIBRARY_PATH
12503 shlibpath_overrides_runpath
=no
12504 hardcode_into_libs
=yes
12505 dynamic_linker
='GNU ld.so'
12512 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
12513 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12514 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12515 dynamic_linker
='NetBSD (a.out) ld.so'
12517 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12518 soname_spec
='${libname}${release}${shared_ext}$major'
12519 dynamic_linker
='NetBSD ld.elf_so'
12521 shlibpath_var
=LD_LIBRARY_PATH
12522 shlibpath_overrides_runpath
=yes
12523 hardcode_into_libs
=yes
12528 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12529 shlibpath_var
=LD_LIBRARY_PATH
12530 shlibpath_overrides_runpath
=yes
12537 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12538 soname_spec
='${libname}${release}${shared_ext}$major'
12539 shlibpath_var
=LD_LIBRARY_PATH
12540 shlibpath_overrides_runpath
=yes
12545 sys_lib_dlsearch_path_spec
="/usr/lib"
12547 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12549 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
12550 *) need_version
=no
;;
12552 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12553 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12554 shlibpath_var
=LD_LIBRARY_PATH
12555 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12557 openbsd2.
[89] | openbsd2.
[89].
*)
12558 shlibpath_overrides_runpath
=no
12561 shlibpath_overrides_runpath
=yes
12565 shlibpath_overrides_runpath
=yes
12570 libname_spec
='$name'
12573 library_names_spec
='$libname${shared_ext} $libname.a'
12574 dynamic_linker
='OS/2 ld.exe'
12575 shlibpath_var
=LIBPATH
12578 osf3
* | osf4
* | osf5
*)
12582 soname_spec
='${libname}${release}${shared_ext}$major'
12583 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12584 shlibpath_var
=LD_LIBRARY_PATH
12585 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12586 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
12593 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12594 soname_spec
='${libname}${release}${shared_ext}$major'
12595 shlibpath_var
=LD_LIBRARY_PATH
12596 shlibpath_overrides_runpath
=yes
12597 hardcode_into_libs
=yes
12598 # ldd complains unless libraries are executable
12599 postinstall_cmds
='chmod +x $lib'
12604 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12605 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12606 shlibpath_var
=LD_LIBRARY_PATH
12607 shlibpath_overrides_runpath
=yes
12608 if test "$with_gnu_ld" = yes; then
12616 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12617 soname_spec
='${libname}${release}${shared_ext}$major'
12618 shlibpath_var
=LD_LIBRARY_PATH
12619 case $host_vendor in
12621 shlibpath_overrides_runpath
=no
12623 export_dynamic_flag_spec
='${wl}-Blargedynsym'
12624 runpath_var
=LD_RUN_PATH
12632 shlibpath_overrides_runpath
=no
12633 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
12639 if test -d /usr
/nec
;then
12641 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12642 soname_spec
='$libname${shared_ext}.$major'
12643 shlibpath_var
=LD_LIBRARY_PATH
12647 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
12648 version_type
=freebsd-elf
12651 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12652 soname_spec
='${libname}${release}${shared_ext}$major'
12653 shlibpath_var
=LD_LIBRARY_PATH
12654 hardcode_into_libs
=yes
12655 if test "$with_gnu_ld" = yes; then
12656 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12657 shlibpath_overrides_runpath
=no
12659 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
12660 shlibpath_overrides_runpath
=yes
12663 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
12667 sys_lib_dlsearch_path_spec
='/usr/lib'
12672 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12673 soname_spec
='${libname}${release}${shared_ext}$major'
12674 shlibpath_var
=LD_LIBRARY_PATH
12681 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12682 echo "${ECHO_T}$dynamic_linker" >&6
12683 test "$dynamic_linker" = no
&& can_build_shared
=no
12685 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
12686 if test "$GCC" = yes; then
12687 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12690 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12691 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12692 hardcode_action_CXX
=
12693 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12694 test -n "$runpath_var_CXX" || \
12695 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12697 # We can hardcode non-existant directories.
12698 if test "$hardcode_direct_CXX" != no
&&
12699 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12700 # have to relink, otherwise we might link with an installed library
12701 # when we should be linking with a yet-to-be-installed one
12702 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12703 test "$hardcode_minus_L_CXX" != no
; then
12704 # Linking always hardcodes the temporary library directory.
12705 hardcode_action_CXX
=relink
12707 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12708 hardcode_action_CXX
=immediate
12711 # We cannot hardcode anything, or else we can only hardcode existing
12713 hardcode_action_CXX
=unsupported
12715 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12716 echo "${ECHO_T}$hardcode_action_CXX" >&6
12718 if test "$hardcode_action_CXX" = relink
; then
12719 # Fast installation is not supported
12720 enable_fast_install
=no
12721 elif test "$shlibpath_overrides_runpath" = yes ||
12722 test "$enable_shared" = no
; then
12723 # Fast installation is not necessary
12724 enable_fast_install
=needless
12728 # The else clause should only fire when bootstrapping the
12729 # libtool distribution, otherwise you forgot to ship ltmain.sh
12730 # with your package, and you will get complaints that there are
12731 # no rules to generate ltmain.sh.
12732 if test -f "$ltmain"; then
12733 # See if we are running on zsh, and set the options which allow our commands through
12734 # without removal of \ escapes.
12735 if test -n "${ZSH_VERSION+set}" ; then
12736 setopt NO_GLOB_SUBST
12738 # Now quote all the things that may contain metacharacters while being
12739 # careful not to overquote the AC_SUBSTed values. We take copies of the
12740 # variables and quote the copies for generation of the libtool script.
12741 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12743 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12744 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12745 deplibs_check_method reload_flag reload_cmds need_locks \
12746 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12747 lt_cv_sys_global_symbol_to_c_name_address \
12748 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12749 old_postinstall_cmds old_postuninstall_cmds \
12753 lt_prog_compiler_wl_CXX \
12754 lt_prog_compiler_pic_CXX \
12755 lt_prog_compiler_static_CXX \
12756 lt_prog_compiler_no_builtin_flag_CXX \
12757 export_dynamic_flag_spec_CXX \
12758 thread_safe_flag_spec_CXX \
12759 whole_archive_flag_spec_CXX \
12760 enable_shared_with_static_runtimes_CXX \
12761 old_archive_cmds_CXX \
12762 old_archive_from_new_cmds_CXX \
12763 predep_objects_CXX \
12764 postdep_objects_CXX \
12767 compiler_lib_search_path_CXX \
12769 archive_expsym_cmds_CXX \
12770 postinstall_cmds_CXX \
12771 postuninstall_cmds_CXX \
12772 old_archive_from_expsyms_cmds_CXX \
12773 allow_undefined_flag_CXX \
12774 no_undefined_flag_CXX \
12775 export_symbols_cmds_CXX \
12776 hardcode_libdir_flag_spec_CXX \
12777 hardcode_libdir_flag_spec_ld_CXX \
12778 hardcode_libdir_separator_CXX \
12779 hardcode_automatic_CXX \
12781 module_expsym_cmds_CXX \
12782 lt_cv_prog_compiler_c_o_CXX \
12783 exclude_expsyms_CXX \
12784 include_expsyms_CXX
; do
12787 old_archive_cmds_CXX | \
12788 old_archive_from_new_cmds_CXX | \
12789 archive_cmds_CXX | \
12790 archive_expsym_cmds_CXX | \
12791 module_cmds_CXX | \
12792 module_expsym_cmds_CXX | \
12793 old_archive_from_expsyms_cmds_CXX | \
12794 export_symbols_cmds_CXX | \
12795 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12796 postinstall_cmds | postuninstall_cmds | \
12797 old_postinstall_cmds | old_postuninstall_cmds | \
12798 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
12799 # Double-quote double-evaled strings.
12800 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12803 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12809 *'\$0 --fallback-echo"')
12810 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12816 cat <<__EOF__ >> "$cfgfile"
12817 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12819 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12821 # Shell to use when invoking shell scripts.
12824 # Whether or not to build shared libraries.
12825 build_libtool_libs=$enable_shared
12827 # Whether or not to build static libraries.
12828 build_old_libs=$enable_static
12830 # Whether or not to add -lc for building shared libraries.
12831 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12833 # Whether or not to disallow shared libs when runtime libs are static
12834 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12836 # Whether or not to optimize for fast installation.
12837 fast_install=$enable_fast_install
12840 host_alias=$host_alias
12844 # The build system.
12845 build_alias=$build_alias
12849 # An echo program that does not interpret backslashes.
12854 AR_FLAGS=$lt_AR_FLAGS
12859 # LTCC compiler flags.
12860 LTCFLAGS=$lt_LTCFLAGS
12862 # A language-specific compiler.
12863 CC=$lt_compiler_CXX
12865 # Is the compiler the GNU C compiler?
12868 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12869 gcc_ver=\`gcc -dumpversion\`
12874 # The linker used to build libraries.
12877 # Whether we need hard or soft links.
12880 # A BSD-compatible nm program.
12883 # A symbol stripping program
12886 # Used to examine libraries when file_magic_cmd begins "file"
12887 MAGIC_CMD=$MAGIC_CMD
12889 # Used on cygwin: DLL creation program.
12892 # Used on cygwin: object dumper.
12895 # Used on cygwin: assembler.
12898 # The name of the directory that contains temporary libtool files.
12901 # How to create reloadable object files.
12902 reload_flag=$lt_reload_flag
12903 reload_cmds=$lt_reload_cmds
12905 # How to pass a linker flag through the compiler.
12906 wl=$lt_lt_prog_compiler_wl_CXX
12908 # Object file suffix (normally "o").
12909 objext="$ac_objext"
12911 # Old archive suffix (normally "a").
12914 # Shared library suffix (normally ".so").
12915 shrext_cmds='$shrext_cmds'
12917 # Executable file suffix (normally "").
12920 # Additional compiler flags for building library objects.
12921 pic_flag=$lt_lt_prog_compiler_pic_CXX
12924 # What is the maximum length of a command?
12925 max_cmd_len=$lt_cv_sys_max_cmd_len
12927 # Does compiler simultaneously support -c and -o options?
12928 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12930 # Must we lock files when doing compilation?
12931 need_locks=$lt_need_locks
12933 # Do we need the lib prefix for modules?
12934 need_lib_prefix=$need_lib_prefix
12936 # Do we need a version for libraries?
12937 need_version=$need_version
12939 # Whether dlopen is supported.
12940 dlopen_support=$enable_dlopen
12942 # Whether dlopen of programs is supported.
12943 dlopen_self=$enable_dlopen_self
12945 # Whether dlopen of statically linked programs is supported.
12946 dlopen_self_static=$enable_dlopen_self_static
12948 # Compiler flag to prevent dynamic linking.
12949 link_static_flag=$lt_lt_prog_compiler_static_CXX
12951 # Compiler flag to turn off builtin functions.
12952 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12954 # Compiler flag to allow reflexive dlopens.
12955 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12957 # Compiler flag to generate shared objects directly from archives.
12958 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12960 # Compiler flag to generate thread-safe objects.
12961 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12963 # Library versioning type.
12964 version_type=$version_type
12966 # Format of library name prefix.
12967 libname_spec=$lt_libname_spec
12969 # List of archive names. First name is the real one, the rest are links.
12970 # The last name is the one that the linker finds with -lNAME.
12971 library_names_spec=$lt_library_names_spec
12973 # The coded name of the library, if different from the real name.
12974 soname_spec=$lt_soname_spec
12976 # Commands used to build and install an old-style archive.
12978 old_archive_cmds=$lt_old_archive_cmds_CXX
12979 old_postinstall_cmds=$lt_old_postinstall_cmds
12980 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12982 # Create an old-style archive from a shared archive.
12983 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12985 # Create a temporary old-style archive to link instead of a shared archive.
12986 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12988 # Commands used to build and install a shared archive.
12989 archive_cmds=$lt_archive_cmds_CXX
12990 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12991 postinstall_cmds=$lt_postinstall_cmds
12992 postuninstall_cmds=$lt_postuninstall_cmds
12994 # Commands used to build a loadable module (assumed same as above if empty)
12995 module_cmds=$lt_module_cmds_CXX
12996 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12998 # Commands to strip libraries.
12999 old_striplib=$lt_old_striplib
13000 striplib=$lt_striplib
13002 # Dependencies to place before the objects being linked to create a
13004 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13006 # Dependencies to place after the objects being linked to create a
13008 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13010 # Dependencies to place before the objects being linked to create a
13012 predeps=$lt_predeps_CXX
13014 # Dependencies to place after the objects being linked to create a
13016 postdeps=$lt_postdeps_CXX
13018 # The library search path used internally by the compiler when linking
13019 # a shared library.
13020 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13022 # Method to check whether dependent libraries are shared objects.
13023 deplibs_check_method=$lt_deplibs_check_method
13025 # Command to use when deplibs_check_method == file_magic.
13026 file_magic_cmd=$lt_file_magic_cmd
13028 # Flag that allows shared libraries with undefined symbols to be built.
13029 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13031 # Flag that forces no undefined symbols.
13032 no_undefined_flag=$lt_no_undefined_flag_CXX
13034 # Commands used to finish a libtool library installation in a directory.
13035 finish_cmds=$lt_finish_cmds
13037 # Same as above, but a single script fragment to be evaled but not shown.
13038 finish_eval=$lt_finish_eval
13040 # Take the output of nm and produce a listing of raw symbols and C names.
13041 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13043 # Transform the output of nm in a proper C declaration
13044 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13046 # Transform the output of nm in a C name address pair
13047 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13049 # This is the shared library runtime path variable.
13050 runpath_var=$runpath_var
13052 # This is the shared library path variable.
13053 shlibpath_var=$shlibpath_var
13055 # Is shlibpath searched before the hard-coded library search path?
13056 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13058 # How to hardcode a shared library path into an executable.
13059 hardcode_action=$hardcode_action_CXX
13061 # Whether we should hardcode library paths into libraries.
13062 hardcode_into_libs=$hardcode_into_libs
13064 # Flag to hardcode \$libdir into a binary during linking.
13065 # This must work even if \$libdir does not exist.
13066 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13068 # If ld is used when linking, flag to hardcode \$libdir into
13069 # a binary during linking. This must work even if \$libdir does
13071 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13073 # Whether we need a single -rpath flag with a separated argument.
13074 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13076 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13077 # resulting binary.
13078 hardcode_direct=$hardcode_direct_CXX
13080 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13081 # resulting binary.
13082 hardcode_minus_L=$hardcode_minus_L_CXX
13084 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13085 # the resulting binary.
13086 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13088 # Set to yes if building a shared library automatically hardcodes DIR into the library
13089 # and all subsequent libraries and executables linked against it.
13090 hardcode_automatic=$hardcode_automatic_CXX
13092 # Variables whose values should be saved in libtool wrapper scripts and
13093 # restored at relink time.
13094 variables_saved_for_relink="$variables_saved_for_relink"
13096 # Whether libtool must link a program against all its dependency libraries.
13097 link_all_deplibs=$link_all_deplibs_CXX
13099 # Compile-time system search path for libraries
13100 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13102 # Run-time system search path for libraries
13103 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13105 # Fix the shell variable \$srcfile for the compiler.
13106 fix_srcfile_path="$fix_srcfile_path_CXX"
13108 # Set to yes if exported symbols are required.
13109 always_export_symbols=$always_export_symbols_CXX
13111 # The commands to list exported symbols.
13112 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13114 # The commands to extract the exported symbol list from a shared archive.
13115 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13117 # Symbols that should not be listed in the preloaded symbols.
13118 exclude_expsyms=$lt_exclude_expsyms_CXX
13120 # Symbols that must always be exported.
13121 include_expsyms=$lt_include_expsyms_CXX
13123 # ### END LIBTOOL TAG CONFIG: $tagname
13129 # If there is no Makefile yet, we rely on a make rule to execute
13130 # `config.status --recheck' to rerun these tests and create the
13131 # libtool script then.
13132 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13133 if test -f "$ltmain_in"; then
13134 test -f Makefile
&& make "$ltmain"
13140 ac_cpp
='$CPP $CPPFLAGS'
13141 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13142 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13143 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13149 with_gnu_ldcxx
=$with_gnu_ld
13150 with_gnu_ld
=$lt_save_with_gnu_ld
13151 lt_cv_path_LDCXX
=$lt_cv_path_LD
13152 lt_cv_path_LD
=$lt_save_path_LD
13153 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
13154 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
13162 if test -n "$F77" && test "X$F77" != "Xno"; then
13165 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13166 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13167 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
13170 archive_cmds_need_lc_F77
=no
13171 allow_undefined_flag_F77
=
13172 always_export_symbols_F77
=no
13173 archive_expsym_cmds_F77
=
13174 export_dynamic_flag_spec_F77
=
13175 hardcode_direct_F77
=no
13176 hardcode_libdir_flag_spec_F77
=
13177 hardcode_libdir_flag_spec_ld_F77
=
13178 hardcode_libdir_separator_F77
=
13179 hardcode_minus_L_F77
=no
13180 hardcode_automatic_F77
=no
13182 module_expsym_cmds_F77
=
13183 link_all_deplibs_F77
=unknown
13184 old_archive_cmds_F77
=$old_archive_cmds
13185 no_undefined_flag_F77
=
13186 whole_archive_flag_spec_F77
=
13187 enable_shared_with_static_runtimes_F77
=no
13189 # Source file extension for f77 test sources.
13192 # Object file extension for compiled f77 test sources.
13196 # Code to be used in simple compile tests
13197 lt_simple_compile_test_code
=" subroutine t\n return\n end\n"
13199 # Code to be used in simple link tests
13200 lt_simple_link_test_code
=" program t\n end\n"
13202 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13204 # If no C compiler was specified, use CC.
13207 # If no C compiler flags were specified, use CFLAGS.
13208 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
13210 # Allow CC to be a program name with arguments.
13214 # save warnings/boilerplate of simple test code
13215 ac_outfile
=conftest.
$ac_objext
13216 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
13217 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13218 _lt_compiler_boilerplate
=`cat conftest.err`
13221 ac_outfile
=conftest.
$ac_objext
13222 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
13223 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13224 _lt_linker_boilerplate
=`cat conftest.err`
13228 # Allow CC to be a program name with arguments.
13233 for cc_temp
in $compiler""; do
13235 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
13236 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
13241 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13244 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13245 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13246 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13247 echo "${ECHO_T}$can_build_shared" >&6
13249 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13250 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13251 test "$can_build_shared" = "no" && enable_shared
=no
13253 # On AIX, shared libraries and static libraries use the same namespace, and
13254 # are all built from PIC.
13257 test "$enable_shared" = yes && enable_static
=no
13258 if test -n "$RANLIB"; then
13259 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
13260 postinstall_cmds
='$RANLIB $lib'
13264 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
13265 test "$enable_shared" = yes && enable_static
=no
13269 echo "$as_me:$LINENO: result: $enable_shared" >&5
13270 echo "${ECHO_T}$enable_shared" >&6
13272 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13273 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13274 # Make sure either enable_shared or enable_static is yes.
13275 test "$enable_shared" = yes || enable_static
=yes
13276 echo "$as_me:$LINENO: result: $enable_static" >&5
13277 echo "${ECHO_T}$enable_static" >&6
13282 lt_prog_compiler_wl_F77
=
13283 lt_prog_compiler_pic_F77
=
13284 lt_prog_compiler_static_F77
=
13286 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13287 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13289 if test "$GCC" = yes; then
13290 lt_prog_compiler_wl_F77
='-Wl,'
13291 lt_prog_compiler_static_F77
='-static'
13295 # All AIX code is PIC.
13296 if test "$host_cpu" = ia64
; then
13297 # AIX 5 now supports IA64 processor
13298 lt_prog_compiler_static_F77
='-Bstatic'
13303 # FIXME: we need at least 68020 code to build shared libraries, but
13304 # adding the `-m68020' flag to GCC prevents building anything better,
13306 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
13309 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13310 # PIC is the default for these OSes.
13313 mingw
* | pw32
* | os2
*)
13314 # This hack is so that the source file can tell whether it is being
13315 # built for inclusion in a dll (and should export symbols for example).
13316 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13319 darwin
* | rhapsody
*)
13320 # PIC is the default on this platform
13321 # Common symbols not allowed in MH_DYLIB files
13322 lt_prog_compiler_pic_F77
='-fno-common'
13326 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13327 # Instead, we relocate shared libraries at runtime.
13331 # Just because we use GCC doesn't mean we suddenly get shared libraries
13332 # on systems that don't support them.
13333 lt_prog_compiler_can_build_shared_F77
=no
13338 if test -d /usr
/nec
; then
13339 lt_prog_compiler_pic_F77
=-Kconform_pic
13344 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13345 # not for PA HP-UX.
13351 lt_prog_compiler_pic_F77
='-fPIC'
13357 lt_prog_compiler_pic_F77
='-fPIC'
13361 # PORTME Check for flag to pass linker flags through the system compiler.
13364 lt_prog_compiler_wl_F77
='-Wl,'
13365 if test "$host_cpu" = ia64
; then
13366 # AIX 5 now supports IA64 processor
13367 lt_prog_compiler_static_F77
='-Bstatic'
13369 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
13373 # PIC is the default on this platform
13374 # Common symbols not allowed in MH_DYLIB files
13375 case $cc_basename in
13377 lt_prog_compiler_pic_F77
='-qnocommon'
13378 lt_prog_compiler_wl_F77
='-Wl,'
13383 mingw
* | pw32
* | os2
*)
13384 # This hack is so that the source file can tell whether it is being
13385 # built for inclusion in a dll (and should export symbols for example).
13386 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13389 hpux9
* | hpux10
* | hpux11
*)
13390 lt_prog_compiler_wl_F77
='-Wl,'
13391 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13392 # not for PA HP-UX.
13398 lt_prog_compiler_pic_F77
='+Z'
13401 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13402 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
13405 irix5
* | irix6
* | nonstopux
*)
13406 lt_prog_compiler_wl_F77
='-Wl,'
13407 # PIC (with -KPIC) is the default.
13408 lt_prog_compiler_static_F77
='-non_shared'
13412 lt_prog_compiler_pic_F77
='-KPIC'
13413 lt_prog_compiler_static_F77
='-Bstatic'
13417 case $cc_basename in
13419 lt_prog_compiler_wl_F77
='-Wl,'
13420 lt_prog_compiler_pic_F77
='-KPIC'
13421 lt_prog_compiler_static_F77
='-static'
13423 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
13424 # Portland Group compilers (*not* the Pentium gcc compiler,
13425 # which looks to be a dead project)
13426 lt_prog_compiler_wl_F77
='-Wl,'
13427 lt_prog_compiler_pic_F77
='-fpic'
13428 lt_prog_compiler_static_F77
='-Bstatic'
13431 lt_prog_compiler_wl_F77
='-Wl,'
13432 # All Alpha code is PIC.
13433 lt_prog_compiler_static_F77
='-non_shared'
13438 osf3
* | osf4
* | osf5
*)
13439 lt_prog_compiler_wl_F77
='-Wl,'
13440 # All OSF/1 code is PIC.
13441 lt_prog_compiler_static_F77
='-non_shared'
13445 lt_prog_compiler_pic_F77
='-KPIC'
13446 lt_prog_compiler_static_F77
='-Bstatic'
13447 case $cc_basename in
13448 f77
* | f90
* | f95
*)
13449 lt_prog_compiler_wl_F77
='-Qoption ld ';;
13451 lt_prog_compiler_wl_F77
='-Wl,';;
13456 lt_prog_compiler_wl_F77
='-Qoption ld '
13457 lt_prog_compiler_pic_F77
='-PIC'
13458 lt_prog_compiler_static_F77
='-Bstatic'
13461 sysv4 | sysv4.2uw2
* | sysv4.3
*)
13462 lt_prog_compiler_wl_F77
='-Wl,'
13463 lt_prog_compiler_pic_F77
='-KPIC'
13464 lt_prog_compiler_static_F77
='-Bstatic'
13468 if test -d /usr
/nec
;then
13469 lt_prog_compiler_pic_F77
='-Kconform_pic'
13470 lt_prog_compiler_static_F77
='-Bstatic'
13474 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
13475 lt_prog_compiler_wl_F77
='-Wl,'
13476 lt_prog_compiler_pic_F77
='-KPIC'
13477 lt_prog_compiler_static_F77
='-Bstatic'
13481 lt_prog_compiler_wl_F77
='-Wl,'
13482 lt_prog_compiler_can_build_shared_F77
=no
13486 lt_prog_compiler_pic_F77
='-pic'
13487 lt_prog_compiler_static_F77
='-Bstatic'
13491 lt_prog_compiler_can_build_shared_F77
=no
13496 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13497 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13500 # Check to make sure the PIC flag actually works.
13502 if test -n "$lt_prog_compiler_pic_F77"; then
13504 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13505 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13506 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13509 lt_prog_compiler_pic_works_F77
=no
13510 ac_outfile
=conftest.
$ac_objext
13511 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13512 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
13513 # Insert the option either (1) after the last *FLAGS variable, or
13514 # (2) before a word containing "conftest.", or (3) at the end.
13515 # Note that $ac_compile itself does not contain backslashes and begins
13516 # with a dollar sign (not a hyphen), so the echo should work correctly.
13517 # The option is referenced via a variable to avoid confusing sed.
13518 lt_compile
=`echo "$ac_compile" | $SED \
13519 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13521 -e 's:$: $lt_compiler_flag:'`
13522 (eval echo "\"\$as_me:13522: $lt_compile\"" >&5)
13523 (eval "$lt_compile" 2>conftest.err
)
13525 cat conftest.err
>&5
13526 echo "$as_me:13526: \$? = $ac_status" >&5
13527 if (exit $ac_status) && test -s "$ac_outfile"; then
13528 # The compiler can only warn and ignore the option if not recognized
13529 # So say no if there are warnings other than the usual output.
13530 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
13531 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13532 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
13533 lt_prog_compiler_pic_works_F77
=yes
13539 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13540 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13542 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
13543 case $lt_prog_compiler_pic_F77 in
13545 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
13548 lt_prog_compiler_pic_F77
=
13549 lt_prog_compiler_can_build_shared_F77
=no
13554 # For platforms which do not support PIC, -DPIC is meaningless:
13556 lt_prog_compiler_pic_F77
=
13559 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
13564 # Check to make sure the static flag actually works.
13566 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
13567 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13568 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13569 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13572 lt_prog_compiler_static_works_F77
=no
13573 save_LDFLAGS
="$LDFLAGS"
13574 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
13575 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
13576 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
13577 # The linker can only warn and ignore the option if not recognized
13578 # So say no if there are warnings
13579 if test -s conftest.err
; then
13580 # Append any errors to the config.log.
13581 cat conftest.err
1>&5
13582 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
13583 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13584 if diff conftest.exp conftest.er2
>/dev
/null
; then
13585 lt_prog_compiler_static_works_F77
=yes
13588 lt_prog_compiler_static_works_F77
=yes
13592 LDFLAGS
="$save_LDFLAGS"
13595 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13596 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13598 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
13601 lt_prog_compiler_static_F77
=
13605 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13606 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13607 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13608 echo $ECHO_N "(cached) $ECHO_C" >&6
13610 lt_cv_prog_compiler_c_o_F77
=no
13611 $rm -r conftest
2>/dev
/null
13615 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13617 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13618 # Insert the option either (1) after the last *FLAGS variable, or
13619 # (2) before a word containing "conftest.", or (3) at the end.
13620 # Note that $ac_compile itself does not contain backslashes and begins
13621 # with a dollar sign (not a hyphen), so the echo should work correctly.
13622 lt_compile
=`echo "$ac_compile" | $SED \
13623 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13625 -e 's:$: $lt_compiler_flag:'`
13626 (eval echo "\"\$as_me:13626: $lt_compile\"" >&5)
13627 (eval "$lt_compile" 2>out
/conftest.err
)
13629 cat out
/conftest.err
>&5
13630 echo "$as_me:13630: \$? = $ac_status" >&5
13631 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13633 # The compiler can only warn and ignore the option if not recognized
13634 # So say no if there are warnings
13635 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
13636 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13637 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13638 lt_cv_prog_compiler_c_o_F77
=yes
13643 # SGI C++ compiler will create directory out/ii_files/ for
13644 # template instantiation
13645 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
13646 $rm out
/* && rmdir out
13652 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13653 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13656 hard_links
="nottested"
13657 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
13658 # do not overwrite the value of need_locks provided by the user
13659 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13660 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13663 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13665 ln conftest.a conftest.b
2>&5 || hard_links
=no
13666 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13667 echo "$as_me:$LINENO: result: $hard_links" >&5
13668 echo "${ECHO_T}$hard_links" >&6
13669 if test "$hard_links" = no
; then
13670 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13671 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13678 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13679 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13682 allow_undefined_flag_F77
=
13683 enable_shared_with_static_runtimes_F77
=no
13685 archive_expsym_cmds_F77
=
13686 old_archive_From_new_cmds_F77
=
13687 old_archive_from_expsyms_cmds_F77
=
13688 export_dynamic_flag_spec_F77
=
13689 whole_archive_flag_spec_F77
=
13690 thread_safe_flag_spec_F77
=
13691 hardcode_libdir_flag_spec_F77
=
13692 hardcode_libdir_flag_spec_ld_F77
=
13693 hardcode_libdir_separator_F77
=
13694 hardcode_direct_F77
=no
13695 hardcode_minus_L_F77
=no
13696 hardcode_shlibpath_var_F77
=unsupported
13697 link_all_deplibs_F77
=unknown
13698 hardcode_automatic_F77
=no
13700 module_expsym_cmds_F77
=
13701 always_export_symbols_F77
=no
13702 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13703 # include_expsyms should be a list of space-separated symbols to be *always*
13704 # included in the symbol list
13705 include_expsyms_F77
=
13706 # exclude_expsyms can be an extended regexp of symbols to exclude
13707 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13708 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13709 # as well as any symbol that contains `d'.
13710 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
13711 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13712 # platforms (ab)use it in PIC code, but their linkers get confused if
13713 # the symbol is explicitly referenced. Since portable code cannot
13714 # rely on this symbol name, it's probably fine to never include it in
13715 # preloaded symbol tables.
13716 extract_expsyms_cmds
=
13717 # Just being paranoid about ensuring that cc_basename is set.
13718 for cc_temp
in $compiler""; do
13720 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
13721 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
13726 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13729 cygwin
* | mingw
* | pw32
*)
13730 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13731 # When not using gcc, we currently assume that we are using
13732 # Microsoft Visual C++.
13733 if test "$GCC" != yes; then
13738 # we just hope/assume this is gcc and not c89 (= MSVC++)
13747 if test "$with_gnu_ld" = yes; then
13748 # If archive_cmds runs LD, not CC, wlarc should be empty
13751 # Set some defaults for GNU ld with shared library support. These
13752 # are reset later if shared libraries are not supported. Putting them
13753 # here allows them to be overridden if necessary.
13754 runpath_var
=LD_RUN_PATH
13755 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
13756 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
13757 # ancient GNU ld didn't support --whole-archive et. al.
13758 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
13759 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13761 whole_archive_flag_spec_F77
=
13763 supports_anon_versioning
=no
13764 case `$LD -v 2>/dev/null` in
13765 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
13766 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
13767 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
13768 *\
2.11.
*) ;; # other 2.11 versions
13769 *) supports_anon_versioning
=yes ;;
13772 # See if GNU ld supports shared libraries.
13774 aix3
* | aix4
* | aix5
*)
13775 # On AIX/PPC, the GNU linker is very broken
13776 if test "$host_cpu" != ia64
; then
13780 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13781 *** to be unable to reliably create shared libraries on AIX.
13782 *** Therefore, libtool is disabling shared libraries support. If you
13783 *** really care for shared libraries, you may want to modify your PATH
13784 *** so that a non-GNU linker is found, and then restart.
13791 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)'
13792 hardcode_libdir_flag_spec_F77
='-L$libdir'
13793 hardcode_minus_L_F77
=yes
13795 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13796 # that the semantics of dynamic libraries on AmigaOS, at least up
13797 # to version 4, is to share data among multiple programs linked
13798 # with the same dynamic library. Since this doesn't match the
13799 # behavior of shared libraries on other platforms, we can't use
13805 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13806 allow_undefined_flag_F77
=unsupported
13807 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13808 # support --undefined. This deserves some investigation. FIXME
13809 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13815 cygwin
* | mingw
* | pw32
*)
13816 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13817 # as there is no search path for DLLs.
13818 hardcode_libdir_flag_spec_F77
='-L$libdir'
13819 allow_undefined_flag_F77
=unsupported
13820 always_export_symbols_F77
=no
13821 enable_shared_with_static_runtimes_F77
=yes
13822 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13824 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
13825 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13826 # If the export-symbols file already is a .def file (1st line
13827 # is EXPORTS), use it as is; otherwise, prepend...
13828 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13829 cp $export_symbols $output_objdir/$soname.def;
13831 echo EXPORTS > $output_objdir/$soname.def;
13832 cat $export_symbols >> $output_objdir/$soname.def;
13834 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13841 hardcode_direct_F77
=no
13842 hardcode_shlibpath_var_F77
=no
13843 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
13844 export_dynamic_flag_spec_F77
='${wl}-E'
13845 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13846 # Instead, shared libraries are loaded at an image base (0x10000000 by
13847 # default) and relocated if they conflict, which is a slow very memory
13848 # consuming and fragmenting process. To avoid this, we pick a random,
13849 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13850 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13851 archive_cmds_F77
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13852 archive_expsym_cmds_F77
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13856 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13858 case $cc_basename,$host_cpu in
13859 pgcc
*) # Portland Group C compiler
13860 whole_archive_flag_spec_F77
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13861 tmp_addflag
=' $pic_flag'
13863 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
13864 whole_archive_flag_spec_F77
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13865 tmp_addflag
=' $pic_flag -Mnomain' ;;
13866 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
13867 tmp_addflag
=' -i_dynamic' ;;
13868 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
13869 tmp_addflag
=' -i_dynamic -nofor_main' ;;
13870 ifc
* | ifort
*) # Intel Fortran compiler
13871 tmp_addflag
=' -nofor_main' ;;
13873 archive_cmds_F77
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13875 if test $supports_anon_versioning = yes; then
13876 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
13877 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13878 $echo "local: *; };" >> $output_objdir/$libname.ver~
13879 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13887 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
13888 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13891 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13892 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13897 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
13901 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13902 *** create shared libraries on Solaris systems. Therefore, libtool
13903 *** is disabling shared libraries support. We urge you to upgrade GNU
13904 *** binutils to release 2.9.1 or newer. Another option is to modify
13905 *** your PATH or compiler configuration so that the native linker is
13906 *** used, and then restart.
13909 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13910 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13911 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13917 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
13918 case `$LD -v 2>&1` in
13919 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
13923 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13924 *** reliably create shared libraries on SCO systems. Therefore, libtool
13925 *** is disabling shared libraries support. We urge you to upgrade GNU
13926 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13927 *** your PATH or compiler configuration so that the native linker is
13928 *** used, and then restart.
13933 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13934 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13935 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13936 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13945 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13947 hardcode_direct_F77
=yes
13948 hardcode_shlibpath_var_F77
=no
13952 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13953 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13954 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13961 if test "$ld_shlibs_F77" = no
; then
13963 hardcode_libdir_flag_spec_F77
=
13964 export_dynamic_flag_spec_F77
=
13965 whole_archive_flag_spec_F77
=
13968 # PORTME fill in a description of your system's linker (not GNU ld)
13971 allow_undefined_flag_F77
=unsupported
13972 always_export_symbols_F77
=yes
13973 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'
13974 # Note: this linker hardcodes the directories in LIBPATH if there
13975 # are no directories specified by -L.
13976 hardcode_minus_L_F77
=yes
13977 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13978 # Neither direct hardcoding nor static linking is supported with a
13980 hardcode_direct_F77
=unsupported
13985 if test "$host_cpu" = ia64
; then
13986 # On IA64, the linker does run time linking by default, so we don't
13987 # have to do anything special.
13988 aix_use_runtimelinking
=no
13989 exp_sym_flag
='-Bexport'
13992 # If we're using GNU nm, then we don't want the "-C" option.
13993 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13994 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
13995 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'
13997 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'
13999 aix_use_runtimelinking
=no
14001 # Test if we are trying to use run time linking or normal
14002 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14003 # need to do runtime linking.
14004 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
14005 for ld_flag
in $LDFLAGS; do
14006 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
14007 aix_use_runtimelinking
=yes
14014 exp_sym_flag
='-bexport'
14015 no_entry_flag
='-bnoentry'
14018 # When large executables or shared objects are built, AIX ld can
14019 # have problems creating the table of contents. If linking a library
14020 # or program results in "error TOC overflow" add -mminimal-toc to
14021 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14022 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14024 archive_cmds_F77
=''
14025 hardcode_direct_F77
=yes
14026 hardcode_libdir_separator_F77
=':'
14027 link_all_deplibs_F77
=yes
14029 if test "$GCC" = yes; then
14030 case $host_os in aix4.
[012]|aix4.
[012].
*)
14031 # We only want to do this on AIX 4.2 and lower, the check
14032 # below for broken collect2 doesn't work under 4.3+
14033 collect2name
=`${CC} -print-prog-name=collect2`
14034 if test -f "$collect2name" && \
14035 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
14037 # We have reworked collect2
14038 hardcode_direct_F77
=yes
14040 # We have old collect2
14041 hardcode_direct_F77
=unsupported
14042 # It fails to find uninstalled libraries when the uninstalled
14043 # path is not listed in the libpath. Setting hardcode_minus_L
14044 # to unsupported forces relinking
14045 hardcode_minus_L_F77
=yes
14046 hardcode_libdir_flag_spec_F77
='-L$libdir'
14047 hardcode_libdir_separator_F77
=
14051 shared_flag
='-shared'
14052 if test "$aix_use_runtimelinking" = yes; then
14053 shared_flag
="$shared_flag "'${wl}-G'
14057 if test "$host_cpu" = ia64
; then
14058 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14059 # chokes on -Wl,-G. The following line is correct:
14062 if test "$aix_use_runtimelinking" = yes; then
14063 shared_flag
='${wl}-G'
14065 shared_flag
='${wl}-bM:SRE'
14070 # It seems that -bexpall does not export symbols beginning with
14071 # underscore (_), so it is better to generate a list of symbols to export.
14072 always_export_symbols_F77
=yes
14073 if test "$aix_use_runtimelinking" = yes; then
14074 # Warning - without using the other runtime loading flags (-brtl),
14075 # -berok will link without error, but may produce a broken library.
14076 allow_undefined_flag_F77
='-berok'
14077 # Determine the default libpath from the value encoded in an empty executable.
14078 cat >conftest.
$ac_ext <<_ACEOF
14083 rm -f conftest.
$ac_objext conftest
$ac_exeext
14084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14085 (eval $ac_link) 2>conftest.er1
14087 grep -v '^ *+' conftest.er1
>conftest.err
14089 cat conftest.err
>&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); } &&
14092 { ac_try
='test -z "$ac_f77_werror_flag"
14093 || test ! -s conftest.err'
14094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14095 (eval $ac_try) 2>&5
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); }; } &&
14099 { ac_try
='test -s conftest$ac_exeext'
14100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }; then
14106 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14108 # Check for a 64-bit object if we didn't find anything.
14109 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; }
14112 echo "$as_me: failed program was:" >&5
14113 sed 's/^/| /' conftest.
$ac_ext >&5
14116 rm -f conftest.err conftest.
$ac_objext \
14117 conftest
$ac_exeext conftest.
$ac_ext
14118 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
14120 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
14121 archive_expsym_cmds_F77
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14123 if test "$host_cpu" = ia64
; then
14124 hardcode_libdir_flag_spec_F77
='${wl}-R $libdir:/usr/lib:/lib'
14125 allow_undefined_flag_F77
="-z nodefs"
14126 archive_expsym_cmds_F77
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14128 # Determine the default libpath from the value encoded in an empty executable.
14129 cat >conftest.
$ac_ext <<_ACEOF
14134 rm -f conftest.
$ac_objext conftest
$ac_exeext
14135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14136 (eval $ac_link) 2>conftest.er1
14138 grep -v '^ *+' conftest.er1
>conftest.err
14140 cat conftest.err
>&5
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); } &&
14143 { ac_try
='test -z "$ac_f77_werror_flag"
14144 || test ! -s conftest.err'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; } &&
14150 { ac_try
='test -s conftest$ac_exeext'
14151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152 (eval $ac_try) 2>&5
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); }; }; then
14157 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14159 # Check for a 64-bit object if we didn't find anything.
14160 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; }
14163 echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.
$ac_ext >&5
14167 rm -f conftest.err conftest.
$ac_objext \
14168 conftest
$ac_exeext conftest.
$ac_ext
14169 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
14171 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
14172 # Warning - without using the other run time loading flags,
14173 # -berok will link without error, but may produce a broken library.
14174 no_undefined_flag_F77
=' ${wl}-bernotok'
14175 allow_undefined_flag_F77
=' ${wl}-berok'
14176 # Exported symbols can be pulled into shared objects from archives
14177 whole_archive_flag_spec_F77
='$convenience'
14178 archive_cmds_need_lc_F77
=yes
14179 # This is similar to how AIX traditionally builds its shared libraries.
14180 archive_expsym_cmds_F77
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14186 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)'
14187 hardcode_libdir_flag_spec_F77
='-L$libdir'
14188 hardcode_minus_L_F77
=yes
14189 # see comment about different semantics on the GNU ld section
14194 export_dynamic_flag_spec_F77
=-rdynamic
14197 cygwin
* | mingw
* | pw32
*)
14198 # When not using gcc, we currently assume that we are using
14199 # Microsoft Visual C++.
14200 # hardcode_libdir_flag_spec is actually meaningless, as there is
14201 # no search path for DLLs.
14202 hardcode_libdir_flag_spec_F77
=' '
14203 allow_undefined_flag_F77
=unsupported
14204 # Tell ltmain to make .lib files, not .a files.
14206 # Tell ltmain to make .dll files, not .so files.
14208 # FIXME: Setting linknames here is a bad hack.
14209 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14210 # The linker will automatically build a .lib file if we build a DLL.
14211 old_archive_From_new_cmds_F77
='true'
14212 # FIXME: Should let the user specify the lib program.
14213 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
14214 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
14215 enable_shared_with_static_runtimes_F77
=yes
14218 darwin
* | rhapsody
*)
14220 rhapsody
* | darwin1.
[012])
14221 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
14224 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14225 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14227 case ${MACOSX_DEPLOYMENT_TARGET} in
14229 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14232 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
14238 archive_cmds_need_lc_F77
=no
14239 hardcode_direct_F77
=no
14240 hardcode_automatic_F77
=yes
14241 hardcode_shlibpath_var_F77
=unsupported
14242 whole_archive_flag_spec_F77
=''
14243 link_all_deplibs_F77
=yes
14244 if test "$GCC" = yes ; then
14245 output_verbose_link_cmd
='echo'
14246 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14247 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14248 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14249 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}'
14250 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}'
14252 case $cc_basename in
14254 output_verbose_link_cmd
='echo'
14255 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14256 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14257 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14258 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}'
14259 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}'
14269 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14270 hardcode_libdir_flag_spec_F77
='-L$libdir'
14271 hardcode_shlibpath_var_F77
=no
14278 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14279 # support. Future versions do this automatically, but an explicit c++rt0.o
14280 # does not break anything, and helps significantly (at the cost of a little
14283 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14284 hardcode_libdir_flag_spec_F77
='-R$libdir'
14285 hardcode_direct_F77
=yes
14286 hardcode_shlibpath_var_F77
=no
14289 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14291 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14292 hardcode_direct_F77
=yes
14293 hardcode_minus_L_F77
=yes
14294 hardcode_shlibpath_var_F77
=no
14297 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14298 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
14299 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14300 hardcode_libdir_flag_spec_F77
='-R$libdir'
14301 hardcode_direct_F77
=yes
14302 hardcode_shlibpath_var_F77
=no
14306 if test "$GCC" = yes; then
14307 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'
14309 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'
14311 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14312 hardcode_libdir_separator_F77
=:
14313 hardcode_direct_F77
=yes
14315 # hardcode_minus_L: Not really in the search PATH,
14316 # but as the default location of the library.
14317 hardcode_minus_L_F77
=yes
14318 export_dynamic_flag_spec_F77
='${wl}-E'
14322 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14323 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14325 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14327 if test "$with_gnu_ld" = no
; then
14328 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14329 hardcode_libdir_separator_F77
=:
14331 hardcode_direct_F77
=yes
14332 export_dynamic_flag_spec_F77
='${wl}-E'
14334 # hardcode_minus_L: Not really in the search PATH,
14335 # but as the default location of the library.
14336 hardcode_minus_L_F77
=yes
14341 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14344 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14347 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14350 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14356 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14359 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14362 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14366 if test "$with_gnu_ld" = no
; then
14367 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14368 hardcode_libdir_separator_F77
=:
14372 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
14373 hardcode_direct_F77
=no
14374 hardcode_shlibpath_var_F77
=no
14377 hardcode_direct_F77
=yes
14378 export_dynamic_flag_spec_F77
='${wl}-E'
14380 # hardcode_minus_L: Not really in the search PATH,
14381 # but as the default location of the library.
14382 hardcode_minus_L_F77
=yes
14388 irix5
* | irix6
* | nonstopux
*)
14389 if test "$GCC" = yes; then
14390 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'
14392 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'
14393 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
14395 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14396 hardcode_libdir_separator_F77
=:
14397 link_all_deplibs_F77
=yes
14401 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14402 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14404 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14406 hardcode_libdir_flag_spec_F77
='-R$libdir'
14407 hardcode_direct_F77
=yes
14408 hardcode_shlibpath_var_F77
=no
14412 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14413 hardcode_direct_F77
=yes
14414 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14415 hardcode_libdir_separator_F77
=:
14416 hardcode_shlibpath_var_F77
=no
14420 hardcode_direct_F77
=yes
14421 hardcode_shlibpath_var_F77
=no
14422 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14423 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14424 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14425 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14426 export_dynamic_flag_spec_F77
='${wl}-E'
14429 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
14430 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14431 hardcode_libdir_flag_spec_F77
='-R$libdir'
14434 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14435 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14442 hardcode_libdir_flag_spec_F77
='-L$libdir'
14443 hardcode_minus_L_F77
=yes
14444 allow_undefined_flag_F77
=unsupported
14445 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'
14446 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14450 if test "$GCC" = yes; then
14451 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14452 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'
14454 allow_undefined_flag_F77
=' -expect_unresolved \*'
14455 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'
14457 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14458 hardcode_libdir_separator_F77
=:
14461 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
14462 if test "$GCC" = yes; then
14463 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14464 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'
14465 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14467 allow_undefined_flag_F77
=' -expect_unresolved \*'
14468 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'
14469 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~
14470 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14472 # Both c and cxx compiler support -rpath directly
14473 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
14475 hardcode_libdir_separator_F77
=:
14479 no_undefined_flag_F77
=' -z text'
14480 if test "$GCC" = yes; then
14482 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14483 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14484 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14487 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14488 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14489 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14491 hardcode_libdir_flag_spec_F77
='-R$libdir'
14492 hardcode_shlibpath_var_F77
=no
14494 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
14496 # The compiler driver will combine linker options so we
14497 # cannot just pass the convience library names through
14498 # without $wl, iff we do not link with $LD.
14499 # Luckily, gcc supports the same syntax we need for Sun Studio.
14500 # Supported since Solaris 2.6 (maybe 2.5.1?)
14503 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract' ;;
14505 whole_archive_flag_spec_F77
='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14508 link_all_deplibs_F77
=yes
14512 if test "x$host_vendor" = xsequent
; then
14513 # Use $CC to link under sequent, because it throws in some extra .o
14514 # files that make .init and .fini sections work.
14515 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14517 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14519 hardcode_libdir_flag_spec_F77
='-L$libdir'
14520 hardcode_direct_F77
=yes
14521 hardcode_minus_L_F77
=yes
14522 hardcode_shlibpath_var_F77
=no
14526 case $host_vendor in
14528 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14529 hardcode_direct_F77
=yes # is this really true???
14532 ## LD is ld it makes a PLAMLIB
14533 ## CC just makes a GrossModule.
14534 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14535 reload_cmds_F77
='$CC -r -o $output$reload_objs'
14536 hardcode_direct_F77
=no
14539 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14540 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
14543 runpath_var
='LD_RUN_PATH'
14544 hardcode_shlibpath_var_F77
=no
14548 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14549 hardcode_shlibpath_var_F77
=no
14550 export_dynamic_flag_spec_F77
='-Bexport'
14554 if test -d /usr
/nec
; then
14555 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14556 hardcode_shlibpath_var_F77
=no
14557 runpath_var
=LD_RUN_PATH
14558 hardcode_runpath_var
=yes
14563 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
14564 no_undefined_flag_F77
='${wl}-z,text'
14565 archive_cmds_need_lc_F77
=no
14566 hardcode_shlibpath_var_F77
=no
14567 runpath_var
='LD_RUN_PATH'
14569 if test "$GCC" = yes; then
14570 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14571 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14573 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14574 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14578 sysv5
* | sco3.2v5
* | sco5v6
*)
14579 # Note: We can NOT use -z defs as we might desire, because we do not
14580 # link with -lc, and that would cause any symbols used from libc to
14581 # always be unresolved, which means just about no library would
14582 # ever link correctly. If we're not using GNU ld we use -z text
14583 # though, which does catch some bad symbols but isn't as heavy-handed
14585 no_undefined_flag_F77
='${wl}-z,text'
14586 allow_undefined_flag_F77
='${wl}-z,nodefs'
14587 archive_cmds_need_lc_F77
=no
14588 hardcode_shlibpath_var_F77
=no
14589 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14590 hardcode_libdir_separator_F77
=':'
14591 link_all_deplibs_F77
=yes
14592 export_dynamic_flag_spec_F77
='${wl}-Bexport'
14593 runpath_var
='LD_RUN_PATH'
14595 if test "$GCC" = yes; then
14596 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14597 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14599 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14600 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14605 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14606 hardcode_libdir_flag_spec_F77
='-L$libdir'
14607 hardcode_shlibpath_var_F77
=no
14616 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14617 echo "${ECHO_T}$ld_shlibs_F77" >&6
14618 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
14621 # Do we need to explicitly link libc?
14623 case "x$archive_cmds_need_lc_F77" in
14625 # Assume -lc should be added
14626 archive_cmds_need_lc_F77
=yes
14628 if test "$enable_shared" = yes && test "$GCC" = yes; then
14629 case $archive_cmds_F77 in
14631 # FIXME: we may have to deal with multi-command sequences.
14634 # Test whether the compiler implicitly links with -lc since on some
14635 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14636 # to ld, don't add -lc before -lgcc.
14637 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14638 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14640 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
14642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14643 (eval $ac_compile) 2>&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } 2>conftest.err
; then
14649 libobjs
=conftest.
$ac_objext
14651 wl
=$lt_prog_compiler_wl_F77
14652 pic_flag
=$lt_prog_compiler_pic_F77
14658 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
14659 allow_undefined_flag_F77
=
14660 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14661 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }
14666 archive_cmds_need_lc_F77
=no
14668 archive_cmds_need_lc_F77
=yes
14670 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
14672 cat conftest.err
1>&5
14675 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14676 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14683 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14684 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14685 library_names_spec
=
14686 libname_spec
='lib$name'
14690 postuninstall_cmds
=
14694 shlibpath_overrides_runpath
=unknown
14696 dynamic_linker
="$host_os ld.so"
14697 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14698 if test "$GCC" = yes; then
14699 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14700 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
14701 # if the path contains ";" then we assume it to be the separator
14702 # otherwise default to the standard path separator (i.e. ":") - it is
14703 # assumed that no part of a normal pathname contains ";" but that should
14704 # okay in the real world where ";" in dirpaths is itself problematic.
14705 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14707 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14710 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
14712 need_lib_prefix
=unknown
14713 hardcode_into_libs
=no
14715 # when you set need_version to no, make sure it does not cause -set_version
14716 # flags to be left without arguments
14717 need_version
=unknown
14722 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14723 shlibpath_var
=LIBPATH
14725 # AIX 3 has no versioning support, so we append a major version to the name.
14726 soname_spec
='${libname}${release}${shared_ext}$major'
14733 hardcode_into_libs
=yes
14734 if test "$host_cpu" = ia64
; then
14735 # AIX 5 supports IA64
14736 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14737 shlibpath_var
=LD_LIBRARY_PATH
14739 # With GCC up to 2.95.x, collect2 would create an import file
14740 # for dependence libraries. The import file would start with
14741 # the line `#! .'. This would cause the generated library to
14742 # depend on `.', always an invalid library. This was fixed in
14743 # development snapshots of GCC prior to 3.0.
14745 aix4 | aix4.
[01] | aix4.
[01].
*)
14746 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14748 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
14751 can_build_shared
=no
14755 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14756 # soname into executable. Probably we can add versioning support to
14757 # collect2, so additional links can be useful in future.
14758 if test "$aix_use_runtimelinking" = yes; then
14759 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14760 # instead of lib<name>.a to let people know that these are not
14761 # typical AIX shared libraries.
14762 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14764 # We preserve .a as extension for shared libraries through AIX4.2
14765 # and later when we are not doing run time linking.
14766 library_names_spec
='${libname}${release}.a $libname.a'
14767 soname_spec
='${libname}${release}${shared_ext}$major'
14769 shlibpath_var
=LIBPATH
14774 library_names_spec
='$libname.ixlibrary $libname.a'
14775 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14776 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'
14780 library_names_spec
='${libname}${shared_ext}'
14781 dynamic_linker
="$host_os ld.so"
14782 shlibpath_var
=LIBRARY_PATH
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 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14791 shlibpath_var
=LD_LIBRARY_PATH
14792 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14793 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14794 # the default ld.so.conf also contains /usr/contrib/lib and
14795 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14796 # libtool to hard-code these into programs
14799 cygwin
* | mingw
* | pw32
*)
14800 version_type
=windows
14805 case $GCC,$host_os in
14806 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
14807 library_names_spec
='$libname.dll.a'
14808 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14809 postinstall_cmds
='base_file=`basename \${file}`~
14810 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14811 dldir=$destdir/`dirname \$dlpath`~
14812 test -d \$dldir || mkdir -p \$dldir~
14813 $install_prog $dir/$dlname \$dldir/$dlname~
14814 chmod a+x \$dldir/$dlname'
14815 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14816 dlpath=$dir/\$dldll~
14818 shlibpath_overrides_runpath
=yes
14822 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14823 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14824 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
14827 # MinGW DLLs use traditional 'lib' prefix
14828 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14829 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14830 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
14831 # It is most probably a Windows format PATH printed by
14832 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14833 # path with ; separators, and with drive letters. We can handle the
14834 # drive letters (cygwin fileutils understands them), so leave them,
14835 # especially as we might pass files found there to a mingw objdump,
14836 # which wouldn't understand a cygwinified path. Ahh.
14837 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14839 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14843 # pw32 DLLs use 'pw' prefix rather than 'lib'
14844 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14850 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14853 dynamic_linker
='Win32 ld.exe'
14854 # FIXME: first we should search . and the directory the executable is in
14858 darwin
* | rhapsody
*)
14859 dynamic_linker
="$host_os dyld"
14860 version_type
=darwin
14863 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14864 soname_spec
='${libname}${release}${major}$shared_ext'
14865 shlibpath_overrides_runpath
=yes
14866 shlibpath_var
=DYLD_LIBRARY_PATH
14867 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14868 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14869 if test "$GCC" = yes; then
14870 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"`
14872 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
14874 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14881 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14882 soname_spec
='${libname}${release}${shared_ext}$major'
14883 shlibpath_var
=LD_LIBRARY_PATH
14894 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14895 soname_spec
='${libname}${release}${shared_ext}$major'
14896 shlibpath_var
=LD_LIBRARY_PATH
14897 shlibpath_overrides_runpath
=no
14898 hardcode_into_libs
=yes
14899 dynamic_linker
='GNU ld.so'
14902 freebsd
* | dragonfly
*)
14903 # DragonFly does not have aout. When/if they implement a new
14904 # versioning mechanism, adjust this.
14905 if test -x /usr
/bin
/objformat
; then
14906 objformat
=`/usr/bin/objformat`
14909 freebsd
[123]*) objformat
=aout
;;
14910 *) objformat
=elf
;;
14913 version_type
=freebsd-
$objformat
14914 case $version_type in
14916 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14921 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14925 shlibpath_var
=LD_LIBRARY_PATH
14928 shlibpath_overrides_runpath
=yes
14930 freebsd3.
[01]* | freebsdelf3.
[01]*)
14931 shlibpath_overrides_runpath
=yes
14932 hardcode_into_libs
=yes
14934 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14935 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14936 shlibpath_overrides_runpath
=no
14937 hardcode_into_libs
=yes
14939 freebsd
*) # from 4.6 on
14940 shlibpath_overrides_runpath
=yes
14941 hardcode_into_libs
=yes
14950 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14951 soname_spec
='${libname}${release}${shared_ext}$major'
14952 shlibpath_var
=LD_LIBRARY_PATH
14953 hardcode_into_libs
=yes
14956 hpux9
* | hpux10
* | hpux11
*)
14957 # Give a soname corresponding to the major version so that dld.sl refuses to
14958 # link against other versions.
14965 hardcode_into_libs
=yes
14966 dynamic_linker
="$host_os dld.so"
14967 shlibpath_var
=LD_LIBRARY_PATH
14968 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14969 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14970 soname_spec
='${libname}${release}${shared_ext}$major'
14971 if test "X$HPUX_IA64_MODE" = X32
; then
14972 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14974 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14976 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14980 hardcode_into_libs
=yes
14981 dynamic_linker
="$host_os dld.sl"
14982 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14983 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14984 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14985 soname_spec
='${libname}${release}${shared_ext}$major'
14986 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14987 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14991 dynamic_linker
="$host_os dld.sl"
14992 shlibpath_var
=SHLIB_PATH
14993 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14994 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14995 soname_spec
='${libname}${release}${shared_ext}$major'
14998 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14999 postinstall_cmds
='chmod 555 $lib'
15006 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15007 soname_spec
='${libname}${release}${shared_ext}$major'
15008 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
15009 shlibpath_var
=LD_LIBRARY_PATH
15010 shlibpath_overrides_runpath
=no
15011 hardcode_into_libs
=yes
15014 irix5
* | irix6
* | nonstopux
*)
15016 nonstopux
*) version_type
=nonstopux
;;
15018 if test "$lt_cv_prog_gnu_ld" = yes; then
15026 soname_spec
='${libname}${release}${shared_ext}$major'
15027 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15029 irix5
* | nonstopux
*)
15030 libsuff
= shlibsuff
=
15033 case $LD in # libtool.m4 will add one of these switches to LD
15034 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
15035 libsuff
= shlibsuff
= libmagic
=32-bit;;
15036 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
15037 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
15038 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
15039 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
15040 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
15044 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
15045 shlibpath_overrides_runpath
=no
15046 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15047 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
15048 hardcode_into_libs
=yes
15051 # No shared lib support for Linux oldld, aout, or coff.
15052 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
15056 # This must be Linux ELF.
15061 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15062 soname_spec
='${libname}${release}${shared_ext}$major'
15063 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15064 shlibpath_var
=LD_LIBRARY_PATH
15065 shlibpath_overrides_runpath
=no
15066 # This implies no fast_install, which is unacceptable.
15067 # Some rework will be needed to allow for fast_install
15068 # before this can be enabled.
15069 hardcode_into_libs
=yes
15071 # find out which ABI we are using
15073 case "$host_cpu" in
15074 x86_64
*|s390x
*|powerpc64
*)
15075 echo '#line 15075 "configure"' > conftest.
$ac_ext
15076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15077 (eval $ac_compile) 2>&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; then
15081 case `/usr/bin/file conftest.$ac_objext` in
15084 sys_lib_search_path_spec
="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15092 # Append ld.so.conf contents to the search path
15093 if test -f /etc
/ld.so.conf
; then
15094 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15095 sys_lib_dlsearch_path_spec
="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15098 # We used to test for /lib/ld.so.1 and disable shared libraries on
15099 # powerpc, because MkLinux only supported shared libraries with the
15100 # GNU dynamic linker. Since this was broken with cross compilers,
15101 # most powerpc-linux boxes support dynamic linking these days and
15102 # people can always --disable-shared, the test was removed, and we
15103 # assume the GNU/Linux dynamic linker is in use.
15104 dynamic_linker
='GNU/Linux ld.so'
15111 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15112 soname_spec
='${libname}${release}${shared_ext}$major'
15113 shlibpath_var
=LD_LIBRARY_PATH
15114 shlibpath_overrides_runpath
=no
15115 hardcode_into_libs
=yes
15116 dynamic_linker
='GNU ld.so'
15123 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15124 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15125 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15126 dynamic_linker
='NetBSD (a.out) ld.so'
15128 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15129 soname_spec
='${libname}${release}${shared_ext}$major'
15130 dynamic_linker
='NetBSD ld.elf_so'
15132 shlibpath_var
=LD_LIBRARY_PATH
15133 shlibpath_overrides_runpath
=yes
15134 hardcode_into_libs
=yes
15139 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15140 shlibpath_var
=LD_LIBRARY_PATH
15141 shlibpath_overrides_runpath
=yes
15148 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15149 soname_spec
='${libname}${release}${shared_ext}$major'
15150 shlibpath_var
=LD_LIBRARY_PATH
15151 shlibpath_overrides_runpath
=yes
15156 sys_lib_dlsearch_path_spec
="/usr/lib"
15158 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15160 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
15161 *) need_version
=no
;;
15163 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15164 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15165 shlibpath_var
=LD_LIBRARY_PATH
15166 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15168 openbsd2.
[89] | openbsd2.
[89].
*)
15169 shlibpath_overrides_runpath
=no
15172 shlibpath_overrides_runpath
=yes
15176 shlibpath_overrides_runpath
=yes
15181 libname_spec
='$name'
15184 library_names_spec
='$libname${shared_ext} $libname.a'
15185 dynamic_linker
='OS/2 ld.exe'
15186 shlibpath_var
=LIBPATH
15189 osf3
* | osf4
* | osf5
*)
15193 soname_spec
='${libname}${release}${shared_ext}$major'
15194 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15195 shlibpath_var
=LD_LIBRARY_PATH
15196 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15197 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15204 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15205 soname_spec
='${libname}${release}${shared_ext}$major'
15206 shlibpath_var
=LD_LIBRARY_PATH
15207 shlibpath_overrides_runpath
=yes
15208 hardcode_into_libs
=yes
15209 # ldd complains unless libraries are executable
15210 postinstall_cmds
='chmod +x $lib'
15215 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15216 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15217 shlibpath_var
=LD_LIBRARY_PATH
15218 shlibpath_overrides_runpath
=yes
15219 if test "$with_gnu_ld" = yes; then
15227 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15228 soname_spec
='${libname}${release}${shared_ext}$major'
15229 shlibpath_var
=LD_LIBRARY_PATH
15230 case $host_vendor in
15232 shlibpath_overrides_runpath
=no
15234 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15235 runpath_var
=LD_RUN_PATH
15243 shlibpath_overrides_runpath
=no
15244 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15250 if test -d /usr
/nec
;then
15252 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15253 soname_spec
='$libname${shared_ext}.$major'
15254 shlibpath_var
=LD_LIBRARY_PATH
15258 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
15259 version_type
=freebsd-elf
15262 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15263 soname_spec
='${libname}${release}${shared_ext}$major'
15264 shlibpath_var
=LD_LIBRARY_PATH
15265 hardcode_into_libs
=yes
15266 if test "$with_gnu_ld" = yes; then
15267 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15268 shlibpath_overrides_runpath
=no
15270 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
15271 shlibpath_overrides_runpath
=yes
15274 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
15278 sys_lib_dlsearch_path_spec
='/usr/lib'
15283 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15284 soname_spec
='${libname}${release}${shared_ext}$major'
15285 shlibpath_var
=LD_LIBRARY_PATH
15292 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15293 echo "${ECHO_T}$dynamic_linker" >&6
15294 test "$dynamic_linker" = no
&& can_build_shared
=no
15296 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
15297 if test "$GCC" = yes; then
15298 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15301 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15302 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15303 hardcode_action_F77
=
15304 if test -n "$hardcode_libdir_flag_spec_F77" || \
15305 test -n "$runpath_var_F77" || \
15306 test "X$hardcode_automatic_F77" = "Xyes" ; then
15308 # We can hardcode non-existant directories.
15309 if test "$hardcode_direct_F77" != no
&&
15310 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15311 # have to relink, otherwise we might link with an installed library
15312 # when we should be linking with a yet-to-be-installed one
15313 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15314 test "$hardcode_minus_L_F77" != no
; then
15315 # Linking always hardcodes the temporary library directory.
15316 hardcode_action_F77
=relink
15318 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15319 hardcode_action_F77
=immediate
15322 # We cannot hardcode anything, or else we can only hardcode existing
15324 hardcode_action_F77
=unsupported
15326 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15327 echo "${ECHO_T}$hardcode_action_F77" >&6
15329 if test "$hardcode_action_F77" = relink
; then
15330 # Fast installation is not supported
15331 enable_fast_install
=no
15332 elif test "$shlibpath_overrides_runpath" = yes ||
15333 test "$enable_shared" = no
; then
15334 # Fast installation is not necessary
15335 enable_fast_install
=needless
15339 # The else clause should only fire when bootstrapping the
15340 # libtool distribution, otherwise you forgot to ship ltmain.sh
15341 # with your package, and you will get complaints that there are
15342 # no rules to generate ltmain.sh.
15343 if test -f "$ltmain"; then
15344 # See if we are running on zsh, and set the options which allow our commands through
15345 # without removal of \ escapes.
15346 if test -n "${ZSH_VERSION+set}" ; then
15347 setopt NO_GLOB_SUBST
15349 # Now quote all the things that may contain metacharacters while being
15350 # careful not to overquote the AC_SUBSTed values. We take copies of the
15351 # variables and quote the copies for generation of the libtool script.
15352 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15354 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15355 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15356 deplibs_check_method reload_flag reload_cmds need_locks \
15357 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15358 lt_cv_sys_global_symbol_to_c_name_address \
15359 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15360 old_postinstall_cmds old_postuninstall_cmds \
15364 lt_prog_compiler_wl_F77 \
15365 lt_prog_compiler_pic_F77 \
15366 lt_prog_compiler_static_F77 \
15367 lt_prog_compiler_no_builtin_flag_F77 \
15368 export_dynamic_flag_spec_F77 \
15369 thread_safe_flag_spec_F77 \
15370 whole_archive_flag_spec_F77 \
15371 enable_shared_with_static_runtimes_F77 \
15372 old_archive_cmds_F77 \
15373 old_archive_from_new_cmds_F77 \
15374 predep_objects_F77 \
15375 postdep_objects_F77 \
15378 compiler_lib_search_path_F77 \
15380 archive_expsym_cmds_F77 \
15381 postinstall_cmds_F77 \
15382 postuninstall_cmds_F77 \
15383 old_archive_from_expsyms_cmds_F77 \
15384 allow_undefined_flag_F77 \
15385 no_undefined_flag_F77 \
15386 export_symbols_cmds_F77 \
15387 hardcode_libdir_flag_spec_F77 \
15388 hardcode_libdir_flag_spec_ld_F77 \
15389 hardcode_libdir_separator_F77 \
15390 hardcode_automatic_F77 \
15392 module_expsym_cmds_F77 \
15393 lt_cv_prog_compiler_c_o_F77 \
15394 exclude_expsyms_F77 \
15395 include_expsyms_F77
; do
15398 old_archive_cmds_F77 | \
15399 old_archive_from_new_cmds_F77 | \
15400 archive_cmds_F77 | \
15401 archive_expsym_cmds_F77 | \
15402 module_cmds_F77 | \
15403 module_expsym_cmds_F77 | \
15404 old_archive_from_expsyms_cmds_F77 | \
15405 export_symbols_cmds_F77 | \
15406 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15407 postinstall_cmds | postuninstall_cmds | \
15408 old_postinstall_cmds | old_postuninstall_cmds | \
15409 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
15410 # Double-quote double-evaled strings.
15411 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15414 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15420 *'\$0 --fallback-echo"')
15421 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15427 cat <<__EOF__ >> "$cfgfile"
15428 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15430 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15432 # Shell to use when invoking shell scripts.
15435 # Whether or not to build shared libraries.
15436 build_libtool_libs=$enable_shared
15438 # Whether or not to build static libraries.
15439 build_old_libs=$enable_static
15441 # Whether or not to add -lc for building shared libraries.
15442 build_libtool_need_lc=$archive_cmds_need_lc_F77
15444 # Whether or not to disallow shared libs when runtime libs are static
15445 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15447 # Whether or not to optimize for fast installation.
15448 fast_install=$enable_fast_install
15451 host_alias=$host_alias
15455 # The build system.
15456 build_alias=$build_alias
15460 # An echo program that does not interpret backslashes.
15465 AR_FLAGS=$lt_AR_FLAGS
15470 # LTCC compiler flags.
15471 LTCFLAGS=$lt_LTCFLAGS
15473 # A language-specific compiler.
15474 CC=$lt_compiler_F77
15476 # Is the compiler the GNU C compiler?
15479 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15480 gcc_ver=\`gcc -dumpversion\`
15485 # The linker used to build libraries.
15488 # Whether we need hard or soft links.
15491 # A BSD-compatible nm program.
15494 # A symbol stripping program
15497 # Used to examine libraries when file_magic_cmd begins "file"
15498 MAGIC_CMD=$MAGIC_CMD
15500 # Used on cygwin: DLL creation program.
15503 # Used on cygwin: object dumper.
15506 # Used on cygwin: assembler.
15509 # The name of the directory that contains temporary libtool files.
15512 # How to create reloadable object files.
15513 reload_flag=$lt_reload_flag
15514 reload_cmds=$lt_reload_cmds
15516 # How to pass a linker flag through the compiler.
15517 wl=$lt_lt_prog_compiler_wl_F77
15519 # Object file suffix (normally "o").
15520 objext="$ac_objext"
15522 # Old archive suffix (normally "a").
15525 # Shared library suffix (normally ".so").
15526 shrext_cmds='$shrext_cmds'
15528 # Executable file suffix (normally "").
15531 # Additional compiler flags for building library objects.
15532 pic_flag=$lt_lt_prog_compiler_pic_F77
15535 # What is the maximum length of a command?
15536 max_cmd_len=$lt_cv_sys_max_cmd_len
15538 # Does compiler simultaneously support -c and -o options?
15539 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15541 # Must we lock files when doing compilation?
15542 need_locks=$lt_need_locks
15544 # Do we need the lib prefix for modules?
15545 need_lib_prefix=$need_lib_prefix
15547 # Do we need a version for libraries?
15548 need_version=$need_version
15550 # Whether dlopen is supported.
15551 dlopen_support=$enable_dlopen
15553 # Whether dlopen of programs is supported.
15554 dlopen_self=$enable_dlopen_self
15556 # Whether dlopen of statically linked programs is supported.
15557 dlopen_self_static=$enable_dlopen_self_static
15559 # Compiler flag to prevent dynamic linking.
15560 link_static_flag=$lt_lt_prog_compiler_static_F77
15562 # Compiler flag to turn off builtin functions.
15563 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15565 # Compiler flag to allow reflexive dlopens.
15566 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15568 # Compiler flag to generate shared objects directly from archives.
15569 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15571 # Compiler flag to generate thread-safe objects.
15572 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15574 # Library versioning type.
15575 version_type=$version_type
15577 # Format of library name prefix.
15578 libname_spec=$lt_libname_spec
15580 # List of archive names. First name is the real one, the rest are links.
15581 # The last name is the one that the linker finds with -lNAME.
15582 library_names_spec=$lt_library_names_spec
15584 # The coded name of the library, if different from the real name.
15585 soname_spec=$lt_soname_spec
15587 # Commands used to build and install an old-style archive.
15589 old_archive_cmds=$lt_old_archive_cmds_F77
15590 old_postinstall_cmds=$lt_old_postinstall_cmds
15591 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15593 # Create an old-style archive from a shared archive.
15594 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15596 # Create a temporary old-style archive to link instead of a shared archive.
15597 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15599 # Commands used to build and install a shared archive.
15600 archive_cmds=$lt_archive_cmds_F77
15601 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15602 postinstall_cmds=$lt_postinstall_cmds
15603 postuninstall_cmds=$lt_postuninstall_cmds
15605 # Commands used to build a loadable module (assumed same as above if empty)
15606 module_cmds=$lt_module_cmds_F77
15607 module_expsym_cmds=$lt_module_expsym_cmds_F77
15609 # Commands to strip libraries.
15610 old_striplib=$lt_old_striplib
15611 striplib=$lt_striplib
15613 # Dependencies to place before the objects being linked to create a
15615 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15617 # Dependencies to place after the objects being linked to create a
15619 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15621 # Dependencies to place before the objects being linked to create a
15623 predeps=$lt_predeps_F77
15625 # Dependencies to place after the objects being linked to create a
15627 postdeps=$lt_postdeps_F77
15629 # The library search path used internally by the compiler when linking
15630 # a shared library.
15631 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15633 # Method to check whether dependent libraries are shared objects.
15634 deplibs_check_method=$lt_deplibs_check_method
15636 # Command to use when deplibs_check_method == file_magic.
15637 file_magic_cmd=$lt_file_magic_cmd
15639 # Flag that allows shared libraries with undefined symbols to be built.
15640 allow_undefined_flag=$lt_allow_undefined_flag_F77
15642 # Flag that forces no undefined symbols.
15643 no_undefined_flag=$lt_no_undefined_flag_F77
15645 # Commands used to finish a libtool library installation in a directory.
15646 finish_cmds=$lt_finish_cmds
15648 # Same as above, but a single script fragment to be evaled but not shown.
15649 finish_eval=$lt_finish_eval
15651 # Take the output of nm and produce a listing of raw symbols and C names.
15652 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15654 # Transform the output of nm in a proper C declaration
15655 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15657 # Transform the output of nm in a C name address pair
15658 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15660 # This is the shared library runtime path variable.
15661 runpath_var=$runpath_var
15663 # This is the shared library path variable.
15664 shlibpath_var=$shlibpath_var
15666 # Is shlibpath searched before the hard-coded library search path?
15667 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15669 # How to hardcode a shared library path into an executable.
15670 hardcode_action=$hardcode_action_F77
15672 # Whether we should hardcode library paths into libraries.
15673 hardcode_into_libs=$hardcode_into_libs
15675 # Flag to hardcode \$libdir into a binary during linking.
15676 # This must work even if \$libdir does not exist.
15677 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15679 # If ld is used when linking, flag to hardcode \$libdir into
15680 # a binary during linking. This must work even if \$libdir does
15682 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15684 # Whether we need a single -rpath flag with a separated argument.
15685 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15687 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15688 # resulting binary.
15689 hardcode_direct=$hardcode_direct_F77
15691 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15692 # resulting binary.
15693 hardcode_minus_L=$hardcode_minus_L_F77
15695 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15696 # the resulting binary.
15697 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15699 # Set to yes if building a shared library automatically hardcodes DIR into the library
15700 # and all subsequent libraries and executables linked against it.
15701 hardcode_automatic=$hardcode_automatic_F77
15703 # Variables whose values should be saved in libtool wrapper scripts and
15704 # restored at relink time.
15705 variables_saved_for_relink="$variables_saved_for_relink"
15707 # Whether libtool must link a program against all its dependency libraries.
15708 link_all_deplibs=$link_all_deplibs_F77
15710 # Compile-time system search path for libraries
15711 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15713 # Run-time system search path for libraries
15714 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15716 # Fix the shell variable \$srcfile for the compiler.
15717 fix_srcfile_path="$fix_srcfile_path_F77"
15719 # Set to yes if exported symbols are required.
15720 always_export_symbols=$always_export_symbols_F77
15722 # The commands to list exported symbols.
15723 export_symbols_cmds=$lt_export_symbols_cmds_F77
15725 # The commands to extract the exported symbol list from a shared archive.
15726 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15728 # Symbols that should not be listed in the preloaded symbols.
15729 exclude_expsyms=$lt_exclude_expsyms_F77
15731 # Symbols that must always be exported.
15732 include_expsyms=$lt_include_expsyms_F77
15734 # ### END LIBTOOL TAG CONFIG: $tagname
15740 # If there is no Makefile yet, we rely on a make rule to execute
15741 # `config.status --recheck' to rerun these tests and create the
15742 # libtool script then.
15743 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15744 if test -f "$ltmain_in"; then
15745 test -f Makefile
&& make "$ltmain"
15751 ac_cpp
='$CPP $CPPFLAGS'
15752 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15753 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15754 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15764 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15768 # Source file extension for Java test sources.
15771 # Object file extension for compiled Java test sources.
15775 # Code to be used in simple compile tests
15776 lt_simple_compile_test_code
="class foo {}\n"
15778 # Code to be used in simple link tests
15779 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }\n'
15781 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15783 # If no C compiler was specified, use CC.
15786 # If no C compiler flags were specified, use CFLAGS.
15787 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
15789 # Allow CC to be a program name with arguments.
15793 # save warnings/boilerplate of simple test code
15794 ac_outfile
=conftest.
$ac_objext
15795 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
15796 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
15797 _lt_compiler_boilerplate
=`cat conftest.err`
15800 ac_outfile
=conftest.
$ac_objext
15801 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
15802 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
15803 _lt_linker_boilerplate
=`cat conftest.err`
15807 # Allow CC to be a program name with arguments.
15812 for cc_temp
in $compiler""; do
15814 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
15815 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
15820 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15823 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15824 archive_cmds_need_lc_GCJ
=no
15826 old_archive_cmds_GCJ
=$old_archive_cmds
15829 lt_prog_compiler_no_builtin_flag_GCJ
=
15831 if test "$GCC" = yes; then
15832 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
15835 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15836 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15837 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15838 echo $ECHO_N "(cached) $ECHO_C" >&6
15840 lt_cv_prog_compiler_rtti_exceptions
=no
15841 ac_outfile
=conftest.
$ac_objext
15842 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15843 lt_compiler_flag
="-fno-rtti -fno-exceptions"
15844 # Insert the option either (1) after the last *FLAGS variable, or
15845 # (2) before a word containing "conftest.", or (3) at the end.
15846 # Note that $ac_compile itself does not contain backslashes and begins
15847 # with a dollar sign (not a hyphen), so the echo should work correctly.
15848 # The option is referenced via a variable to avoid confusing sed.
15849 lt_compile
=`echo "$ac_compile" | $SED \
15850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15852 -e 's:$: $lt_compiler_flag:'`
15853 (eval echo "\"\$as_me:15853: $lt_compile\"" >&5)
15854 (eval "$lt_compile" 2>conftest.err
)
15856 cat conftest.err
>&5
15857 echo "$as_me:15857: \$? = $ac_status" >&5
15858 if (exit $ac_status) && test -s "$ac_outfile"; then
15859 # The compiler can only warn and ignore the option if not recognized
15860 # So say no if there are warnings other than the usual output.
15861 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
15862 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
15863 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
15864 lt_cv_prog_compiler_rtti_exceptions
=yes
15870 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15871 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15873 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
15874 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15881 lt_prog_compiler_wl_GCJ
=
15882 lt_prog_compiler_pic_GCJ
=
15883 lt_prog_compiler_static_GCJ
=
15885 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15886 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15888 if test "$GCC" = yes; then
15889 lt_prog_compiler_wl_GCJ
='-Wl,'
15890 lt_prog_compiler_static_GCJ
='-static'
15894 # All AIX code is PIC.
15895 if test "$host_cpu" = ia64
; then
15896 # AIX 5 now supports IA64 processor
15897 lt_prog_compiler_static_GCJ
='-Bstatic'
15902 # FIXME: we need at least 68020 code to build shared libraries, but
15903 # adding the `-m68020' flag to GCC prevents building anything better,
15905 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
15908 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
15909 # PIC is the default for these OSes.
15912 mingw
* | pw32
* | os2
*)
15913 # This hack is so that the source file can tell whether it is being
15914 # built for inclusion in a dll (and should export symbols for example).
15915 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
15918 darwin
* | rhapsody
*)
15919 # PIC is the default on this platform
15920 # Common symbols not allowed in MH_DYLIB files
15921 lt_prog_compiler_pic_GCJ
='-fno-common'
15925 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15926 # Instead, we relocate shared libraries at runtime.
15930 # Just because we use GCC doesn't mean we suddenly get shared libraries
15931 # on systems that don't support them.
15932 lt_prog_compiler_can_build_shared_GCJ
=no
15937 if test -d /usr
/nec
; then
15938 lt_prog_compiler_pic_GCJ
=-Kconform_pic
15943 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15944 # not for PA HP-UX.
15950 lt_prog_compiler_pic_GCJ
='-fPIC'
15956 lt_prog_compiler_pic_GCJ
='-fPIC'
15960 # PORTME Check for flag to pass linker flags through the system compiler.
15963 lt_prog_compiler_wl_GCJ
='-Wl,'
15964 if test "$host_cpu" = ia64
; then
15965 # AIX 5 now supports IA64 processor
15966 lt_prog_compiler_static_GCJ
='-Bstatic'
15968 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
15972 # PIC is the default on this platform
15973 # Common symbols not allowed in MH_DYLIB files
15974 case $cc_basename in
15976 lt_prog_compiler_pic_GCJ
='-qnocommon'
15977 lt_prog_compiler_wl_GCJ
='-Wl,'
15982 mingw
* | pw32
* | os2
*)
15983 # This hack is so that the source file can tell whether it is being
15984 # built for inclusion in a dll (and should export symbols for example).
15985 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
15988 hpux9
* | hpux10
* | hpux11
*)
15989 lt_prog_compiler_wl_GCJ
='-Wl,'
15990 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15991 # not for PA HP-UX.
15997 lt_prog_compiler_pic_GCJ
='+Z'
16000 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16001 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
16004 irix5
* | irix6
* | nonstopux
*)
16005 lt_prog_compiler_wl_GCJ
='-Wl,'
16006 # PIC (with -KPIC) is the default.
16007 lt_prog_compiler_static_GCJ
='-non_shared'
16011 lt_prog_compiler_pic_GCJ
='-KPIC'
16012 lt_prog_compiler_static_GCJ
='-Bstatic'
16016 case $cc_basename in
16018 lt_prog_compiler_wl_GCJ
='-Wl,'
16019 lt_prog_compiler_pic_GCJ
='-KPIC'
16020 lt_prog_compiler_static_GCJ
='-static'
16022 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
16023 # Portland Group compilers (*not* the Pentium gcc compiler,
16024 # which looks to be a dead project)
16025 lt_prog_compiler_wl_GCJ
='-Wl,'
16026 lt_prog_compiler_pic_GCJ
='-fpic'
16027 lt_prog_compiler_static_GCJ
='-Bstatic'
16030 lt_prog_compiler_wl_GCJ
='-Wl,'
16031 # All Alpha code is PIC.
16032 lt_prog_compiler_static_GCJ
='-non_shared'
16037 osf3
* | osf4
* | osf5
*)
16038 lt_prog_compiler_wl_GCJ
='-Wl,'
16039 # All OSF/1 code is PIC.
16040 lt_prog_compiler_static_GCJ
='-non_shared'
16044 lt_prog_compiler_pic_GCJ
='-KPIC'
16045 lt_prog_compiler_static_GCJ
='-Bstatic'
16046 case $cc_basename in
16047 f77
* | f90
* | f95
*)
16048 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
16050 lt_prog_compiler_wl_GCJ
='-Wl,';;
16055 lt_prog_compiler_wl_GCJ
='-Qoption ld '
16056 lt_prog_compiler_pic_GCJ
='-PIC'
16057 lt_prog_compiler_static_GCJ
='-Bstatic'
16060 sysv4 | sysv4.2uw2
* | sysv4.3
*)
16061 lt_prog_compiler_wl_GCJ
='-Wl,'
16062 lt_prog_compiler_pic_GCJ
='-KPIC'
16063 lt_prog_compiler_static_GCJ
='-Bstatic'
16067 if test -d /usr
/nec
;then
16068 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
16069 lt_prog_compiler_static_GCJ
='-Bstatic'
16073 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
16074 lt_prog_compiler_wl_GCJ
='-Wl,'
16075 lt_prog_compiler_pic_GCJ
='-KPIC'
16076 lt_prog_compiler_static_GCJ
='-Bstatic'
16080 lt_prog_compiler_wl_GCJ
='-Wl,'
16081 lt_prog_compiler_can_build_shared_GCJ
=no
16085 lt_prog_compiler_pic_GCJ
='-pic'
16086 lt_prog_compiler_static_GCJ
='-Bstatic'
16090 lt_prog_compiler_can_build_shared_GCJ
=no
16095 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16096 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16099 # Check to make sure the PIC flag actually works.
16101 if test -n "$lt_prog_compiler_pic_GCJ"; then
16103 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16104 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16105 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16106 echo $ECHO_N "(cached) $ECHO_C" >&6
16108 lt_prog_compiler_pic_works_GCJ
=no
16109 ac_outfile
=conftest.
$ac_objext
16110 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16111 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
16112 # Insert the option either (1) after the last *FLAGS variable, or
16113 # (2) before a word containing "conftest.", or (3) at the end.
16114 # Note that $ac_compile itself does not contain backslashes and begins
16115 # with a dollar sign (not a hyphen), so the echo should work correctly.
16116 # The option is referenced via a variable to avoid confusing sed.
16117 lt_compile
=`echo "$ac_compile" | $SED \
16118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16120 -e 's:$: $lt_compiler_flag:'`
16121 (eval echo "\"\$as_me:16121: $lt_compile\"" >&5)
16122 (eval "$lt_compile" 2>conftest.err
)
16124 cat conftest.err
>&5
16125 echo "$as_me:16125: \$? = $ac_status" >&5
16126 if (exit $ac_status) && test -s "$ac_outfile"; then
16127 # The compiler can only warn and ignore the option if not recognized
16128 # So say no if there are warnings other than the usual output.
16129 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16130 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16131 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16132 lt_prog_compiler_pic_works_GCJ
=yes
16138 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16139 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16141 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
16142 case $lt_prog_compiler_pic_GCJ in
16144 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
16147 lt_prog_compiler_pic_GCJ
=
16148 lt_prog_compiler_can_build_shared_GCJ
=no
16153 # For platforms which do not support PIC, -DPIC is meaningless:
16155 lt_prog_compiler_pic_GCJ
=
16158 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
16163 # Check to make sure the static flag actually works.
16165 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
16166 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16167 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16168 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16169 echo $ECHO_N "(cached) $ECHO_C" >&6
16171 lt_prog_compiler_static_works_GCJ
=no
16172 save_LDFLAGS
="$LDFLAGS"
16173 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
16174 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
16175 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16176 # The linker can only warn and ignore the option if not recognized
16177 # So say no if there are warnings
16178 if test -s conftest.err
; then
16179 # Append any errors to the config.log.
16180 cat conftest.err
1>&5
16181 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
16182 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16183 if diff conftest.exp conftest.er2
>/dev
/null
; then
16184 lt_prog_compiler_static_works_GCJ
=yes
16187 lt_prog_compiler_static_works_GCJ
=yes
16191 LDFLAGS
="$save_LDFLAGS"
16194 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16195 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16197 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
16200 lt_prog_compiler_static_GCJ
=
16204 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16205 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16206 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16207 echo $ECHO_N "(cached) $ECHO_C" >&6
16209 lt_cv_prog_compiler_c_o_GCJ
=no
16210 $rm -r conftest
2>/dev
/null
16214 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16216 lt_compiler_flag
="-o out/conftest2.$ac_objext"
16217 # Insert the option either (1) after the last *FLAGS variable, or
16218 # (2) before a word containing "conftest.", or (3) at the end.
16219 # Note that $ac_compile itself does not contain backslashes and begins
16220 # with a dollar sign (not a hyphen), so the echo should work correctly.
16221 lt_compile
=`echo "$ac_compile" | $SED \
16222 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16223 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16224 -e 's:$: $lt_compiler_flag:'`
16225 (eval echo "\"\$as_me:16225: $lt_compile\"" >&5)
16226 (eval "$lt_compile" 2>out
/conftest.err
)
16228 cat out
/conftest.err
>&5
16229 echo "$as_me:16229: \$? = $ac_status" >&5
16230 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
16232 # The compiler can only warn and ignore the option if not recognized
16233 # So say no if there are warnings
16234 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
16235 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
16236 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
16237 lt_cv_prog_compiler_c_o_GCJ
=yes
16242 # SGI C++ compiler will create directory out/ii_files/ for
16243 # template instantiation
16244 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
16245 $rm out
/* && rmdir out
16251 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16252 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16255 hard_links
="nottested"
16256 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
16257 # do not overwrite the value of need_locks provided by the user
16258 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16259 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16262 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16264 ln conftest.a conftest.b
2>&5 || hard_links
=no
16265 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16266 echo "$as_me:$LINENO: result: $hard_links" >&5
16267 echo "${ECHO_T}$hard_links" >&6
16268 if test "$hard_links" = no
; then
16269 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16270 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16277 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16278 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16281 allow_undefined_flag_GCJ
=
16282 enable_shared_with_static_runtimes_GCJ
=no
16284 archive_expsym_cmds_GCJ
=
16285 old_archive_From_new_cmds_GCJ
=
16286 old_archive_from_expsyms_cmds_GCJ
=
16287 export_dynamic_flag_spec_GCJ
=
16288 whole_archive_flag_spec_GCJ
=
16289 thread_safe_flag_spec_GCJ
=
16290 hardcode_libdir_flag_spec_GCJ
=
16291 hardcode_libdir_flag_spec_ld_GCJ
=
16292 hardcode_libdir_separator_GCJ
=
16293 hardcode_direct_GCJ
=no
16294 hardcode_minus_L_GCJ
=no
16295 hardcode_shlibpath_var_GCJ
=unsupported
16296 link_all_deplibs_GCJ
=unknown
16297 hardcode_automatic_GCJ
=no
16299 module_expsym_cmds_GCJ
=
16300 always_export_symbols_GCJ
=no
16301 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16302 # include_expsyms should be a list of space-separated symbols to be *always*
16303 # included in the symbol list
16304 include_expsyms_GCJ
=
16305 # exclude_expsyms can be an extended regexp of symbols to exclude
16306 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16307 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16308 # as well as any symbol that contains `d'.
16309 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
16310 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16311 # platforms (ab)use it in PIC code, but their linkers get confused if
16312 # the symbol is explicitly referenced. Since portable code cannot
16313 # rely on this symbol name, it's probably fine to never include it in
16314 # preloaded symbol tables.
16315 extract_expsyms_cmds
=
16316 # Just being paranoid about ensuring that cc_basename is set.
16317 for cc_temp
in $compiler""; do
16319 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16320 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16325 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16328 cygwin
* | mingw
* | pw32
*)
16329 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16330 # When not using gcc, we currently assume that we are using
16331 # Microsoft Visual C++.
16332 if test "$GCC" != yes; then
16337 # we just hope/assume this is gcc and not c89 (= MSVC++)
16346 if test "$with_gnu_ld" = yes; then
16347 # If archive_cmds runs LD, not CC, wlarc should be empty
16350 # Set some defaults for GNU ld with shared library support. These
16351 # are reset later if shared libraries are not supported. Putting them
16352 # here allows them to be overridden if necessary.
16353 runpath_var
=LD_RUN_PATH
16354 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
16355 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
16356 # ancient GNU ld didn't support --whole-archive et. al.
16357 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
16358 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16360 whole_archive_flag_spec_GCJ
=
16362 supports_anon_versioning
=no
16363 case `$LD -v 2>/dev/null` in
16364 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
16365 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
16366 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
16367 *\
2.11.
*) ;; # other 2.11 versions
16368 *) supports_anon_versioning
=yes ;;
16371 # See if GNU ld supports shared libraries.
16373 aix3
* | aix4
* | aix5
*)
16374 # On AIX/PPC, the GNU linker is very broken
16375 if test "$host_cpu" != ia64
; then
16379 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16380 *** to be unable to reliably create shared libraries on AIX.
16381 *** Therefore, libtool is disabling shared libraries support. If you
16382 *** really care for shared libraries, you may want to modify your PATH
16383 *** so that a non-GNU linker is found, and then restart.
16390 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)'
16391 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16392 hardcode_minus_L_GCJ
=yes
16394 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16395 # that the semantics of dynamic libraries on AmigaOS, at least up
16396 # to version 4, is to share data among multiple programs linked
16397 # with the same dynamic library. Since this doesn't match the
16398 # behavior of shared libraries on other platforms, we can't use
16404 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16405 allow_undefined_flag_GCJ
=unsupported
16406 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16407 # support --undefined. This deserves some investigation. FIXME
16408 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16414 cygwin
* | mingw
* | pw32
*)
16415 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16416 # as there is no search path for DLLs.
16417 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16418 allow_undefined_flag_GCJ
=unsupported
16419 always_export_symbols_GCJ
=no
16420 enable_shared_with_static_runtimes_GCJ
=yes
16421 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16423 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
16424 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16425 # If the export-symbols file already is a .def file (1st line
16426 # is EXPORTS), use it as is; otherwise, prepend...
16427 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16428 cp $export_symbols $output_objdir/$soname.def;
16430 echo EXPORTS > $output_objdir/$soname.def;
16431 cat $export_symbols >> $output_objdir/$soname.def;
16433 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16440 hardcode_direct_GCJ
=no
16441 hardcode_shlibpath_var_GCJ
=no
16442 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
16443 export_dynamic_flag_spec_GCJ
='${wl}-E'
16444 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16445 # Instead, shared libraries are loaded at an image base (0x10000000 by
16446 # default) and relocated if they conflict, which is a slow very memory
16447 # consuming and fragmenting process. To avoid this, we pick a random,
16448 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16449 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16450 archive_cmds_GCJ
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16451 archive_expsym_cmds_GCJ
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16455 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16457 case $cc_basename,$host_cpu in
16458 pgcc
*) # Portland Group C compiler
16459 whole_archive_flag_spec_GCJ
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16460 tmp_addflag
=' $pic_flag'
16462 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
16463 whole_archive_flag_spec_GCJ
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16464 tmp_addflag
=' $pic_flag -Mnomain' ;;
16465 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16466 tmp_addflag
=' -i_dynamic' ;;
16467 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16468 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16469 ifc
* | ifort
*) # Intel Fortran compiler
16470 tmp_addflag
=' -nofor_main' ;;
16472 archive_cmds_GCJ
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16474 if test $supports_anon_versioning = yes; then
16475 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
16476 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16477 $echo "local: *; };" >> $output_objdir/$libname.ver~
16478 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16486 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16487 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16490 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16491 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16496 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
16500 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16501 *** create shared libraries on Solaris systems. Therefore, libtool
16502 *** is disabling shared libraries support. We urge you to upgrade GNU
16503 *** binutils to release 2.9.1 or newer. Another option is to modify
16504 *** your PATH or compiler configuration so that the native linker is
16505 *** used, and then restart.
16508 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16509 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16510 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16516 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16517 case `$LD -v 2>&1` in
16518 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16522 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16523 *** reliably create shared libraries on SCO systems. Therefore, libtool
16524 *** is disabling shared libraries support. We urge you to upgrade GNU
16525 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16526 *** your PATH or compiler configuration so that the native linker is
16527 *** used, and then restart.
16532 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16533 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16534 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16535 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16544 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16546 hardcode_direct_GCJ
=yes
16547 hardcode_shlibpath_var_GCJ
=no
16551 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16552 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16553 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16560 if test "$ld_shlibs_GCJ" = no
; then
16562 hardcode_libdir_flag_spec_GCJ
=
16563 export_dynamic_flag_spec_GCJ
=
16564 whole_archive_flag_spec_GCJ
=
16567 # PORTME fill in a description of your system's linker (not GNU ld)
16570 allow_undefined_flag_GCJ
=unsupported
16571 always_export_symbols_GCJ
=yes
16572 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'
16573 # Note: this linker hardcodes the directories in LIBPATH if there
16574 # are no directories specified by -L.
16575 hardcode_minus_L_GCJ
=yes
16576 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16577 # Neither direct hardcoding nor static linking is supported with a
16579 hardcode_direct_GCJ
=unsupported
16584 if test "$host_cpu" = ia64
; then
16585 # On IA64, the linker does run time linking by default, so we don't
16586 # have to do anything special.
16587 aix_use_runtimelinking
=no
16588 exp_sym_flag
='-Bexport'
16591 # If we're using GNU nm, then we don't want the "-C" option.
16592 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16593 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
16594 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'
16596 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'
16598 aix_use_runtimelinking
=no
16600 # Test if we are trying to use run time linking or normal
16601 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16602 # need to do runtime linking.
16603 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
16604 for ld_flag
in $LDFLAGS; do
16605 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16606 aix_use_runtimelinking
=yes
16613 exp_sym_flag
='-bexport'
16614 no_entry_flag
='-bnoentry'
16617 # When large executables or shared objects are built, AIX ld can
16618 # have problems creating the table of contents. If linking a library
16619 # or program results in "error TOC overflow" add -mminimal-toc to
16620 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16621 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16623 archive_cmds_GCJ
=''
16624 hardcode_direct_GCJ
=yes
16625 hardcode_libdir_separator_GCJ
=':'
16626 link_all_deplibs_GCJ
=yes
16628 if test "$GCC" = yes; then
16629 case $host_os in aix4.
[012]|aix4.
[012].
*)
16630 # We only want to do this on AIX 4.2 and lower, the check
16631 # below for broken collect2 doesn't work under 4.3+
16632 collect2name
=`${CC} -print-prog-name=collect2`
16633 if test -f "$collect2name" && \
16634 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
16636 # We have reworked collect2
16637 hardcode_direct_GCJ
=yes
16639 # We have old collect2
16640 hardcode_direct_GCJ
=unsupported
16641 # It fails to find uninstalled libraries when the uninstalled
16642 # path is not listed in the libpath. Setting hardcode_minus_L
16643 # to unsupported forces relinking
16644 hardcode_minus_L_GCJ
=yes
16645 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16646 hardcode_libdir_separator_GCJ
=
16650 shared_flag
='-shared'
16651 if test "$aix_use_runtimelinking" = yes; then
16652 shared_flag
="$shared_flag "'${wl}-G'
16656 if test "$host_cpu" = ia64
; then
16657 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16658 # chokes on -Wl,-G. The following line is correct:
16661 if test "$aix_use_runtimelinking" = yes; then
16662 shared_flag
='${wl}-G'
16664 shared_flag
='${wl}-bM:SRE'
16669 # It seems that -bexpall does not export symbols beginning with
16670 # underscore (_), so it is better to generate a list of symbols to export.
16671 always_export_symbols_GCJ
=yes
16672 if test "$aix_use_runtimelinking" = yes; then
16673 # Warning - without using the other runtime loading flags (-brtl),
16674 # -berok will link without error, but may produce a broken library.
16675 allow_undefined_flag_GCJ
='-berok'
16676 # Determine the default libpath from the value encoded in an empty executable.
16677 cat >conftest.
$ac_ext <<_ACEOF
16680 cat confdefs.h
>>conftest.
$ac_ext
16681 cat >>conftest.
$ac_ext <<_ACEOF
16682 /* end confdefs.h. */
16692 rm -f conftest.
$ac_objext conftest
$ac_exeext
16693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16694 (eval $ac_link) 2>conftest.er1
16696 grep -v '^ *+' conftest.er1
>conftest.err
16698 cat conftest.err
>&5
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); } &&
16701 { ac_try
='test -z "$ac_c_werror_flag"
16702 || test ! -s conftest.err'
16703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16704 (eval $ac_try) 2>&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); }; } &&
16708 { ac_try
='test -s conftest$ac_exeext'
16709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16710 (eval $ac_try) 2>&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; }; then
16715 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16717 # Check for a 64-bit object if we didn't find anything.
16718 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; }
16721 echo "$as_me: failed program was:" >&5
16722 sed 's/^/| /' conftest.
$ac_ext >&5
16725 rm -f conftest.err conftest.
$ac_objext \
16726 conftest
$ac_exeext conftest.
$ac_ext
16727 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16729 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
16730 archive_expsym_cmds_GCJ
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16732 if test "$host_cpu" = ia64
; then
16733 hardcode_libdir_flag_spec_GCJ
='${wl}-R $libdir:/usr/lib:/lib'
16734 allow_undefined_flag_GCJ
="-z nodefs"
16735 archive_expsym_cmds_GCJ
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16737 # Determine the default libpath from the value encoded in an empty executable.
16738 cat >conftest.
$ac_ext <<_ACEOF
16741 cat confdefs.h
>>conftest.
$ac_ext
16742 cat >>conftest.
$ac_ext <<_ACEOF
16743 /* end confdefs.h. */
16753 rm -f conftest.
$ac_objext conftest
$ac_exeext
16754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16755 (eval $ac_link) 2>conftest.er1
16757 grep -v '^ *+' conftest.er1
>conftest.err
16759 cat conftest.err
>&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } &&
16762 { ac_try
='test -z "$ac_c_werror_flag"
16763 || test ! -s conftest.err'
16764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16765 (eval $ac_try) 2>&5
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); }; } &&
16769 { ac_try
='test -s conftest$ac_exeext'
16770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16771 (eval $ac_try) 2>&5
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); }; }; then
16776 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16778 # Check for a 64-bit object if we didn't find anything.
16779 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; }
16782 echo "$as_me: failed program was:" >&5
16783 sed 's/^/| /' conftest.
$ac_ext >&5
16786 rm -f conftest.err conftest.
$ac_objext \
16787 conftest
$ac_exeext conftest.
$ac_ext
16788 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16790 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
16791 # Warning - without using the other run time loading flags,
16792 # -berok will link without error, but may produce a broken library.
16793 no_undefined_flag_GCJ
=' ${wl}-bernotok'
16794 allow_undefined_flag_GCJ
=' ${wl}-berok'
16795 # Exported symbols can be pulled into shared objects from archives
16796 whole_archive_flag_spec_GCJ
='$convenience'
16797 archive_cmds_need_lc_GCJ
=yes
16798 # This is similar to how AIX traditionally builds its shared libraries.
16799 archive_expsym_cmds_GCJ
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16805 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)'
16806 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16807 hardcode_minus_L_GCJ
=yes
16808 # see comment about different semantics on the GNU ld section
16813 export_dynamic_flag_spec_GCJ
=-rdynamic
16816 cygwin
* | mingw
* | pw32
*)
16817 # When not using gcc, we currently assume that we are using
16818 # Microsoft Visual C++.
16819 # hardcode_libdir_flag_spec is actually meaningless, as there is
16820 # no search path for DLLs.
16821 hardcode_libdir_flag_spec_GCJ
=' '
16822 allow_undefined_flag_GCJ
=unsupported
16823 # Tell ltmain to make .lib files, not .a files.
16825 # Tell ltmain to make .dll files, not .so files.
16827 # FIXME: Setting linknames here is a bad hack.
16828 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16829 # The linker will automatically build a .lib file if we build a DLL.
16830 old_archive_From_new_cmds_GCJ
='true'
16831 # FIXME: Should let the user specify the lib program.
16832 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
16833 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
16834 enable_shared_with_static_runtimes_GCJ
=yes
16837 darwin
* | rhapsody
*)
16839 rhapsody
* | darwin1.
[012])
16840 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
16843 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16844 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16846 case ${MACOSX_DEPLOYMENT_TARGET} in
16848 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16851 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
16857 archive_cmds_need_lc_GCJ
=no
16858 hardcode_direct_GCJ
=no
16859 hardcode_automatic_GCJ
=yes
16860 hardcode_shlibpath_var_GCJ
=unsupported
16861 whole_archive_flag_spec_GCJ
=''
16862 link_all_deplibs_GCJ
=yes
16863 if test "$GCC" = yes ; then
16864 output_verbose_link_cmd
='echo'
16865 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16866 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16867 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16868 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}'
16869 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}'
16871 case $cc_basename in
16873 output_verbose_link_cmd
='echo'
16874 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16875 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16876 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16877 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}'
16878 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}'
16888 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16889 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16890 hardcode_shlibpath_var_GCJ
=no
16897 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16898 # support. Future versions do this automatically, but an explicit c++rt0.o
16899 # does not break anything, and helps significantly (at the cost of a little
16902 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16903 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16904 hardcode_direct_GCJ
=yes
16905 hardcode_shlibpath_var_GCJ
=no
16908 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16910 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16911 hardcode_direct_GCJ
=yes
16912 hardcode_minus_L_GCJ
=yes
16913 hardcode_shlibpath_var_GCJ
=no
16916 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16917 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
16918 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16919 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16920 hardcode_direct_GCJ
=yes
16921 hardcode_shlibpath_var_GCJ
=no
16925 if test "$GCC" = yes; then
16926 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'
16928 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'
16930 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16931 hardcode_libdir_separator_GCJ
=:
16932 hardcode_direct_GCJ
=yes
16934 # hardcode_minus_L: Not really in the search PATH,
16935 # but as the default location of the library.
16936 hardcode_minus_L_GCJ
=yes
16937 export_dynamic_flag_spec_GCJ
='${wl}-E'
16941 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
16942 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16944 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16946 if test "$with_gnu_ld" = no
; then
16947 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16948 hardcode_libdir_separator_GCJ
=:
16950 hardcode_direct_GCJ
=yes
16951 export_dynamic_flag_spec_GCJ
='${wl}-E'
16953 # hardcode_minus_L: Not really in the search PATH,
16954 # but as the default location of the library.
16955 hardcode_minus_L_GCJ
=yes
16960 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
16963 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16966 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16969 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16975 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16978 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16981 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16985 if test "$with_gnu_ld" = no
; then
16986 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16987 hardcode_libdir_separator_GCJ
=:
16991 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
16992 hardcode_direct_GCJ
=no
16993 hardcode_shlibpath_var_GCJ
=no
16996 hardcode_direct_GCJ
=yes
16997 export_dynamic_flag_spec_GCJ
='${wl}-E'
16999 # hardcode_minus_L: Not really in the search PATH,
17000 # but as the default location of the library.
17001 hardcode_minus_L_GCJ
=yes
17007 irix5
* | irix6
* | nonstopux
*)
17008 if test "$GCC" = yes; then
17009 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'
17011 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'
17012 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
17014 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17015 hardcode_libdir_separator_GCJ
=:
17016 link_all_deplibs_GCJ
=yes
17020 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17021 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17023 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17025 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17026 hardcode_direct_GCJ
=yes
17027 hardcode_shlibpath_var_GCJ
=no
17031 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17032 hardcode_direct_GCJ
=yes
17033 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17034 hardcode_libdir_separator_GCJ
=:
17035 hardcode_shlibpath_var_GCJ
=no
17039 hardcode_direct_GCJ
=yes
17040 hardcode_shlibpath_var_GCJ
=no
17041 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17042 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17043 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17044 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17045 export_dynamic_flag_spec_GCJ
='${wl}-E'
17048 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17049 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17050 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17053 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17054 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17061 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17062 hardcode_minus_L_GCJ
=yes
17063 allow_undefined_flag_GCJ
=unsupported
17064 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'
17065 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17069 if test "$GCC" = yes; then
17070 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17071 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'
17073 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17074 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'
17076 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17077 hardcode_libdir_separator_GCJ
=:
17080 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17081 if test "$GCC" = yes; then
17082 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17083 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'
17084 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17086 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17087 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'
17088 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~
17089 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17091 # Both c and cxx compiler support -rpath directly
17092 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
17094 hardcode_libdir_separator_GCJ
=:
17098 no_undefined_flag_GCJ
=' -z text'
17099 if test "$GCC" = yes; then
17101 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17102 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17103 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17106 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17107 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17108 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17110 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17111 hardcode_shlibpath_var_GCJ
=no
17113 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17115 # The compiler driver will combine linker options so we
17116 # cannot just pass the convience library names through
17117 # without $wl, iff we do not link with $LD.
17118 # Luckily, gcc supports the same syntax we need for Sun Studio.
17119 # Supported since Solaris 2.6 (maybe 2.5.1?)
17122 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
17124 whole_archive_flag_spec_GCJ
='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17127 link_all_deplibs_GCJ
=yes
17131 if test "x$host_vendor" = xsequent
; then
17132 # Use $CC to link under sequent, because it throws in some extra .o
17133 # files that make .init and .fini sections work.
17134 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17136 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17138 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17139 hardcode_direct_GCJ
=yes
17140 hardcode_minus_L_GCJ
=yes
17141 hardcode_shlibpath_var_GCJ
=no
17145 case $host_vendor in
17147 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17148 hardcode_direct_GCJ
=yes # is this really true???
17151 ## LD is ld it makes a PLAMLIB
17152 ## CC just makes a GrossModule.
17153 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17154 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
17155 hardcode_direct_GCJ
=no
17158 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17159 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
17162 runpath_var
='LD_RUN_PATH'
17163 hardcode_shlibpath_var_GCJ
=no
17167 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17168 hardcode_shlibpath_var_GCJ
=no
17169 export_dynamic_flag_spec_GCJ
='-Bexport'
17173 if test -d /usr
/nec
; then
17174 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17175 hardcode_shlibpath_var_GCJ
=no
17176 runpath_var
=LD_RUN_PATH
17177 hardcode_runpath_var
=yes
17182 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
17183 no_undefined_flag_GCJ
='${wl}-z,text'
17184 archive_cmds_need_lc_GCJ
=no
17185 hardcode_shlibpath_var_GCJ
=no
17186 runpath_var
='LD_RUN_PATH'
17188 if test "$GCC" = yes; then
17189 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17190 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17192 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17193 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17197 sysv5
* | sco3.2v5
* | sco5v6
*)
17198 # Note: We can NOT use -z defs as we might desire, because we do not
17199 # link with -lc, and that would cause any symbols used from libc to
17200 # always be unresolved, which means just about no library would
17201 # ever link correctly. If we're not using GNU ld we use -z text
17202 # though, which does catch some bad symbols but isn't as heavy-handed
17204 no_undefined_flag_GCJ
='${wl}-z,text'
17205 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
17206 archive_cmds_need_lc_GCJ
=no
17207 hardcode_shlibpath_var_GCJ
=no
17208 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17209 hardcode_libdir_separator_GCJ
=':'
17210 link_all_deplibs_GCJ
=yes
17211 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
17212 runpath_var
='LD_RUN_PATH'
17214 if test "$GCC" = yes; then
17215 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17216 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17218 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17219 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17224 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17225 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17226 hardcode_shlibpath_var_GCJ
=no
17235 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17236 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17237 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
17240 # Do we need to explicitly link libc?
17242 case "x$archive_cmds_need_lc_GCJ" in
17244 # Assume -lc should be added
17245 archive_cmds_need_lc_GCJ
=yes
17247 if test "$enable_shared" = yes && test "$GCC" = yes; then
17248 case $archive_cmds_GCJ in
17250 # FIXME: we may have to deal with multi-command sequences.
17253 # Test whether the compiler implicitly links with -lc since on some
17254 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17255 # to ld, don't add -lc before -lgcc.
17256 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17257 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17259 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
17261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17262 (eval $ac_compile) 2>&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } 2>conftest.err
; then
17268 libobjs
=conftest.
$ac_objext
17270 wl
=$lt_prog_compiler_wl_GCJ
17271 pic_flag
=$lt_prog_compiler_pic_GCJ
17277 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
17278 allow_undefined_flag_GCJ
=
17279 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17280 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); }
17285 archive_cmds_need_lc_GCJ
=no
17287 archive_cmds_need_lc_GCJ
=yes
17289 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
17291 cat conftest.err
1>&5
17294 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17295 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17302 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17303 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17304 library_names_spec
=
17305 libname_spec
='lib$name'
17309 postuninstall_cmds
=
17313 shlibpath_overrides_runpath
=unknown
17315 dynamic_linker
="$host_os ld.so"
17316 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17317 if test "$GCC" = yes; then
17318 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17319 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
17320 # if the path contains ";" then we assume it to be the separator
17321 # otherwise default to the standard path separator (i.e. ":") - it is
17322 # assumed that no part of a normal pathname contains ";" but that should
17323 # okay in the real world where ";" in dirpaths is itself problematic.
17324 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17326 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17329 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17331 need_lib_prefix
=unknown
17332 hardcode_into_libs
=no
17334 # when you set need_version to no, make sure it does not cause -set_version
17335 # flags to be left without arguments
17336 need_version
=unknown
17341 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17342 shlibpath_var
=LIBPATH
17344 # AIX 3 has no versioning support, so we append a major version to the name.
17345 soname_spec
='${libname}${release}${shared_ext}$major'
17352 hardcode_into_libs
=yes
17353 if test "$host_cpu" = ia64
; then
17354 # AIX 5 supports IA64
17355 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17356 shlibpath_var
=LD_LIBRARY_PATH
17358 # With GCC up to 2.95.x, collect2 would create an import file
17359 # for dependence libraries. The import file would start with
17360 # the line `#! .'. This would cause the generated library to
17361 # depend on `.', always an invalid library. This was fixed in
17362 # development snapshots of GCC prior to 3.0.
17364 aix4 | aix4.
[01] | aix4.
[01].
*)
17365 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17367 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
17370 can_build_shared
=no
17374 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17375 # soname into executable. Probably we can add versioning support to
17376 # collect2, so additional links can be useful in future.
17377 if test "$aix_use_runtimelinking" = yes; then
17378 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17379 # instead of lib<name>.a to let people know that these are not
17380 # typical AIX shared libraries.
17381 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17383 # We preserve .a as extension for shared libraries through AIX4.2
17384 # and later when we are not doing run time linking.
17385 library_names_spec
='${libname}${release}.a $libname.a'
17386 soname_spec
='${libname}${release}${shared_ext}$major'
17388 shlibpath_var
=LIBPATH
17393 library_names_spec
='$libname.ixlibrary $libname.a'
17394 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17395 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'
17399 library_names_spec
='${libname}${shared_ext}'
17400 dynamic_linker
="$host_os ld.so"
17401 shlibpath_var
=LIBRARY_PATH
17407 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17408 soname_spec
='${libname}${release}${shared_ext}$major'
17409 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17410 shlibpath_var
=LD_LIBRARY_PATH
17411 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17412 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17413 # the default ld.so.conf also contains /usr/contrib/lib and
17414 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17415 # libtool to hard-code these into programs
17418 cygwin
* | mingw
* | pw32
*)
17419 version_type
=windows
17424 case $GCC,$host_os in
17425 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
17426 library_names_spec
='$libname.dll.a'
17427 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17428 postinstall_cmds
='base_file=`basename \${file}`~
17429 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17430 dldir=$destdir/`dirname \$dlpath`~
17431 test -d \$dldir || mkdir -p \$dldir~
17432 $install_prog $dir/$dlname \$dldir/$dlname~
17433 chmod a+x \$dldir/$dlname'
17434 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17435 dlpath=$dir/\$dldll~
17437 shlibpath_overrides_runpath
=yes
17441 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17442 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17443 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
17446 # MinGW DLLs use traditional 'lib' prefix
17447 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17448 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17449 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
17450 # It is most probably a Windows format PATH printed by
17451 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17452 # path with ; separators, and with drive letters. We can handle the
17453 # drive letters (cygwin fileutils understands them), so leave them,
17454 # especially as we might pass files found there to a mingw objdump,
17455 # which wouldn't understand a cygwinified path. Ahh.
17456 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17458 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17462 # pw32 DLLs use 'pw' prefix rather than 'lib'
17463 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17469 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17472 dynamic_linker
='Win32 ld.exe'
17473 # FIXME: first we should search . and the directory the executable is in
17477 darwin
* | rhapsody
*)
17478 dynamic_linker
="$host_os dyld"
17479 version_type
=darwin
17482 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17483 soname_spec
='${libname}${release}${major}$shared_ext'
17484 shlibpath_overrides_runpath
=yes
17485 shlibpath_var
=DYLD_LIBRARY_PATH
17486 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17487 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17488 if test "$GCC" = yes; then
17489 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"`
17491 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
17493 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17500 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17501 soname_spec
='${libname}${release}${shared_ext}$major'
17502 shlibpath_var
=LD_LIBRARY_PATH
17513 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17514 soname_spec
='${libname}${release}${shared_ext}$major'
17515 shlibpath_var
=LD_LIBRARY_PATH
17516 shlibpath_overrides_runpath
=no
17517 hardcode_into_libs
=yes
17518 dynamic_linker
='GNU ld.so'
17521 freebsd
* | dragonfly
*)
17522 # DragonFly does not have aout. When/if they implement a new
17523 # versioning mechanism, adjust this.
17524 if test -x /usr
/bin
/objformat
; then
17525 objformat
=`/usr/bin/objformat`
17528 freebsd
[123]*) objformat
=aout
;;
17529 *) objformat
=elf
;;
17532 version_type
=freebsd-
$objformat
17533 case $version_type in
17535 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17540 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17544 shlibpath_var
=LD_LIBRARY_PATH
17547 shlibpath_overrides_runpath
=yes
17549 freebsd3.
[01]* | freebsdelf3.
[01]*)
17550 shlibpath_overrides_runpath
=yes
17551 hardcode_into_libs
=yes
17553 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17554 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17555 shlibpath_overrides_runpath
=no
17556 hardcode_into_libs
=yes
17558 freebsd
*) # from 4.6 on
17559 shlibpath_overrides_runpath
=yes
17560 hardcode_into_libs
=yes
17569 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17570 soname_spec
='${libname}${release}${shared_ext}$major'
17571 shlibpath_var
=LD_LIBRARY_PATH
17572 hardcode_into_libs
=yes
17575 hpux9
* | hpux10
* | hpux11
*)
17576 # Give a soname corresponding to the major version so that dld.sl refuses to
17577 # link against other versions.
17584 hardcode_into_libs
=yes
17585 dynamic_linker
="$host_os dld.so"
17586 shlibpath_var
=LD_LIBRARY_PATH
17587 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17588 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17589 soname_spec
='${libname}${release}${shared_ext}$major'
17590 if test "X$HPUX_IA64_MODE" = X32
; then
17591 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17593 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17595 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17599 hardcode_into_libs
=yes
17600 dynamic_linker
="$host_os dld.sl"
17601 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17602 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17603 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17604 soname_spec
='${libname}${release}${shared_ext}$major'
17605 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17606 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17610 dynamic_linker
="$host_os dld.sl"
17611 shlibpath_var
=SHLIB_PATH
17612 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17613 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17614 soname_spec
='${libname}${release}${shared_ext}$major'
17617 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17618 postinstall_cmds
='chmod 555 $lib'
17625 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17626 soname_spec
='${libname}${release}${shared_ext}$major'
17627 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17628 shlibpath_var
=LD_LIBRARY_PATH
17629 shlibpath_overrides_runpath
=no
17630 hardcode_into_libs
=yes
17633 irix5
* | irix6
* | nonstopux
*)
17635 nonstopux
*) version_type
=nonstopux
;;
17637 if test "$lt_cv_prog_gnu_ld" = yes; then
17645 soname_spec
='${libname}${release}${shared_ext}$major'
17646 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17648 irix5
* | nonstopux
*)
17649 libsuff
= shlibsuff
=
17652 case $LD in # libtool.m4 will add one of these switches to LD
17653 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17654 libsuff
= shlibsuff
= libmagic
=32-bit;;
17655 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17656 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17657 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17658 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17659 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17663 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17664 shlibpath_overrides_runpath
=no
17665 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17666 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17667 hardcode_into_libs
=yes
17670 # No shared lib support for Linux oldld, aout, or coff.
17671 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17675 # This must be Linux ELF.
17680 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17681 soname_spec
='${libname}${release}${shared_ext}$major'
17682 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17683 shlibpath_var
=LD_LIBRARY_PATH
17684 shlibpath_overrides_runpath
=no
17685 # This implies no fast_install, which is unacceptable.
17686 # Some rework will be needed to allow for fast_install
17687 # before this can be enabled.
17688 hardcode_into_libs
=yes
17690 # find out which ABI we are using
17692 case "$host_cpu" in
17693 x86_64
*|s390x
*|powerpc64
*)
17694 echo '#line 17694 "configure"' > conftest.
$ac_ext
17695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17696 (eval $ac_compile) 2>&5
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; then
17700 case `/usr/bin/file conftest.$ac_objext` in
17703 sys_lib_search_path_spec
="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17711 # Append ld.so.conf contents to the search path
17712 if test -f /etc
/ld.so.conf
; then
17713 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17714 sys_lib_dlsearch_path_spec
="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17717 # We used to test for /lib/ld.so.1 and disable shared libraries on
17718 # powerpc, because MkLinux only supported shared libraries with the
17719 # GNU dynamic linker. Since this was broken with cross compilers,
17720 # most powerpc-linux boxes support dynamic linking these days and
17721 # people can always --disable-shared, the test was removed, and we
17722 # assume the GNU/Linux dynamic linker is in use.
17723 dynamic_linker
='GNU/Linux ld.so'
17730 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17731 soname_spec
='${libname}${release}${shared_ext}$major'
17732 shlibpath_var
=LD_LIBRARY_PATH
17733 shlibpath_overrides_runpath
=no
17734 hardcode_into_libs
=yes
17735 dynamic_linker
='GNU ld.so'
17742 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17743 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17744 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17745 dynamic_linker
='NetBSD (a.out) ld.so'
17747 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17748 soname_spec
='${libname}${release}${shared_ext}$major'
17749 dynamic_linker
='NetBSD ld.elf_so'
17751 shlibpath_var
=LD_LIBRARY_PATH
17752 shlibpath_overrides_runpath
=yes
17753 hardcode_into_libs
=yes
17758 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17759 shlibpath_var
=LD_LIBRARY_PATH
17760 shlibpath_overrides_runpath
=yes
17767 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17768 soname_spec
='${libname}${release}${shared_ext}$major'
17769 shlibpath_var
=LD_LIBRARY_PATH
17770 shlibpath_overrides_runpath
=yes
17775 sys_lib_dlsearch_path_spec
="/usr/lib"
17777 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17779 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17780 *) need_version
=no
;;
17782 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17783 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17784 shlibpath_var
=LD_LIBRARY_PATH
17785 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17787 openbsd2.
[89] | openbsd2.
[89].
*)
17788 shlibpath_overrides_runpath
=no
17791 shlibpath_overrides_runpath
=yes
17795 shlibpath_overrides_runpath
=yes
17800 libname_spec
='$name'
17803 library_names_spec
='$libname${shared_ext} $libname.a'
17804 dynamic_linker
='OS/2 ld.exe'
17805 shlibpath_var
=LIBPATH
17808 osf3
* | osf4
* | osf5
*)
17812 soname_spec
='${libname}${release}${shared_ext}$major'
17813 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17814 shlibpath_var
=LD_LIBRARY_PATH
17815 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17816 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17823 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17824 soname_spec
='${libname}${release}${shared_ext}$major'
17825 shlibpath_var
=LD_LIBRARY_PATH
17826 shlibpath_overrides_runpath
=yes
17827 hardcode_into_libs
=yes
17828 # ldd complains unless libraries are executable
17829 postinstall_cmds
='chmod +x $lib'
17834 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17835 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17836 shlibpath_var
=LD_LIBRARY_PATH
17837 shlibpath_overrides_runpath
=yes
17838 if test "$with_gnu_ld" = yes; then
17846 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17847 soname_spec
='${libname}${release}${shared_ext}$major'
17848 shlibpath_var
=LD_LIBRARY_PATH
17849 case $host_vendor in
17851 shlibpath_overrides_runpath
=no
17853 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17854 runpath_var
=LD_RUN_PATH
17862 shlibpath_overrides_runpath
=no
17863 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17869 if test -d /usr
/nec
;then
17871 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17872 soname_spec
='$libname${shared_ext}.$major'
17873 shlibpath_var
=LD_LIBRARY_PATH
17877 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17878 version_type
=freebsd-elf
17881 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17882 soname_spec
='${libname}${release}${shared_ext}$major'
17883 shlibpath_var
=LD_LIBRARY_PATH
17884 hardcode_into_libs
=yes
17885 if test "$with_gnu_ld" = yes; then
17886 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17887 shlibpath_overrides_runpath
=no
17889 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17890 shlibpath_overrides_runpath
=yes
17893 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17897 sys_lib_dlsearch_path_spec
='/usr/lib'
17902 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17903 soname_spec
='${libname}${release}${shared_ext}$major'
17904 shlibpath_var
=LD_LIBRARY_PATH
17911 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17912 echo "${ECHO_T}$dynamic_linker" >&6
17913 test "$dynamic_linker" = no
&& can_build_shared
=no
17915 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17916 if test "$GCC" = yes; then
17917 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17920 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17921 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17922 hardcode_action_GCJ
=
17923 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17924 test -n "$runpath_var_GCJ" || \
17925 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17927 # We can hardcode non-existant directories.
17928 if test "$hardcode_direct_GCJ" != no
&&
17929 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17930 # have to relink, otherwise we might link with an installed library
17931 # when we should be linking with a yet-to-be-installed one
17932 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17933 test "$hardcode_minus_L_GCJ" != no
; then
17934 # Linking always hardcodes the temporary library directory.
17935 hardcode_action_GCJ
=relink
17937 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17938 hardcode_action_GCJ
=immediate
17941 # We cannot hardcode anything, or else we can only hardcode existing
17943 hardcode_action_GCJ
=unsupported
17945 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17946 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17948 if test "$hardcode_action_GCJ" = relink
; then
17949 # Fast installation is not supported
17950 enable_fast_install
=no
17951 elif test "$shlibpath_overrides_runpath" = yes ||
17952 test "$enable_shared" = no
; then
17953 # Fast installation is not necessary
17954 enable_fast_install
=needless
17958 # The else clause should only fire when bootstrapping the
17959 # libtool distribution, otherwise you forgot to ship ltmain.sh
17960 # with your package, and you will get complaints that there are
17961 # no rules to generate ltmain.sh.
17962 if test -f "$ltmain"; then
17963 # See if we are running on zsh, and set the options which allow our commands through
17964 # without removal of \ escapes.
17965 if test -n "${ZSH_VERSION+set}" ; then
17966 setopt NO_GLOB_SUBST
17968 # Now quote all the things that may contain metacharacters while being
17969 # careful not to overquote the AC_SUBSTed values. We take copies of the
17970 # variables and quote the copies for generation of the libtool script.
17971 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17973 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17974 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17975 deplibs_check_method reload_flag reload_cmds need_locks \
17976 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17977 lt_cv_sys_global_symbol_to_c_name_address \
17978 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17979 old_postinstall_cmds old_postuninstall_cmds \
17983 lt_prog_compiler_wl_GCJ \
17984 lt_prog_compiler_pic_GCJ \
17985 lt_prog_compiler_static_GCJ \
17986 lt_prog_compiler_no_builtin_flag_GCJ \
17987 export_dynamic_flag_spec_GCJ \
17988 thread_safe_flag_spec_GCJ \
17989 whole_archive_flag_spec_GCJ \
17990 enable_shared_with_static_runtimes_GCJ \
17991 old_archive_cmds_GCJ \
17992 old_archive_from_new_cmds_GCJ \
17993 predep_objects_GCJ \
17994 postdep_objects_GCJ \
17997 compiler_lib_search_path_GCJ \
17999 archive_expsym_cmds_GCJ \
18000 postinstall_cmds_GCJ \
18001 postuninstall_cmds_GCJ \
18002 old_archive_from_expsyms_cmds_GCJ \
18003 allow_undefined_flag_GCJ \
18004 no_undefined_flag_GCJ \
18005 export_symbols_cmds_GCJ \
18006 hardcode_libdir_flag_spec_GCJ \
18007 hardcode_libdir_flag_spec_ld_GCJ \
18008 hardcode_libdir_separator_GCJ \
18009 hardcode_automatic_GCJ \
18011 module_expsym_cmds_GCJ \
18012 lt_cv_prog_compiler_c_o_GCJ \
18013 exclude_expsyms_GCJ \
18014 include_expsyms_GCJ
; do
18017 old_archive_cmds_GCJ | \
18018 old_archive_from_new_cmds_GCJ | \
18019 archive_cmds_GCJ | \
18020 archive_expsym_cmds_GCJ | \
18021 module_cmds_GCJ | \
18022 module_expsym_cmds_GCJ | \
18023 old_archive_from_expsyms_cmds_GCJ | \
18024 export_symbols_cmds_GCJ | \
18025 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18026 postinstall_cmds | postuninstall_cmds | \
18027 old_postinstall_cmds | old_postuninstall_cmds | \
18028 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18029 # Double-quote double-evaled strings.
18030 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18033 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18039 *'\$0 --fallback-echo"')
18040 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18046 cat <<__EOF__ >> "$cfgfile"
18047 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18049 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18051 # Shell to use when invoking shell scripts.
18054 # Whether or not to build shared libraries.
18055 build_libtool_libs=$enable_shared
18057 # Whether or not to build static libraries.
18058 build_old_libs=$enable_static
18060 # Whether or not to add -lc for building shared libraries.
18061 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18063 # Whether or not to disallow shared libs when runtime libs are static
18064 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18066 # Whether or not to optimize for fast installation.
18067 fast_install=$enable_fast_install
18070 host_alias=$host_alias
18074 # The build system.
18075 build_alias=$build_alias
18079 # An echo program that does not interpret backslashes.
18084 AR_FLAGS=$lt_AR_FLAGS
18089 # LTCC compiler flags.
18090 LTCFLAGS=$lt_LTCFLAGS
18092 # A language-specific compiler.
18093 CC=$lt_compiler_GCJ
18095 # Is the compiler the GNU C compiler?
18098 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18099 gcc_ver=\`gcc -dumpversion\`
18104 # The linker used to build libraries.
18107 # Whether we need hard or soft links.
18110 # A BSD-compatible nm program.
18113 # A symbol stripping program
18116 # Used to examine libraries when file_magic_cmd begins "file"
18117 MAGIC_CMD=$MAGIC_CMD
18119 # Used on cygwin: DLL creation program.
18122 # Used on cygwin: object dumper.
18125 # Used on cygwin: assembler.
18128 # The name of the directory that contains temporary libtool files.
18131 # How to create reloadable object files.
18132 reload_flag=$lt_reload_flag
18133 reload_cmds=$lt_reload_cmds
18135 # How to pass a linker flag through the compiler.
18136 wl=$lt_lt_prog_compiler_wl_GCJ
18138 # Object file suffix (normally "o").
18139 objext="$ac_objext"
18141 # Old archive suffix (normally "a").
18144 # Shared library suffix (normally ".so").
18145 shrext_cmds='$shrext_cmds'
18147 # Executable file suffix (normally "").
18150 # Additional compiler flags for building library objects.
18151 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18154 # What is the maximum length of a command?
18155 max_cmd_len=$lt_cv_sys_max_cmd_len
18157 # Does compiler simultaneously support -c and -o options?
18158 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18160 # Must we lock files when doing compilation?
18161 need_locks=$lt_need_locks
18163 # Do we need the lib prefix for modules?
18164 need_lib_prefix=$need_lib_prefix
18166 # Do we need a version for libraries?
18167 need_version=$need_version
18169 # Whether dlopen is supported.
18170 dlopen_support=$enable_dlopen
18172 # Whether dlopen of programs is supported.
18173 dlopen_self=$enable_dlopen_self
18175 # Whether dlopen of statically linked programs is supported.
18176 dlopen_self_static=$enable_dlopen_self_static
18178 # Compiler flag to prevent dynamic linking.
18179 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18181 # Compiler flag to turn off builtin functions.
18182 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18184 # Compiler flag to allow reflexive dlopens.
18185 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18187 # Compiler flag to generate shared objects directly from archives.
18188 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18190 # Compiler flag to generate thread-safe objects.
18191 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18193 # Library versioning type.
18194 version_type=$version_type
18196 # Format of library name prefix.
18197 libname_spec=$lt_libname_spec
18199 # List of archive names. First name is the real one, the rest are links.
18200 # The last name is the one that the linker finds with -lNAME.
18201 library_names_spec=$lt_library_names_spec
18203 # The coded name of the library, if different from the real name.
18204 soname_spec=$lt_soname_spec
18206 # Commands used to build and install an old-style archive.
18208 old_archive_cmds=$lt_old_archive_cmds_GCJ
18209 old_postinstall_cmds=$lt_old_postinstall_cmds
18210 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18212 # Create an old-style archive from a shared archive.
18213 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18215 # Create a temporary old-style archive to link instead of a shared archive.
18216 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18218 # Commands used to build and install a shared archive.
18219 archive_cmds=$lt_archive_cmds_GCJ
18220 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18221 postinstall_cmds=$lt_postinstall_cmds
18222 postuninstall_cmds=$lt_postuninstall_cmds
18224 # Commands used to build a loadable module (assumed same as above if empty)
18225 module_cmds=$lt_module_cmds_GCJ
18226 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18228 # Commands to strip libraries.
18229 old_striplib=$lt_old_striplib
18230 striplib=$lt_striplib
18232 # Dependencies to place before the objects being linked to create a
18234 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18236 # Dependencies to place after the objects being linked to create a
18238 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18240 # Dependencies to place before the objects being linked to create a
18242 predeps=$lt_predeps_GCJ
18244 # Dependencies to place after the objects being linked to create a
18246 postdeps=$lt_postdeps_GCJ
18248 # The library search path used internally by the compiler when linking
18249 # a shared library.
18250 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18252 # Method to check whether dependent libraries are shared objects.
18253 deplibs_check_method=$lt_deplibs_check_method
18255 # Command to use when deplibs_check_method == file_magic.
18256 file_magic_cmd=$lt_file_magic_cmd
18258 # Flag that allows shared libraries with undefined symbols to be built.
18259 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18261 # Flag that forces no undefined symbols.
18262 no_undefined_flag=$lt_no_undefined_flag_GCJ
18264 # Commands used to finish a libtool library installation in a directory.
18265 finish_cmds=$lt_finish_cmds
18267 # Same as above, but a single script fragment to be evaled but not shown.
18268 finish_eval=$lt_finish_eval
18270 # Take the output of nm and produce a listing of raw symbols and C names.
18271 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18273 # Transform the output of nm in a proper C declaration
18274 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18276 # Transform the output of nm in a C name address pair
18277 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18279 # This is the shared library runtime path variable.
18280 runpath_var=$runpath_var
18282 # This is the shared library path variable.
18283 shlibpath_var=$shlibpath_var
18285 # Is shlibpath searched before the hard-coded library search path?
18286 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18288 # How to hardcode a shared library path into an executable.
18289 hardcode_action=$hardcode_action_GCJ
18291 # Whether we should hardcode library paths into libraries.
18292 hardcode_into_libs=$hardcode_into_libs
18294 # Flag to hardcode \$libdir into a binary during linking.
18295 # This must work even if \$libdir does not exist.
18296 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18298 # If ld is used when linking, flag to hardcode \$libdir into
18299 # a binary during linking. This must work even if \$libdir does
18301 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18303 # Whether we need a single -rpath flag with a separated argument.
18304 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18306 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18307 # resulting binary.
18308 hardcode_direct=$hardcode_direct_GCJ
18310 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18311 # resulting binary.
18312 hardcode_minus_L=$hardcode_minus_L_GCJ
18314 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18315 # the resulting binary.
18316 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18318 # Set to yes if building a shared library automatically hardcodes DIR into the library
18319 # and all subsequent libraries and executables linked against it.
18320 hardcode_automatic=$hardcode_automatic_GCJ
18322 # Variables whose values should be saved in libtool wrapper scripts and
18323 # restored at relink time.
18324 variables_saved_for_relink="$variables_saved_for_relink"
18326 # Whether libtool must link a program against all its dependency libraries.
18327 link_all_deplibs=$link_all_deplibs_GCJ
18329 # Compile-time system search path for libraries
18330 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18332 # Run-time system search path for libraries
18333 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18335 # Fix the shell variable \$srcfile for the compiler.
18336 fix_srcfile_path="$fix_srcfile_path_GCJ"
18338 # Set to yes if exported symbols are required.
18339 always_export_symbols=$always_export_symbols_GCJ
18341 # The commands to list exported symbols.
18342 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18344 # The commands to extract the exported symbol list from a shared archive.
18345 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18347 # Symbols that should not be listed in the preloaded symbols.
18348 exclude_expsyms=$lt_exclude_expsyms_GCJ
18350 # Symbols that must always be exported.
18351 include_expsyms=$lt_include_expsyms_GCJ
18353 # ### END LIBTOOL TAG CONFIG: $tagname
18359 # If there is no Makefile yet, we rely on a make rule to execute
18360 # `config.status --recheck' to rerun these tests and create the
18361 # libtool script then.
18362 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18363 if test -f "$ltmain_in"; then
18364 test -f Makefile
&& make "$ltmain"
18370 ac_cpp
='$CPP $CPPFLAGS'
18371 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18372 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18373 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18386 # Source file extension for RC test sources.
18389 # Object file extension for compiled RC test sources.
18393 # Code to be used in simple compile tests
18394 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18396 # Code to be used in simple link tests
18397 lt_simple_link_test_code
="$lt_simple_compile_test_code"
18399 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18401 # If no C compiler was specified, use CC.
18404 # If no C compiler flags were specified, use CFLAGS.
18405 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18407 # Allow CC to be a program name with arguments.
18411 # save warnings/boilerplate of simple test code
18412 ac_outfile
=conftest.
$ac_objext
18413 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
18414 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18415 _lt_compiler_boilerplate
=`cat conftest.err`
18418 ac_outfile
=conftest.
$ac_objext
18419 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
18420 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18421 _lt_linker_boilerplate
=`cat conftest.err`
18425 # Allow CC to be a program name with arguments.
18430 for cc_temp
in $compiler""; do
18432 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18433 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18438 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18440 lt_cv_prog_compiler_c_o_RC
=yes
18442 # The else clause should only fire when bootstrapping the
18443 # libtool distribution, otherwise you forgot to ship ltmain.sh
18444 # with your package, and you will get complaints that there are
18445 # no rules to generate ltmain.sh.
18446 if test -f "$ltmain"; then
18447 # See if we are running on zsh, and set the options which allow our commands through
18448 # without removal of \ escapes.
18449 if test -n "${ZSH_VERSION+set}" ; then
18450 setopt NO_GLOB_SUBST
18452 # Now quote all the things that may contain metacharacters while being
18453 # careful not to overquote the AC_SUBSTed values. We take copies of the
18454 # variables and quote the copies for generation of the libtool script.
18455 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18457 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18458 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18459 deplibs_check_method reload_flag reload_cmds need_locks \
18460 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18461 lt_cv_sys_global_symbol_to_c_name_address \
18462 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18463 old_postinstall_cmds old_postuninstall_cmds \
18467 lt_prog_compiler_wl_RC \
18468 lt_prog_compiler_pic_RC \
18469 lt_prog_compiler_static_RC \
18470 lt_prog_compiler_no_builtin_flag_RC \
18471 export_dynamic_flag_spec_RC \
18472 thread_safe_flag_spec_RC \
18473 whole_archive_flag_spec_RC \
18474 enable_shared_with_static_runtimes_RC \
18475 old_archive_cmds_RC \
18476 old_archive_from_new_cmds_RC \
18477 predep_objects_RC \
18478 postdep_objects_RC \
18481 compiler_lib_search_path_RC \
18483 archive_expsym_cmds_RC \
18484 postinstall_cmds_RC \
18485 postuninstall_cmds_RC \
18486 old_archive_from_expsyms_cmds_RC \
18487 allow_undefined_flag_RC \
18488 no_undefined_flag_RC \
18489 export_symbols_cmds_RC \
18490 hardcode_libdir_flag_spec_RC \
18491 hardcode_libdir_flag_spec_ld_RC \
18492 hardcode_libdir_separator_RC \
18493 hardcode_automatic_RC \
18495 module_expsym_cmds_RC \
18496 lt_cv_prog_compiler_c_o_RC \
18497 exclude_expsyms_RC \
18498 include_expsyms_RC
; do
18501 old_archive_cmds_RC | \
18502 old_archive_from_new_cmds_RC | \
18503 archive_cmds_RC | \
18504 archive_expsym_cmds_RC | \
18506 module_expsym_cmds_RC | \
18507 old_archive_from_expsyms_cmds_RC | \
18508 export_symbols_cmds_RC | \
18509 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18510 postinstall_cmds | postuninstall_cmds | \
18511 old_postinstall_cmds | old_postuninstall_cmds | \
18512 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18513 # Double-quote double-evaled strings.
18514 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18517 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18523 *'\$0 --fallback-echo"')
18524 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18530 cat <<__EOF__ >> "$cfgfile"
18531 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18533 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18535 # Shell to use when invoking shell scripts.
18538 # Whether or not to build shared libraries.
18539 build_libtool_libs=$enable_shared
18541 # Whether or not to build static libraries.
18542 build_old_libs=$enable_static
18544 # Whether or not to add -lc for building shared libraries.
18545 build_libtool_need_lc=$archive_cmds_need_lc_RC
18547 # Whether or not to disallow shared libs when runtime libs are static
18548 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18550 # Whether or not to optimize for fast installation.
18551 fast_install=$enable_fast_install
18554 host_alias=$host_alias
18558 # The build system.
18559 build_alias=$build_alias
18563 # An echo program that does not interpret backslashes.
18568 AR_FLAGS=$lt_AR_FLAGS
18573 # LTCC compiler flags.
18574 LTCFLAGS=$lt_LTCFLAGS
18576 # A language-specific compiler.
18579 # Is the compiler the GNU C compiler?
18582 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18583 gcc_ver=\`gcc -dumpversion\`
18588 # The linker used to build libraries.
18591 # Whether we need hard or soft links.
18594 # A BSD-compatible nm program.
18597 # A symbol stripping program
18600 # Used to examine libraries when file_magic_cmd begins "file"
18601 MAGIC_CMD=$MAGIC_CMD
18603 # Used on cygwin: DLL creation program.
18606 # Used on cygwin: object dumper.
18609 # Used on cygwin: assembler.
18612 # The name of the directory that contains temporary libtool files.
18615 # How to create reloadable object files.
18616 reload_flag=$lt_reload_flag
18617 reload_cmds=$lt_reload_cmds
18619 # How to pass a linker flag through the compiler.
18620 wl=$lt_lt_prog_compiler_wl_RC
18622 # Object file suffix (normally "o").
18623 objext="$ac_objext"
18625 # Old archive suffix (normally "a").
18628 # Shared library suffix (normally ".so").
18629 shrext_cmds='$shrext_cmds'
18631 # Executable file suffix (normally "").
18634 # Additional compiler flags for building library objects.
18635 pic_flag=$lt_lt_prog_compiler_pic_RC
18638 # What is the maximum length of a command?
18639 max_cmd_len=$lt_cv_sys_max_cmd_len
18641 # Does compiler simultaneously support -c and -o options?
18642 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18644 # Must we lock files when doing compilation?
18645 need_locks=$lt_need_locks
18647 # Do we need the lib prefix for modules?
18648 need_lib_prefix=$need_lib_prefix
18650 # Do we need a version for libraries?
18651 need_version=$need_version
18653 # Whether dlopen is supported.
18654 dlopen_support=$enable_dlopen
18656 # Whether dlopen of programs is supported.
18657 dlopen_self=$enable_dlopen_self
18659 # Whether dlopen of statically linked programs is supported.
18660 dlopen_self_static=$enable_dlopen_self_static
18662 # Compiler flag to prevent dynamic linking.
18663 link_static_flag=$lt_lt_prog_compiler_static_RC
18665 # Compiler flag to turn off builtin functions.
18666 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18668 # Compiler flag to allow reflexive dlopens.
18669 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18671 # Compiler flag to generate shared objects directly from archives.
18672 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18674 # Compiler flag to generate thread-safe objects.
18675 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18677 # Library versioning type.
18678 version_type=$version_type
18680 # Format of library name prefix.
18681 libname_spec=$lt_libname_spec
18683 # List of archive names. First name is the real one, the rest are links.
18684 # The last name is the one that the linker finds with -lNAME.
18685 library_names_spec=$lt_library_names_spec
18687 # The coded name of the library, if different from the real name.
18688 soname_spec=$lt_soname_spec
18690 # Commands used to build and install an old-style archive.
18692 old_archive_cmds=$lt_old_archive_cmds_RC
18693 old_postinstall_cmds=$lt_old_postinstall_cmds
18694 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18696 # Create an old-style archive from a shared archive.
18697 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18699 # Create a temporary old-style archive to link instead of a shared archive.
18700 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18702 # Commands used to build and install a shared archive.
18703 archive_cmds=$lt_archive_cmds_RC
18704 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18705 postinstall_cmds=$lt_postinstall_cmds
18706 postuninstall_cmds=$lt_postuninstall_cmds
18708 # Commands used to build a loadable module (assumed same as above if empty)
18709 module_cmds=$lt_module_cmds_RC
18710 module_expsym_cmds=$lt_module_expsym_cmds_RC
18712 # Commands to strip libraries.
18713 old_striplib=$lt_old_striplib
18714 striplib=$lt_striplib
18716 # Dependencies to place before the objects being linked to create a
18718 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18720 # Dependencies to place after the objects being linked to create a
18722 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18724 # Dependencies to place before the objects being linked to create a
18726 predeps=$lt_predeps_RC
18728 # Dependencies to place after the objects being linked to create a
18730 postdeps=$lt_postdeps_RC
18732 # The library search path used internally by the compiler when linking
18733 # a shared library.
18734 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18736 # Method to check whether dependent libraries are shared objects.
18737 deplibs_check_method=$lt_deplibs_check_method
18739 # Command to use when deplibs_check_method == file_magic.
18740 file_magic_cmd=$lt_file_magic_cmd
18742 # Flag that allows shared libraries with undefined symbols to be built.
18743 allow_undefined_flag=$lt_allow_undefined_flag_RC
18745 # Flag that forces no undefined symbols.
18746 no_undefined_flag=$lt_no_undefined_flag_RC
18748 # Commands used to finish a libtool library installation in a directory.
18749 finish_cmds=$lt_finish_cmds
18751 # Same as above, but a single script fragment to be evaled but not shown.
18752 finish_eval=$lt_finish_eval
18754 # Take the output of nm and produce a listing of raw symbols and C names.
18755 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18757 # Transform the output of nm in a proper C declaration
18758 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18760 # Transform the output of nm in a C name address pair
18761 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18763 # This is the shared library runtime path variable.
18764 runpath_var=$runpath_var
18766 # This is the shared library path variable.
18767 shlibpath_var=$shlibpath_var
18769 # Is shlibpath searched before the hard-coded library search path?
18770 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18772 # How to hardcode a shared library path into an executable.
18773 hardcode_action=$hardcode_action_RC
18775 # Whether we should hardcode library paths into libraries.
18776 hardcode_into_libs=$hardcode_into_libs
18778 # Flag to hardcode \$libdir into a binary during linking.
18779 # This must work even if \$libdir does not exist.
18780 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18782 # If ld is used when linking, flag to hardcode \$libdir into
18783 # a binary during linking. This must work even if \$libdir does
18785 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18787 # Whether we need a single -rpath flag with a separated argument.
18788 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18790 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18791 # resulting binary.
18792 hardcode_direct=$hardcode_direct_RC
18794 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18795 # resulting binary.
18796 hardcode_minus_L=$hardcode_minus_L_RC
18798 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18799 # the resulting binary.
18800 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18802 # Set to yes if building a shared library automatically hardcodes DIR into the library
18803 # and all subsequent libraries and executables linked against it.
18804 hardcode_automatic=$hardcode_automatic_RC
18806 # Variables whose values should be saved in libtool wrapper scripts and
18807 # restored at relink time.
18808 variables_saved_for_relink="$variables_saved_for_relink"
18810 # Whether libtool must link a program against all its dependency libraries.
18811 link_all_deplibs=$link_all_deplibs_RC
18813 # Compile-time system search path for libraries
18814 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18816 # Run-time system search path for libraries
18817 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18819 # Fix the shell variable \$srcfile for the compiler.
18820 fix_srcfile_path="$fix_srcfile_path_RC"
18822 # Set to yes if exported symbols are required.
18823 always_export_symbols=$always_export_symbols_RC
18825 # The commands to list exported symbols.
18826 export_symbols_cmds=$lt_export_symbols_cmds_RC
18828 # The commands to extract the exported symbol list from a shared archive.
18829 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18831 # Symbols that should not be listed in the preloaded symbols.
18832 exclude_expsyms=$lt_exclude_expsyms_RC
18834 # Symbols that must always be exported.
18835 include_expsyms=$lt_include_expsyms_RC
18837 # ### END LIBTOOL TAG CONFIG: $tagname
18843 # If there is no Makefile yet, we rely on a make rule to execute
18844 # `config.status --recheck' to rerun these tests and create the
18845 # libtool script then.
18846 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18847 if test -f "$ltmain_in"; then
18848 test -f Makefile
&& make "$ltmain"
18854 ac_cpp
='$CPP $CPPFLAGS'
18855 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18856 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18857 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18864 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18865 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18866 { (exit 1); exit 1; }; }
18870 # Append the new tag name to the list of available tags.
18871 if test -n "$tagname" ; then
18872 available_tags
="$available_tags $tagname"
18878 # Now substitute the updated list of available tags.
18879 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18880 mv "${ofile}T" "$ofile"
18884 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18885 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18886 { (exit 1); exit 1; }; }
18892 # This can be used to rebuild libtool when needed
18893 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
18895 # Always use our own libtool.
18896 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
18898 # Prevent multiple expansion
18927 # Check whether --with-linux or --without-linux was given.
18928 if test "${with_linux+set}" = set; then
18929 withval
="$with_linux"
18930 kernelsrc
="$withval"; kernelbuild
="$withval"
18934 # Check whether --with-linux-obj or --without-linux-obj was given.
18935 if test "${with_linux_obj+set}" = set; then
18936 withval
="$with_linux_obj"
18937 kernelbuild
="$withval"
18940 echo "$as_me:$LINENO: checking kernel source directory" >&5
18941 echo $ECHO_N "checking kernel source directory... $ECHO_C" >&6
18942 if test -z "$kernelsrc"; then
18944 sourcelink
=/lib
/modules
/${ver}/source
18945 buildlink
=/lib
/modules
/${ver}/build
18947 if test -e $sourcelink; then
18948 kernelsrc
=`(cd $sourcelink; /bin/pwd)`
18950 if test -e $buildlink; then
18951 kernelbuild
=`(cd $buildlink; /bin/pwd)`
18953 if test -z "$kernelsrc"; then
18954 kernelsrc
=$kernelbuild
18956 if test -z "$kernelsrc" -o -z "$kernelbuild"; then
18957 echo "$as_me:$LINENO: result: Not found" >&5
18958 echo "${ECHO_T}Not found" >&6
18959 { { echo "$as_me:$LINENO: error:
18960 *** Please specify the location of the kernel source
18961 *** with the '--with-linux=PATH' option" >&5
18962 echo "$as_me: error:
18963 *** Please specify the location of the kernel source
18964 *** with the '--with-linux=PATH' option" >&2;}
18965 { (exit 1); exit 1; }; }
18969 echo "$as_me:$LINENO: result: $kernelsrc" >&5
18970 echo "${ECHO_T}$kernelsrc" >&6
18971 echo "$as_me:$LINENO: checking kernel build directory" >&5
18972 echo $ECHO_N "checking kernel build directory... $ECHO_C" >&6
18973 echo "$as_me:$LINENO: result: $kernelbuild" >&5
18974 echo "${ECHO_T}$kernelbuild" >&6
18976 echo "$as_me:$LINENO: checking kernel source version" >&5
18977 echo $ECHO_N "checking kernel source version... $ECHO_C" >&6
18978 if test -r $kernelbuild/include
/linux
/version.h
&&
18979 fgrep
-q UTS_RELEASE
$kernelbuild/include
/linux
/version.h
; then
18981 kernsrcver
=`(echo "#include <linux/version.h>";
18982 echo "kernsrcver=UTS_RELEASE") |
18983 cpp -I $kernelbuild/include |
18984 grep "^kernsrcver=" | cut -d \" -f 2`
18986 elif test -r $kernelbuild/include
/linux
/utsrelease.h
&&
18987 fgrep
-q UTS_RELEASE
$kernelbuild/include
/linux
/utsrelease.h
; then
18989 kernsrcver
=`(echo "#include <linux/utsrelease.h>";
18990 echo "kernsrcver=UTS_RELEASE") |
18991 cpp -I $kernelbuild/include |
18992 grep "^kernsrcver=" | cut -d \" -f 2`
18995 if test -z "$kernsrcver"; then
18996 echo "$as_me:$LINENO: result: Not found" >&5
18997 echo "${ECHO_T}Not found" >&6
18998 { { echo "$as_me:$LINENO: error:
18999 *** Cannot determine the version of the linux kernel source.
19000 *** Please prepare the kernel before running this script" >&5
19001 echo "$as_me: error:
19002 *** Cannot determine the version of the linux kernel source.
19003 *** Please prepare the kernel before running this script" >&2;}
19004 { (exit 1); exit 1; }; }
19007 echo "$as_me:$LINENO: result: $kernsrcver" >&5
19008 echo "${ECHO_T}$kernsrcver" >&6
19010 kmoduledir
=${INSTALL_MOD_PATH}/lib
/modules
/$kernsrcver
19012 LINUX_OBJ
=${kernelbuild}
19019 echo "$as_me:$LINENO: checking license" >&5
19020 echo $ECHO_N "checking license... $ECHO_C" >&6
19021 echo "$as_me:$LINENO: result: GPL" >&5
19022 echo "${ECHO_T}GPL" >&6
19023 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS"
19026 echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
19027 echo $ECHO_N "checking whether debugging is enabled... $ECHO_C" >&6
19028 # Check whether --enable-debug or --disable-debug was given.
19029 if test "${enable_debug+set}" = set; then
19030 enableval
="$enable_debug"
19031 case "$enableval" in
19032 yes) spl_ac_debug
=yes ;;
19033 no
) spl_ac_debug
=no
;;
19034 *) echo "$as_me:$LINENO: result: Error!" >&5
19035 echo "${ECHO_T}Error!" >&6
19036 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug" >&5
19037 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug" >&2;}
19038 { (exit 1); exit 1; }; } ;;
19042 if test "$spl_ac_debug" = yes; then
19043 echo "$as_me:$LINENO: result: yes" >&5
19044 echo "${ECHO_T}yes" >&6
19045 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG"
19047 echo "$as_me:$LINENO: result: no" >&5
19048 echo "${ECHO_T}no" >&6
19050 cat >>confdefs.h
<<\_ACEOF
19054 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DNDEBUG"
19058 echo "$as_me:$LINENO: checking whether kmem debugging is enabled" >&5
19059 echo $ECHO_N "checking whether kmem debugging is enabled... $ECHO_C" >&6
19060 # Check whether --enable-debug-kmem or --disable-debug-kmem was given.
19061 if test "${enable_debug_kmem+set}" = set; then
19062 enableval
="$enable_debug_kmem"
19063 case "$enableval" in
19064 yes) spl_ac_debug_kmem
=yes ;;
19065 no
) spl_ac_debug_kmem
=no
;;
19066 *) echo "$as_me:$LINENO: result: Error!" >&5
19067 echo "${ECHO_T}Error!" >&6
19068 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kmem" >&5
19069 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kmem" >&2;}
19070 { (exit 1); exit 1; }; } ;;
19074 if test "$spl_ac_debug_kmem" = yes; then
19075 echo "$as_me:$LINENO: result: yes" >&5
19076 echo "${ECHO_T}yes" >&6
19078 cat >>confdefs.h
<<\_ACEOF
19079 #define DEBUG_KMEM 1
19082 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG_KMEM"
19084 echo "$as_me:$LINENO: result: no" >&5
19085 echo "${ECHO_T}no" >&6
19089 echo "$as_me:$LINENO: checking whether mutex debugging is enabled" >&5
19090 echo $ECHO_N "checking whether mutex debugging is enabled... $ECHO_C" >&6
19091 # Check whether --enable-debug-mutex or --disable-debug-mutex was given.
19092 if test "${enable_debug_mutex+set}" = set; then
19093 enableval
="$enable_debug_mutex"
19094 case "$enableval" in
19095 yes) spl_ac_debug_mutex
=yes ;;
19096 no
) spl_ac_debug_mutex
=no
;;
19097 *) echo "$as_me:$LINENO: result: Error!" >&5
19098 echo "${ECHO_T}Error!" >&6
19099 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-mutex" >&5
19100 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-mutex" >&2;}
19101 { (exit 1); exit 1; }; } ;;
19105 if test "$spl_ac_debug_mutex" = yes; then
19106 echo "$as_me:$LINENO: result: yes" >&5
19107 echo "${ECHO_T}yes" >&6
19109 cat >>confdefs.h
<<\_ACEOF
19110 #define DEBUG_MUTEX 1
19113 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG_MUTEX"
19115 echo "$as_me:$LINENO: result: no" >&5
19116 echo "${ECHO_T}no" >&6
19120 echo "$as_me:$LINENO: checking whether kstat debugging is enabled" >&5
19121 echo $ECHO_N "checking whether kstat debugging is enabled... $ECHO_C" >&6
19122 # Check whether --enable-debug-kstat or --disable-debug-kstat was given.
19123 if test "${enable_debug_kstat+set}" = set; then
19124 enableval
="$enable_debug_kstat"
19125 case "$enableval" in
19126 yes) spl_ac_debug_kstat
=yes ;;
19127 no
) spl_ac_debug_kstat
=no
;;
19128 *) echo "$as_me:$LINENO: result: Error!" >&5
19129 echo "${ECHO_T}Error!" >&6
19130 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kstat" >&5
19131 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kstat" >&2;}
19132 { (exit 1); exit 1; }; } ;;
19136 if test "$spl_ac_debug_kstat" = yes; then
19137 echo "$as_me:$LINENO: result: yes" >&5
19138 echo "${ECHO_T}yes" >&6
19140 cat >>confdefs.h
<<\_ACEOF
19141 #define DEBUG_KSTAT 1
19144 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG_KSTAT"
19146 echo "$as_me:$LINENO: result: no" >&5
19147 echo "${ECHO_T}no" >&6
19151 echo "$as_me:$LINENO: checking whether callb debugging is enabled" >&5
19152 echo $ECHO_N "checking whether callb debugging is enabled... $ECHO_C" >&6
19153 # Check whether --enable-debug-callb or --disable-debug-callb was given.
19154 if test "${enable_debug_callb+set}" = set; then
19155 enableval
="$enable_debug_callb"
19156 case "$enableval" in
19157 yes) spl_ac_debug_callb
=yes ;;
19158 no
) spl_ac_debug_callb
=no
;;
19159 *) echo "$as_me:$LINENO: result: Error!" >&5
19160 echo "${ECHO_T}Error!" >&6
19161 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-callb" >&5
19162 echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-callb" >&2;}
19163 { (exit 1); exit 1; }; } ;;
19167 if test "$spl_ac_debug_callb" = yes; then
19168 echo "$as_me:$LINENO: result: yes" >&5
19169 echo "${ECHO_T}yes" >&6
19171 cat >>confdefs.h
<<\_ACEOF
19172 #define DEBUG_CALLB 1
19175 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG_CALLB"
19177 echo "$as_me:$LINENO: result: no" >&5
19178 echo "${ECHO_T}no" >&6
19181 echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
19182 echo $ECHO_N "checking whether kernel defines uintptr_t... $ECHO_C" >&6
19185 cat >conftest.c
<<_ACEOF
19188 cat confdefs.h
>>conftest.
$ac_ext
19189 cat >>conftest.
$ac_ext <<_ACEOF
19190 /* end confdefs.h. */
19193 #include <linux/types.h>
19207 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.ko build
/Makefile
19208 echo "obj-m := conftest.o" >build
/Makefile
19209 if { ac_try
='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19211 (eval $ac_try) 2>&5
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19216 (eval $ac_try) 2>&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); }; }; then
19221 echo "$as_me:$LINENO: result: yes" >&5
19222 echo "${ECHO_T}yes" >&6
19224 cat >>confdefs.h
<<\_ACEOF
19225 #define HAVE_UINTPTR_T 1
19230 echo "$as_me: failed program was:" >&5
19231 sed 's/^/| /' conftest.
$ac_ext >&5
19234 echo "$as_me:$LINENO: result: no" >&5
19235 echo "${ECHO_T}no" >&6
19238 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.mod.o build
/conftest.ko build
/conftest.c conftest.c
19241 echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
19242 echo $ECHO_N "checking whether kernel defines atomic64_t... $ECHO_C" >&6
19245 cat >conftest.c
<<_ACEOF
19248 cat confdefs.h
>>conftest.
$ac_ext
19249 cat >>conftest.
$ac_ext <<_ACEOF
19250 /* end confdefs.h. */
19253 #include <asm/atomic.h>
19267 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.ko build
/Makefile
19268 echo "obj-m := conftest.o" >build
/Makefile
19269 if { ac_try
='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19271 (eval $ac_try) 2>&5
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19276 (eval $ac_try) 2>&5
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); }; }; then
19281 echo "$as_me:$LINENO: result: yes" >&5
19282 echo "${ECHO_T}yes" >&6
19284 cat >>confdefs.h
<<\_ACEOF
19285 #define HAVE_ATOMIC64_T 1
19290 echo "$as_me: failed program was:" >&5
19291 sed 's/^/| /' conftest.
$ac_ext >&5
19294 echo "$as_me:$LINENO: result: no" >&5
19295 echo "${ECHO_T}no" >&6
19298 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.mod.o build
/conftest.ko build
/conftest.c conftest.c
19301 echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
19302 echo $ECHO_N "checking whether INIT_WORK wants 3 args... $ECHO_C" >&6
19305 cat >conftest.c
<<_ACEOF
19308 cat confdefs.h
>>conftest.
$ac_ext
19309 cat >>conftest.
$ac_ext <<_ACEOF
19310 /* end confdefs.h. */
19313 #include <linux/workqueue.h>
19319 struct work_struct work;
19320 INIT_WORK(&work, NULL, NULL);
19328 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.ko build
/Makefile
19329 echo "obj-m := conftest.o" >build
/Makefile
19330 if { ac_try
='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332 (eval $ac_try) 2>&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19337 (eval $ac_try) 2>&5
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); }; }; then
19342 echo "$as_me:$LINENO: result: yes" >&5
19343 echo "${ECHO_T}yes" >&6
19345 cat >>confdefs.h
<<\_ACEOF
19346 #define HAVE_3ARGS_INIT_WORK 1
19351 echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.
$ac_ext >&5
19355 echo "$as_me:$LINENO: result: no" >&5
19356 echo "${ECHO_T}no" >&6
19359 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.mod.o build
/conftest.ko build
/conftest.c conftest.c
19362 echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
19363 echo $ECHO_N "checking whether register_sysctl_table() wants 2 args... $ECHO_C" >&6
19366 cat >conftest.c
<<_ACEOF
19369 cat confdefs.h
>>conftest.
$ac_ext
19370 cat >>conftest.
$ac_ext <<_ACEOF
19371 /* end confdefs.h. */
19374 #include <linux/sysctl.h>
19380 return register_sysctl_table(NULL,0);
19388 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.ko build
/Makefile
19389 echo "obj-m := conftest.o" >build
/Makefile
19390 if { ac_try
='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; }; then
19402 echo "$as_me:$LINENO: result: yes" >&5
19403 echo "${ECHO_T}yes" >&6
19405 cat >>confdefs.h
<<\_ACEOF
19406 #define HAVE_2ARGS_REGISTER_SYSCTL 1
19411 echo "$as_me: failed program was:" >&5
19412 sed 's/^/| /' conftest.
$ac_ext >&5
19415 echo "$as_me:$LINENO: result: no" >&5
19416 echo "${ECHO_T}no" >&6
19419 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.mod.o build
/conftest.ko build
/conftest.c conftest.c
19423 echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
19424 echo $ECHO_N "checking whether set_shrinker() available... $ECHO_C" >&6
19427 cat >conftest.c
<<_ACEOF
19430 cat confdefs.h
>>conftest.
$ac_ext
19431 cat >>conftest.
$ac_ext <<_ACEOF
19432 /* end confdefs.h. */
19435 #include <linux/mm.h>
19441 return set_shrinker(DEFAULT_SEEKS, NULL);
19449 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.ko build
/Makefile
19450 echo "obj-m := conftest.o" >build
/Makefile
19451 if { ac_try
='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19453 (eval $ac_try) 2>&5
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19458 (eval $ac_try) 2>&5
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); }; }; then
19463 echo "$as_me:$LINENO: result: yes" >&5
19464 echo "${ECHO_T}yes" >&6
19466 cat >>confdefs.h
<<\_ACEOF
19467 #define HAVE_SET_SHRINKER 1
19472 echo "$as_me: failed program was:" >&5
19473 sed 's/^/| /' conftest.
$ac_ext >&5
19476 echo "$as_me:$LINENO: result: no" >&5
19477 echo "${ECHO_T}no" >&6
19480 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.mod.o build
/conftest.ko build
/conftest.c conftest.c
19483 echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
19484 echo $ECHO_N "checking whether struct path used in struct nameidata... $ECHO_C" >&6
19487 cat >conftest.c
<<_ACEOF
19490 cat confdefs.h
>>conftest.
$ac_ext
19491 cat >>conftest.
$ac_ext <<_ACEOF
19492 /* end confdefs.h. */
19495 #include <linux/namei.h>
19501 struct nameidata nd;
19503 nd.path.mnt = NULL;
19504 nd.path.dentry = NULL;
19512 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.ko build
/Makefile
19513 echo "obj-m := conftest.o" >build
/Makefile
19514 if { ac_try
='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516 (eval $ac_try) 2>&5
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521 (eval $ac_try) 2>&5
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; }; then
19526 echo "$as_me:$LINENO: result: yes" >&5
19527 echo "${ECHO_T}yes" >&6
19529 cat >>confdefs.h
<<\_ACEOF
19530 #define HAVE_PATH_IN_NAMEIDATA 1
19535 echo "$as_me: failed program was:" >&5
19536 sed 's/^/| /' conftest.
$ac_ext >&5
19539 echo "$as_me:$LINENO: result: no" >&5
19540 echo "${ECHO_T}no" >&6
19543 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.mod.o build
/conftest.ko build
/conftest.c conftest.c
19547 echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
19548 echo $ECHO_N "checking whether symbol task_curr is exported... $ECHO_C" >&6
19549 grep -q -E '[[:space:]]task_curr[[:space:]]' $LINUX/Module.symvers
2>/dev
/null
19551 if test $rc -ne 0; then
19553 for file in kernel
/sched.c
; do
19554 grep -q -E "EXPORT_SYMBOL.*(task_curr)" "$LINUX/$file" 2>/dev
/null
19556 if test $rc -eq 0; then
19561 if test $export -eq 0; then
19562 echo "$as_me:$LINENO: result: no" >&5
19563 echo "${ECHO_T}no" >&6
19566 echo "$as_me:$LINENO: result: yes" >&5
19567 echo "${ECHO_T}yes" >&6
19569 cat >>confdefs.h
<<\_ACEOF
19570 #define HAVE_TASK_CURR 1
19575 echo "$as_me:$LINENO: result: yes" >&5
19576 echo "${ECHO_T}yes" >&6
19578 cat >>confdefs.h
<<\_ACEOF
19579 #define HAVE_TASK_CURR 1
19585 echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
19586 echo $ECHO_N "checking whether unnumbered sysctl support exists... $ECHO_C" >&6
19589 cat >conftest.c
<<_ACEOF
19592 cat confdefs.h
>>conftest.
$ac_ext
19593 cat >>conftest.
$ac_ext <<_ACEOF
19594 /* end confdefs.h. */
19597 #include <linux/sysctl.h>
19603 #ifndef CTL_UNNUMBERED
19604 #error CTL_UNNUMBERED undefined
19613 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.ko build
/Makefile
19614 echo "obj-m := conftest.o" >build
/Makefile
19615 if { ac_try
='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19617 (eval $ac_try) 2>&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19622 (eval $ac_try) 2>&5
19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625 (exit $ac_status); }; }; then
19627 echo "$as_me:$LINENO: result: yes" >&5
19628 echo "${ECHO_T}yes" >&6
19630 cat >>confdefs.h
<<\_ACEOF
19631 #define HAVE_CTL_UNNUMBERED 1
19636 echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.
$ac_ext >&5
19640 echo "$as_me:$LINENO: result: no" >&5
19641 echo "${ECHO_T}no" >&6
19644 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.mod.o build
/conftest.ko build
/conftest.c conftest.c
19647 echo "$as_me:$LINENO: checking whether fls64() is available" >&5
19648 echo $ECHO_N "checking whether fls64() is available... $ECHO_C" >&6
19651 cat >conftest.c
<<_ACEOF
19654 cat confdefs.h
>>conftest.
$ac_ext
19655 cat >>conftest.
$ac_ext <<_ACEOF
19656 /* end confdefs.h. */
19659 #include <linux/bitops.h>
19673 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.ko build
/Makefile
19674 echo "obj-m := conftest.o" >build
/Makefile
19675 if { ac_try
='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677 (eval $ac_try) 2>&5
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19682 (eval $ac_try) 2>&5
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); }; }; then
19687 echo "$as_me:$LINENO: result: yes" >&5
19688 echo "${ECHO_T}yes" >&6
19690 cat >>confdefs.h
<<\_ACEOF
19691 #define HAVE_FLS64 1
19696 echo "$as_me: failed program was:" >&5
19697 sed 's/^/| /' conftest.
$ac_ext >&5
19700 echo "$as_me:$LINENO: result: no" >&5
19701 echo "${ECHO_T}no" >&6
19704 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.mod.o build
/conftest.ko build
/conftest.c conftest.c
19708 echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
19709 echo $ECHO_N "checking whether symbol device_create is exported... $ECHO_C" >&6
19710 grep -q -E '[[:space:]]device_create[[:space:]]' $LINUX/Module.symvers
2>/dev
/null
19712 if test $rc -ne 0; then
19714 for file in drivers
/base
/core.c
; do
19715 grep -q -E "EXPORT_SYMBOL.*(device_create)" "$LINUX/$file" 2>/dev
/null
19717 if test $rc -eq 0; then
19722 if test $export -eq 0; then
19723 echo "$as_me:$LINENO: result: no" >&5
19724 echo "${ECHO_T}no" >&6
19727 echo "$as_me:$LINENO: result: yes" >&5
19728 echo "${ECHO_T}yes" >&6
19730 cat >>confdefs.h
<<\_ACEOF
19731 #define HAVE_DEVICE_CREATE 1
19736 echo "$as_me:$LINENO: result: yes" >&5
19737 echo "${ECHO_T}yes" >&6
19739 cat >>confdefs.h
<<\_ACEOF
19740 #define HAVE_DEVICE_CREATE 1
19747 echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
19748 echo $ECHO_N "checking whether symbol class_device_create is exported... $ECHO_C" >&6
19749 grep -q -E '[[:space:]]class_device_create[[:space:]]' $LINUX/Module.symvers
2>/dev
/null
19751 if test $rc -ne 0; then
19753 for file in drivers
/base
/class.c
; do
19754 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" "$LINUX/$file" 2>/dev
/null
19756 if test $rc -eq 0; then
19761 if test $export -eq 0; then
19762 echo "$as_me:$LINENO: result: no" >&5
19763 echo "${ECHO_T}no" >&6
19766 echo "$as_me:$LINENO: result: yes" >&5
19767 echo "${ECHO_T}yes" >&6
19769 cat >>confdefs.h
<<\_ACEOF
19770 #define HAVE_CLASS_DEVICE_CREATE 1
19775 echo "$as_me:$LINENO: result: yes" >&5
19776 echo "${ECHO_T}yes" >&6
19778 cat >>confdefs.h
<<\_ACEOF
19779 #define HAVE_CLASS_DEVICE_CREATE 1
19786 echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
19787 echo $ECHO_N "checking whether symbol set_normalized_timespec is exported... $ECHO_C" >&6
19788 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' $LINUX/Module.symvers
2>/dev
/null
19790 if test $rc -ne 0; then
19792 for file in kernel
/time.c
; do
19793 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" "$LINUX/$file" 2>/dev
/null
19795 if test $rc -eq 0; then
19800 if test $export -eq 0; then
19801 echo "$as_me:$LINENO: result: no" >&5
19802 echo "${ECHO_T}no" >&6
19805 echo "$as_me:$LINENO: result: yes" >&5
19806 echo "${ECHO_T}yes" >&6
19808 cat >>confdefs.h
<<\_ACEOF
19809 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
19814 echo "$as_me:$LINENO: result: yes" >&5
19815 echo "${ECHO_T}yes" >&6
19817 cat >>confdefs.h
<<\_ACEOF
19818 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
19825 echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
19826 echo $ECHO_N "checking whether set_normalized_timespec() is an inline... $ECHO_C" >&6
19829 cat >conftest.c
<<_ACEOF
19832 cat confdefs.h
>>conftest.
$ac_ext
19833 cat >>conftest.
$ac_ext <<_ACEOF
19834 /* end confdefs.h. */
19837 #include <linux/time.h>
19838 void set_normalized_timespec(struct timespec *ts,
19839 time_t sec, long nsec) { }
19851 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.ko build
/Makefile
19852 echo "obj-m := conftest.o" >build
/Makefile
19853 if { ac_try
='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19855 (eval $ac_try) 2>&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19860 (eval $ac_try) 2>&5
19862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863 (exit $ac_status); }; }; then
19865 echo "$as_me:$LINENO: result: no" >&5
19866 echo "${ECHO_T}no" >&6
19869 echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.
$ac_ext >&5
19873 echo "$as_me:$LINENO: result: yes" >&5
19874 echo "${ECHO_T}yes" >&6
19876 cat >>confdefs.h
<<\_ACEOF
19877 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
19882 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.mod.o build
/conftest.ko build
/conftest.c conftest.c
19886 echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
19887 echo $ECHO_N "checking whether timespec_sub() is available... $ECHO_C" >&6
19890 cat >conftest.c
<<_ACEOF
19893 cat confdefs.h
>>conftest.
$ac_ext
19894 cat >>conftest.
$ac_ext <<_ACEOF
19895 /* end confdefs.h. */
19898 #include <linux/time.h>
19904 struct timespec a, b, c = { 0 };
19905 c = timespec_sub(a, b);
19913 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.ko build
/Makefile
19914 echo "obj-m := conftest.o" >build
/Makefile
19915 if { ac_try
='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917 (eval $ac_try) 2>&5
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19922 (eval $ac_try) 2>&5
19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); }; }; then
19927 echo "$as_me:$LINENO: result: yes" >&5
19928 echo "${ECHO_T}yes" >&6
19930 cat >>confdefs.h
<<\_ACEOF
19931 #define HAVE_TIMESPEC_SUB 1
19936 echo "$as_me: failed program was:" >&5
19937 sed 's/^/| /' conftest.
$ac_ext >&5
19940 echo "$as_me:$LINENO: result: no" >&5
19941 echo "${ECHO_T}no" >&6
19944 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.mod.o build
/conftest.ko build
/conftest.c conftest.c
19948 echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
19949 echo $ECHO_N "checking whether init_utsname() is available... $ECHO_C" >&6
19952 cat >conftest.c
<<_ACEOF
19955 cat confdefs.h
>>conftest.
$ac_ext
19956 cat >>conftest.
$ac_ext <<_ACEOF
19957 /* end confdefs.h. */
19960 #include <linux/utsname.h>
19966 struct new_utsname *a = init_utsname();
19974 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.ko build
/Makefile
19975 echo "obj-m := conftest.o" >build
/Makefile
19976 if { ac_try
='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19978 (eval $ac_try) 2>&5
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19983 (eval $ac_try) 2>&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); }; }; then
19988 echo "$as_me:$LINENO: result: yes" >&5
19989 echo "${ECHO_T}yes" >&6
19991 cat >>confdefs.h
<<\_ACEOF
19992 #define HAVE_INIT_UTSNAME 1
19997 echo "$as_me: failed program was:" >&5
19998 sed 's/^/| /' conftest.
$ac_ext >&5
20001 echo "$as_me:$LINENO: result: no" >&5
20002 echo "${ECHO_T}no" >&6
20005 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.mod.o build
/conftest.ko build
/conftest.c conftest.c
20009 echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
20010 echo $ECHO_N "checking whether header linux/fdtable.h exists... $ECHO_C" >&6
20013 cat >conftest.c
<<_ACEOF
20016 cat confdefs.h
>>conftest.
$ac_ext
20017 cat >>conftest.
$ac_ext <<_ACEOF
20018 /* end confdefs.h. */
20021 #include <linux/fdtable.h>
20035 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.ko build
/Makefile
20036 echo "obj-m := conftest.o" >build
/Makefile
20037 if { ac_try
='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20039 (eval $ac_try) 2>&5
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20044 (eval $ac_try) 2>&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); }; }; then
20050 cat >>confdefs.h
<<\_ACEOF
20051 #define HAVE_FDTABLE_HEADER 1
20054 echo "$as_me:$LINENO: result: yes" >&5
20055 echo "${ECHO_T}yes" >&6
20059 echo "$as_me: failed program was:" >&5
20060 sed 's/^/| /' conftest.
$ac_ext >&5
20063 echo "$as_me:$LINENO: result: no" >&5
20064 echo "${ECHO_T}no" >&6
20068 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.mod.o build
/conftest.ko build
/conftest.c conftest.c
20073 echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
20074 echo $ECHO_N "checking whether files_fdtable() is available... $ECHO_C" >&6
20077 cat >conftest.c
<<_ACEOF
20080 cat confdefs.h
>>conftest.
$ac_ext
20081 cat >>conftest.
$ac_ext <<_ACEOF
20082 /* end confdefs.h. */
20085 #include <linux/sched.h>
20086 #include <linux/file.h>
20087 #ifdef HAVE_FDTABLE_HEADER
20088 #include <linux/fdtable.h>
20095 struct files_struct *files = current->files;
20096 struct fdtable *fdt = files_fdtable(files);
20104 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.ko build
/Makefile
20105 echo "obj-m := conftest.o" >build
/Makefile
20106 if { ac_try
='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20108 (eval $ac_try) 2>&5
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113 (eval $ac_try) 2>&5
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); }; }; then
20118 echo "$as_me:$LINENO: result: yes" >&5
20119 echo "${ECHO_T}yes" >&6
20121 cat >>confdefs.h
<<\_ACEOF
20122 #define HAVE_FILES_FDTABLE 1
20127 echo "$as_me: failed program was:" >&5
20128 sed 's/^/| /' conftest.
$ac_ext >&5
20131 echo "$as_me:$LINENO: result: no" >&5
20132 echo "${ECHO_T}no" >&6
20135 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.mod.o build
/conftest.ko build
/conftest.c conftest.c
20139 echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
20140 echo $ECHO_N "checking whether header linux/uaccess.h exists... $ECHO_C" >&6
20143 cat >conftest.c
<<_ACEOF
20146 cat confdefs.h
>>conftest.
$ac_ext
20147 cat >>conftest.
$ac_ext <<_ACEOF
20148 /* end confdefs.h. */
20151 #include <linux/uaccess.h>
20165 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.ko build
/Makefile
20166 echo "obj-m := conftest.o" >build
/Makefile
20167 if { ac_try
='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20169 (eval $ac_try) 2>&5
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20174 (eval $ac_try) 2>&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); }; }; then
20180 cat >>confdefs.h
<<\_ACEOF
20181 #define HAVE_UACCESS_HEADER 1
20184 echo "$as_me:$LINENO: result: yes" >&5
20185 echo "${ECHO_T}yes" >&6
20189 echo "$as_me: failed program was:" >&5
20190 sed 's/^/| /' conftest.
$ac_ext >&5
20193 echo "$as_me:$LINENO: result: no" >&5
20194 echo "${ECHO_T}no" >&6
20198 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.mod.o build
/conftest.ko build
/conftest.c conftest.c
20203 echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
20204 echo $ECHO_N "checking whether kmalloc_node() is available... $ECHO_C" >&6
20207 cat >conftest.c
<<_ACEOF
20210 cat confdefs.h
>>conftest.
$ac_ext
20211 cat >>conftest.
$ac_ext <<_ACEOF
20212 /* end confdefs.h. */
20215 #include <linux/slab.h>
20221 void *a = kmalloc_node(1, GFP_KERNEL, 0);
20229 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.ko build
/Makefile
20230 echo "obj-m := conftest.o" >build
/Makefile
20231 if { ac_try
='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20233 (eval $ac_try) 2>&5
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20238 (eval $ac_try) 2>&5
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); }; }; then
20243 echo "$as_me:$LINENO: result: yes" >&5
20244 echo "${ECHO_T}yes" >&6
20246 cat >>confdefs.h
<<\_ACEOF
20247 #define HAVE_KMALLOC_NODE 1
20252 echo "$as_me: failed program was:" >&5
20253 sed 's/^/| /' conftest.
$ac_ext >&5
20256 echo "$as_me:$LINENO: result: no" >&5
20257 echo "${ECHO_T}no" >&6
20260 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.mod.o build
/conftest.ko build
/conftest.c conftest.c
20264 echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
20265 echo $ECHO_N "checking whether symbol monotonic_clock is exported... $ECHO_C" >&6
20266 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' $LINUX/Module.symvers
2>/dev
/null
20268 if test $rc -ne 0; then
20271 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" "$LINUX/$file" 2>/dev
/null
20273 if test $rc -eq 0; then
20278 if test $export -eq 0; then
20279 echo "$as_me:$LINENO: result: no" >&5
20280 echo "${ECHO_T}no" >&6
20283 echo "$as_me:$LINENO: result: yes" >&5
20284 echo "${ECHO_T}yes" >&6
20286 cat >>confdefs.h
<<\_ACEOF
20287 #define HAVE_MONOTONIC_CLOCK 1
20292 echo "$as_me:$LINENO: result: yes" >&5
20293 echo "${ECHO_T}yes" >&6
20295 cat >>confdefs.h
<<\_ACEOF
20296 #define HAVE_MONOTONIC_CLOCK 1
20303 echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
20304 echo $ECHO_N "checking whether struct inode has i_mutex... $ECHO_C" >&6
20307 cat >conftest.c
<<_ACEOF
20310 cat confdefs.h
>>conftest.
$ac_ext
20311 cat >>conftest.
$ac_ext <<_ACEOF
20312 /* end confdefs.h. */
20315 #include <linux/fs.h>
20316 #include <linux/mutex.h>
20323 mutex_init(&i.i_mutex);
20331 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.ko build
/Makefile
20332 echo "obj-m := conftest.o" >build
/Makefile
20333 if { ac_try
='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335 (eval $ac_try) 2>&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340 (eval $ac_try) 2>&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); }; }; then
20345 echo "$as_me:$LINENO: result: yes" >&5
20346 echo "${ECHO_T}yes" >&6
20348 cat >>confdefs.h
<<\_ACEOF
20349 #define HAVE_INODE_I_MUTEX 1
20354 echo "$as_me: failed program was:" >&5
20355 sed 's/^/| /' conftest.
$ac_ext >&5
20358 echo "$as_me:$LINENO: result: no" >&5
20359 echo "${ECHO_T}no" >&6
20362 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.mod.o build
/conftest.ko build
/conftest.c conftest.c
20366 echo "$as_me:$LINENO: checking whether div64_64() is available" >&5
20367 echo $ECHO_N "checking whether div64_64() is available... $ECHO_C" >&6
20370 cat >conftest.c
<<_ACEOF
20373 cat confdefs.h
>>conftest.
$ac_ext
20374 cat >>conftest.
$ac_ext <<_ACEOF
20375 /* end confdefs.h. */
20378 #include <asm/div64.h>
20379 #include <linux/types.h>
20385 uint64_t i = div64_64(1ULL, 1ULL);
20393 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.ko build
/Makefile
20394 echo "obj-m := conftest.o" >build
/Makefile
20395 if { ac_try
='cp conftest.c build && make modules CC="$CC" LINUXINCLUDE="-Iinclude -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20397 (eval $ac_try) 2>&5
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20402 (eval $ac_try) 2>&5
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); }; }; then
20407 echo "$as_me:$LINENO: result: yes" >&5
20408 echo "${ECHO_T}yes" >&6
20410 cat >>confdefs.h
<<\_ACEOF
20411 #define HAVE_DIV64_64 1
20416 echo "$as_me: failed program was:" >&5
20417 sed 's/^/| /' conftest.
$ac_ext >&5
20420 echo "$as_me:$LINENO: result: no" >&5
20421 echo "${ECHO_T}no" >&6
20424 rm -f build
/conftest.o build
/conftest.mod.c build
/conftest.mod.o build
/conftest.ko build
/conftest.c conftest.c
20430 # Add "V=1" to KERNELMAKE_PARAMS to enable verbose module build
20432 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -I$TOPDIR -I$TOPDIR/include"
20434 if test "${LINUX_OBJ}" != "${LINUX}"; then
20435 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$kernelbuild"
20442 ac_config_files
="$ac_config_files Makefile lib/Makefile cmd/Makefile modules/Makefile modules/spl/Makefile modules/splat/Makefile include/Makefile include/sys/Makefile scripts/Makefile scripts/spl.spec"
20445 cat >confcache
<<\_ACEOF
20446 # This file is a shell script that caches the results of configure
20447 # tests run on this system so they can be shared between configure
20448 # scripts and configure runs, see configure's option --config-cache.
20449 # It is not useful on other systems. If it contains results you don't
20450 # want to keep, you may remove or edit it.
20452 # config.status only pays attention to the cache file if you give it
20453 # the --recheck option to rerun configure.
20455 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20456 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20457 # following values.
20461 # The following way of writing the cache mishandles newlines in values,
20462 # but we know of no workaround that is simple, portable, and efficient.
20463 # So, don't put newlines in cache variables' values.
20464 # Ultrix sh set writes to stderr and can't be redirected directly,
20465 # and sets the high bit in the cache file unless we assign to the vars.
20468 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20470 # `set' does not quote correctly, so add quotes (double-quote
20471 # substitution turns \\\\ into \\, and sed turns \\ into \).
20474 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20477 # `set' quotes correctly as required by POSIX, so do not add quotes.
20479 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20486 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20488 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20490 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
20491 if test -w $cache_file; then
20492 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20493 cat confcache
>$cache_file
20495 echo "not updating unwritable cache $cache_file"
20500 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20501 # Let make expand exec_prefix.
20502 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20504 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20505 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20506 # trailing colons and then remove the whole line if VPATH becomes empty
20507 # (actually we leave an empty line to preserve line numbers).
20508 if test "x$srcdir" = x.
; then
20509 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
20510 s/:*\$(srcdir):*/:/;
20511 s/:*\${srcdir}:*/:/;
20513 s/^\([^=]*=[ ]*\):*/\1/;
20519 DEFS
=-DHAVE_CONFIG_H
20523 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
20524 # 1. Remove the extension, and $U if already installed.
20525 ac_i
=`echo "$ac_i" |
20526 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20528 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
20529 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
20531 LIBOBJS
=$ac_libobjs
20533 LTLIBOBJS
=$ac_ltlibobjs
20536 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20537 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20538 Usually this means the macro was only invoked conditionally." >&5
20539 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20540 Usually this means the macro was only invoked conditionally." >&2;}
20541 { (exit 1); exit 1; }; }
20543 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20544 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20545 Usually this means the macro was only invoked conditionally." >&5
20546 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20547 Usually this means the macro was only invoked conditionally." >&2;}
20548 { (exit 1); exit 1; }; }
20550 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20551 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20552 Usually this means the macro was only invoked conditionally." >&5
20553 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20554 Usually this means the macro was only invoked conditionally." >&2;}
20555 { (exit 1); exit 1; }; }
20557 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20558 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20559 Usually this means the macro was only invoked conditionally." >&5
20560 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20561 Usually this means the macro was only invoked conditionally." >&2;}
20562 { (exit 1); exit 1; }; }
20565 : ${CONFIG_STATUS=./config.status}
20566 ac_clean_files_save
=$ac_clean_files
20567 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
20568 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20569 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20570 cat >$CONFIG_STATUS <<_ACEOF
20572 # Generated by $as_me.
20573 # Run this file to recreate the current configuration.
20574 # Compiler output produced by configure, useful for debugging
20575 # configure, is in config.log if it exists.
20578 ac_cs_recheck=false
20580 SHELL=\${CONFIG_SHELL-$SHELL}
20583 cat >>$CONFIG_STATUS <<\_ACEOF
20584 ## --------------------- ##
20585 ## M4sh Initialization. ##
20586 ## --------------------- ##
20588 # Be Bourne compatible
20589 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
20592 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20593 # is contrary to our usage. Disable this feature.
20594 alias -g '${1+"$@"}'='"$@"'
20595 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
20598 DUALCASE
=1; export DUALCASE
# for MKS sh
20600 # Support unset when possible.
20601 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
20608 # Work around bugs in pre-3.0 UWIN ksh.
20609 $as_unset ENV MAIL MAILPATH
20616 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20617 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20618 LC_TELEPHONE LC_TIME
20620 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20621 eval $as_var=C
; export $as_var
20627 # Required to use basename.
20628 if expr a
: '\(a\)' >/dev
/null
2>&1; then
20634 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
20635 as_basename
=basename
20641 # Name of the executable.
20642 as_me
=`$as_basename "$0" ||
20643 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20644 X"$0" : 'X\(//\)$' \| \
20645 X"$0" : 'X\(/\)$' \| \
20646 . : '\(.\)' 2>/dev/null ||
20648 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20649 /^X\/\(\/\/\)$/{ s//\1/; q; }
20650 /^X\/\(\/\).*/{ s//\1/; q; }
20654 # PATH needs CR, and LINENO needs CR and PATH.
20655 # Avoid depending upon Character Ranges.
20656 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20657 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20658 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20659 as_cr_digits
='0123456789'
20660 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20662 # The user is always right.
20663 if test "${PATH_SEPARATOR+set}" != set; then
20664 echo "#! /bin/sh" >conf$$.sh
20665 echo "exit 0" >>conf$$.sh
20667 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
20676 as_lineno_1
=$LINENO
20677 as_lineno_2
=$LINENO
20678 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
20679 test "x$as_lineno_1" != "x$as_lineno_2" &&
20680 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
20681 # Find who we are. Look in the path if we contain no path at all
20684 *[\\/]* ) as_myself
=$0 ;;
20685 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20686 for as_dir
in $PATH
20689 test -z "$as_dir" && as_dir
=.
20690 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
20695 # We did not find ourselves, most probably we were run as `sh COMMAND'
20696 # in which case we are not to be found in the path.
20697 if test "x$as_myself" = x
; then
20700 if test ! -f "$as_myself"; then
20701 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20702 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20703 { (exit 1); exit 1; }; }
20705 case $CONFIG_SHELL in
20707 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20708 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
20711 test -z "$as_dir" && as_dir
=.
20712 for as_base
in sh bash ksh sh5
; do
20715 if ("$as_dir/$as_base" -c '
20716 as_lineno_1=$LINENO
20717 as_lineno_2=$LINENO
20718 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20719 test "x$as_lineno_1" != "x$as_lineno_2" &&
20720 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
20721 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
20722 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
20723 CONFIG_SHELL
=$as_dir/$as_base
20724 export CONFIG_SHELL
20725 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20733 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20734 # uniformly replaced by the line number. The first 'sed' inserts a
20735 # line-number line before each line; the second 'sed' does the real
20736 # work. The second script uses 'N' to pair each line-number line
20737 # with the numbered line, and appends trailing '-' during
20738 # substitution so that $LINENO is not a special case at line end.
20739 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20740 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20741 sed '=' <$as_myself |
20746 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20749 s,^['$as_cr_digits']*\n,,
20750 ' >$as_me.lineno
&&
20751 chmod +x
$as_me.lineno ||
20752 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20753 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20754 { (exit 1); exit 1; }; }
20756 # Don't try to exec as it changes $[0], causing all sort of problems
20757 # (the dirname of $[0] is not the place where we might find the
20758 # original and so on. Autoconf is especially sensible to this).
20760 # Exit status is that of the last command.
20765 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20766 *c
*,-n*) ECHO_N
= ECHO_C
='
20768 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
20769 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
20772 if expr a
: '\(a\)' >/dev
/null
2>&1; then
20778 rm -f conf$$ conf$$.exe conf$$.
file
20780 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20781 # We could just check for DJGPP; but this test a) works b) is more generic
20782 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20783 if test -f conf$$.exe
; then
20784 # Don't use ln at all; we don't have any links
20789 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20794 rm -f conf$$ conf$$.exe conf$$.
file
20796 if mkdir
-p .
2>/dev
/null
; then
20799 test -d .
/-p && rmdir .
/-p
20803 as_executable_p
="test -f"
20805 # Sed expression to map a string onto a valid CPP name.
20806 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20808 # Sed expression to map a string onto a valid variable name.
20809 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20813 # We need space, tab and new line, in precisely that order.
20823 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20824 # report actual input values of CONFIG_FILES etc. instead of their
20825 # values after options handling. Logging --version etc. is OK.
20829 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20830 ## Running $as_me. ##
20835 This file was extended by $as_me, which was
20836 generated by GNU Autoconf 2.59. Invocation command line was
20838 CONFIG_FILES = $CONFIG_FILES
20839 CONFIG_HEADERS = $CONFIG_HEADERS
20840 CONFIG_LINKS = $CONFIG_LINKS
20841 CONFIG_COMMANDS = $CONFIG_COMMANDS
20845 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20849 # Files that config.status was made for.
20850 if test -n "$ac_config_files"; then
20851 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20854 if test -n "$ac_config_headers"; then
20855 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20858 if test -n "$ac_config_links"; then
20859 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20862 if test -n "$ac_config_commands"; then
20863 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20866 cat >>$CONFIG_STATUS <<\_ACEOF
20869 \`$as_me' instantiates files from templates according to the
20870 current configuration.
20872 Usage: $0 [OPTIONS] [FILE]...
20874 -h, --help print this help, then exit
20875 -V, --version print version number, then exit
20876 -q, --quiet do not print progress messages
20877 -d, --debug don't remove temporary files
20878 --recheck update $as_me by reconfiguring in the same conditions
20879 --file=FILE[:TEMPLATE]
20880 instantiate the configuration file FILE
20881 --header=FILE[:TEMPLATE]
20882 instantiate the configuration header FILE
20884 Configuration files:
20887 Configuration headers:
20890 Configuration commands:
20893 Report bugs to <bug-autoconf@gnu.org>."
20896 cat >>$CONFIG_STATUS <<_ACEOF
20899 configured by $0, generated by GNU Autoconf 2.59,
20900 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20902 Copyright (C) 2003 Free Software Foundation, Inc.
20903 This config.status script is free software; the Free Software Foundation
20904 gives unlimited permission to copy, distribute and modify it."
20909 cat >>$CONFIG_STATUS <<\_ACEOF
20910 # If no file are specified by the user, then we need to provide default
20911 # value. By we need to know if files were specified by the user.
20917 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
20918 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
20926 *) # This is not an option, so the user has probably given explicit
20929 ac_need_defaults
=false
;;
20933 # Handling of the options.
20935 cat >>$CONFIG_STATUS <<\_ACEOF
20936 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20938 --version |
--vers* |
-V )
20939 echo "$ac_cs_version"; exit 0 ;;
20941 # Conflict between --help and --header
20942 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20943 Try \`$0 --help' for more information." >&5
20944 echo "$as_me: error: ambiguous option: $1
20945 Try \`$0 --help' for more information." >&2;}
20946 { (exit 1); exit 1; }; };;
20947 --help |
--hel |
-h )
20948 echo "$ac_cs_usage"; exit 0 ;;
20949 --debug |
--d* |
-d )
20951 --file |
--fil |
--fi |
--f )
20953 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
20954 ac_need_defaults
=false
;;
20955 --header |
--heade |
--head |
--hea )
20957 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
20958 ac_need_defaults
=false
;;
20959 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20960 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20963 # This is an error.
20964 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20965 Try \`$0 --help' for more information." >&5
20966 echo "$as_me: error: unrecognized option: $1
20967 Try \`$0 --help' for more information." >&2;}
20968 { (exit 1); exit 1; }; } ;;
20970 *) ac_config_targets
="$ac_config_targets $1" ;;
20976 ac_configure_extra_args
=
20978 if $ac_cs_silent; then
20980 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20984 cat >>$CONFIG_STATUS <<_ACEOF
20985 if \$ac_cs_recheck; then
20986 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20987 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20992 cat >>$CONFIG_STATUS <<_ACEOF
20994 # INIT-COMMANDS section.
20997 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21003 cat >>$CONFIG_STATUS <<\_ACEOF
21004 for ac_config_target
in $ac_config_targets
21006 case "$ac_config_target" in
21007 # Handling of arguments.
21008 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
21009 "lib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
21010 "cmd/Makefile" ) CONFIG_FILES
="$CONFIG_FILES cmd/Makefile" ;;
21011 "modules/Makefile" ) CONFIG_FILES
="$CONFIG_FILES modules/Makefile" ;;
21012 "modules/spl/Makefile" ) CONFIG_FILES
="$CONFIG_FILES modules/spl/Makefile" ;;
21013 "modules/splat/Makefile" ) CONFIG_FILES
="$CONFIG_FILES modules/splat/Makefile" ;;
21014 "include/Makefile" ) CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
21015 "include/sys/Makefile" ) CONFIG_FILES
="$CONFIG_FILES include/sys/Makefile" ;;
21016 "scripts/Makefile" ) CONFIG_FILES
="$CONFIG_FILES scripts/Makefile" ;;
21017 "scripts/spl.spec" ) CONFIG_FILES
="$CONFIG_FILES scripts/spl.spec" ;;
21018 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
21019 "spl_config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS spl_config.h" ;;
21020 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21021 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21022 { (exit 1); exit 1; }; };;
21026 # If the user did not use the arguments to specify the items to instantiate,
21027 # then the envvar interface is used. Set only those that are not.
21028 # We use the long form for the default assignment because of an extremely
21029 # bizarre bug on SunOS 4.1.3.
21030 if $ac_need_defaults; then
21031 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
21032 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
21033 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
21036 # Have a temporary directory for convenience. Make it in the build tree
21037 # simply because there is no reason to put it here, and in addition,
21038 # creating and moving files from /tmp can sometimes cause problems.
21039 # Create a temporary directory, and hook for its removal unless debugging.
21042 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21043 trap '{ (exit 1); exit 1; }' 1 2 13 15
21046 # Create a (secure) tmp directory for tmp files.
21049 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21050 test -n "$tmp" && test -d "$tmp"
21053 tmp
=.
/confstat$$
-$RANDOM
21054 (umask 077 && mkdir
$tmp)
21057 echo "$me: cannot create a temporary directory in ." >&2
21058 { (exit 1); exit 1; }
21063 cat >>$CONFIG_STATUS <<_ACEOF
21066 # CONFIG_FILES section.
21069 # No need to generate the scripts if there are no CONFIG_FILES.
21070 # This happens for instance when ./config.status config.h
21071 if test -n "\$CONFIG_FILES"; then
21072 # Protect against being on the right side of a sed subst in config.status.
21073 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21074 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21075 s,@SHELL@,$SHELL,;t t
21076 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21077 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21078 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21079 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21080 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21081 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21082 s,@exec_prefix@,$exec_prefix,;t t
21083 s,@prefix@,$prefix,;t t
21084 s,@program_transform_name@,$program_transform_name,;t t
21085 s,@bindir@,$bindir,;t t
21086 s,@sbindir@,$sbindir,;t t
21087 s,@libexecdir@,$libexecdir,;t t
21088 s,@datadir@,$datadir,;t t
21089 s,@sysconfdir@,$sysconfdir,;t t
21090 s,@sharedstatedir@,$sharedstatedir,;t t
21091 s,@localstatedir@,$localstatedir,;t t
21092 s,@libdir@,$libdir,;t t
21093 s,@includedir@,$includedir,;t t
21094 s,@oldincludedir@,$oldincludedir,;t t
21095 s,@infodir@,$infodir,;t t
21096 s,@mandir@,$mandir,;t t
21097 s,@build_alias@,$build_alias,;t t
21098 s,@host_alias@,$host_alias,;t t
21099 s,@target_alias@,$target_alias,;t t
21100 s,@DEFS@,$DEFS,;t t
21101 s,@ECHO_C@,$ECHO_C,;t t
21102 s,@ECHO_N@,$ECHO_N,;t t
21103 s,@ECHO_T@,$ECHO_T,;t t
21104 s,@LIBS@,$LIBS,;t t
21105 s,@META_NAME@,$META_NAME,;t t
21106 s,@META_VERSION@,$META_VERSION,;t t
21107 s,@META_RELEASE@,$META_RELEASE,;t t
21108 s,@META_ALIAS@,$META_ALIAS,;t t
21109 s,@META_DATE@,$META_DATE,;t t
21110 s,@META_AUTHOR@,$META_AUTHOR,;t t
21111 s,@META_LT_CURRENT@,$META_LT_CURRENT,;t t
21112 s,@META_LT_REVISION@,$META_LT_REVISION,;t t
21113 s,@META_LT_AGE@,$META_LT_AGE,;t t
21114 s,@build@,$build,;t t
21115 s,@build_cpu@,$build_cpu,;t t
21116 s,@build_vendor@,$build_vendor,;t t
21117 s,@build_os@,$build_os,;t t
21118 s,@host@,$host,;t t
21119 s,@host_cpu@,$host_cpu,;t t
21120 s,@host_vendor@,$host_vendor,;t t
21121 s,@host_os@,$host_os,;t t
21122 s,@target@,$target,;t t
21123 s,@target_cpu@,$target_cpu,;t t
21124 s,@target_vendor@,$target_vendor,;t t
21125 s,@target_os@,$target_os,;t t
21126 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21127 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21128 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21129 s,@CYGPATH_W@,$CYGPATH_W,;t t
21130 s,@PACKAGE@,$PACKAGE,;t t
21131 s,@VERSION@,$VERSION,;t t
21132 s,@ACLOCAL@,$ACLOCAL,;t t
21133 s,@AUTOCONF@,$AUTOCONF,;t t
21134 s,@AUTOMAKE@,$AUTOMAKE,;t t
21135 s,@AUTOHEADER@,$AUTOHEADER,;t t
21136 s,@MAKEINFO@,$MAKEINFO,;t t
21137 s,@install_sh@,$install_sh,;t t
21138 s,@STRIP@,$STRIP,;t t
21139 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21140 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21141 s,@mkdir_p@,$mkdir_p,;t t
21143 s,@SET_MAKE@,$SET_MAKE,;t t
21144 s,@am__leading_dot@,$am__leading_dot,;t t
21145 s,@AMTAR@,$AMTAR,;t t
21146 s,@am__tar@,$am__tar,;t t
21147 s,@am__untar@,$am__untar,;t t
21148 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21149 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21150 s,@MAINT@,$MAINT,;t t
21152 s,@CFLAGS@,$CFLAGS,;t t
21153 s,@LDFLAGS@,$LDFLAGS,;t t
21154 s,@CPPFLAGS@,$CPPFLAGS,;t t
21155 s,@ac_ct_CC@,$ac_ct_CC,;t t
21156 s,@EXEEXT@,$EXEEXT,;t t
21157 s,@OBJEXT@,$OBJEXT,;t t
21158 s,@DEPDIR@,$DEPDIR,;t t
21159 s,@am__include@,$am__include,;t t
21160 s,@am__quote@,$am__quote,;t t
21161 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21162 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21163 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21164 s,@CCDEPMODE@,$CCDEPMODE,;t t
21165 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21166 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21168 s,@EGREP@,$EGREP,;t t
21169 s,@LN_S@,$LN_S,;t t
21170 s,@ECHO@,$ECHO,;t t
21172 s,@ac_ct_AR@,$ac_ct_AR,;t t
21173 s,@RANLIB@,$RANLIB,;t t
21174 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21177 s,@CXXFLAGS@,$CXXFLAGS,;t t
21178 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21179 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21180 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21181 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21182 s,@CXXCPP@,$CXXCPP,;t t
21184 s,@FFLAGS@,$FFLAGS,;t t
21185 s,@ac_ct_F77@,$ac_ct_F77,;t t
21186 s,@LIBTOOL@,$LIBTOOL,;t t
21187 s,@LINUX@,$LINUX,;t t
21188 s,@LINUX_OBJ@,$LINUX_OBJ,;t t
21189 s,@kmoduledir@,$kmoduledir,;t t
21190 s,@KERNELMAKE_PARAMS@,$KERNELMAKE_PARAMS,;t t
21191 s,@KERNELCPPFLAGS@,$KERNELCPPFLAGS,;t t
21192 s,@KERNELCFLAGS@,$KERNELCFLAGS,;t t
21193 s,@LIBOBJS@,$LIBOBJS,;t t
21194 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21199 cat >>$CONFIG_STATUS <<\_ACEOF
21200 # Split the substitutions into bite-sized pieces for seds with
21201 # small command number limits, like on Digital OSF/1 and HP-UX.
21202 ac_max_sed_lines
=48
21203 ac_sed_frag
=1 # Number of current file.
21204 ac_beg
=1 # First line for current file.
21205 ac_end
=$ac_max_sed_lines # Line after last line for current file.
21208 while $ac_more_lines; do
21209 if test $ac_beg -gt 1; then
21210 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
21212 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
21214 if test ! -s $tmp/subs.frag
; then
21215 ac_more_lines
=false
21217 # The purpose of the label and of the branching condition is to
21218 # speed up the sed processing (if there are no `@' at all, there
21219 # is no need to browse any of the substitutions).
21220 # These are the two extra sed commands mentioned above.
21222 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
21223 if test -z "$ac_sed_cmds"; then
21224 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
21226 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21228 ac_sed_frag
=`expr $ac_sed_frag + 1`
21230 ac_end
=`expr $ac_end + $ac_max_sed_lines`
21233 if test -z "$ac_sed_cmds"; then
21236 fi # test -n "$CONFIG_FILES"
21239 cat >>$CONFIG_STATUS <<\_ACEOF
21240 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
21241 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21243 - |
*:- |
*:-:* ) # input from stdin
21245 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21246 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
21247 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21248 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
21249 * ) ac_file_in
=$ac_file.
in ;;
21252 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21253 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
21254 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21255 X"$ac_file" : 'X\(//\)[^/]' \| \
21256 X"$ac_file" : 'X\(//\)$' \| \
21257 X"$ac_file" : 'X\(/\)' \| \
21258 . : '\(.\)' 2>/dev/null ||
21260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21261 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21262 /^X\(\/\/\)$/{ s//\1/; q; }
21263 /^X\(\/\).*/{ s//\1/; q; }
21265 { if $as_mkdir_p; then
21270 while test ! -d "$as_dir"; do
21271 as_dirs
="$as_dir $as_dirs"
21272 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
21273 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21274 X"$as_dir" : 'X\(//\)[^/]' \| \
21275 X"$as_dir" : 'X\(//\)$' \| \
21276 X"$as_dir" : 'X\(/\)' \| \
21277 . : '\(.\)' 2>/dev/null ||
21279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21280 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21281 /^X\(\/\/\)$/{ s//\1/; q; }
21282 /^X\(\/\).*/{ s//\1/; q; }
21285 test ! -n "$as_dirs" || mkdir
$as_dirs
21286 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21287 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21288 { (exit 1); exit 1; }; }; }
21292 if test "$ac_dir" != .
; then
21293 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21294 # A "../" for each directory in $ac_dir_suffix.
21295 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21297 ac_dir_suffix
= ac_top_builddir
=
21301 .
) # No --srcdir option. We are building in place.
21303 if test -z "$ac_top_builddir"; then
21306 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
21308 [\\/]* | ?
:[\\/]* ) # Absolute path.
21309 ac_srcdir
=$srcdir$ac_dir_suffix;
21310 ac_top_srcdir
=$srcdir ;;
21311 *) # Relative path.
21312 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
21313 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
21316 # Do not use `cd foo && pwd` to compute absolute paths, because
21317 # the directories may not exist.
21319 .
) ac_abs_builddir
="$ac_dir";;
21322 .
) ac_abs_builddir
=`pwd`;;
21323 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
21324 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
21327 case $ac_abs_builddir in
21328 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
21330 case ${ac_top_builddir}.
in
21331 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
21332 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
21333 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
21336 case $ac_abs_builddir in
21337 .
) ac_abs_srcdir
=$ac_srcdir;;
21340 .
) ac_abs_srcdir
=$ac_abs_builddir;;
21341 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
21342 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
21345 case $ac_abs_builddir in
21346 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
21348 case $ac_top_srcdir in
21349 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
21350 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
21351 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
21357 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21358 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
21361 if test x
"$ac_file" != x-
; then
21362 { echo "$as_me:$LINENO: creating $ac_file" >&5
21363 echo "$as_me: creating $ac_file" >&6;}
21366 # Let's still pretend it is `configure' which instantiates (i.e., don't
21367 # use $as_me), people would be surprised to read:
21368 # /* config.h. Generated by config.status. */
21369 if test x
"$ac_file" = x-
; then
21372 configure_input
="$ac_file. "
21374 configure_input
=$configure_input"Generated from `echo $ac_file_in |
21375 sed 's,.*/,,'` by configure."
21377 # First look for the input files in the build tree, otherwise in the
21379 ac_file_inputs
=`IFS=:
21380 for f in $ac_file_in; do
21382 -) echo $tmp/stdin ;;
21384 # Absolute (can't be DOS-style, as IFS=:)
21385 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21386 echo "$as_me: error: cannot find input file: $f" >&2;}
21387 { (exit 1); exit 1; }; }
21390 if test -f "$f"; then
21393 elif test -f "$srcdir/$f"; then
21398 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21399 echo "$as_me: error: cannot find input file: $f" >&2;}
21400 { (exit 1); exit 1; }; }
21403 done` ||
{ (exit 1); exit 1; }
21405 cat >>$CONFIG_STATUS <<_ACEOF
21409 cat >>$CONFIG_STATUS <<\_ACEOF
21411 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21412 s
,@configure_input@
,$configure_input,;t t
21413 s
,@srcdir@
,$ac_srcdir,;t t
21414 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
21415 s
,@top_srcdir@
,$ac_top_srcdir,;t t
21416 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
21417 s
,@builddir@
,$ac_builddir,;t t
21418 s
,@abs_builddir@
,$ac_abs_builddir,;t t
21419 s
,@top_builddir@
,$ac_top_builddir,;t t
21420 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
21421 s
,@INSTALL@
,$ac_INSTALL,;t t
21422 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21424 if test x"$ac_file" != x-; then
21425 mv $tmp/out $ac_file
21433 cat >>$CONFIG_STATUS <<\_ACEOF
21436 # CONFIG_HEADER section.
21439 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
21440 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21442 # ac_d sets the value in "#define NAME VALUE" lines.
21443 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21444 ac_dB
='[ ].*$,\1#\2'
21447 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21448 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21449 ac_uB
='$,\1#\2define\3'
21453 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
21454 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21456 - |
*:- |
*:-:* ) # input from stdin
21458 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21459 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
21460 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21461 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
21462 * ) ac_file_in
=$ac_file.
in ;;
21465 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
21466 echo "$as_me: creating $ac_file" >&6;}
21468 # First look for the input files in the build tree, otherwise in the
21470 ac_file_inputs
=`IFS=:
21471 for f in $ac_file_in; do
21473 -) echo $tmp/stdin ;;
21475 # Absolute (can't be DOS-style, as IFS=:)
21476 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21477 echo "$as_me: error: cannot find input file: $f" >&2;}
21478 { (exit 1); exit 1; }; }
21479 # Do quote $f, to prevent DOS paths from being IFS'd.
21482 if test -f "$f"; then
21485 elif test -f "$srcdir/$f"; then
21490 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21491 echo "$as_me: error: cannot find input file: $f" >&2;}
21492 { (exit 1); exit 1; }; }
21495 done` ||
{ (exit 1); exit 1; }
21496 # Remove the trailing spaces.
21497 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21501 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21502 # `conftest.undefs', that substitutes the proper values into
21503 # config.h.in to produce config.h. The first handles `#define'
21504 # templates, and the second `#undef' templates.
21505 # And first: Protect against being on the right side of a sed subst in
21506 # config.status. Protect against being in an unquoted here document
21507 # in config.status.
21508 rm -f conftest.defines conftest.undefs
21509 # Using a here document instead of a string reduces the quoting nightmare.
21510 # Putting comments in sed scripts is not portable.
21512 # `end' is used to avoid that the second main sed command (meant for
21513 # 0-ary CPP macros) applies to n-ary macro definitions.
21514 # See the Autoconf documentation for `clear'.
21515 cat >confdef2sed.
sed <<\_ACEOF
21520 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21522 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21525 # If some macros were called several times there might be several times
21526 # the same #defines, which is useless. Nevertheless, we may not want to
21527 # sort them, since we want the *last* AC-DEFINE to be honored.
21528 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21529 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21530 rm -f confdef2sed.sed
21532 # This sed command replaces #undef with comments. This is necessary, for
21533 # example, in the case of _POSIX_SOURCE, which is predefined and required
21534 # on some systems where configure will not decide to define it.
21535 cat >>conftest.undefs <<\_ACEOF
21536 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21539 # Break up conftest.defines because some shells have a limit on the size
21540 # of here documents, and old seds have small limits too (100 cmds).
21541 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21542 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21543 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21544 echo ' :' >>$CONFIG_STATUS
21545 rm -f conftest.tail
21546 while grep . conftest.defines >/dev/null
21548 # Write a limited-size here document to $tmp/defines.sed.
21549 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21550 # Speed up: don't consider the non `#define' lines.
21551 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21552 # Work around the forget-to-reset-the-flag bug.
21553 echo 't clr' >>$CONFIG_STATUS
21554 echo ': clr' >>$CONFIG_STATUS
21555 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
21557 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21559 mv $tmp/out $tmp/in
21561 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
21562 rm -f conftest.defines
21563 mv conftest.
tail conftest.defines
21565 rm -f conftest.defines
21566 echo ' fi # grep' >>$CONFIG_STATUS
21567 echo >>$CONFIG_STATUS
21569 # Break up conftest.undefs because some shells have a limit on the size
21570 # of here documents, and old seds have small limits too (100 cmds).
21571 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21572 rm -f conftest.
tail
21573 while grep . conftest.undefs
>/dev
/null
21575 # Write a limited-size here document to $tmp/undefs.sed.
21576 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21577 # Speed up: don't consider the non
`#undef'
21578 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21579 # Work around the forget-to-reset-the-flag bug.
21580 echo 't clr' >>$CONFIG_STATUS
21581 echo ': clr' >>$CONFIG_STATUS
21582 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21584 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21586 mv $tmp/out $tmp/in
21588 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21589 rm -f conftest.undefs
21590 mv conftest.tail conftest.undefs
21592 rm -f conftest.undefs
21594 cat >>$CONFIG_STATUS <<\_ACEOF
21595 # Let's still pretend it is `configure
' which instantiates (i.e., don't
21596 # use $as_me), people would be surprised to read:
21597 # /* config.h. Generated by config.status. */
21598 if test x
"$ac_file" = x-
; then
21599 echo "/* Generated by configure. */" >$tmp/config.h
21601 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21603 cat $tmp/in >>$tmp/config.h
21605 if test x
"$ac_file" != x-
; then
21606 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
21607 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21608 echo "$as_me: $ac_file is unchanged" >&6;}
21610 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
21611 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21612 X"$ac_file" : 'X\(//\)[^/]' \| \
21613 X"$ac_file" : 'X\(//\)$' \| \
21614 X"$ac_file" : 'X\(/\)' \| \
21615 . : '\(.\)' 2>/dev/null ||
21617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21618 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21619 /^X\(\/\/\)$/{ s//\1/; q; }
21620 /^X\(\/\).*/{ s//\1/; q; }
21622 { if $as_mkdir_p; then
21627 while test ! -d "$as_dir"; do
21628 as_dirs
="$as_dir $as_dirs"
21629 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
21630 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21631 X"$as_dir" : 'X\(//\)[^/]' \| \
21632 X"$as_dir" : 'X\(//\)$' \| \
21633 X"$as_dir" : 'X\(/\)' \| \
21634 . : '\(.\)' 2>/dev/null ||
21636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21637 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21638 /^X\(\/\/\)$/{ s//\1/; q; }
21639 /^X\(\/\).*/{ s//\1/; q; }
21642 test ! -n "$as_dirs" || mkdir
$as_dirs
21643 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21644 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21645 { (exit 1); exit 1; }; }; }
21648 mv $tmp/config.h
$ac_file
21652 rm -f $tmp/config.h
21654 # Compute $ac_file's index in $config_headers.
21656 for _am_header
in $config_headers :; do
21657 case $_am_header in
21658 $ac_file |
$ac_file:* )
21661 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
21664 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21665 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21666 X$ac_file : 'X\(//\)[^/]' \| \
21667 X$ac_file : 'X\(//\)$' \| \
21668 X$ac_file : 'X\(/\)' \| \
21669 . : '\(.\)' 2>/dev/null ||
21671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21672 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21673 /^X\(\/\/\)$/{ s//\1/; q; }
21674 /^X\(\/\).*/{ s//\1/; q; }
21675 s/.*/./; q'`/stamp-h
$_am_stamp_count
21678 cat >>$CONFIG_STATUS <<\_ACEOF
21681 # CONFIG_COMMANDS section.
21683 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
21684 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
21685 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21686 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
21687 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21688 X"$ac_dest" : 'X\(//\)[^/]' \| \
21689 X"$ac_dest" : 'X\(//\)$' \| \
21690 X"$ac_dest" : 'X\(/\)' \| \
21691 . : '\(.\)' 2>/dev/null ||
21693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21694 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21695 /^X\(\/\/\)$/{ s//\1/; q; }
21696 /^X\(\/\).*/{ s//\1/; q; }
21698 { if $as_mkdir_p; then
21703 while test ! -d "$as_dir"; do
21704 as_dirs
="$as_dir $as_dirs"
21705 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
21706 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21707 X"$as_dir" : 'X\(//\)[^/]' \| \
21708 X"$as_dir" : 'X\(//\)$' \| \
21709 X"$as_dir" : 'X\(/\)' \| \
21710 . : '\(.\)' 2>/dev/null ||
21712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21713 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21714 /^X\(\/\/\)$/{ s//\1/; q; }
21715 /^X\(\/\).*/{ s//\1/; q; }
21718 test ! -n "$as_dirs" || mkdir
$as_dirs
21719 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21720 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21721 { (exit 1); exit 1; }; }; }
21725 if test "$ac_dir" != .
; then
21726 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21727 # A "../" for each directory in $ac_dir_suffix.
21728 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21730 ac_dir_suffix
= ac_top_builddir
=
21734 .
) # No --srcdir option. We are building in place.
21736 if test -z "$ac_top_builddir"; then
21739 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
21741 [\\/]* | ?
:[\\/]* ) # Absolute path.
21742 ac_srcdir
=$srcdir$ac_dir_suffix;
21743 ac_top_srcdir
=$srcdir ;;
21744 *) # Relative path.
21745 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
21746 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
21749 # Do not use `cd foo && pwd` to compute absolute paths, because
21750 # the directories may not exist.
21752 .
) ac_abs_builddir
="$ac_dir";;
21755 .
) ac_abs_builddir
=`pwd`;;
21756 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
21757 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
21760 case $ac_abs_builddir in
21761 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
21763 case ${ac_top_builddir}.
in
21764 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
21765 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
21766 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
21769 case $ac_abs_builddir in
21770 .
) ac_abs_srcdir
=$ac_srcdir;;
21773 .
) ac_abs_srcdir
=$ac_abs_builddir;;
21774 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
21775 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
21778 case $ac_abs_builddir in
21779 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
21781 case $ac_top_srcdir in
21782 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
21783 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
21784 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
21789 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21790 echo "$as_me: executing $ac_dest commands" >&6;}
21792 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
21793 # Strip MF so we end up with the name of the file.
21794 mf
=`echo "$mf" | sed -e 's/:.*$//'`
21795 # Check whether this is an Automake generated Makefile or not.
21796 # We used to match only the files named `Makefile.in', but
21797 # some people rename them; so instead we look at the file content.
21798 # Grep'ing the first line is not enough: some people post-process
21799 # each Makefile.in and add a new line on top of each file to say so.
21800 # So let's grep whole file.
21801 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
21802 dirpart
=`(dirname "$mf") 2>/dev/null ||
21803 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21804 X"$mf" : 'X\(//\)[^/]' \| \
21805 X"$mf" : 'X\(//\)$' \| \
21806 X"$mf" : 'X\(/\)' \| \
21807 . : '\(.\)' 2>/dev/null ||
21809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21810 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21811 /^X\(\/\/\)$/{ s//\1/; q; }
21812 /^X\(\/\).*/{ s//\1/; q; }
21817 # Extract the definition of DEPDIR, am__include, and am__quote
21818 # from the Makefile without running `make'.
21819 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
21820 test -z "$DEPDIR" && continue
21821 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
21822 test -z "am__include" && continue
21823 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
21824 # When using ansi2knr, U may be empty or an underscore; expand it
21825 U
=`sed -n 's/^U = //p' < "$mf"`
21826 # Find all dependency output files, they are included files with
21827 # $(DEPDIR) in their names. We invoke sed twice because it is the
21828 # simplest approach to changing $(DEPDIR) to its actual value in the
21830 for file in `sed -n "
21831 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21832 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21833 # Make sure the directory exists.
21834 test -f "$dirpart/$file" && continue
21835 fdir
=`(dirname "$file") 2>/dev/null ||
21836 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21837 X"$file" : 'X\(//\)[^/]' \| \
21838 X"$file" : 'X\(//\)$' \| \
21839 X"$file" : 'X\(/\)' \| \
21840 . : '\(.\)' 2>/dev/null ||
21842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21843 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21844 /^X\(\/\/\)$/{ s//\1/; q; }
21845 /^X\(\/\).*/{ s//\1/; q; }
21847 { if $as_mkdir_p; then
21848 mkdir
-p $dirpart/$fdir
21850 as_dir
=$dirpart/$fdir
21852 while test ! -d "$as_dir"; do
21853 as_dirs
="$as_dir $as_dirs"
21854 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
21855 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21856 X"$as_dir" : 'X\(//\)[^/]' \| \
21857 X"$as_dir" : 'X\(//\)$' \| \
21858 X"$as_dir" : 'X\(/\)' \| \
21859 . : '\(.\)' 2>/dev/null ||
21861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21862 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21863 /^X\(\/\/\)$/{ s//\1/; q; }
21864 /^X\(\/\).*/{ s//\1/; q; }
21867 test ! -n "$as_dirs" || mkdir
$as_dirs
21868 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21869 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21870 { (exit 1); exit 1; }; }; }
21872 # echo "creating $dirpart/$file"
21873 echo '# dummy' > "$dirpart/$file"
21881 cat >>$CONFIG_STATUS <<\_ACEOF
21883 { (exit 0); exit 0; }
21885 chmod +x
$CONFIG_STATUS
21886 ac_clean_files
=$ac_clean_files_save
21889 # configure is writing to config.log, and then calls config.status.
21890 # config.status does its own redirection, appending to config.log.
21891 # Unfortunately, on DOS this fails, as config.log is still kept open
21892 # by configure, so config.status won't be able to write to it; its
21893 # output is simply discarded. So we exec the FD to /dev/null,
21894 # effectively closing config.log, so it can be properly (re)opened and
21895 # appended to by config.status. When coming back to configure, we
21896 # need to make the FD available again.
21897 if test "$no_create" != yes; then
21899 ac_config_status_args
=
21900 test "$silent" = yes &&
21901 ac_config_status_args
="$ac_config_status_args --quiet"
21903 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21905 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21906 # would make configure fail if this is the last instruction.
21907 $ac_cs_success ||
{ (exit 1); exit 1; }