2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for barry 0.4.
5 # Report bugs to <barry-devel@lists.sourceforge.net>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 DUALCASE
=1; export DUALCASE
# for MKS sh
26 # Support unset when possible.
27 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C
; export $as_var
53 # Required to use basename.
54 if expr a
: '\(a\)' >/dev
/null
2>&1; then
60 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me
=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits
='0123456789'
86 as_cr_alnum
=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
104 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself
=$0 ;;
111 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir
=.
116 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x
; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
133 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir
=.
137 for as_base
in sh bash ksh sh5
; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
146 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
147 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
148 CONFIG_SHELL
=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x
$as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c
*,-n*) ECHO_N
= ECHO_C
='
192 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
193 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
196 if expr a
: '\(a\)' >/dev
/null
2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.
file
204 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe
; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.
file conf$$
2>/dev
/null
; then
218 rm -f conf$$ conf$$.exe conf$$.
file
220 if mkdir
-p .
2>/dev
/null
; then
223 test -d .
/-p && rmdir .
/-p
227 as_executable_p
="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL
=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec
; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo
; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo
; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 if test "X${CDPATH+set}" = Xset
; then CDPATH
=:; export CDPATH
; fi
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset
; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string
="`eval $cmd`") 2>/dev
/null
&&
291 echo_test_string
="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
311 for dir
in $PATH /usr
/ucb
; do
313 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho
; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL
=/bin
/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
352 SHELL
="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string
=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames
=${tagnames+${tagnames},}CXX
398 tagnames
=${tagnames+${tagnames},}F77
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix
=/usr
/local
411 ac_config_libobj_dir
=.
416 SHELL
=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
425 PACKAGE_TARNAME
='barry'
426 PACKAGE_VERSION
='0.4'
427 PACKAGE_STRING
='barry 0.4'
428 PACKAGE_BUGREPORT
='barry-devel@lists.sourceforge.net'
430 ac_unique_file
="src/barry.h"
431 # Factoring default headers for most tests.
432 ac_includes_default
="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBUSB_LIB_PATH LIBUSB_INC_PATH BOOST_LIB_PATH BOOST_INC_PATH WITH_BOOST_TRUE WITH_BOOST_FALSE LIBOBJS LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version
=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name
=s
,x
,x
,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir
='${exec_prefix}/bin'
497 sbindir
='${exec_prefix}/sbin'
498 libexecdir
='${exec_prefix}/libexec'
499 datadir
='${prefix}/share'
500 sysconfdir
='${prefix}/etc'
501 sharedstatedir
='${prefix}/com'
502 localstatedir
='${prefix}/var'
503 libdir
='${exec_prefix}/lib'
504 includedir
='${prefix}/include'
505 oldincludedir
='/usr/include'
506 infodir
='${prefix}/info'
507 mandir
='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
527 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
530 -build |
--build |
--buil |
--bui |
--bu)
531 ac_prev
=build_alias
;;
532 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
533 build_alias
=$ac_optarg ;;
535 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
536 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
537 ac_prev
=cache_file
;;
538 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
539 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
540 cache_file
=$ac_optarg ;;
543 cache_file
=config.cache
;;
545 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
547 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
549 datadir
=$ac_optarg ;;
551 -disable-* |
--disable-*)
552 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* |
--enable-*)
561 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
574 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
575 |
--exec |
--exe |
--ex)
576 ac_prev
=exec_prefix
;;
577 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
578 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
579 |
--exec=* |
--exe=* |
--ex=*)
580 exec_prefix
=$ac_optarg ;;
582 -gas |
--gas |
--ga |
--g)
583 # Obsolete; use --with-gas.
586 -help |
--help |
--hel |
--he |
-h)
588 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
589 ac_init_help
=recursive
;;
590 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
591 ac_init_help
=short
;;
593 -host |
--host |
--hos |
--ho)
594 ac_prev
=host_alias
;;
595 -host=* |
--host=* |
--hos=* |
--ho=*)
596 host_alias
=$ac_optarg ;;
598 -includedir |
--includedir |
--includedi |
--included |
--include \
599 |
--includ |
--inclu |
--incl |
--inc)
600 ac_prev
=includedir
;;
601 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
602 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
603 includedir
=$ac_optarg ;;
605 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
607 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
608 infodir
=$ac_optarg ;;
610 -libdir |
--libdir |
--libdi |
--libd)
612 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
615 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
616 |
--libexe |
--libex |
--libe)
617 ac_prev
=libexecdir
;;
618 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
619 |
--libexe=* |
--libex=* |
--libe=*)
620 libexecdir
=$ac_optarg ;;
622 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
623 |
--localstate |
--localstat |
--localsta |
--localst \
624 |
--locals |
--local |
--loca |
--loc |
--lo)
625 ac_prev
=localstatedir
;;
626 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
627 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
628 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
629 localstatedir
=$ac_optarg ;;
631 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
633 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
637 # Obsolete; use --without-fp.
640 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
641 |
--no-cr |
--no-c |
-n)
644 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
645 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
648 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
649 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
650 |
--oldin |
--oldi |
--old |
--ol |
--o)
651 ac_prev
=oldincludedir
;;
652 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
653 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
654 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
655 oldincludedir
=$ac_optarg ;;
657 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
659 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
662 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
663 |
--program-pre |
--program-pr |
--program-p)
664 ac_prev
=program_prefix
;;
665 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
666 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
667 program_prefix
=$ac_optarg ;;
669 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
670 |
--program-suf |
--program-su |
--program-s)
671 ac_prev
=program_suffix
;;
672 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
673 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
674 program_suffix
=$ac_optarg ;;
676 -program-transform-name |
--program-transform-name \
677 |
--program-transform-nam |
--program-transform-na \
678 |
--program-transform-n |
--program-transform- \
679 |
--program-transform |
--program-transfor \
680 |
--program-transfo |
--program-transf \
681 |
--program-trans |
--program-tran \
682 |
--progr-tra |
--program-tr |
--program-t)
683 ac_prev
=program_transform_name
;;
684 -program-transform-name=* |
--program-transform-name=* \
685 |
--program-transform-nam=* |
--program-transform-na=* \
686 |
--program-transform-n=* |
--program-transform-=* \
687 |
--program-transform=* |
--program-transfor=* \
688 |
--program-transfo=* |
--program-transf=* \
689 |
--program-trans=* |
--program-tran=* \
690 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
691 program_transform_name
=$ac_optarg ;;
693 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
694 |
-silent |
--silent |
--silen |
--sile |
--sil)
697 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
699 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
701 sbindir
=$ac_optarg ;;
703 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
704 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
705 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
707 ac_prev
=sharedstatedir
;;
708 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
709 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
710 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
712 sharedstatedir
=$ac_optarg ;;
714 -site |
--site |
--sit)
716 -site=* |
--site=* |
--sit=*)
719 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
721 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
724 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
725 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
726 ac_prev
=sysconfdir
;;
727 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
728 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
729 sysconfdir
=$ac_optarg ;;
731 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
732 ac_prev
=target_alias
;;
733 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
734 target_alias
=$ac_optarg ;;
736 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
739 -version |
--version |
--versio |
--versi |
--vers |
-V)
743 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package
=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* |
--without-*)
756 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package
=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
769 |
--x-incl |
--x-inc |
--x-in |
--x-i)
770 ac_prev
=x_includes
;;
771 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
772 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
773 x_includes
=$ac_optarg ;;
775 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
776 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
777 ac_prev
=x_libraries
;;
778 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
779 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
780 x_libraries
=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var
in exec_prefix prefix
817 eval ac_val
=$
`echo $ac_var`
819 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val
=$
`echo $ac_var`
831 [\\/$
]* | ?
:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x
; then
846 if test "x$build_alias" = x
; then
847 cross_compiling
=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
858 test "$silent" = yes && exec 6>/dev
/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted
=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir
=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted
=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set
=${build_alias+set}
898 ac_env_build_alias_value
=$build_alias
899 ac_cv_env_build_alias_set
=${build_alias+set}
900 ac_cv_env_build_alias_value
=$build_alias
901 ac_env_host_alias_set
=${host_alias+set}
902 ac_env_host_alias_value
=$host_alias
903 ac_cv_env_host_alias_set
=${host_alias+set}
904 ac_cv_env_host_alias_value
=$host_alias
905 ac_env_target_alias_set
=${target_alias+set}
906 ac_env_target_alias_value
=$target_alias
907 ac_cv_env_target_alias_set
=${target_alias+set}
908 ac_cv_env_target_alias_value
=$target_alias
909 ac_env_CC_set
=${CC+set}
911 ac_cv_env_CC_set
=${CC+set}
912 ac_cv_env_CC_value
=$CC
913 ac_env_CFLAGS_set
=${CFLAGS+set}
914 ac_env_CFLAGS_value
=$CFLAGS
915 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value
=$CFLAGS
917 ac_env_LDFLAGS_set
=${LDFLAGS+set}
918 ac_env_LDFLAGS_value
=$LDFLAGS
919 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value
=$LDFLAGS
921 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value
=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
925 ac_env_CXX_set
=${CXX+set}
926 ac_env_CXX_value
=$CXX
927 ac_cv_env_CXX_set
=${CXX+set}
928 ac_cv_env_CXX_value
=$CXX
929 ac_env_CXXFLAGS_set
=${CXXFLAGS+set}
930 ac_env_CXXFLAGS_value
=$CXXFLAGS
931 ac_cv_env_CXXFLAGS_set
=${CXXFLAGS+set}
932 ac_cv_env_CXXFLAGS_value
=$CXXFLAGS
933 ac_env_CPP_set
=${CPP+set}
934 ac_env_CPP_value
=$CPP
935 ac_cv_env_CPP_set
=${CPP+set}
936 ac_cv_env_CPP_value
=$CPP
937 ac_env_CXXCPP_set
=${CXXCPP+set}
938 ac_env_CXXCPP_value
=$CXXCPP
939 ac_cv_env_CXXCPP_set
=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value
=$CXXCPP
941 ac_env_F77_set
=${F77+set}
942 ac_env_F77_value
=$F77
943 ac_cv_env_F77_set
=${F77+set}
944 ac_cv_env_F77_value
=$F77
945 ac_env_FFLAGS_set
=${FFLAGS+set}
946 ac_env_FFLAGS_value
=$FFLAGS
947 ac_cv_env_FFLAGS_set
=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value
=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
957 \`configure' configures barry 0.4 to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1016 --build=BUILD configure
for building on BUILD
[guessed
]
1017 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1021 if test -n "$ac_init_help"; then
1022 case $ac_init_help in
1023 short | recursive
) echo "Configuration of barry 0.4:";;
1028 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1029 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1030 --disable-dependency-tracking speeds up one-time build
1031 --enable-dependency-tracking do not reject slow dependency extractors
1032 --enable-shared[=PKGS
]
1033 build shared libraries
[default
=yes]
1034 --enable-static[=PKGS
]
1035 build static libraries
[default
=yes]
1036 --enable-fast-install[=PKGS
]
1037 optimize
for fast installation
[default
=yes]
1038 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1041 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1042 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1043 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1044 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1047 include additional configurations
[automatic
]
1048 --with-libusb=<path
> root path of libusb installation
1049 --with-boost=<path
> root path of boost installation
(default
=no boost
)
1051 Some influential environment variables
:
1052 CC C compiler
command
1053 CFLAGS C compiler flags
1054 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1055 nonstandard directory
<lib dir
>
1056 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
1057 headers
in a nonstandard directory
<include dir
>
1058 CXX C
++ compiler
command
1059 CXXFLAGS C
++ compiler flags
1061 CXXCPP C
++ preprocessor
1062 F77 Fortran
77 compiler
command
1063 FFLAGS Fortran
77 compiler flags
1065 Use these variables to override the choices made by
`configure' or to help
1066 it to find libraries and programs with nonstandard names/locations.
1068 Report bugs to <barry-devel@lists.sourceforge.net>.
1072 if test "$ac_init_help" = "recursive"; then
1073 # If there are subdirs, report their specific --help.
1075 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1076 test -d $ac_dir || continue
1079 if test "$ac_dir" != .; then
1080 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1081 # A "../" for each directory in $ac_dir_suffix.
1082 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
1084 ac_dir_suffix= ac_top_builddir=
1088 .) # No --srcdir option. We are building in place.
1090 if test -z "$ac_top_builddir"; then
1093 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1095 [\\/]* | ?:[\\/]* ) # Absolute path.
1096 ac_srcdir=$srcdir$ac_dir_suffix;
1097 ac_top_srcdir=$srcdir ;;
1099 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1100 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1103 # Do not use `cd foo
&& pwd` to compute absolute paths, because
1104 # the directories may not exist.
1106 .) ac_abs_builddir="$ac_dir";;
1109 .) ac_abs_builddir=`pwd`;;
1110 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1111 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1114 case $ac_abs_builddir in
1115 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1117 case ${ac_top_builddir}. in
1118 .) ac_abs_top_builddir=$ac_abs_builddir;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1120 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1123 case $ac_abs_builddir in
1124 .) ac_abs_srcdir=$ac_srcdir;;
1127 .) ac_abs_srcdir=$ac_abs_builddir;;
1128 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1129 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1132 case $ac_abs_builddir in
1133 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1135 case $ac_top_srcdir in
1136 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1138 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143 # Check for guested configure; otherwise get Cygnus style configure.
1144 if test -f $ac_srcdir/configure.gnu; then
1146 $SHELL $ac_srcdir/configure.gnu --help=recursive
1147 elif test -f $ac_srcdir/configure; then
1149 $SHELL $ac_srcdir/configure --help=recursive
1150 elif test -f $ac_srcdir/configure.ac ||
1151 test -f $ac_srcdir/configure.in; then
1153 $ac_configure --help
1155 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1161 test -n "$ac_init_help" && exit 0
1162 if $ac_init_version; then
1165 generated by GNU Autoconf 2.59
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 barry $as_me 0.4, 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
1514 #AM_CONFIG_HEADER(config.h)
1516 ac_config_headers="$ac_config_headers config.h:config.h.in"
1518 am__api_version="1.9"
1520 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1521 if test -f $ac_dir/install-sh; then
1523 ac_install_sh="$ac_aux_dir/install-sh -c"
1525 elif test -f $ac_dir/install.sh; then
1527 ac_install_sh="$ac_aux_dir/install.sh -c"
1529 elif test -f $ac_dir/shtool; then
1531 ac_install_sh="$ac_aux_dir/shtool install -c"
1535 if test -z "$ac_aux_dir"; then
1536 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1537 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1538 { (exit 1); exit 1; }; }
1540 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1544 # Find a good install program. We prefer a C program (faster),
1545 # so one script is as good as another. But avoid the broken or
1546 # incompatible versions:
1547 # SysV /etc/install, /usr/sbin/install
1548 # SunOS /usr/etc/install
1549 # IRIX /sbin/install
1551 # AmigaOS /C/install, which installs bootblocks on floppy discs
1552 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1553 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1554 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1555 # OS/2's system install, which has a completely different semantic
1556 # ./install, which can be erroneously created by make from ./install.sh.
1557 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1558 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1559 if test -z "$INSTALL"; then
1560 if test "${ac_cv_path_install+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1567 test -z "$as_dir" && as_dir
=.
1568 # Account for people who put trailing slashes in PATH elements.
1570 .
/ | .
// |
/cC
/* | \
1571 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1572 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1575 # OSF1 and SCO ODT 3.0 have their own names for install.
1576 # Don't use installbsd from OSF since it installs stuff as root
1578 for ac_prog
in ginstall scoinst
install; do
1579 for ac_exec_ext
in '' $ac_executable_extensions; do
1580 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1581 if test $ac_prog = install &&
1582 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1583 # AIX install. It has an incompatible calling convention.
1585 elif test $ac_prog = install &&
1586 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1587 # program-specific install script used by HP pwplus--don't use.
1590 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1602 if test "${ac_cv_path_install+set}" = set; then
1603 INSTALL
=$ac_cv_path_install
1605 # As a last resort, use the slow shell script. We don't cache a
1606 # path for INSTALL within a source directory, because that will
1607 # break other packages using the cache if that directory is
1608 # removed, or if the path is relative.
1609 INSTALL
=$ac_install_sh
1612 echo "$as_me:$LINENO: result: $INSTALL" >&5
1613 echo "${ECHO_T}$INSTALL" >&6
1615 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1616 # It thinks the first close brace ends the variable substitution.
1617 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1619 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1621 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1623 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1624 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1627 echo timestamp
> conftest.
file
1628 # Do `set' in a subshell so we don't clobber the current shell's
1629 # arguments. Must try -L first in case configure is actually a
1630 # symlink; some systems play weird games with the mod time of symlinks
1631 # (eg FreeBSD returns the mod time of the symlink's containing
1634 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1635 if test "$*" = "X"; then
1637 set X
`ls -t $srcdir/configure conftest.file`
1640 if test "$*" != "X $srcdir/configure conftest.file" \
1641 && test "$*" != "X conftest.file $srcdir/configure"; then
1643 # If neither matched, then we have a broken ls. This can happen
1644 # if, for instance, CONFIG_SHELL is bash and it inherits a
1645 # broken ls alias from the environment. This has actually
1646 # happened. Such a system could not be considered "sane".
1647 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1648 alias in your environment" >&5
1649 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1650 alias in your environment" >&2;}
1651 { (exit 1); exit 1; }; }
1654 test "$2" = conftest.
file
1660 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1661 Check your system clock" >&5
1662 echo "$as_me: error: newly created file is older than distributed files!
1663 Check your system clock" >&2;}
1664 { (exit 1); exit 1; }; }
1666 echo "$as_me:$LINENO: result: yes" >&5
1667 echo "${ECHO_T}yes" >&6
1668 test "$program_prefix" != NONE
&&
1669 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1670 # Use a double $ so make ignores it.
1671 test "$program_suffix" != NONE
&&
1672 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1673 # Double any \ or $. echo might interpret backslashes.
1674 # By default was `s,x,x', remove it if useless.
1675 cat <<\_ACEOF
>conftest.
sed
1676 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1678 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1681 # expand $ac_aux_dir to an absolute path
1682 am_aux_dir
=`cd $ac_aux_dir && pwd`
1684 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1685 # Use eval to expand $SHELL
1686 if eval "$MISSING --run true"; then
1687 am_missing_run
="$MISSING --run "
1690 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1691 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1694 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
1695 # We used to keeping the `.' as first argument, in order to
1696 # allow $(mkdir_p) to be used without argument. As in
1697 # $(mkdir_p) $(somedir)
1698 # where $(somedir) is conditionally defined. However this is wrong
1700 # 1. if the package is installed by a user who cannot write `.'
1701 # make install will fail,
1702 # 2. the above comment should most certainly read
1703 # $(mkdir_p) $(DESTDIR)$(somedir)
1704 # so it does not work when $(somedir) is undefined and
1705 # $(DESTDIR) is not.
1706 # To support the latter case, we have to write
1707 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1708 # so the `.' trick is pointless.
1709 mkdir_p
='mkdir -p --'
1711 # On NextStep and OpenStep, the `mkdir' command does not
1712 # recognize any option. It will interpret all options as
1713 # directories to create, and then abort because `.' already
1715 for d
in .
/-p .
/--version;
1717 test -d $d && rmdir $d
1719 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1720 if test -f "$ac_aux_dir/mkinstalldirs"; then
1721 mkdir_p
='$(mkinstalldirs)'
1723 mkdir_p
='$(install_sh) -d'
1727 for ac_prog
in gawk mawk nawk
awk
1729 # Extract the first word of "$ac_prog", so it can be a program name with args.
1730 set dummy
$ac_prog; ac_word
=$2
1731 echo "$as_me:$LINENO: checking for $ac_word" >&5
1732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733 if test "${ac_cv_prog_AWK+set}" = set; then
1734 echo $ECHO_N "(cached) $ECHO_C" >&6
1736 if test -n "$AWK"; then
1737 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1743 test -z "$as_dir" && as_dir
=.
1744 for ac_exec_ext
in '' $ac_executable_extensions; do
1745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746 ac_cv_prog_AWK
="$ac_prog"
1747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756 if test -n "$AWK"; then
1757 echo "$as_me:$LINENO: result: $AWK" >&5
1758 echo "${ECHO_T}$AWK" >&6
1760 echo "$as_me:$LINENO: result: no" >&5
1761 echo "${ECHO_T}no" >&6
1764 test -n "$AWK" && break
1767 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1768 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1769 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1770 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1773 cat >conftest.
make <<\_ACEOF
1775 @
echo 'ac_maketemp="$(MAKE)"'
1777 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1778 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1779 if test -n "$ac_maketemp"; then
1780 eval ac_cv_prog_make_
${ac_make}_set
=yes
1782 eval ac_cv_prog_make_
${ac_make}_set
=no
1786 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1787 echo "$as_me:$LINENO: result: yes" >&5
1788 echo "${ECHO_T}yes" >&6
1791 echo "$as_me:$LINENO: result: no" >&5
1792 echo "${ECHO_T}no" >&6
1793 SET_MAKE
="MAKE=${MAKE-make}"
1796 rm -rf .tst
2>/dev
/null
1797 mkdir .tst
2>/dev
/null
1798 if test -d .tst
; then
1803 rmdir .tst
2>/dev
/null
1805 # test to see if srcdir already configured
1806 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1807 test -f $srcdir/config.status
; then
1808 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1809 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1810 { (exit 1); exit 1; }; }
1813 # test whether we have cygpath
1814 if test -z "$CYGPATH_W"; then
1815 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
1816 CYGPATH_W
='cygpath -w'
1823 # Define the identity of the package.
1828 cat >>confdefs.h
<<_ACEOF
1829 #define PACKAGE "$PACKAGE"
1833 cat >>confdefs.h
<<_ACEOF
1834 #define VERSION "$VERSION"
1837 # Some tools Automake needs.
1839 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1842 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1845 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1848 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1851 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1853 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1855 # Installed binaries are usually stripped using `strip' when the user
1856 # run `make install-strip'. However `strip' might not be the right
1857 # tool to use in cross-compilation environments, therefore Automake
1858 # will honor the `STRIP' environment variable to overrule this program.
1859 if test "$cross_compiling" != no
; then
1860 if test -n "$ac_tool_prefix"; then
1861 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1862 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1863 echo "$as_me:$LINENO: checking for $ac_word" >&5
1864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1865 if test "${ac_cv_prog_STRIP+set}" = set; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
1868 if test -n "$STRIP"; then
1869 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1871 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1875 test -z "$as_dir" && as_dir
=.
1876 for ac_exec_ext
in '' $ac_executable_extensions; do
1877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1878 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1887 STRIP
=$ac_cv_prog_STRIP
1888 if test -n "$STRIP"; then
1889 echo "$as_me:$LINENO: result: $STRIP" >&5
1890 echo "${ECHO_T}$STRIP" >&6
1892 echo "$as_me:$LINENO: result: no" >&5
1893 echo "${ECHO_T}no" >&6
1897 if test -z "$ac_cv_prog_STRIP"; then
1899 # Extract the first word of "strip", so it can be a program name with args.
1900 set dummy strip
; ac_word
=$2
1901 echo "$as_me:$LINENO: checking for $ac_word" >&5
1902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1903 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 if test -n "$ac_ct_STRIP"; then
1907 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
1909 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1913 test -z "$as_dir" && as_dir
=.
1914 for ac_exec_ext
in '' $ac_executable_extensions; do
1915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1916 ac_cv_prog_ac_ct_STRIP
="strip"
1917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
1926 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
1927 if test -n "$ac_ct_STRIP"; then
1928 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1929 echo "${ECHO_T}$ac_ct_STRIP" >&6
1931 echo "$as_me:$LINENO: result: no" >&5
1932 echo "${ECHO_T}no" >&6
1937 STRIP
="$ac_cv_prog_STRIP"
1941 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1943 # We need awk for the "check" target. The system "awk" is bad on
1945 # Always define AMTAR for backward compatibility.
1947 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1949 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
1956 # Checks for programs.
1958 ac_cpp
='$CPP $CPPFLAGS'
1959 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1960 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1961 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1962 if test -n "$ac_tool_prefix"; then
1963 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1964 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_CC+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 if test -n "$CC"; then
1971 ac_cv_prog_CC
="$CC" # Let the user override the test.
1973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1977 test -z "$as_dir" && as_dir
=.
1978 for ac_exec_ext
in '' $ac_executable_extensions; do
1979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990 if test -n "$CC"; then
1991 echo "$as_me:$LINENO: result: $CC" >&5
1992 echo "${ECHO_T}$CC" >&6
1994 echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6
1999 if test -z "$ac_cv_prog_CC"; then
2001 # Extract the first word of "gcc", so it can be a program name with args.
2002 set dummy gcc
; ac_word
=$2
2003 echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 if test -n "$ac_ct_CC"; then
2009 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2011 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2015 test -z "$as_dir" && as_dir
=.
2016 for ac_exec_ext
in '' $ac_executable_extensions; do
2017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018 ac_cv_prog_ac_ct_CC
="gcc"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2028 if test -n "$ac_ct_CC"; then
2029 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2030 echo "${ECHO_T}$ac_ct_CC" >&6
2032 echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2041 if test -z "$CC"; then
2042 if test -n "$ac_tool_prefix"; then
2043 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2044 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2045 echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2047 if test "${ac_cv_prog_CC+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 if test -n "$CC"; then
2051 ac_cv_prog_CC
="$CC" # Let the user override the test.
2053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2057 test -z "$as_dir" && as_dir
=.
2058 for ac_exec_ext
in '' $ac_executable_extensions; do
2059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2060 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 if test -n "$CC"; then
2071 echo "$as_me:$LINENO: result: $CC" >&5
2072 echo "${ECHO_T}$CC" >&6
2074 echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6
2079 if test -z "$ac_cv_prog_CC"; then
2081 # Extract the first word of "cc", so it can be a program name with args.
2082 set dummy cc
; ac_word
=$2
2083 echo "$as_me:$LINENO: checking for $ac_word" >&5
2084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2088 if test -n "$ac_ct_CC"; then
2089 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2091 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2095 test -z "$as_dir" && as_dir
=.
2096 for ac_exec_ext
in '' $ac_executable_extensions; do
2097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2098 ac_cv_prog_ac_ct_CC
="cc"
2099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2108 if test -n "$ac_ct_CC"; then
2109 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2110 echo "${ECHO_T}$ac_ct_CC" >&6
2112 echo "$as_me:$LINENO: result: no" >&5
2113 echo "${ECHO_T}no" >&6
2122 if test -z "$CC"; then
2123 # Extract the first word of "cc", so it can be a program name with args.
2124 set dummy cc
; ac_word
=$2
2125 echo "$as_me:$LINENO: checking for $ac_word" >&5
2126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2127 if test "${ac_cv_prog_CC+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 if test -n "$CC"; then
2131 ac_cv_prog_CC
="$CC" # Let the user override the test.
2134 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2138 test -z "$as_dir" && as_dir
=.
2139 for ac_exec_ext
in '' $ac_executable_extensions; do
2140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2141 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2142 ac_prog_rejected
=yes
2146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152 if test $ac_prog_rejected = yes; then
2153 # We found a bogon in the path, so make sure we never use it.
2154 set dummy
$ac_cv_prog_CC
2156 if test $# != 0; then
2157 # We chose a different compiler from the bogus one.
2158 # However, it has the same basename, so the bogon will be chosen
2159 # first if we set CC to just the basename; use the full file name.
2161 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2167 if test -n "$CC"; then
2168 echo "$as_me:$LINENO: result: $CC" >&5
2169 echo "${ECHO_T}$CC" >&6
2171 echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6
2176 if test -z "$CC"; then
2177 if test -n "$ac_tool_prefix"; then
2180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2181 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2182 echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2184 if test "${ac_cv_prog_CC+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 if test -n "$CC"; then
2188 ac_cv_prog_CC
="$CC" # Let the user override the test.
2190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2194 test -z "$as_dir" && as_dir
=.
2195 for ac_exec_ext
in '' $ac_executable_extensions; do
2196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2197 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2207 if test -n "$CC"; then
2208 echo "$as_me:$LINENO: result: $CC" >&5
2209 echo "${ECHO_T}$CC" >&6
2211 echo "$as_me:$LINENO: result: no" >&5
2212 echo "${ECHO_T}no" >&6
2215 test -n "$CC" && break
2218 if test -z "$CC"; then
2222 # Extract the first word of "$ac_prog", so it can be a program name with args.
2223 set dummy
$ac_prog; ac_word
=$2
2224 echo "$as_me:$LINENO: checking for $ac_word" >&5
2225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2226 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2227 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 if test -n "$ac_ct_CC"; then
2230 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2232 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2236 test -z "$as_dir" && as_dir
=.
2237 for ac_exec_ext
in '' $ac_executable_extensions; do
2238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2239 ac_cv_prog_ac_ct_CC
="$ac_prog"
2240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2249 if test -n "$ac_ct_CC"; then
2250 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2251 echo "${ECHO_T}$ac_ct_CC" >&6
2253 echo "$as_me:$LINENO: result: no" >&5
2254 echo "${ECHO_T}no" >&6
2257 test -n "$ac_ct_CC" && break
2266 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2267 See \`config.log' for more details." >&5
2268 echo "$as_me: error: no acceptable C compiler found in \$PATH
2269 See \`config.log' for more details." >&2;}
2270 { (exit 1); exit 1; }; }
2272 # Provide some information about the compiler.
2273 echo "$as_me:$LINENO:" \
2274 "checking for C compiler version" >&5
2275 ac_compiler
=`set X $ac_compile; echo $2`
2276 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2277 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }
2281 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2282 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }
2286 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2287 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }
2292 cat >conftest.
$ac_ext <<_ACEOF
2295 cat confdefs.h
>>conftest.
$ac_ext
2296 cat >>conftest.
$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2307 ac_clean_files_save
=$ac_clean_files
2308 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2309 # Try to create an executable without -o first, disregard a.out.
2310 # It will help us diagnose broken compilers, and finding out an intuition
2312 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2313 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2314 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2315 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2316 (eval $ac_link_default) 2>&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; then
2320 # Find the output, starting from the most likely. This scheme is
2321 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2324 # Be careful to initialize this variable, since it used to be cached.
2325 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2327 # b.out is created by i960 compilers.
2328 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2330 test -f "$ac_file" ||
continue
2332 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2335 # This is the source file.
2338 # We found the default executable, but exeext='' is most
2342 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2343 # FIXME: I believe we export ac_cv_exeext for Libtool,
2344 # but it would be cool to find out if it's true. Does anybody
2345 # maintain Libtool? --akim.
2353 echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.
$ac_ext >&5
2356 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2357 See \`config.log' for more details." >&5
2358 echo "$as_me: error: C compiler cannot create executables
2359 See \`config.log' for more details." >&2;}
2360 { (exit 77); exit 77; }; }
2363 ac_exeext
=$ac_cv_exeext
2364 echo "$as_me:$LINENO: result: $ac_file" >&5
2365 echo "${ECHO_T}$ac_file" >&6
2367 # Check the compiler produces executables we can run. If not, either
2368 # the compiler is broken, or we cross compile.
2369 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2370 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2371 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2372 # If not cross compiling, check that we can run a simple program.
2373 if test "$cross_compiling" != yes; then
2374 if { ac_try
='./$ac_file'
2375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }; }; then
2382 if test "$cross_compiling" = maybe
; then
2385 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2386 If you meant to cross compile, use \`--host'.
2387 See \`config.log' for more details." >&5
2388 echo "$as_me: error: cannot run C compiled programs.
2389 If you meant to cross compile, use \`--host'.
2390 See \`config.log' for more details." >&2;}
2391 { (exit 1); exit 1; }; }
2395 echo "$as_me:$LINENO: result: yes" >&5
2396 echo "${ECHO_T}yes" >&6
2398 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2399 ac_clean_files
=$ac_clean_files_save
2400 # Check the compiler produces executables we can run. If not, either
2401 # the compiler is broken, or we cross compile.
2402 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2403 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2404 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2405 echo "${ECHO_T}$cross_compiling" >&6
2407 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2408 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2410 (eval $ac_link) 2>&5
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; then
2414 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2415 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2416 # work properly (i.e., refer to `conftest.exe'), while it won't with
2418 for ac_file
in conftest.exe conftest conftest.
*; do
2419 test -f "$ac_file" ||
continue
2421 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2422 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2429 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2430 See \`config.log' for more details." >&5
2431 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2432 See \`config.log' for more details." >&2;}
2433 { (exit 1); exit 1; }; }
2436 rm -f conftest
$ac_cv_exeext
2437 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2438 echo "${ECHO_T}$ac_cv_exeext" >&6
2440 rm -f conftest.
$ac_ext
2441 EXEEXT
=$ac_cv_exeext
2443 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2444 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2445 if test "${ac_cv_objext+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 cat >conftest.
$ac_ext <<_ACEOF
2451 cat confdefs.h
>>conftest.
$ac_ext
2452 cat >>conftest.
$ac_ext <<_ACEOF
2453 /* end confdefs.h. */
2463 rm -f conftest.o conftest.obj
2464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2465 (eval $ac_compile) 2>&5
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; then
2469 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2471 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2472 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2477 echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.
$ac_ext >&5
2480 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2481 See \`config.log' for more details." >&5
2482 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2483 See \`config.log' for more details." >&2;}
2484 { (exit 1); exit 1; }; }
2487 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2489 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2490 echo "${ECHO_T}$ac_cv_objext" >&6
2491 OBJEXT
=$ac_cv_objext
2493 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2494 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2495 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 cat >conftest.
$ac_ext <<_ACEOF
2501 cat confdefs.h
>>conftest.
$ac_ext
2502 cat >>conftest.
$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2516 rm -f conftest.
$ac_objext
2517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2518 (eval $ac_compile) 2>conftest.er1
2520 grep -v '^ *+' conftest.er1
>conftest.err
2522 cat conftest.err
>&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); } &&
2525 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; } &&
2531 { ac_try
='test -s conftest.$ac_objext'
2532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; }; then
2539 echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.
$ac_ext >&5
2544 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2545 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2548 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2549 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2550 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2551 ac_test_CFLAGS
=${CFLAGS+set}
2552 ac_save_CFLAGS
=$CFLAGS
2554 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2555 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2556 if test "${ac_cv_prog_cc_g+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 cat >conftest.
$ac_ext <<_ACEOF
2562 cat confdefs.h
>>conftest.
$ac_ext
2563 cat >>conftest.
$ac_ext <<_ACEOF
2564 /* end confdefs.h. */
2574 rm -f conftest.
$ac_objext
2575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576 (eval $ac_compile) 2>conftest.er1
2578 grep -v '^ *+' conftest.er1
>conftest.err
2580 cat conftest.err
>&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); } &&
2583 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; } &&
2589 { ac_try
='test -s conftest.$ac_objext'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; }; then
2597 echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.
$ac_ext >&5
2602 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2604 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2605 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2606 if test "$ac_test_CFLAGS" = set; then
2607 CFLAGS
=$ac_save_CFLAGS
2608 elif test $ac_cv_prog_cc_g = yes; then
2609 if test "$GCC" = yes; then
2615 if test "$GCC" = yes; then
2621 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2622 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2623 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 ac_cv_prog_cc_stdc
=no
2628 cat >conftest.
$ac_ext <<_ACEOF
2631 cat confdefs.h
>>conftest.
$ac_ext
2632 cat >>conftest.
$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2636 #include <sys/types.h>
2637 #include <sys/stat.h>
2638 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2639 struct buf { int x; };
2640 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2641 static char *e (p, i)
2647 static char *f (char * (*g) (char **, int), char **p, ...)
2652 s = g (p, va_arg (v,int));
2657 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2658 function prototypes and stuff, but not '\xHH' hex character constants.
2659 These don't provoke an error unfortunately, instead are silently treated
2660 as 'x'. The following induces an error, until -std1 is added to get
2661 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2662 array size at least. It's necessary to write '\x00'==0 to get something
2663 that's true only with -std1. */
2664 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2666 int test (int i, double x);
2667 struct s1 {int (*f) (int a);};
2668 struct s2 {int (*f) (double a);};
2669 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2675 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2680 # Don't try gcc -ansi; that turns off useful extensions and
2681 # breaks some systems' header files.
2682 # AIX -qlanglvl=ansi
2683 # Ultrix and OSF/1 -std1
2684 # HP-UX 10.20 and later -Ae
2685 # HP-UX older versions -Aa -D_HPUX_SOURCE
2686 # SVR4 -Xc -D__EXTENSIONS__
2687 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2689 CC
="$ac_save_CC $ac_arg"
2690 rm -f conftest.
$ac_objext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692 (eval $ac_compile) 2>conftest.er1
2694 grep -v '^ *+' conftest.er1
>conftest.err
2696 cat conftest.err
>&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } &&
2699 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; } &&
2705 { ac_try
='test -s conftest.$ac_objext'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; }; then
2711 ac_cv_prog_cc_stdc
=$ac_arg
2714 echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.
$ac_ext >&5
2718 rm -f conftest.err conftest.
$ac_objext
2720 rm -f conftest.
$ac_ext conftest.
$ac_objext
2725 case "x$ac_cv_prog_cc_stdc" in
2727 echo "$as_me:$LINENO: result: none needed" >&5
2728 echo "${ECHO_T}none needed" >&6 ;;
2730 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2731 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2732 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2735 # Some people use a C++ compiler to compile C. Since we use `exit',
2736 # in C++ we need to declare it. In case someone uses the same compiler
2737 # for both compiling C and C++ we need to have the C++ compiler decide
2738 # the declaration of exit, since it's the most demanding environment.
2739 cat >conftest.
$ac_ext <<_ACEOF
2744 rm -f conftest.
$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746 (eval $ac_compile) 2>conftest.er1
2748 grep -v '^ *+' conftest.er1
>conftest.err
2750 cat conftest.err
>&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; } &&
2759 { ac_try
='test -s conftest.$ac_objext'
2760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }; }; then
2765 for ac_declaration
in \
2767 'extern "C" void std::exit (int) throw (); using std::exit;' \
2768 'extern "C" void std::exit (int); using std::exit;' \
2769 'extern "C" void exit (int) throw ();' \
2770 'extern "C" void exit (int);' \
2773 cat >conftest.
$ac_ext <<_ACEOF
2776 cat confdefs.h
>>conftest.
$ac_ext
2777 cat >>conftest.
$ac_ext <<_ACEOF
2778 /* end confdefs.h. */
2789 rm -f conftest.
$ac_objext
2790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2791 (eval $ac_compile) 2>conftest.er1
2793 grep -v '^ *+' conftest.er1
>conftest.err
2795 cat conftest.err
>&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); } &&
2798 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; } &&
2804 { ac_try
='test -s conftest.$ac_objext'
2805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }; }; then
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.
$ac_ext >&5
2817 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2818 cat >conftest.
$ac_ext <<_ACEOF
2821 cat confdefs.h
>>conftest.
$ac_ext
2822 cat >>conftest.
$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2833 rm -f conftest.
$ac_objext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2835 (eval $ac_compile) 2>conftest.er1
2837 grep -v '^ *+' conftest.er1
>conftest.err
2839 cat conftest.err
>&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } &&
2842 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; } &&
2848 { ac_try
='test -s conftest.$ac_objext'
2849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; }; then
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.
$ac_ext >&5
2860 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2863 if test -n "$ac_declaration"; then
2864 echo '#ifdef __cplusplus' >>confdefs.h
2865 echo $ac_declaration >>confdefs.h
2866 echo '#endif' >>confdefs.h
2870 echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.
$ac_ext >&5
2874 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2876 ac_cpp
='$CPP $CPPFLAGS'
2877 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2878 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2879 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2880 DEPDIR
="${am__leading_dot}deps"
2882 ac_config_commands
="$ac_config_commands depfiles"
2885 am_make
=${MAKE-make}
2886 cat > confinc
<< 'END'
2891 # If we don't find an include directive, just comment out the code.
2892 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2893 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2897 # First try GNU make style include.
2898 echo "include confinc" > confmf
2899 # We grep out `Entering directory' and `Leaving directory'
2900 # messages which can occur if `w' ends up in MAKEFLAGS.
2901 # In particular we don't look at `^make:' because GNU make might
2902 # be invoked under some other name (usually "gmake"), in which
2903 # case it prints its new name instead of `make'.
2904 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2909 # Now try BSD make style include.
2910 if test "$am__include" = "#"; then
2911 echo '.include "confinc"' > confmf
2912 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2913 am__include
=.include
2920 echo "$as_me:$LINENO: result: $_am_result" >&5
2921 echo "${ECHO_T}$_am_result" >&6
2922 rm -f confinc confmf
2924 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2925 if test "${enable_dependency_tracking+set}" = set; then
2926 enableval
="$enable_dependency_tracking"
2929 if test "x$enable_dependency_tracking" != xno
; then
2930 am_depcomp
="$ac_aux_dir/depcomp"
2935 if test "x$enable_dependency_tracking" != xno; then
2946 depcc
="$CC" am_compiler_list
=
2948 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2949 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2950 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2953 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2954 # We make a subdir and do the tests there. Otherwise we can end up
2955 # making bogus files that we don't know about and never remove. For
2956 # instance it was reported that on HP-UX the gcc test will end up
2957 # making a dummy file named `D' -- because `-MD' means `put the output
2960 # Copy depcomp to subdir because otherwise we won't find it if we're
2961 # using a relative directory.
2962 cp "$am_depcomp" conftest.dir
2964 # We will build objects and dependencies in a subdirectory because
2965 # it helps to detect inapplicable dependency modes. For instance
2966 # both Tru64's cc and ICC support -MD to output dependencies as a
2967 # side effect of compilation, but ICC will put the dependencies in
2968 # the current directory while Tru64 will put them in the object
2972 am_cv_CC_dependencies_compiler_type
=none
2973 if test "$am_compiler_list" = ""; then
2974 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2976 for depmode
in $am_compiler_list; do
2977 # Setup a source with many dependencies, because some compilers
2978 # like to wrap large dependency lists on column 80 (with \), and
2979 # we should not choose a depcomp mode which is confused by this.
2981 # We need to recreate these files for each test, as the compiler may
2982 # overwrite some of them when testing with obscure command lines.
2983 # This happens at least with the AIX C compiler.
2985 for i
in 1 2 3 4 5 6; do
2986 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
2987 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2988 # Solaris 8's {/usr,}/bin/sh.
2989 touch sub
/conftst
$i.h
2991 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2995 # after this tag, mechanisms are not by side-effect, so they'll
2996 # only be used when explicitly requested
2997 if test "x$enable_dependency_tracking" = xyes
; then
3005 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3006 # mode. It turns out that the SunPro C++ compiler does not properly
3007 # handle `-M -o', and we need to detect this.
3008 if depmode
=$depmode \
3009 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3010 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3011 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3012 >/dev
/null
2>conftest.err
&&
3013 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3014 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3015 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3016 # icc doesn't choke on unknown options, it will just issue warnings
3017 # or remarks (even with -Werror). So we grep stderr for any message
3018 # that says an option was ignored or not supported.
3019 # When given -MP, icc 7.0 and 7.1 complain thusly:
3020 # icc: Command line warning: ignoring option '-M'; no argument required
3021 # The diagnosis changed in icc 8.0:
3022 # icc: Command line remark: option '-MP' not supported
3023 if (grep 'ignoring option' conftest.err ||
3024 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3025 am_cv_CC_dependencies_compiler_type
=$depmode
3034 am_cv_CC_dependencies_compiler_type
=none
3038 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3039 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3040 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3045 test "x$enable_dependency_tracking" != xno \
3046 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3048 am__fastdepCC_FALSE
='#'
3050 am__fastdepCC_TRUE
='#'
3051 am__fastdepCC_FALSE
=
3056 ac_cpp
='$CXXCPP $CPPFLAGS'
3057 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3058 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3059 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3060 if test -n "$ac_tool_prefix"; then
3061 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
3063 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3064 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3065 echo "$as_me:$LINENO: checking for $ac_word" >&5
3066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3067 if test "${ac_cv_prog_CXX+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 if test -n "$CXX"; then
3071 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3073 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3077 test -z "$as_dir" && as_dir
=.
3078 for ac_exec_ext
in '' $ac_executable_extensions; do
3079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 if test -n "$CXX"; then
3091 echo "$as_me:$LINENO: result: $CXX" >&5
3092 echo "${ECHO_T}$CXX" >&6
3094 echo "$as_me:$LINENO: result: no" >&5
3095 echo "${ECHO_T}no" >&6
3098 test -n "$CXX" && break
3101 if test -z "$CXX"; then
3103 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
3105 # Extract the first word of "$ac_prog", so it can be a program name with args.
3106 set dummy
$ac_prog; ac_word
=$2
3107 echo "$as_me:$LINENO: checking for $ac_word" >&5
3108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3109 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 if test -n "$ac_ct_CXX"; then
3113 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3115 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3119 test -z "$as_dir" && as_dir
=.
3120 for ac_exec_ext
in '' $ac_executable_extensions; do
3121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3132 if test -n "$ac_ct_CXX"; then
3133 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3134 echo "${ECHO_T}$ac_ct_CXX" >&6
3136 echo "$as_me:$LINENO: result: no" >&5
3137 echo "${ECHO_T}no" >&6
3140 test -n "$ac_ct_CXX" && break
3142 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
3148 # Provide some information about the compiler.
3149 echo "$as_me:$LINENO:" \
3150 "checking for C++ compiler version" >&5
3151 ac_compiler
=`set X $ac_compile; echo $2`
3152 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3153 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }
3157 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3158 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }
3162 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3163 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }
3168 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3169 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3170 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 cat >conftest.
$ac_ext <<_ACEOF
3176 cat confdefs.h
>>conftest.
$ac_ext
3177 cat >>conftest.
$ac_ext <<_ACEOF
3178 /* end confdefs.h. */
3191 rm -f conftest.
$ac_objext
3192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3193 (eval $ac_compile) 2>conftest.er1
3195 grep -v '^ *+' conftest.er1
>conftest.err
3197 cat conftest.err
>&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } &&
3200 { ac_try
='test -z "$ac_cxx_werror_flag" || 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
3219 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3220 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3223 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3224 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3225 GXX
=`test $ac_compiler_gnu = yes && echo yes`
3226 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3227 ac_save_CXXFLAGS
=$CXXFLAGS
3229 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3230 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3231 if test "${ac_cv_prog_cxx_g+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 cat >conftest.
$ac_ext <<_ACEOF
3237 cat confdefs.h
>>conftest.
$ac_ext
3238 cat >>conftest.
$ac_ext <<_ACEOF
3239 /* end confdefs.h. */
3249 rm -f conftest.
$ac_objext
3250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3251 (eval $ac_compile) 2>conftest.er1
3253 grep -v '^ *+' conftest.er1
>conftest.err
3255 cat conftest.err
>&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } &&
3258 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }; } &&
3264 { ac_try
='test -s conftest.$ac_objext'
3265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; }; then
3270 ac_cv_prog_cxx_g
=yes
3272 echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.
$ac_ext >&5
3277 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3279 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3280 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3281 if test "$ac_test_CXXFLAGS" = set; then
3282 CXXFLAGS
=$ac_save_CXXFLAGS
3283 elif test $ac_cv_prog_cxx_g = yes; then
3284 if test "$GXX" = yes; then
3290 if test "$GXX" = yes; then
3296 for ac_declaration
in \
3298 'extern "C" void std::exit (int) throw (); using std::exit;' \
3299 'extern "C" void std::exit (int); using std::exit;' \
3300 'extern "C" void exit (int) throw ();' \
3301 'extern "C" void exit (int);' \
3304 cat >conftest.
$ac_ext <<_ACEOF
3307 cat confdefs.h
>>conftest.
$ac_ext
3308 cat >>conftest.
$ac_ext <<_ACEOF
3309 /* end confdefs.h. */
3320 rm -f conftest.
$ac_objext
3321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3322 (eval $ac_compile) 2>conftest.er1
3324 grep -v '^ *+' conftest.er1
>conftest.err
3326 cat conftest.err
>&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } &&
3329 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); }; } &&
3335 { ac_try
='test -s conftest.$ac_objext'
3336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; }; then
3343 echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.
$ac_ext >&5
3348 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3349 cat >conftest.
$ac_ext <<_ACEOF
3352 cat confdefs.h
>>conftest.
$ac_ext
3353 cat >>conftest.
$ac_ext <<_ACEOF
3354 /* end confdefs.h. */
3364 rm -f conftest.
$ac_objext
3365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3366 (eval $ac_compile) 2>conftest.er1
3368 grep -v '^ *+' conftest.er1
>conftest.err
3370 cat conftest.err
>&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } &&
3373 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; } &&
3379 { ac_try
='test -s conftest.$ac_objext'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; }; then
3387 echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.
$ac_ext >&5
3391 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3394 if test -n "$ac_declaration"; then
3395 echo '#ifdef __cplusplus' >>confdefs.h
3396 echo $ac_declaration >>confdefs.h
3397 echo '#endif' >>confdefs.h
3401 ac_cpp
='$CPP $CPPFLAGS'
3402 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3406 depcc
="$CXX" am_compiler_list
=
3408 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3409 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3410 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3414 # We make a subdir and do the tests there. Otherwise we can end up
3415 # making bogus files that we don't know about and never remove. For
3416 # instance it was reported that on HP-UX the gcc test will end up
3417 # making a dummy file named `D' -- because `-MD' means `put the output
3420 # Copy depcomp to subdir because otherwise we won't find it if we're
3421 # using a relative directory.
3422 cp "$am_depcomp" conftest.dir
3424 # We will build objects and dependencies in a subdirectory because
3425 # it helps to detect inapplicable dependency modes. For instance
3426 # both Tru64's cc and ICC support -MD to output dependencies as a
3427 # side effect of compilation, but ICC will put the dependencies in
3428 # the current directory while Tru64 will put them in the object
3432 am_cv_CXX_dependencies_compiler_type
=none
3433 if test "$am_compiler_list" = ""; then
3434 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3436 for depmode
in $am_compiler_list; do
3437 # Setup a source with many dependencies, because some compilers
3438 # like to wrap large dependency lists on column 80 (with \), and
3439 # we should not choose a depcomp mode which is confused by this.
3441 # We need to recreate these files for each test, as the compiler may
3442 # overwrite some of them when testing with obscure command lines.
3443 # This happens at least with the AIX C compiler.
3445 for i
in 1 2 3 4 5 6; do
3446 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3447 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3448 # Solaris 8's {/usr,}/bin/sh.
3449 touch sub
/conftst
$i.h
3451 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3455 # after this tag, mechanisms are not by side-effect, so they'll
3456 # only be used when explicitly requested
3457 if test "x$enable_dependency_tracking" = xyes
; then
3465 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3466 # mode. It turns out that the SunPro C++ compiler does not properly
3467 # handle `-M -o', and we need to detect this.
3468 if depmode
=$depmode \
3469 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3470 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3471 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3472 >/dev
/null
2>conftest.err
&&
3473 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3474 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3475 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3476 # icc doesn't choke on unknown options, it will just issue warnings
3477 # or remarks (even with -Werror). So we grep stderr for any message
3478 # that says an option was ignored or not supported.
3479 # When given -MP, icc 7.0 and 7.1 complain thusly:
3480 # icc: Command line warning: ignoring option '-M'; no argument required
3481 # The diagnosis changed in icc 8.0:
3482 # icc: Command line remark: option '-MP' not supported
3483 if (grep 'ignoring option' conftest.err ||
3484 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3485 am_cv_CXX_dependencies_compiler_type
=$depmode
3494 am_cv_CXX_dependencies_compiler_type
=none
3498 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3499 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3500 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
3505 test "x$enable_dependency_tracking" != xno \
3506 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
3507 am__fastdepCXX_TRUE
=
3508 am__fastdepCXX_FALSE
='#'
3510 am__fastdepCXX_TRUE
='#'
3511 am__fastdepCXX_FALSE
=
3515 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3516 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3517 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
3518 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3521 cat >conftest.
make <<\_ACEOF
3523 @
echo 'ac_maketemp="$(MAKE)"'
3525 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3526 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3527 if test -n "$ac_maketemp"; then
3528 eval ac_cv_prog_make_
${ac_make}_set
=yes
3530 eval ac_cv_prog_make_
${ac_make}_set
=no
3534 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3535 echo "$as_me:$LINENO: result: yes" >&5
3536 echo "${ECHO_T}yes" >&6
3539 echo "$as_me:$LINENO: result: no" >&5
3540 echo "${ECHO_T}no" >&6
3541 SET_MAKE
="MAKE=${MAKE-make}"
3544 # Check whether --enable-shared or --disable-shared was given.
3545 if test "${enable_shared+set}" = set; then
3546 enableval
="$enable_shared"
3547 p
=${PACKAGE-default}
3549 yes) enable_shared
=yes ;;
3550 no
) enable_shared
=no
;;
3553 # Look at the argument we got. We use all the common list separators.
3554 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3555 for pkg
in $enableval; do
3557 if test "X$pkg" = "X$p"; then
3568 # Check whether --enable-static or --disable-static was given.
3569 if test "${enable_static+set}" = set; then
3570 enableval
="$enable_static"
3571 p
=${PACKAGE-default}
3573 yes) enable_static
=yes ;;
3574 no
) enable_static
=no
;;
3577 # Look at the argument we got. We use all the common list separators.
3578 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3579 for pkg
in $enableval; do
3581 if test "X$pkg" = "X$p"; then
3592 # Check whether --enable-fast-install or --disable-fast-install was given.
3593 if test "${enable_fast_install+set}" = set; then
3594 enableval
="$enable_fast_install"
3595 p
=${PACKAGE-default}
3597 yes) enable_fast_install
=yes ;;
3598 no
) enable_fast_install
=no
;;
3600 enable_fast_install
=no
3601 # Look at the argument we got. We use all the common list separators.
3602 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3603 for pkg
in $enableval; do
3605 if test "X$pkg" = "X$p"; then
3606 enable_fast_install
=yes
3613 enable_fast_install
=yes
3616 # Make sure we can run config.sub.
3617 $ac_config_sub sun4
>/dev
/null
2>&1 ||
3618 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3619 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3620 { (exit 1); exit 1; }; }
3622 echo "$as_me:$LINENO: checking build system type" >&5
3623 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3624 if test "${ac_cv_build+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 ac_cv_build_alias
=$build_alias
3628 test -z "$ac_cv_build_alias" &&
3629 ac_cv_build_alias
=`$ac_config_guess`
3630 test -z "$ac_cv_build_alias" &&
3631 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3632 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3633 { (exit 1); exit 1; }; }
3634 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
3635 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3636 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3637 { (exit 1); exit 1; }; }
3640 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3641 echo "${ECHO_T}$ac_cv_build" >&6
3643 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3644 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3645 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3648 echo "$as_me:$LINENO: checking host system type" >&5
3649 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3650 if test "${ac_cv_host+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3653 ac_cv_host_alias
=$host_alias
3654 test -z "$ac_cv_host_alias" &&
3655 ac_cv_host_alias
=$ac_cv_build_alias
3656 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
3657 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3658 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3659 { (exit 1); exit 1; }; }
3662 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3663 echo "${ECHO_T}$ac_cv_host" >&6
3665 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3666 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3667 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3670 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3671 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3672 if test "${lt_cv_path_SED+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 # Loop through the user's path and test for sed and gsed.
3676 # Then use that list of sed's as ones to test for truncation.
3677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3681 test -z "$as_dir" && as_dir
=.
3682 for lt_ac_prog
in sed gsed
; do
3683 for ac_exec_ext
in '' $ac_executable_extensions; do
3684 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3685 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3692 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3693 # along with /bin/sed that truncates output.
3694 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
3695 test ! -f $lt_ac_sed && break
3696 cat /dev
/null
> conftest.
in
3698 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
3699 # Check for GNU sed and select it if it is found.
3700 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
3701 lt_cv_path_SED
=$lt_ac_sed
3705 cat conftest.
in conftest.
in >conftest.tmp
3706 mv conftest.tmp conftest.
in
3707 cp conftest.
in conftest.
nl
3709 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
3710 cmp -s conftest.out conftest.
nl ||
break
3711 # 10000 chars as input seems more than enough
3712 test $lt_ac_count -gt 10 && break
3713 lt_ac_count
=`expr $lt_ac_count + 1`
3714 if test $lt_ac_count -gt $lt_ac_max; then
3715 lt_ac_max
=$lt_ac_count
3716 lt_cv_path_SED
=$lt_ac_sed
3724 echo "$as_me:$LINENO: result: $SED" >&5
3725 echo "${ECHO_T}$SED" >&6
3727 echo "$as_me:$LINENO: checking for egrep" >&5
3728 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3729 if test "${ac_cv_prog_egrep+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3732 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3733 then ac_cv_prog_egrep
='grep -E'
3734 else ac_cv_prog_egrep
='egrep'
3737 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3738 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3739 EGREP
=$ac_cv_prog_egrep
3743 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3744 if test "${with_gnu_ld+set}" = set; then
3745 withval
="$with_gnu_ld"
3746 test "$withval" = no || with_gnu_ld
=yes
3751 if test "$GCC" = yes; then
3752 # Check if gcc -print-prog-name=ld gives a path.
3753 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3754 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3757 # gcc leaves a trailing carriage return which upsets mingw
3758 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3760 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
3763 # Accept absolute paths.
3765 re_direlt
='/[^/][^/]*/\.\./'
3766 # Canonicalize the pathname of ld
3767 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
3768 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
3769 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3771 test -z "$LD" && LD
="$ac_prog"
3774 # If it fails, then pretend we aren't using GCC.
3778 # If it is relative, then search for the first ld in PATH.
3782 elif test "$with_gnu_ld" = yes; then
3783 echo "$as_me:$LINENO: checking for GNU ld" >&5
3784 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3786 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3787 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3789 if test "${lt_cv_path_LD+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 if test -z "$LD"; then
3793 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3794 for ac_dir
in $PATH; do
3796 test -z "$ac_dir" && ac_dir
=.
3797 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
3798 lt_cv_path_LD
="$ac_dir/$ac_prog"
3799 # Check to see if the program is GNU ld. I'd rather use --version,
3800 # but apparently some GNU ld's only accept -v.
3801 # Break only if it was the GNU/non-GNU ld that we prefer.
3802 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3803 *GNU
* |
*'with BFD'*)
3804 test "$with_gnu_ld" != no
&& break
3807 test "$with_gnu_ld" != yes && break
3814 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
3819 if test -n "$LD"; then
3820 echo "$as_me:$LINENO: result: $LD" >&5
3821 echo "${ECHO_T}$LD" >&6
3823 echo "$as_me:$LINENO: result: no" >&5
3824 echo "${ECHO_T}no" >&6
3826 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3827 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3828 { (exit 1); exit 1; }; }
3829 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3830 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3831 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3835 case `$LD -v 2>&1 </dev/null` in
3836 *GNU
* |
*'with BFD'*)
3837 lt_cv_prog_gnu_ld
=yes
3840 lt_cv_prog_gnu_ld
=no
3844 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3845 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3846 with_gnu_ld
=$lt_cv_prog_gnu_ld
3849 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3850 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3851 if test "${lt_cv_ld_reload_flag+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 lt_cv_ld_reload_flag
='-r'
3856 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3857 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3858 reload_flag
=$lt_cv_ld_reload_flag
3859 case $reload_flag in
3861 *) reload_flag
=" $reload_flag" ;;
3863 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
3865 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3866 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3867 if test "${lt_cv_path_NM+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 if test -n "$NM"; then
3871 # Let the user override the test.
3874 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3875 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
3877 test -z "$ac_dir" && ac_dir
=.
3878 tmp_nm
="$ac_dir/${ac_tool_prefix}nm"
3879 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
3880 # Check to see if the nm accepts a BSD-compat flag.
3881 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3882 # nm: unknown option "B" ignored
3883 # Tru64's nm complains that /dev/null is an invalid object file
3884 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3885 */dev
/null
* |
*'Invalid file or object type'*)
3886 lt_cv_path_NM
="$tmp_nm -B"
3890 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3892 lt_cv_path_NM
="$tmp_nm -p"
3896 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3897 continue # so that we can try to find one that supports BSD flags
3904 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
3907 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3908 echo "${ECHO_T}$lt_cv_path_NM" >&6
3911 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3912 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3914 if test "$LN_S" = "ln -s"; then
3915 echo "$as_me:$LINENO: result: yes" >&5
3916 echo "${ECHO_T}yes" >&6
3918 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3919 echo "${ECHO_T}no, using $LN_S" >&6
3922 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3923 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3924 if test "${lt_cv_deplibs_check_method+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 lt_cv_file_magic_cmd
='$MAGIC_CMD'
3928 lt_cv_file_magic_test_file
=
3929 lt_cv_deplibs_check_method
='unknown'
3930 # Need to set the preceding variable on all platforms that support
3931 # interlibrary dependencies.
3932 # 'none' -- dependencies not supported.
3933 # `unknown' -- same as none, but documents that we really don't know.
3934 # 'pass_all' -- all dependencies passed with no checks.
3935 # 'test_compile' -- check by making test program.
3936 # 'file_magic [[regex]]' -- check by looking for files in library path
3937 # which responds to the $file_magic_cmd with a given extended regex.
3938 # If you have `file' or equivalent on your system and you're not sure
3939 # whether `pass_all' will *always* work, you probably want this one.
3943 lt_cv_deplibs_check_method
=pass_all
3947 lt_cv_deplibs_check_method
=pass_all
3951 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3952 lt_cv_file_magic_cmd
='/usr/bin/file -L'
3953 lt_cv_file_magic_test_file
=/shlib
/libc.so
3957 # func_win32_libid is a shell function defined in ltmain.sh
3958 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
3959 lt_cv_file_magic_cmd
='func_win32_libid'
3963 # Base MSYS/MinGW do not provide the 'file' command needed by
3964 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3965 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
3966 lt_cv_file_magic_cmd
='$OBJDUMP -f'
3969 darwin
* | rhapsody
*)
3970 lt_cv_deplibs_check_method
=pass_all
3973 freebsd
* | kfreebsd
*-gnu)
3974 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
3977 # Not sure whether the presence of OpenBSD here was a mistake.
3978 # Let's accept both of them until this is cleared up.
3979 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3980 lt_cv_file_magic_cmd
=/usr
/bin
/file
3981 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
3985 lt_cv_deplibs_check_method
=pass_all
3990 lt_cv_deplibs_check_method
=pass_all
3993 hpux10.20
* | hpux11
*)
3994 lt_cv_file_magic_cmd
=/usr
/bin
/file
3997 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3998 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
4001 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]'
4002 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
4005 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4006 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
4011 irix5
* | irix6
* | nonstopux
*)
4013 *-32|
*"-32 ") libmagic
=32-bit;;
4014 *-n32|
*"-n32 ") libmagic
=N32
;;
4015 *-64|
*"-64 ") libmagic
=64-bit;;
4016 *) libmagic
=never-match
;;
4018 lt_cv_deplibs_check_method
=pass_all
4021 # This must be Linux ELF.
4023 lt_cv_deplibs_check_method
=pass_all
4026 netbsd
* | netbsdelf
*-gnu | knetbsd
*-gnu)
4027 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4028 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4030 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4035 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4036 lt_cv_file_magic_cmd
=/usr
/bin
/file
4037 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
4041 lt_cv_deplibs_check_method
=unknown
4045 lt_cv_file_magic_cmd
=/usr
/bin
/file
4046 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
4047 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4048 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4050 lt_cv_deplibs_check_method
='file_magic OpenBSD.* shared library'
4054 osf3
* | osf4
* | osf5
*)
4055 lt_cv_deplibs_check_method
=pass_all
4059 lt_cv_deplibs_check_method
=pass_all
4063 lt_cv_deplibs_check_method
=pass_all
4066 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
4067 case $host_vendor in
4069 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]'
4070 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
4073 lt_cv_deplibs_check_method
=pass_all
4076 lt_cv_file_magic_cmd
='/bin/file'
4077 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4080 lt_cv_file_magic_cmd
='/bin/file'
4081 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4082 lt_cv_file_magic_test_file
=/lib
/libc.so
4085 lt_cv_deplibs_check_method
=pass_all
4090 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
* | sysv4
*uw2
*)
4091 lt_cv_deplibs_check_method
=pass_all
4096 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4097 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4098 file_magic_cmd
=$lt_cv_file_magic_cmd
4099 deplibs_check_method
=$lt_cv_deplibs_check_method
4100 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
4105 # If no C compiler was specified, use CC.
4108 # Allow CC to be a program name with arguments.
4112 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4113 if test "${enable_libtool_lock+set}" = set; then
4114 enableval
="$enable_libtool_lock"
4117 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
4119 # Some flags need to be propagated to the compiler or linker for good
4123 # Find out which ABI we are using.
4124 echo 'int i;' > conftest.
$ac_ext
4125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4126 (eval $ac_compile) 2>&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; then
4130 case `/usr/bin/file conftest.$ac_objext` in
4142 # Find out which ABI we are using.
4143 echo '#line 4143 "configure"' > conftest.
$ac_ext
4144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4145 (eval $ac_compile) 2>&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; then
4149 if test "$lt_cv_prog_gnu_ld" = yes; then
4150 case `/usr/bin/file conftest.$ac_objext` in
4152 LD
="${LD-ld} -melf32bsmip"
4155 LD
="${LD-ld} -melf32bmipn32"
4158 LD
="${LD-ld} -melf64bmip"
4162 case `/usr/bin/file conftest.$ac_objext` in
4178 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
4179 # Find out which ABI we are using.
4180 echo 'int i;' > conftest.
$ac_ext
4181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4182 (eval $ac_compile) 2>&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; then
4186 case "`/usr/bin/file conftest.o`" in
4190 LD
="${LD-ld} -m elf_i386"
4192 ppc64-
*linux
*|powerpc64-
*linux
*)
4193 LD
="${LD-ld} -m elf32ppclinux"
4196 LD
="${LD-ld} -m elf_s390"
4199 LD
="${LD-ld} -m elf32_sparc"
4206 LD
="${LD-ld} -m elf_x86_64"
4208 ppc
*-*linux
*|powerpc
*-*linux
*)
4209 LD
="${LD-ld} -m elf64ppc"
4212 LD
="${LD-ld} -m elf64_s390"
4215 LD
="${LD-ld} -m elf64_sparc"
4225 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4226 SAVE_CFLAGS
="$CFLAGS"
4227 CFLAGS
="$CFLAGS -belf"
4228 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4229 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4230 if test "${lt_cv_cc_needs_belf+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 ac_cpp
='$CPP $CPPFLAGS'
4235 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4236 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4237 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4239 cat >conftest.
$ac_ext <<_ACEOF
4242 cat confdefs.h
>>conftest.
$ac_ext
4243 cat >>conftest.
$ac_ext <<_ACEOF
4244 /* end confdefs.h. */
4254 rm -f conftest.
$ac_objext conftest
$ac_exeext
4255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4256 (eval $ac_link) 2>conftest.er1
4258 grep -v '^ *+' conftest.er1
>conftest.err
4260 cat conftest.err
>&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } &&
4263 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; } &&
4269 { ac_try
='test -s conftest$ac_exeext'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 lt_cv_cc_needs_belf
=yes
4277 echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.
$ac_ext >&5
4280 lt_cv_cc_needs_belf
=no
4282 rm -f conftest.err conftest.
$ac_objext \
4283 conftest
$ac_exeext conftest.
$ac_ext
4285 ac_cpp
='$CPP $CPPFLAGS'
4286 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4291 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4292 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4293 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
4294 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4295 CFLAGS
="$SAVE_CFLAGS"
4301 need_locks
="$enable_libtool_lock"
4305 ac_cpp
='$CPP $CPPFLAGS'
4306 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4307 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4308 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4309 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4310 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4311 # On Suns, sometimes $CPP names a directory.
4312 if test -n "$CPP" && test -d "$CPP"; then
4315 if test -z "$CPP"; then
4316 if test "${ac_cv_prog_CPP+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 # Double quotes because CPP needs to be expanded
4320 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4323 for ac_c_preproc_warn_flag
in '' yes
4325 # Use a header file that comes with gcc, so configuring glibc
4326 # with a fresh cross-compiler works.
4327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4328 # <limits.h> exists even on freestanding compilers.
4329 # On the NeXT, cc -E runs the code through the compiler's parser,
4330 # not just through cpp. "Syntax error" is here to catch this case.
4331 cat >conftest.
$ac_ext <<_ACEOF
4334 cat confdefs.h
>>conftest.
$ac_ext
4335 cat >>conftest.
$ac_ext <<_ACEOF
4336 /* end confdefs.h. */
4338 # include <limits.h>
4340 # include <assert.h>
4344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4345 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4347 grep -v '^ *+' conftest.er1
>conftest.err
4349 cat conftest.err
>&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } >/dev
/null
; then
4352 if test -s conftest.err
; then
4353 ac_cpp_err
=$ac_c_preproc_warn_flag
4354 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4361 if test -z "$ac_cpp_err"; then
4364 echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.
$ac_ext >&5
4367 # Broken: fails on valid input.
4370 rm -f conftest.err conftest.
$ac_ext
4372 # OK, works on sane cases. Now check whether non-existent headers
4373 # can be detected and how.
4374 cat >conftest.
$ac_ext <<_ACEOF
4377 cat confdefs.h
>>conftest.
$ac_ext
4378 cat >>conftest.
$ac_ext <<_ACEOF
4379 /* end confdefs.h. */
4380 #include <ac_nonexistent.h>
4382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4383 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4385 grep -v '^ *+' conftest.er1
>conftest.err
4387 cat conftest.err
>&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } >/dev
/null
; then
4390 if test -s conftest.err
; then
4391 ac_cpp_err
=$ac_c_preproc_warn_flag
4392 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4399 if test -z "$ac_cpp_err"; then
4400 # Broken: success on invalid input.
4403 echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.
$ac_ext >&5
4406 # Passes both tests.
4410 rm -f conftest.err conftest.
$ac_ext
4413 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4414 rm -f conftest.err conftest.
$ac_ext
4415 if $ac_preproc_ok; then
4427 echo "$as_me:$LINENO: result: $CPP" >&5
4428 echo "${ECHO_T}$CPP" >&6
4430 for ac_c_preproc_warn_flag
in '' yes
4432 # Use a header file that comes with gcc, so configuring glibc
4433 # with a fresh cross-compiler works.
4434 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4435 # <limits.h> exists even on freestanding compilers.
4436 # On the NeXT, cc -E runs the code through the compiler's parser,
4437 # not just through cpp. "Syntax error" is here to catch this case.
4438 cat >conftest.
$ac_ext <<_ACEOF
4441 cat confdefs.h
>>conftest.
$ac_ext
4442 cat >>conftest.
$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4445 # include <limits.h>
4447 # include <assert.h>
4451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4452 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4454 grep -v '^ *+' conftest.er1
>conftest.err
4456 cat conftest.err
>&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } >/dev
/null
; then
4459 if test -s conftest.err
; then
4460 ac_cpp_err
=$ac_c_preproc_warn_flag
4461 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4468 if test -z "$ac_cpp_err"; then
4471 echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.
$ac_ext >&5
4474 # Broken: fails on valid input.
4477 rm -f conftest.err conftest.
$ac_ext
4479 # OK, works on sane cases. Now check whether non-existent headers
4480 # can be detected and how.
4481 cat >conftest.
$ac_ext <<_ACEOF
4484 cat confdefs.h
>>conftest.
$ac_ext
4485 cat >>conftest.
$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4487 #include <ac_nonexistent.h>
4489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4490 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4492 grep -v '^ *+' conftest.er1
>conftest.err
4494 cat conftest.err
>&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } >/dev
/null
; then
4497 if test -s conftest.err
; then
4498 ac_cpp_err
=$ac_c_preproc_warn_flag
4499 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4506 if test -z "$ac_cpp_err"; then
4507 # Broken: success on invalid input.
4510 echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.
$ac_ext >&5
4513 # Passes both tests.
4517 rm -f conftest.err conftest.
$ac_ext
4520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4521 rm -f conftest.err conftest.
$ac_ext
4522 if $ac_preproc_ok; then
4525 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4526 See \`config.log' for more details." >&5
4527 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4528 See \`config.log' for more details." >&2;}
4529 { (exit 1); exit 1; }; }
4533 ac_cpp
='$CPP $CPPFLAGS'
4534 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4539 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4540 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4541 if test "${ac_cv_header_stdc+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 cat >conftest.
$ac_ext <<_ACEOF
4547 cat confdefs.h
>>conftest.
$ac_ext
4548 cat >>conftest.
$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4563 rm -f conftest.
$ac_objext
4564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4565 (eval $ac_compile) 2>conftest.er1
4567 grep -v '^ *+' conftest.er1
>conftest.err
4569 cat conftest.err
>&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; } &&
4578 { ac_try
='test -s conftest.$ac_objext'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; }; then
4584 ac_cv_header_stdc
=yes
4586 echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.
$ac_ext >&5
4589 ac_cv_header_stdc
=no
4591 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4593 if test $ac_cv_header_stdc = yes; then
4594 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4595 cat >conftest.
$ac_ext <<_ACEOF
4598 cat confdefs.h
>>conftest.
$ac_ext
4599 cat >>conftest.
$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4605 $EGREP "memchr" >/dev
/null
2>&1; then
4608 ac_cv_header_stdc
=no
4614 if test $ac_cv_header_stdc = yes; then
4615 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4616 cat >conftest.
$ac_ext <<_ACEOF
4619 cat confdefs.h
>>conftest.
$ac_ext
4620 cat >>conftest.
$ac_ext <<_ACEOF
4621 /* end confdefs.h. */
4625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4626 $EGREP "free" >/dev
/null
2>&1; then
4629 ac_cv_header_stdc
=no
4635 if test $ac_cv_header_stdc = yes; then
4636 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4637 if test "$cross_compiling" = yes; then
4640 cat >conftest.
$ac_ext <<_ACEOF
4643 cat confdefs.h
>>conftest.
$ac_ext
4644 cat >>conftest.
$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4647 #if ((' ' & 0x0FF) == 0x020)
4648 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4649 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4651 # define ISLOWER(c) \
4652 (('a' <= (c) && (c) <= 'i') \
4653 || ('j' <= (c) && (c) <= 'r') \
4654 || ('s' <= (c) && (c) <= 'z'))
4655 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4658 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4663 for (i = 0; i < 256; i++)
4664 if (XOR (islower (i), ISLOWER (i))
4665 || toupper (i) != TOUPPER (i))
4670 rm -f conftest
$ac_exeext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4672 (eval $ac_link) 2>&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; }; then
4683 echo "$as_me: program exited with status $ac_status" >&5
4684 echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.
$ac_ext >&5
4688 ac_cv_header_stdc
=no
4690 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4694 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4695 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4696 if test $ac_cv_header_stdc = yes; then
4698 cat >>confdefs.h
<<\_ACEOF
4699 #define STDC_HEADERS 1
4704 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4714 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4715 inttypes.h stdint.h unistd.h
4717 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4718 echo "$as_me:$LINENO: checking for $ac_header" >&5
4719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 cat >conftest.
$ac_ext <<_ACEOF
4726 cat confdefs.h
>>conftest.
$ac_ext
4727 cat >>conftest.
$ac_ext <<_ACEOF
4728 /* end confdefs.h. */
4729 $ac_includes_default
4731 #include <$ac_header>
4733 rm -f conftest.
$ac_objext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735 (eval $ac_compile) 2>conftest.er1
4737 grep -v '^ *+' conftest.er1
>conftest.err
4739 cat conftest.err
>&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; } &&
4748 { ac_try
='test -s conftest.$ac_objext'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; }; then
4754 eval "$as_ac_Header=yes"
4756 echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.
$ac_ext >&5
4759 eval "$as_ac_Header=no"
4761 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4766 cat >>confdefs.h
<<_ACEOF
4767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4776 for ac_header
in dlfcn.h
4778 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4780 echo "$as_me:$LINENO: checking for $ac_header" >&5
4781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4788 # Is the header compilable?
4789 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4791 cat >conftest.
$ac_ext <<_ACEOF
4794 cat confdefs.h
>>conftest.
$ac_ext
4795 cat >>conftest.
$ac_ext <<_ACEOF
4796 /* end confdefs.h. */
4797 $ac_includes_default
4798 #include <$ac_header>
4800 rm -f conftest.
$ac_objext
4801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4802 (eval $ac_compile) 2>conftest.er1
4804 grep -v '^ *+' conftest.er1
>conftest.err
4806 cat conftest.err
>&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } &&
4809 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; } &&
4815 { ac_try
='test -s conftest.$ac_objext'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4821 ac_header_compiler
=yes
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.
$ac_ext >&5
4826 ac_header_compiler
=no
4828 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4830 echo "${ECHO_T}$ac_header_compiler" >&6
4832 # Is the header present?
4833 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4835 cat >conftest.
$ac_ext <<_ACEOF
4838 cat confdefs.h
>>conftest.
$ac_ext
4839 cat >>conftest.
$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4841 #include <$ac_header>
4843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4844 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4846 grep -v '^ *+' conftest.er1
>conftest.err
4848 cat conftest.err
>&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); } >/dev
/null
; then
4851 if test -s conftest.err
; then
4852 ac_cpp_err
=$ac_c_preproc_warn_flag
4853 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4860 if test -z "$ac_cpp_err"; then
4861 ac_header_preproc
=yes
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.
$ac_ext >&5
4866 ac_header_preproc
=no
4868 rm -f conftest.err conftest.
$ac_ext
4869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4870 echo "${ECHO_T}$ac_header_preproc" >&6
4872 # So? What about this header?
4873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4879 ac_header_preproc
=yes
4882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4889 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4896 ## ------------------------------------------------ ##
4897 ## Report this to barry-devel@lists.sourceforge.net ##
4898 ## ------------------------------------------------ ##
4901 sed "s/^/$as_me: WARNING: /" >&2
4904 echo "$as_me:$LINENO: checking for $ac_header" >&5
4905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 eval "$as_ac_Header=\$ac_header_preproc"
4911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4916 cat >>confdefs.h
<<_ACEOF
4917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4925 ac_cpp
='$CXXCPP $CPPFLAGS'
4926 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4929 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4930 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4931 if test -z "$CXXCPP"; then
4932 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 # Double quotes because CXXCPP needs to be expanded
4936 for CXXCPP
in "$CXX -E" "/lib/cpp"
4939 for ac_cxx_preproc_warn_flag
in '' yes
4941 # Use a header file that comes with gcc, so configuring glibc
4942 # with a fresh cross-compiler works.
4943 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4944 # <limits.h> exists even on freestanding compilers.
4945 # On the NeXT, cc -E runs the code through the compiler's parser,
4946 # not just through cpp. "Syntax error" is here to catch this case.
4947 cat >conftest.
$ac_ext <<_ACEOF
4950 cat confdefs.h
>>conftest.
$ac_ext
4951 cat >>conftest.
$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4954 # include <limits.h>
4956 # include <assert.h>
4960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4961 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4963 grep -v '^ *+' conftest.er1
>conftest.err
4965 cat conftest.err
>&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } >/dev
/null
; then
4968 if test -s conftest.err
; then
4969 ac_cpp_err
=$ac_cxx_preproc_warn_flag
4970 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
4977 if test -z "$ac_cpp_err"; then
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.
$ac_ext >&5
4983 # Broken: fails on valid input.
4986 rm -f conftest.err conftest.
$ac_ext
4988 # OK, works on sane cases. Now check whether non-existent headers
4989 # can be detected and how.
4990 cat >conftest.
$ac_ext <<_ACEOF
4993 cat confdefs.h
>>conftest.
$ac_ext
4994 cat >>conftest.
$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4996 #include <ac_nonexistent.h>
4998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4999 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5001 grep -v '^ *+' conftest.er1
>conftest.err
5003 cat conftest.err
>&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } >/dev
/null
; then
5006 if test -s conftest.err
; then
5007 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5008 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5015 if test -z "$ac_cpp_err"; then
5016 # Broken: success on invalid input.
5019 echo "$as_me: failed program was:" >&5
5020 sed 's/^/| /' conftest.
$ac_ext >&5
5022 # Passes both tests.
5026 rm -f conftest.err conftest.
$ac_ext
5029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5030 rm -f conftest.err conftest.
$ac_ext
5031 if $ac_preproc_ok; then
5036 ac_cv_prog_CXXCPP
=$CXXCPP
5039 CXXCPP
=$ac_cv_prog_CXXCPP
5041 ac_cv_prog_CXXCPP
=$CXXCPP
5043 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5044 echo "${ECHO_T}$CXXCPP" >&6
5046 for ac_cxx_preproc_warn_flag
in '' yes
5048 # Use a header file that comes with gcc, so configuring glibc
5049 # with a fresh cross-compiler works.
5050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5051 # <limits.h> exists even on freestanding compilers.
5052 # On the NeXT, cc -E runs the code through the compiler's parser,
5053 # not just through cpp. "Syntax error" is here to catch this case.
5054 cat >conftest.
$ac_ext <<_ACEOF
5057 cat confdefs.h
>>conftest.
$ac_ext
5058 cat >>conftest.
$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5061 # include <limits.h>
5063 # include <assert.h>
5067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5068 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5070 grep -v '^ *+' conftest.er1
>conftest.err
5072 cat conftest.err
>&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } >/dev
/null
; then
5075 if test -s conftest.err
; then
5076 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5077 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5084 if test -z "$ac_cpp_err"; then
5087 echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.
$ac_ext >&5
5090 # Broken: fails on valid input.
5093 rm -f conftest.err conftest.
$ac_ext
5095 # OK, works on sane cases. Now check whether non-existent headers
5096 # can be detected and how.
5097 cat >conftest.
$ac_ext <<_ACEOF
5100 cat confdefs.h
>>conftest.
$ac_ext
5101 cat >>conftest.
$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5103 #include <ac_nonexistent.h>
5105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5106 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5108 grep -v '^ *+' conftest.er1
>conftest.err
5110 cat conftest.err
>&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } >/dev
/null
; then
5113 if test -s conftest.err
; then
5114 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5115 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5122 if test -z "$ac_cpp_err"; then
5123 # Broken: success on invalid input.
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.
$ac_ext >&5
5129 # Passes both tests.
5133 rm -f conftest.err conftest.
$ac_ext
5136 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5137 rm -f conftest.err conftest.
$ac_ext
5138 if $ac_preproc_ok; then
5141 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5142 See \`config.log' for more details." >&5
5143 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5144 See \`config.log' for more details." >&2;}
5145 { (exit 1); exit 1; }; }
5149 ac_cpp
='$CXXCPP $CPPFLAGS'
5150 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5156 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5157 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5158 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
5159 if test -n "$ac_tool_prefix"; then
5160 for ac_prog
in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5163 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5164 echo "$as_me:$LINENO: checking for $ac_word" >&5
5165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5166 if test "${ac_cv_prog_F77+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 if test -n "$F77"; then
5170 ac_cv_prog_F77
="$F77" # Let the user override the test.
5172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5176 test -z "$as_dir" && as_dir
=.
5177 for ac_exec_ext
in '' $ac_executable_extensions; do
5178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5179 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
5180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 if test -n "$F77"; then
5190 echo "$as_me:$LINENO: result: $F77" >&5
5191 echo "${ECHO_T}$F77" >&6
5193 echo "$as_me:$LINENO: result: no" >&5
5194 echo "${ECHO_T}no" >&6
5197 test -n "$F77" && break
5200 if test -z "$F77"; then
5202 for ac_prog
in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5204 # Extract the first word of "$ac_prog", so it can be a program name with args.
5205 set dummy
$ac_prog; ac_word
=$2
5206 echo "$as_me:$LINENO: checking for $ac_word" >&5
5207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5208 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 if test -n "$ac_ct_F77"; then
5212 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
5214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5218 test -z "$as_dir" && as_dir
=.
5219 for ac_exec_ext
in '' $ac_executable_extensions; do
5220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221 ac_cv_prog_ac_ct_F77
="$ac_prog"
5222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
5231 if test -n "$ac_ct_F77"; then
5232 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5233 echo "${ECHO_T}$ac_ct_F77" >&6
5235 echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6
5239 test -n "$ac_ct_F77" && break
5246 # Provide some information about the compiler.
5247 echo "$as_me:5247:" \
5248 "checking for Fortran 77 compiler version" >&5
5249 ac_compiler
=`set X $ac_compile; echo $2`
5250 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5251 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); }
5255 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5256 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); }
5260 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5261 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }
5267 # If we don't use `.F' as extension, the preprocessor is not run on the
5268 # input file. (Note that this only needs to work for GNU compilers.)
5271 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5272 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5273 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5276 cat >conftest.
$ac_ext <<_ACEOF
5284 rm -f conftest.
$ac_objext
5285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5286 (eval $ac_compile) 2>conftest.er1
5288 grep -v '^ *+' conftest.er1
>conftest.err
5290 cat conftest.err
>&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } &&
5293 { ac_try
='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }; } &&
5299 { ac_try
='test -s conftest.$ac_objext'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; }; then
5307 echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.
$ac_ext >&5
5312 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5313 ac_cv_f77_compiler_gnu
=$ac_compiler_gnu
5316 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5317 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5319 ac_test_FFLAGS
=${FFLAGS+set}
5320 ac_save_FFLAGS
=$FFLAGS
5322 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5323 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5324 if test "${ac_cv_prog_f77_g+set}" = set; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 cat >conftest.
$ac_ext <<_ACEOF
5333 rm -f conftest.
$ac_objext
5334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5335 (eval $ac_compile) 2>conftest.er1
5337 grep -v '^ *+' conftest.er1
>conftest.err
5339 cat conftest.err
>&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } &&
5342 { ac_try
='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; } &&
5348 { ac_try
='test -s conftest.$ac_objext'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; }; then
5354 ac_cv_prog_f77_g
=yes
5356 echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.
$ac_ext >&5
5361 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5364 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5365 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5366 if test "$ac_test_FFLAGS" = set; then
5367 FFLAGS
=$ac_save_FFLAGS
5368 elif test $ac_cv_prog_f77_g = yes; then
5369 if test "x$ac_cv_f77_compiler_gnu" = xyes
; then
5375 if test "x$ac_cv_f77_compiler_gnu" = xyes
; then
5382 G77
=`test $ac_compiler_gnu = yes && echo yes`
5384 ac_cpp
='$CPP $CPPFLAGS'
5385 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5391 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5393 # find the maximum length of command line arguments
5394 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5395 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5396 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 # On DJGPP, this test can blow up pretty badly due to problems in libc
5405 # (any single argument exceeding 2000 bytes causes a buffer overrun
5406 # during glob expansion). Even if it were fixed, the result of this
5407 # check would be larger than it should be.
5408 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5412 # Under GNU Hurd, this test is not required because there is
5413 # no limit to the length of command line arguments.
5414 # Libtool will interpret -1 as no limit whatsoever
5415 lt_cv_sys_max_cmd_len
=-1;
5419 # On Win9x/ME, this test blows up -- it succeeds, but takes
5420 # about 5 minutes as the teststring grows exponentially.
5421 # Worse, since 9x/ME are not pre-emptively multitasking,
5422 # you end up with a "frozen" computer, even though with patience
5423 # the test eventually succeeds (with a max line length of 256k).
5424 # Instead, let's just punt: use the minimum linelength reported by
5425 # all of the supported platforms: 8192 (on NT/2K/XP).
5426 lt_cv_sys_max_cmd_len
=8192;
5430 # On AmigaOS with pdksh, this test takes hours, literally.
5431 # So we just punt and use a minimum line length of 8192.
5432 lt_cv_sys_max_cmd_len
=8192;
5436 # If test is not a shell built-in, we'll probably end up computing a
5437 # maximum length that is only half of the actual maximum length, but
5439 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5440 = "XX$teststring") >/dev
/null
2>&1 &&
5441 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
5442 lt_cv_sys_max_cmd_len
=$new_result &&
5443 test $i != 17 # 1/2 MB should be enough
5446 teststring
=$teststring$teststring
5449 # Add a significant safety factor because C++ compilers can tack on massive
5450 # amounts of additional arguments before passing them to the linker.
5451 # It appears as though 1/2 is a usable value.
5452 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5458 if test -n $lt_cv_sys_max_cmd_len ; then
5459 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5460 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5462 echo "$as_me:$LINENO: result: none" >&5
5463 echo "${ECHO_T}none" >&6
5469 # Check for command to grab the raw symbol name followed by C symbol from nm.
5470 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5471 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5472 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 # These are sane defaults that work on at least a few old systems.
5477 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5479 # Character class describing NM global symbol codes.
5480 symcode
='[BCDEGRST]'
5482 # Regexp to match symbols that can be accessed directly from C.
5483 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
5485 # Transform the above into a raw symbol and a C symbol.
5486 symxfrm
='\1 \2\3 \3'
5488 # Transform an extracted symbol line into a proper C declaration
5489 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5491 # Transform an extracted symbol line into symbol name and symbol address
5492 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'"
5494 # Define system-specific variables.
5499 cygwin
* | mingw
* | pw32
*)
5500 symcode
='[ABCDGISTW]'
5502 hpux
*) # Its linker distinguishes data from code symbols
5503 if test "$host_cpu" = ia64
; then
5504 symcode
='[ABCDEGRST]'
5506 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5507 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'"
5510 symcode
='[BCDEGRST]'
5513 symcode
='[BCDEGQRST]'
5523 # Handle CRLF in mingw tool chain
5527 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5531 # If we're using GNU nm, then use its standard symbol codes.
5532 case `$NM -V 2>&1` in
5533 *GNU
* |
*'with BFD'*)
5534 symcode
='[ABCDGIRSTW]' ;;
5537 # Try without a prefix undercore, then with it.
5538 for ac_symprfx
in "" "_"; do
5540 # Write the raw and C identifiers.
5541 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5543 # Check to see that the pipe works correctly.
5547 cat > conftest.
$ac_ext <<EOF
5552 void nm_test_func(){}
5556 int main(){nm_test_var='a';nm_test_func();return(0);}
5559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5560 (eval $ac_compile) 2>&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); }; then
5564 # Now try to grab the symbols.
5566 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5567 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } && test -s "$nlist"; then
5571 # Try sorting and uniquifying the output.
5572 if sort "$nlist" |
uniq > "$nlist"T
; then
5573 mv -f "$nlist"T
"$nlist"
5578 # Make sure that we snagged all the symbols we need.
5579 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
5580 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
5581 cat <<EOF > conftest.$ac_ext
5587 # Now generate the symbol file.
5588 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5590 cat <<EOF >> conftest.$ac_ext
5591 #if defined (__STDC__) && __STDC__
5592 # define lt_ptr_t void *
5594 # define lt_ptr_t char *
5598 /* The mapping between symbol names and symbols. */
5603 lt_preloaded_symbols[] =
5606 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
5607 cat <<\EOF
>> conftest.
$ac_ext
5615 # Now try linking the two files.
5616 mv conftest.
$ac_objext conftstm.
$ac_objext
5617 lt_save_LIBS
="$LIBS"
5618 lt_save_CFLAGS
="$CFLAGS"
5619 LIBS
="conftstm.$ac_objext"
5620 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5622 (eval $ac_link) 2>&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
5628 LIBS
="$lt_save_LIBS"
5629 CFLAGS
="$lt_save_CFLAGS"
5631 echo "cannot find nm_test_func in $nlist" >&5
5634 echo "cannot find nm_test_var in $nlist" >&5
5637 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5640 echo "$progname: failed program was:" >&5
5641 cat conftest.
$ac_ext >&5
5643 rm -f conftest
* conftst
*
5645 # Do not use the global_symbol_pipe unless it works.
5646 if test "$pipe_works" = yes; then
5649 lt_cv_sys_global_symbol_pipe
=
5655 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5656 lt_cv_sys_global_symbol_to_cdecl
=
5658 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5659 echo "$as_me:$LINENO: result: failed" >&5
5660 echo "${ECHO_T}failed" >&6
5662 echo "$as_me:$LINENO: result: ok" >&5
5663 echo "${ECHO_T}ok" >&6
5666 echo "$as_me:$LINENO: checking for objdir" >&5
5667 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5668 if test "${lt_cv_objdir+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5671 rm -f .libs
2>/dev
/null
5672 mkdir .libs
2>/dev
/null
5673 if test -d .libs
; then
5676 # MS-DOS does not allow filenames that begin with a dot.
5679 rmdir .libs
2>/dev
/null
5681 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5682 echo "${ECHO_T}$lt_cv_objdir" >&6
5683 objdir
=$lt_cv_objdir
5691 # AIX sometimes has problems with the GCC collect2 program. For some
5692 # reason, if we set the COLLECT_NAMES environment variable, the problems
5693 # vanish in a puff of smoke.
5694 if test "X${COLLECT_NAMES+set}" != Xset
; then
5696 export COLLECT_NAMES
5701 # Sed substitution that helps us do robust quoting. It backslashifies
5702 # metacharacters that are still active within double-quoted strings.
5703 Xsed
='sed -e s/^X//'
5704 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
5706 # Same as above, but do not quote variable references.
5707 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
5709 # Sed substitution to delay expansion of an escaped shell variable in a
5710 # double_quote_subst'ed string.
5711 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5713 # Sed substitution to avoid accidental globbing in evaled expressions
5714 no_glob_subst
='s/\*/\\\*/g'
5720 default_ofile
=libtool
5721 can_build_shared
=yes
5723 # All known linkers require a `.a' archive for static linking (except M$VC,
5724 # which needs '.lib').
5726 ltmain
="$ac_aux_dir/ltmain.sh"
5727 ofile
="$default_ofile"
5728 with_gnu_ld
="$lt_cv_prog_gnu_ld"
5730 if test -n "$ac_tool_prefix"; then
5731 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5732 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5733 echo "$as_me:$LINENO: checking for $ac_word" >&5
5734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5735 if test "${ac_cv_prog_AR+set}" = set; then
5736 echo $ECHO_N "(cached) $ECHO_C" >&6
5738 if test -n "$AR"; then
5739 ac_cv_prog_AR
="$AR" # Let the user override the test.
5741 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5745 test -z "$as_dir" && as_dir
=.
5746 for ac_exec_ext
in '' $ac_executable_extensions; do
5747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5748 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 if test -n "$AR"; then
5759 echo "$as_me:$LINENO: result: $AR" >&5
5760 echo "${ECHO_T}$AR" >&6
5762 echo "$as_me:$LINENO: result: no" >&5
5763 echo "${ECHO_T}no" >&6
5767 if test -z "$ac_cv_prog_AR"; then
5769 # Extract the first word of "ar", so it can be a program name with args.
5770 set dummy
ar; ac_word
=$2
5771 echo "$as_me:$LINENO: checking for $ac_word" >&5
5772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5773 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5774 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 if test -n "$ac_ct_AR"; then
5777 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5779 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5783 test -z "$as_dir" && as_dir
=.
5784 for ac_exec_ext
in '' $ac_executable_extensions; do
5785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5786 ac_cv_prog_ac_ct_AR
="ar"
5787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5793 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR
="false"
5796 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5797 if test -n "$ac_ct_AR"; then
5798 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5799 echo "${ECHO_T}$ac_ct_AR" >&6
5801 echo "$as_me:$LINENO: result: no" >&5
5802 echo "${ECHO_T}no" >&6
5810 if test -n "$ac_tool_prefix"; then
5811 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5812 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5813 echo "$as_me:$LINENO: checking for $ac_word" >&5
5814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5815 if test "${ac_cv_prog_RANLIB+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 if test -n "$RANLIB"; then
5819 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5825 test -z "$as_dir" && as_dir
=.
5826 for ac_exec_ext
in '' $ac_executable_extensions; do
5827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5828 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 RANLIB
=$ac_cv_prog_RANLIB
5838 if test -n "$RANLIB"; then
5839 echo "$as_me:$LINENO: result: $RANLIB" >&5
5840 echo "${ECHO_T}$RANLIB" >&6
5842 echo "$as_me:$LINENO: result: no" >&5
5843 echo "${ECHO_T}no" >&6
5847 if test -z "$ac_cv_prog_RANLIB"; then
5848 ac_ct_RANLIB
=$RANLIB
5849 # Extract the first word of "ranlib", so it can be a program name with args.
5850 set dummy ranlib
; ac_word
=$2
5851 echo "$as_me:$LINENO: checking for $ac_word" >&5
5852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5853 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 if test -n "$ac_ct_RANLIB"; then
5857 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5863 test -z "$as_dir" && as_dir
=.
5864 for ac_exec_ext
in '' $ac_executable_extensions; do
5865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
5876 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5877 if test -n "$ac_ct_RANLIB"; then
5878 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5879 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5881 echo "$as_me:$LINENO: result: no" >&5
5882 echo "${ECHO_T}no" >&6
5885 RANLIB
=$ac_ct_RANLIB
5887 RANLIB
="$ac_cv_prog_RANLIB"
5890 if test -n "$ac_tool_prefix"; then
5891 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5892 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5893 echo "$as_me:$LINENO: checking for $ac_word" >&5
5894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5895 if test "${ac_cv_prog_STRIP+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5898 if test -n "$STRIP"; then
5899 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5905 test -z "$as_dir" && as_dir
=.
5906 for ac_exec_ext
in '' $ac_executable_extensions; do
5907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5908 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5917 STRIP
=$ac_cv_prog_STRIP
5918 if test -n "$STRIP"; then
5919 echo "$as_me:$LINENO: result: $STRIP" >&5
5920 echo "${ECHO_T}$STRIP" >&6
5922 echo "$as_me:$LINENO: result: no" >&5
5923 echo "${ECHO_T}no" >&6
5927 if test -z "$ac_cv_prog_STRIP"; then
5929 # Extract the first word of "strip", so it can be a program name with args.
5930 set dummy strip
; ac_word
=$2
5931 echo "$as_me:$LINENO: checking for $ac_word" >&5
5932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5933 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 if test -n "$ac_ct_STRIP"; then
5937 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5943 test -z "$as_dir" && as_dir
=.
5944 for ac_exec_ext
in '' $ac_executable_extensions; do
5945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5946 ac_cv_prog_ac_ct_STRIP
="strip"
5947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
5956 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5957 if test -n "$ac_ct_STRIP"; then
5958 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5959 echo "${ECHO_T}$ac_ct_STRIP" >&6
5961 echo "$as_me:$LINENO: result: no" >&5
5962 echo "${ECHO_T}no" >&6
5967 STRIP
="$ac_cv_prog_STRIP"
5972 old_CFLAGS
="$CFLAGS"
5974 # Set sane defaults for various variables
5975 test -z "$AR" && AR
=ar
5976 test -z "$AR_FLAGS" && AR_FLAGS
=cru
5977 test -z "$AS" && AS
=as
5978 test -z "$CC" && CC
=cc
5979 test -z "$LTCC" && LTCC
=$CC
5980 test -z "$DLLTOOL" && DLLTOOL
=dlltool
5981 test -z "$LD" && LD
=ld
5982 test -z "$LN_S" && LN_S
="ln -s"
5983 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
5984 test -z "$NM" && NM
=nm
5985 test -z "$SED" && SED
=sed
5986 test -z "$OBJDUMP" && OBJDUMP
=objdump
5987 test -z "$RANLIB" && RANLIB
=:
5988 test -z "$STRIP" && STRIP
=:
5989 test -z "$ac_objext" && ac_objext
=o
5991 # Determine commands to create old-style static archives.
5992 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5993 old_postinstall_cmds
='chmod 644 $oldlib'
5994 old_postuninstall_cmds
=
5996 if test -n "$RANLIB"; then
5999 old_postinstall_cmds
="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6002 old_postinstall_cmds
="\$RANLIB \$oldlib~$old_postinstall_cmds"
6005 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6008 # Only perform the check for file, if the check method requires it
6009 case $deplibs_check_method in
6011 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6012 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6013 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6014 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6022 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6023 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6024 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6025 for ac_dir
in $ac_dummy; do
6027 test -z "$ac_dir" && ac_dir
=.
6028 if test -f $ac_dir/${ac_tool_prefix}file; then
6029 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
6030 if test -n "$file_magic_test_file"; then
6031 case $deplibs_check_method in
6033 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6034 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6035 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6036 $EGREP "$file_magic_regex" > /dev
/null
; then
6041 *** Warning: the command libtool uses to detect shared libraries,
6042 *** $file_magic_cmd, produces output that libtool cannot recognize.
6043 *** The result is that libtool may fail to recognize shared libraries
6044 *** as such. This will affect the creation of libtool libraries that
6045 *** depend on shared libraries, but programs linked with such libtool
6046 *** libraries will work regardless of this problem. Nevertheless, you
6047 *** may want to report the problem to your system manager and/or to
6048 *** bug-libtool@gnu.org
6058 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6063 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6064 if test -n "$MAGIC_CMD"; then
6065 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6066 echo "${ECHO_T}$MAGIC_CMD" >&6
6068 echo "$as_me:$LINENO: result: no" >&5
6069 echo "${ECHO_T}no" >&6
6072 if test -z "$lt_cv_path_MAGIC_CMD"; then
6073 if test -n "$ac_tool_prefix"; then
6074 echo "$as_me:$LINENO: checking for file" >&5
6075 echo $ECHO_N "checking for file... $ECHO_C" >&6
6076 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6084 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6085 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6086 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6087 for ac_dir
in $ac_dummy; do
6089 test -z "$ac_dir" && ac_dir
=.
6090 if test -f $ac_dir/file; then
6091 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
6092 if test -n "$file_magic_test_file"; then
6093 case $deplibs_check_method in
6095 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6096 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6097 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6098 $EGREP "$file_magic_regex" > /dev
/null
; then
6103 *** Warning: the command libtool uses to detect shared libraries,
6104 *** $file_magic_cmd, produces output that libtool cannot recognize.
6105 *** The result is that libtool may fail to recognize shared libraries
6106 *** as such. This will affect the creation of libtool libraries that
6107 *** depend on shared libraries, but programs linked with such libtool
6108 *** libraries will work regardless of this problem. Nevertheless, you
6109 *** may want to report the problem to your system manager and/or to
6110 *** bug-libtool@gnu.org
6120 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6125 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6126 if test -n "$MAGIC_CMD"; then
6127 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6128 echo "${ECHO_T}$MAGIC_CMD" >&6
6130 echo "$as_me:$LINENO: result: no" >&5
6131 echo "${ECHO_T}no" >&6
6146 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6147 if test "${enable_libtool_lock+set}" = set; then
6148 enableval
="$enable_libtool_lock"
6151 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6154 # Check whether --with-pic or --without-pic was given.
6155 if test "${with_pic+set}" = set; then
6161 test -z "$pic_mode" && pic_mode
=default
6163 # Use C for the default configuration in the libtool script
6167 ac_cpp
='$CPP $CPPFLAGS'
6168 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6169 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6170 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6173 # Source file extension for C test sources.
6176 # Object file extension for compiled C test sources.
6180 # Code to be used in simple compile tests
6181 lt_simple_compile_test_code
="int some_variable = 0;\n"
6183 # Code to be used in simple link tests
6184 lt_simple_link_test_code
='int main(){return(0);}\n'
6187 # If no C compiler was specified, use CC.
6190 # Allow CC to be a program name with arguments.
6195 # Check for any special shared library compilation flags.
6198 if test "$GCC" = no
; then
6201 lt_prog_cc_shlib
='-belf'
6205 if test -n "$lt_prog_cc_shlib"; then
6206 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6207 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6208 if echo "$old_CC $old_CFLAGS " |
grep "[ ]$lt_prog_cc_shlib[ ]" >/dev
/null
; then :
6210 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6211 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6212 lt_cv_prog_cc_can_build_shared
=no
6218 # Check to make sure the static flag actually works.
6220 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6221 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6222 if test "${lt_prog_compiler_static_works+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 lt_prog_compiler_static_works
=no
6226 save_LDFLAGS
="$LDFLAGS"
6227 LDFLAGS
="$LDFLAGS $lt_prog_compiler_static"
6228 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
6229 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
6230 # The compiler can only warn and ignore the option if not recognized
6231 # So say no if there are warnings
6232 if test -s conftest.err
; then
6233 # Append any errors to the config.log.
6234 cat conftest.err
1>&5
6236 lt_prog_compiler_static_works
=yes
6240 LDFLAGS
="$save_LDFLAGS"
6243 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6244 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6246 if test x
"$lt_prog_compiler_static_works" = xyes
; then
6249 lt_prog_compiler_static
=
6255 lt_prog_compiler_no_builtin_flag
=
6257 if test "$GCC" = yes; then
6258 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
6261 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6262 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6263 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 lt_cv_prog_compiler_rtti_exceptions
=no
6267 ac_outfile
=conftest.
$ac_objext
6268 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6269 lt_compiler_flag
="-fno-rtti -fno-exceptions"
6270 # Insert the option either (1) after the last *FLAGS variable, or
6271 # (2) before a word containing "conftest.", or (3) at the end.
6272 # Note that $ac_compile itself does not contain backslashes and begins
6273 # with a dollar sign (not a hyphen), so the echo should work correctly.
6274 # The option is referenced via a variable to avoid confusing sed.
6275 lt_compile
=`echo "$ac_compile" | $SED \
6276 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6278 -e 's:$: $lt_compiler_flag:'`
6279 (eval echo "\"\$as_me:6279: $lt_compile\"" >&5)
6280 (eval "$lt_compile" 2>conftest.err
)
6282 cat conftest.err
>&5
6283 echo "$as_me:6283: \$? = $ac_status" >&5
6284 if (exit $ac_status) && test -s "$ac_outfile"; then
6285 # The compiler can only warn and ignore the option if not recognized
6286 # So say no if there are warnings
6287 if test ! -s conftest.err
; then
6288 lt_cv_prog_compiler_rtti_exceptions
=yes
6294 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6295 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6297 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
6298 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6305 lt_prog_compiler_wl
=
6306 lt_prog_compiler_pic
=
6307 lt_prog_compiler_static
=
6309 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6310 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6312 if test "$GCC" = yes; then
6313 lt_prog_compiler_wl
='-Wl,'
6314 lt_prog_compiler_static
='-static'
6318 # All AIX code is PIC.
6319 if test "$host_cpu" = ia64
; then
6320 # AIX 5 now supports IA64 processor
6321 lt_prog_compiler_static
='-Bstatic'
6326 # FIXME: we need at least 68020 code to build shared libraries, but
6327 # adding the `-m68020' flag to GCC prevents building anything better,
6329 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
6332 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
6333 # PIC is the default for these OSes.
6336 mingw
* | pw32
* | os2
*)
6337 # This hack is so that the source file can tell whether it is being
6338 # built for inclusion in a dll (and should export symbols for example).
6339 lt_prog_compiler_pic
='-DDLL_EXPORT'
6342 darwin
* | rhapsody
*)
6343 # PIC is the default on this platform
6344 # Common symbols not allowed in MH_DYLIB files
6345 lt_prog_compiler_pic
='-fno-common'
6349 # Just because we use GCC doesn't mean we suddenly get shared libraries
6350 # on systems that don't support them.
6351 lt_prog_compiler_can_build_shared
=no
6356 if test -d /usr
/nec
; then
6357 lt_prog_compiler_pic
=-Kconform_pic
6362 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6369 lt_prog_compiler_pic
='-fPIC'
6375 lt_prog_compiler_pic
='-fPIC'
6379 # PORTME Check for flag to pass linker flags through the system compiler.
6382 lt_prog_compiler_wl
='-Wl,'
6383 if test "$host_cpu" = ia64
; then
6384 # AIX 5 now supports IA64 processor
6385 lt_prog_compiler_static
='-Bstatic'
6387 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
6391 mingw
* | pw32
* | os2
*)
6392 # This hack is so that the source file can tell whether it is being
6393 # built for inclusion in a dll (and should export symbols for example).
6394 lt_prog_compiler_pic
='-DDLL_EXPORT'
6397 hpux9
* | hpux10
* | hpux11
*)
6398 lt_prog_compiler_wl
='-Wl,'
6399 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6406 lt_prog_compiler_pic
='+Z'
6409 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6410 lt_prog_compiler_static
='${wl}-a ${wl}archive'
6413 irix5
* | irix6
* | nonstopux
*)
6414 lt_prog_compiler_wl
='-Wl,'
6415 # PIC (with -KPIC) is the default.
6416 lt_prog_compiler_static
='-non_shared'
6420 lt_prog_compiler_pic
='-KPIC'
6421 lt_prog_compiler_static
='-Bstatic'
6427 lt_prog_compiler_wl
='-Wl,'
6428 lt_prog_compiler_pic
='-KPIC'
6429 lt_prog_compiler_static
='-static'
6432 lt_prog_compiler_wl
='-Wl,'
6433 # All Alpha code is PIC.
6434 lt_prog_compiler_static
='-non_shared'
6439 osf3
* | osf4
* | osf5
*)
6440 lt_prog_compiler_wl
='-Wl,'
6441 # All OSF/1 code is PIC.
6442 lt_prog_compiler_static
='-non_shared'
6446 lt_prog_compiler_pic
='-Kpic'
6447 lt_prog_compiler_static
='-dn'
6451 lt_prog_compiler_wl
='-Wl,'
6452 lt_prog_compiler_pic
='-KPIC'
6453 lt_prog_compiler_static
='-Bstatic'
6457 lt_prog_compiler_wl
='-Qoption ld '
6458 lt_prog_compiler_pic
='-PIC'
6459 lt_prog_compiler_static
='-Bstatic'
6462 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
6463 lt_prog_compiler_wl
='-Wl,'
6464 lt_prog_compiler_pic
='-KPIC'
6465 lt_prog_compiler_static
='-Bstatic'
6469 if test -d /usr
/nec
;then
6470 lt_prog_compiler_pic
='-Kconform_pic'
6471 lt_prog_compiler_static
='-Bstatic'
6476 lt_prog_compiler_pic
='-pic'
6477 lt_prog_compiler_static
='-Bstatic'
6481 lt_prog_compiler_can_build_shared
=no
6486 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6487 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6490 # Check to make sure the PIC flag actually works.
6492 if test -n "$lt_prog_compiler_pic"; then
6494 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6495 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6496 if test "${lt_prog_compiler_pic_works+set}" = set; then
6497 echo $ECHO_N "(cached) $ECHO_C" >&6
6499 lt_prog_compiler_pic_works
=no
6500 ac_outfile
=conftest.
$ac_objext
6501 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6502 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
6503 # Insert the option either (1) after the last *FLAGS variable, or
6504 # (2) before a word containing "conftest.", or (3) at the end.
6505 # Note that $ac_compile itself does not contain backslashes and begins
6506 # with a dollar sign (not a hyphen), so the echo should work correctly.
6507 # The option is referenced via a variable to avoid confusing sed.
6508 lt_compile
=`echo "$ac_compile" | $SED \
6509 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6511 -e 's:$: $lt_compiler_flag:'`
6512 (eval echo "\"\$as_me:6512: $lt_compile\"" >&5)
6513 (eval "$lt_compile" 2>conftest.err
)
6515 cat conftest.err
>&5
6516 echo "$as_me:6516: \$? = $ac_status" >&5
6517 if (exit $ac_status) && test -s "$ac_outfile"; then
6518 # The compiler can only warn and ignore the option if not recognized
6519 # So say no if there are warnings
6520 if test ! -s conftest.err
; then
6521 lt_prog_compiler_pic_works
=yes
6527 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6528 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6530 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
6531 case $lt_prog_compiler_pic in
6533 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
6536 lt_prog_compiler_pic
=
6537 lt_prog_compiler_can_build_shared
=no
6542 # For platforms which do not support PIC, -DPIC is meaningless:
6544 lt_prog_compiler_pic
=
6547 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
6551 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6552 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6553 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 lt_cv_prog_compiler_c_o
=no
6557 $rm -r conftest
2>/dev
/null
6561 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6563 lt_compiler_flag
="-o out/conftest2.$ac_objext"
6564 # Insert the option either (1) after the last *FLAGS variable, or
6565 # (2) before a word containing "conftest.", or (3) at the end.
6566 # Note that $ac_compile itself does not contain backslashes and begins
6567 # with a dollar sign (not a hyphen), so the echo should work correctly.
6568 lt_compile
=`echo "$ac_compile" | $SED \
6569 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6570 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6571 -e 's:$: $lt_compiler_flag:'`
6572 (eval echo "\"\$as_me:6572: $lt_compile\"" >&5)
6573 (eval "$lt_compile" 2>out
/conftest.err
)
6575 cat out
/conftest.err
>&5
6576 echo "$as_me:6576: \$? = $ac_status" >&5
6577 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
6579 # The compiler can only warn and ignore the option if not recognized
6580 # So say no if there are warnings
6581 if test ! -s out
/conftest.err
; then
6582 lt_cv_prog_compiler_c_o
=yes
6587 # SGI C++ compiler will create directory out/ii_files/ for
6588 # template instantiation
6589 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
6590 $rm out
/* && rmdir out
6596 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6597 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6600 hard_links
="nottested"
6601 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
6602 # do not overwrite the value of need_locks provided by the user
6603 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6604 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6607 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
6609 ln conftest.a conftest.b
2>&5 || hard_links
=no
6610 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
6611 echo "$as_me:$LINENO: result: $hard_links" >&5
6612 echo "${ECHO_T}$hard_links" >&6
6613 if test "$hard_links" = no
; then
6614 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6615 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6622 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6623 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6626 allow_undefined_flag
=
6627 enable_shared_with_static_runtimes
=no
6629 archive_expsym_cmds
=
6630 old_archive_From_new_cmds
=
6631 old_archive_from_expsyms_cmds
=
6632 export_dynamic_flag_spec
=
6633 whole_archive_flag_spec
=
6634 thread_safe_flag_spec
=
6635 hardcode_libdir_flag_spec
=
6636 hardcode_libdir_flag_spec_ld
=
6637 hardcode_libdir_separator
=
6640 hardcode_shlibpath_var
=unsupported
6641 link_all_deplibs
=unknown
6642 hardcode_automatic
=no
6645 always_export_symbols
=no
6646 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6647 # include_expsyms should be a list of space-separated symbols to be *always*
6648 # included in the symbol list
6650 # exclude_expsyms can be an extended regexp of symbols to exclude
6651 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6652 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6653 # as well as any symbol that contains `d'.
6654 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
6655 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6656 # platforms (ab)use it in PIC code, but their linkers get confused if
6657 # the symbol is explicitly referenced. Since portable code cannot
6658 # rely on this symbol name, it's probably fine to never include it in
6659 # preloaded symbol tables.
6660 extract_expsyms_cmds
=
6663 cygwin
* | mingw
* | pw32
*)
6664 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6665 # When not using gcc, we currently assume that we are using
6666 # Microsoft Visual C++.
6667 if test "$GCC" != yes; then
6677 if test "$with_gnu_ld" = yes; then
6678 # If archive_cmds runs LD, not CC, wlarc should be empty
6681 # See if GNU ld supports shared libraries.
6683 aix3
* | aix4
* | aix5
*)
6684 # On AIX/PPC, the GNU linker is very broken
6685 if test "$host_cpu" != ia64
; then
6689 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6690 *** to be unable to reliably create shared libraries on AIX.
6691 *** Therefore, libtool is disabling shared libraries support. If you
6692 *** really care for shared libraries, you may want to modify your PATH
6693 *** so that a non-GNU linker is found, and then restart.
6700 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)'
6701 hardcode_libdir_flag_spec
='-L$libdir'
6702 hardcode_minus_L
=yes
6704 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6705 # that the semantics of dynamic libraries on AmigaOS, at least up
6706 # to version 4, is to share data among multiple programs linked
6707 # with the same dynamic library. Since this doesn't match the
6708 # behavior of shared libraries on other platforms, we can't use
6714 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
6715 allow_undefined_flag
=unsupported
6716 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6717 # support --undefined. This deserves some investigation. FIXME
6718 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6724 cygwin
* | mingw
* | pw32
*)
6725 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6726 # as there is no search path for DLLs.
6727 hardcode_libdir_flag_spec
='-L$libdir'
6728 allow_undefined_flag
=unsupported
6729 always_export_symbols
=no
6730 enable_shared_with_static_runtimes
=yes
6731 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6733 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
6734 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6735 # If the export-symbols file already is a .def file (1st line
6736 # is EXPORTS), use it as is; otherwise, prepend...
6737 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6738 cp $export_symbols $output_objdir/$soname.def;
6740 echo EXPORTS > $output_objdir/$soname.def;
6741 cat $export_symbols >> $output_objdir/$soname.def;
6743 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6749 netbsd
* | netbsdelf
*-gnu | knetbsd
*-gnu)
6750 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
6751 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6754 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6755 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6760 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
6764 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6765 *** create shared libraries on Solaris systems. Therefore, libtool
6766 *** is disabling shared libraries support. We urge you to upgrade GNU
6767 *** binutils to release 2.9.1 or newer. Another option is to modify
6768 *** your PATH or compiler configuration so that the native linker is
6769 *** used, and then restart.
6772 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
6773 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6774 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6781 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6784 hardcode_shlibpath_var
=no
6788 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
6789 tmp_archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6790 archive_cmds
="$tmp_archive_cmds"
6791 supports_anon_versioning
=no
6792 case `$LD -v 2>/dev/null` in
6793 *\
01.
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
6794 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
6795 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
6796 *\
2.11.
*) ;; # other 2.11 versions
6797 *) supports_anon_versioning
=yes ;;
6799 if test $supports_anon_versioning = yes; then
6800 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
6801 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6802 $echo "local: *; };" >> $output_objdir/$libname.ver~
6803 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6805 archive_expsym_cmds
="$tmp_archive_cmds"
6814 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
6815 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6816 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6823 if test "$ld_shlibs" = yes; then
6824 runpath_var
=LD_RUN_PATH
6825 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
6826 export_dynamic_flag_spec
='${wl}--export-dynamic'
6827 # ancient GNU ld didn't support --whole-archive et. al.
6828 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
6829 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6831 whole_archive_flag_spec
=
6835 # PORTME fill in a description of your system's linker (not GNU ld)
6838 allow_undefined_flag
=unsupported
6839 always_export_symbols
=yes
6840 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'
6841 # Note: this linker hardcodes the directories in LIBPATH if there
6842 # are no directories specified by -L.
6843 hardcode_minus_L
=yes
6844 if test "$GCC" = yes && test -z "$link_static_flag"; then
6845 # Neither direct hardcoding nor static linking is supported with a
6847 hardcode_direct
=unsupported
6852 if test "$host_cpu" = ia64
; then
6853 # On IA64, the linker does run time linking by default, so we don't
6854 # have to do anything special.
6855 aix_use_runtimelinking
=no
6856 exp_sym_flag
='-Bexport'
6859 # If we're using GNU nm, then we don't want the "-C" option.
6860 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6861 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
6862 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'
6864 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'
6866 aix_use_runtimelinking
=no
6868 # Test if we are trying to use run time linking or normal
6869 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6870 # need to do runtime linking.
6871 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
6872 for ld_flag
in $LDFLAGS; do
6873 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
6874 aix_use_runtimelinking
=yes
6880 exp_sym_flag
='-bexport'
6881 no_entry_flag
='-bnoentry'
6884 # When large executables or shared objects are built, AIX ld can
6885 # have problems creating the table of contents. If linking a library
6886 # or program results in "error TOC overflow" add -mminimal-toc to
6887 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6888 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6892 hardcode_libdir_separator
=':'
6893 link_all_deplibs
=yes
6895 if test "$GCC" = yes; then
6896 case $host_os in aix4.012|aix4.012.
*)
6897 # We only want to do this on AIX 4.2 and lower, the check
6898 # below for broken collect2 doesn't work under 4.3+
6899 collect2name
=`${CC} -print-prog-name=collect2`
6900 if test -f "$collect2name" && \
6901 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
6903 # We have reworked collect2
6906 # We have old collect2
6907 hardcode_direct
=unsupported
6908 # It fails to find uninstalled libraries when the uninstalled
6909 # path is not listed in the libpath. Setting hardcode_minus_L
6910 # to unsupported forces relinking
6911 hardcode_minus_L
=yes
6912 hardcode_libdir_flag_spec
='-L$libdir'
6913 hardcode_libdir_separator
=
6916 shared_flag
='-shared'
6919 if test "$host_cpu" = ia64
; then
6920 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6921 # chokes on -Wl,-G. The following line is correct:
6924 if test "$aix_use_runtimelinking" = yes; then
6925 shared_flag
='${wl}-G'
6927 shared_flag
='${wl}-bM:SRE'
6932 # It seems that -bexpall does not export symbols beginning with
6933 # underscore (_), so it is better to generate a list of symbols to export.
6934 always_export_symbols
=yes
6935 if test "$aix_use_runtimelinking" = yes; then
6936 # Warning - without using the other runtime loading flags (-brtl),
6937 # -berok will link without error, but may produce a broken library.
6938 allow_undefined_flag
='-berok'
6939 # Determine the default libpath from the value encoded in an empty executable.
6940 cat >conftest.
$ac_ext <<_ACEOF
6943 cat confdefs.h
>>conftest.
$ac_ext
6944 cat >>conftest.
$ac_ext <<_ACEOF
6945 /* end confdefs.h. */
6955 rm -f conftest.
$ac_objext conftest
$ac_exeext
6956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6957 (eval $ac_link) 2>conftest.er1
6959 grep -v '^ *+' conftest.er1
>conftest.err
6961 cat conftest.err
>&5
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } &&
6964 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); }; } &&
6970 { ac_try
='test -s conftest$ac_exeext'
6971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); }; }; then
6977 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6979 # Check for a 64-bit object if we didn't find anything.
6980 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; }
6983 echo "$as_me: failed program was:" >&5
6984 sed 's/^/| /' conftest.
$ac_ext >&5
6987 rm -f conftest.err conftest.
$ac_objext \
6988 conftest
$ac_exeext conftest.
$ac_ext
6989 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
6991 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
6992 archive_expsym_cmds
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6994 if test "$host_cpu" = ia64; then
6995 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr
/lib
:/lib
'
6996 allow_undefined_flag="-z nodefs"
6997 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\
$export_symbols"
6999 # Determine the default libpath from the value encoded in an empty executable.
7000 cat >conftest.$ac_ext <<_ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h. */
7015 rm -f conftest.$ac_objext conftest$ac_exeext
7016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7017 (eval $ac_link) 2>conftest.er1
7019 grep -v '^ *+' conftest.er1 >conftest.err
7021 cat conftest.err >&5
7022 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7023 (exit $ac_status); } &&
7024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7029 (exit $ac_status); }; } &&
7030 { ac_try='test -s conftest$ac_exeext'
7031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7035 (exit $ac_status); }; }; then
7037 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7039 # Check for a 64-bit object if we didn't find anything.
7040 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; }
7043 echo "$as_me: failed program was
:" >&5
7044 sed 's/^/| /' conftest.$ac_ext >&5
7047 rm -f conftest.err conftest.$ac_objext \
7048 conftest$ac_exeext conftest.$ac_ext
7049 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
7051 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7052 # Warning - without using the other run time loading flags,
7053 # -berok will link without error, but may produce a broken library.
7054 no_undefined_flag=' ${wl}-bernotok'
7055 allow_undefined_flag=' ${wl}-berok'
7056 # -bexpall does not export symbols beginning with underscore (_)
7057 always_export_symbols=yes
7058 # Exported symbols can be pulled into shared objects from archives
7059 whole_archive_flag_spec=' '
7060 archive_cmds_need_lc=yes
7061 # This is similar to how AIX traditionally builds it's shared libraries.
7062 archive_expsym_cmds="\
$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7068 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)'
7069 hardcode_libdir_flag_spec
='-L$libdir'
7070 hardcode_minus_L
=yes
7071 # see comment about different semantics on the GNU ld section
7076 export_dynamic_flag_spec
=-rdynamic
7079 cygwin
* | mingw
* | pw32
*)
7080 # When not using gcc, we currently assume that we are using
7081 # Microsoft Visual C++.
7082 # hardcode_libdir_flag_spec is actually meaningless, as there is
7083 # no search path for DLLs.
7084 hardcode_libdir_flag_spec
=' '
7085 allow_undefined_flag
=unsupported
7086 # Tell ltmain to make .lib files, not .a files.
7088 # Tell ltmain to make .dll files, not .so files.
7090 # FIXME: Setting linknames here is a bad hack.
7091 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7092 # The linker will automatically build a .lib file if we build a DLL.
7093 old_archive_From_new_cmds
='true'
7094 # FIXME: Should let the user specify the lib program.
7095 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
7096 fix_srcfile_path
='`cygpath -w "$srcfile"`'
7097 enable_shared_with_static_runtimes
=yes
7100 darwin
* | rhapsody
*)
7101 if test "$GXX" = yes ; then
7102 archive_cmds_need_lc
=no
7104 rhapsody
* | darwin1.
[012])
7105 allow_undefined_flag
='-undefined suppress'
7108 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7109 allow_undefined_flag
='-flat_namespace -undefined suppress'
7111 case ${MACOSX_DEPLOYMENT_TARGET} in
7113 allow_undefined_flag
='-flat_namespace -undefined suppress'
7116 allow_undefined_flag
='-undefined dynamic_lookup'
7122 lt_int_apple_cc_single_mod
=no
7123 output_verbose_link_cmd
='echo'
7124 if $CC -dumpspecs 2>&1 |
grep 'single_module' >/dev
/null
; then
7125 lt_int_apple_cc_single_mod
=yes
7127 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
7128 archive_cmds
='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7130 archive_cmds
='$CC -r ${wl}-bind_at_load -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'
7132 module_cmds
='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7133 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7134 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
7135 archive_expsym_cmds
='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}'
7137 archive_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
7139 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}'
7141 hardcode_automatic
=yes
7142 hardcode_shlibpath_var
=unsupported
7143 whole_archive_flag_spec
='-all_load $convenience'
7144 link_all_deplibs
=yes
7151 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7152 hardcode_libdir_flag_spec
='-L$libdir'
7153 hardcode_shlibpath_var
=no
7160 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7161 # support. Future versions do this automatically, but an explicit c++rt0.o
7162 # does not break anything, and helps significantly (at the cost of a little
7165 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7166 hardcode_libdir_flag_spec
='-R$libdir'
7168 hardcode_shlibpath_var
=no
7171 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7173 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7175 hardcode_minus_L
=yes
7176 hardcode_shlibpath_var
=no
7179 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7180 freebsd
* | kfreebsd
*-gnu)
7181 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7182 hardcode_libdir_flag_spec
='-R$libdir'
7184 hardcode_shlibpath_var
=no
7188 if test "$GCC" = yes; then
7189 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'
7191 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'
7193 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7194 hardcode_libdir_separator
=:
7197 # hardcode_minus_L: Not really in the search PATH,
7198 # but as the default location of the library.
7199 hardcode_minus_L
=yes
7200 export_dynamic_flag_spec
='${wl}-E'
7204 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
7207 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7210 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7216 archive_cmds
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7219 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7223 if test "$with_gnu_ld" = no
; then
7226 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7227 hardcode_libdir_flag_spec_ld
='+b $libdir'
7228 hardcode_libdir_separator
=:
7230 hardcode_shlibpath_var
=no
7233 hardcode_libdir_flag_spec
='-L$libdir'
7235 hardcode_shlibpath_var
=no
7237 # hardcode_minus_L: Not really in the search PATH,
7238 # but as the default location of the library.
7239 hardcode_minus_L
=yes
7242 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7243 hardcode_libdir_separator
=:
7245 export_dynamic_flag_spec
='${wl}-E'
7247 # hardcode_minus_L: Not really in the search PATH,
7248 # but as the default location of the library.
7249 hardcode_minus_L
=yes
7255 irix5
* | irix6
* | nonstopux
*)
7256 if test "$GCC" = yes; then
7257 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'
7259 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'
7260 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
7262 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7263 hardcode_libdir_separator
=:
7264 link_all_deplibs
=yes
7267 netbsd
* | netbsdelf
*-gnu | knetbsd
*-gnu)
7268 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7269 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7271 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7273 hardcode_libdir_flag_spec
='-R$libdir'
7275 hardcode_shlibpath_var
=no
7279 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7281 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7282 hardcode_libdir_separator
=:
7283 hardcode_shlibpath_var
=no
7288 hardcode_shlibpath_var
=no
7289 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7290 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7291 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7292 export_dynamic_flag_spec
='${wl}-E'
7295 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
7296 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7297 hardcode_libdir_flag_spec
='-R$libdir'
7300 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7301 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7308 hardcode_libdir_flag_spec
='-L$libdir'
7309 hardcode_minus_L
=yes
7310 allow_undefined_flag
=unsupported
7311 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'
7312 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7316 if test "$GCC" = yes; then
7317 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
7318 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'
7320 allow_undefined_flag
=' -expect_unresolved \*'
7321 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'
7323 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7324 hardcode_libdir_separator
=:
7327 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
7328 if test "$GCC" = yes; then
7329 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
7330 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7331 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7333 allow_undefined_flag
=' -expect_unresolved \*'
7334 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'
7335 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7336 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7338 # Both c and cxx compiler support -rpath directly
7339 hardcode_libdir_flag_spec
='-rpath $libdir'
7341 hardcode_libdir_separator
=:
7345 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7346 hardcode_shlibpath_var
=no
7347 export_dynamic_flag_spec
='${wl}-Bexport'
7348 runpath_var
=LD_RUN_PATH
7349 hardcode_runpath_var
=yes
7353 no_undefined_flag
=' -z text'
7354 if test "$GCC" = yes; then
7355 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7356 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7357 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7359 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7360 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7361 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7363 hardcode_libdir_flag_spec
='-R$libdir'
7364 hardcode_shlibpath_var
=no
7366 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
7367 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7368 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
7370 link_all_deplibs
=yes
7374 if test "x$host_vendor" = xsequent
; then
7375 # Use $CC to link under sequent, because it throws in some extra .o
7376 # files that make .init and .fini sections work.
7377 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7379 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7381 hardcode_libdir_flag_spec
='-L$libdir'
7383 hardcode_minus_L
=yes
7384 hardcode_shlibpath_var
=no
7388 case $host_vendor in
7390 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7391 hardcode_direct
=yes # is this really true???
7394 ## LD is ld it makes a PLAMLIB
7395 ## CC just makes a GrossModule.
7396 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7397 reload_cmds
='$CC -r -o $output$reload_objs'
7401 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7402 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
7405 runpath_var
='LD_RUN_PATH'
7406 hardcode_shlibpath_var
=no
7410 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7411 hardcode_shlibpath_var
=no
7412 export_dynamic_flag_spec
='-Bexport'
7416 if test -d /usr
/nec
; then
7417 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7418 hardcode_shlibpath_var
=no
7419 runpath_var
=LD_RUN_PATH
7420 hardcode_runpath_var
=yes
7426 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7429 hardcode_shlibpath_var
=no
7430 hardcode_runpath_var
=yes
7431 runpath_var
=LD_RUN_PATH
7434 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
7435 no_undefined_flag
='${wl}-z ${wl}text'
7436 if test "$GCC" = yes; then
7437 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7439 archive_cmds
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7441 runpath_var
='LD_RUN_PATH'
7442 hardcode_shlibpath_var
=no
7446 no_undefined_flag
=' -z text'
7447 # $CC -shared without GNU ld will not create a library from C++
7448 # object files and a static libstdc++, better avoid it by now
7449 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7450 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7451 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7452 hardcode_libdir_flag_spec
=
7453 hardcode_shlibpath_var
=no
7454 runpath_var
='LD_RUN_PATH'
7458 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7459 hardcode_libdir_flag_spec
='-L$libdir'
7460 hardcode_shlibpath_var
=no
7469 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7470 echo "${ECHO_T}$ld_shlibs" >&6
7471 test "$ld_shlibs" = no
&& can_build_shared
=no
7473 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
7474 if test "$GCC" = yes; then
7475 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7479 # Do we need to explicitly link libc?
7481 case "x$archive_cmds_need_lc" in
7483 # Assume -lc should be added
7484 archive_cmds_need_lc
=yes
7486 if test "$enable_shared" = yes && test "$GCC" = yes; then
7487 case $archive_cmds in
7489 # FIXME: we may have to deal with multi-command sequences.
7492 # Test whether the compiler implicitly links with -lc since on some
7493 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7494 # to ld, don't add -lc before -lgcc.
7495 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7496 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7498 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7501 (eval $ac_compile) 2>&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } 2>conftest.err
; then
7507 libobjs
=conftest.
$ac_objext
7509 wl
=$lt_prog_compiler_wl
7515 lt_save_allow_undefined_flag
=$allow_undefined_flag
7516 allow_undefined_flag
=
7517 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7518 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); }
7523 archive_cmds_need_lc
=no
7525 archive_cmds_need_lc
=yes
7527 allow_undefined_flag
=$lt_save_allow_undefined_flag
7529 cat conftest.err
1>&5
7532 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7533 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7540 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7541 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7543 libname_spec
='lib$name'
7551 shlibpath_overrides_runpath
=unknown
7553 dynamic_linker
="$host_os ld.so"
7554 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
7555 if test "$GCC" = yes; then
7556 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7557 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
7558 # if the path contains ";" then we assume it to be the separator
7559 # otherwise default to the standard path separator (i.e. ":") - it is
7560 # assumed that no part of a normal pathname contains ";" but that should
7561 # okay in the real world where ";" in dirpaths is itself problematic.
7562 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7564 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7567 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
7569 need_lib_prefix
=unknown
7570 hardcode_into_libs
=no
7572 # when you set need_version to no, make sure it does not cause -set_version
7573 # flags to be left without arguments
7574 need_version
=unknown
7579 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
7580 shlibpath_var
=LIBPATH
7582 # AIX 3 has no versioning support, so we append a major version to the name.
7583 soname_spec
='${libname}${release}${shared_ext}$major'
7590 hardcode_into_libs
=yes
7591 if test "$host_cpu" = ia64
; then
7592 # AIX 5 supports IA64
7593 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7594 shlibpath_var
=LD_LIBRARY_PATH
7596 # With GCC up to 2.95.x, collect2 would create an import file
7597 # for dependence libraries. The import file would start with
7598 # the line `#! .'. This would cause the generated library to
7599 # depend on `.', always an invalid library. This was fixed in
7600 # development snapshots of GCC prior to 3.0.
7602 aix4 | aix4.
[01] | aix4.
[01].
*)
7603 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7605 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
7612 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7613 # soname into executable. Probably we can add versioning support to
7614 # collect2, so additional links can be useful in future.
7615 if test "$aix_use_runtimelinking" = yes; then
7616 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7617 # instead of lib<name>.a to let people know that these are not
7618 # typical AIX shared libraries.
7619 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7621 # We preserve .a as extension for shared libraries through AIX4.2
7622 # and later when we are not doing run time linking.
7623 library_names_spec
='${libname}${release}.a $libname.a'
7624 soname_spec
='${libname}${release}${shared_ext}$major'
7626 shlibpath_var
=LIBPATH
7631 library_names_spec
='$libname.ixlibrary $libname.a'
7632 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7633 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'
7637 library_names_spec
='${libname}${shared_ext}'
7638 dynamic_linker
="$host_os ld.so"
7639 shlibpath_var
=LIBRARY_PATH
7645 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7646 soname_spec
='${libname}${release}${shared_ext}$major'
7647 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
7648 shlibpath_var
=LD_LIBRARY_PATH
7649 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7650 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
7651 # the default ld.so.conf also contains /usr/contrib/lib and
7652 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7653 # libtool to hard-code these into programs
7656 cygwin
* | mingw
* | pw32
*)
7657 version_type
=windows
7662 case $GCC,$host_os in
7663 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
7664 library_names_spec
='$libname.dll.a'
7665 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7666 postinstall_cmds
='base_file=`basename \${file}`~
7667 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7668 dldir=$destdir/`dirname \$dlpath`~
7669 test -d \$dldir || mkdir -p \$dldir~
7670 $install_prog $dir/$dlname \$dldir/$dlname'
7671 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7672 dlpath=$dir/\$dldll~
7674 shlibpath_overrides_runpath
=yes
7678 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7679 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7680 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
7683 # MinGW DLLs use traditional 'lib' prefix
7684 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7685 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7686 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
7687 # It is most probably a Windows format PATH printed by
7688 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7689 # path with ; separators, and with drive letters. We can handle the
7690 # drive letters (cygwin fileutils understands them), so leave them,
7691 # especially as we might pass files found there to a mingw objdump,
7692 # which wouldn't understand a cygwinified path. Ahh.
7693 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7695 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7699 # pw32 DLLs use 'pw' prefix rather than 'lib'
7700 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7706 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7709 dynamic_linker
='Win32 ld.exe'
7710 # FIXME: first we should search . and the directory the executable is in
7714 darwin
* | rhapsody
*)
7715 dynamic_linker
="$host_os dyld"
7719 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7720 soname_spec
='${libname}${release}${major}$shared_ext'
7721 shlibpath_overrides_runpath
=yes
7722 shlibpath_var
=DYLD_LIBRARY_PATH
7723 shrext_cmds
='$(test .$module = .yes && echo .so || echo .dylib)'
7724 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7725 if test "$GCC" = yes; then
7726 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"`
7728 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
7730 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
7737 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7738 soname_spec
='${libname}${release}${shared_ext}$major'
7739 shlibpath_var
=LD_LIBRARY_PATH
7750 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7751 soname_spec
='${libname}${release}${shared_ext}$major'
7752 shlibpath_var
=LD_LIBRARY_PATH
7753 shlibpath_overrides_runpath
=no
7754 hardcode_into_libs
=yes
7755 dynamic_linker
='GNU ld.so'
7759 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7760 version_type
=freebsd-
$objformat
7761 case $version_type in
7763 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7768 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7772 shlibpath_var
=LD_LIBRARY_PATH
7775 shlibpath_overrides_runpath
=yes
7777 freebsd3.01
* | freebsdelf3.01
*)
7778 shlibpath_overrides_runpath
=yes
7779 hardcode_into_libs
=yes
7782 shlibpath_overrides_runpath
=no
7783 hardcode_into_libs
=yes
7792 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7793 soname_spec
='${libname}${release}${shared_ext}$major'
7794 shlibpath_var
=LD_LIBRARY_PATH
7795 hardcode_into_libs
=yes
7798 hpux9
* | hpux10
* | hpux11
*)
7799 # Give a soname corresponding to the major version so that dld.sl refuses to
7800 # link against other versions.
7807 hardcode_into_libs
=yes
7808 dynamic_linker
="$host_os dld.so"
7809 shlibpath_var
=LD_LIBRARY_PATH
7810 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
7811 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7812 soname_spec
='${libname}${release}${shared_ext}$major'
7813 if test "X$HPUX_IA64_MODE" = X32
; then
7814 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7816 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
7818 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
7822 hardcode_into_libs
=yes
7823 dynamic_linker
="$host_os dld.sl"
7824 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
7825 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
7826 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7827 soname_spec
='${libname}${release}${shared_ext}$major'
7828 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7829 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
7833 dynamic_linker
="$host_os dld.sl"
7834 shlibpath_var
=SHLIB_PATH
7835 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
7836 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7837 soname_spec
='${libname}${release}${shared_ext}$major'
7840 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7841 postinstall_cmds
='chmod 555 $lib'
7844 irix5
* | irix6
* | nonstopux
*)
7846 nonstopux
*) version_type
=nonstopux
;;
7848 if test "$lt_cv_prog_gnu_ld" = yes; then
7856 soname_spec
='${libname}${release}${shared_ext}$major'
7857 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7859 irix5
* | nonstopux
*)
7863 case $LD in # libtool.m4 will add one of these switches to LD
7864 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
7865 libsuff
= shlibsuff
= libmagic
=32-bit;;
7866 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
7867 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
7868 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
7869 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
7870 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
7874 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
7875 shlibpath_overrides_runpath
=no
7876 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7877 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
7878 hardcode_into_libs
=yes
7881 # No shared lib support for Linux oldld, aout, or coff.
7882 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
7886 # This must be Linux ELF.
7891 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7892 soname_spec
='${libname}${release}${shared_ext}$major'
7893 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7894 shlibpath_var
=LD_LIBRARY_PATH
7895 shlibpath_overrides_runpath
=no
7896 # This implies no fast_install, which is unacceptable.
7897 # Some rework will be needed to allow for fast_install
7898 # before this can be enabled.
7899 hardcode_into_libs
=yes
7901 # Append ld.so.conf contents to the search path
7902 if test -f /etc
/ld.so.conf
; then
7903 lt_ld_extra
=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7904 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
7907 # We used to test for /lib/ld.so.1 and disable shared libraries on
7908 # powerpc, because MkLinux only supported shared libraries with the
7909 # GNU dynamic linker. Since this was broken with cross compilers,
7910 # most powerpc-linux boxes support dynamic linking these days and
7911 # people can always --disable-shared, the test was removed, and we
7912 # assume the GNU/Linux dynamic linker is in use.
7913 dynamic_linker
='GNU/Linux ld.so'
7920 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7921 soname_spec
='${libname}${release}${shared_ext}$major'
7922 shlibpath_var
=LD_LIBRARY_PATH
7923 shlibpath_overrides_runpath
=no
7924 hardcode_into_libs
=yes
7925 dynamic_linker
='NetBSD ld.elf_so'
7932 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7933 soname_spec
='${libname}${release}${shared_ext}$major'
7934 shlibpath_var
=LD_LIBRARY_PATH
7935 shlibpath_overrides_runpath
=no
7936 hardcode_into_libs
=yes
7937 dynamic_linker
='GNU ld.so'
7944 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7945 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7946 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7947 dynamic_linker
='NetBSD (a.out) ld.so'
7949 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7950 soname_spec
='${libname}${release}${shared_ext}$major'
7951 dynamic_linker
='NetBSD ld.elf_so'
7953 shlibpath_var
=LD_LIBRARY_PATH
7954 shlibpath_overrides_runpath
=yes
7955 hardcode_into_libs
=yes
7960 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7961 shlibpath_var
=LD_LIBRARY_PATH
7962 shlibpath_overrides_runpath
=yes
7969 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7970 soname_spec
='${libname}${release}${shared_ext}$major'
7971 shlibpath_var
=LD_LIBRARY_PATH
7972 shlibpath_overrides_runpath
=yes
7979 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7980 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7981 shlibpath_var
=LD_LIBRARY_PATH
7982 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7984 openbsd2.
[89] | openbsd2.
[89].
*)
7985 shlibpath_overrides_runpath
=no
7988 shlibpath_overrides_runpath
=yes
7992 shlibpath_overrides_runpath
=yes
7997 libname_spec
='$name'
8000 library_names_spec
='$libname${shared_ext} $libname.a'
8001 dynamic_linker
='OS/2 ld.exe'
8002 shlibpath_var
=LIBPATH
8005 osf3
* | osf4
* | osf5
*)
8009 soname_spec
='${libname}${release}${shared_ext}$major'
8010 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8011 shlibpath_var
=LD_LIBRARY_PATH
8012 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8013 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
8018 soname_spec
='${libname}${release}${shared_ext}$major'
8019 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8020 shlibpath_var
=LD_LIBRARY_PATH
8027 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8028 soname_spec
='${libname}${release}${shared_ext}$major'
8029 shlibpath_var
=LD_LIBRARY_PATH
8030 shlibpath_overrides_runpath
=yes
8031 hardcode_into_libs
=yes
8032 # ldd complains unless libraries are executable
8033 postinstall_cmds
='chmod +x $lib'
8038 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8039 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8040 shlibpath_var
=LD_LIBRARY_PATH
8041 shlibpath_overrides_runpath
=yes
8042 if test "$with_gnu_ld" = yes; then
8048 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
8050 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8051 soname_spec
='${libname}${release}${shared_ext}$major'
8052 shlibpath_var
=LD_LIBRARY_PATH
8053 case $host_vendor in
8055 shlibpath_overrides_runpath
=no
8057 export_dynamic_flag_spec
='${wl}-Blargedynsym'
8058 runpath_var
=LD_RUN_PATH
8066 shlibpath_overrides_runpath
=no
8067 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
8073 if test -d /usr
/nec
;then
8075 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8076 soname_spec
='$libname${shared_ext}.$major'
8077 shlibpath_var
=LD_LIBRARY_PATH
8083 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8084 soname_spec
='${libname}${release}${shared_ext}$major'
8085 shlibpath_var
=LD_LIBRARY_PATH
8092 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8093 echo "${ECHO_T}$dynamic_linker" >&6
8094 test "$dynamic_linker" = no
&& can_build_shared
=no
8096 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8097 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8099 if test -n "$hardcode_libdir_flag_spec" || \
8100 test -n "$runpath_var " || \
8101 test "X$hardcode_automatic"="Xyes" ; then
8103 # We can hardcode non-existant directories.
8104 if test "$hardcode_direct" != no
&&
8105 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8106 # have to relink, otherwise we might link with an installed library
8107 # when we should be linking with a yet-to-be-installed one
8108 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8109 test "$hardcode_minus_L" != no
; then
8110 # Linking always hardcodes the temporary library directory.
8111 hardcode_action
=relink
8113 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8114 hardcode_action
=immediate
8117 # We cannot hardcode anything, or else we can only hardcode existing
8119 hardcode_action
=unsupported
8121 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8122 echo "${ECHO_T}$hardcode_action" >&6
8124 if test "$hardcode_action" = relink
; then
8125 # Fast installation is not supported
8126 enable_fast_install
=no
8127 elif test "$shlibpath_overrides_runpath" = yes ||
8128 test "$enable_shared" = no
; then
8129 # Fast installation is not necessary
8130 enable_fast_install
=needless
8135 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8136 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8137 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
8138 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
8139 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
8140 echo "$as_me:$LINENO: result: yes" >&5
8141 echo "${ECHO_T}yes" >&6
8143 # FIXME - insert some real tests, host_os isn't really good enough
8146 if test -n "$STRIP" ; then
8147 striplib
="$STRIP -x"
8148 echo "$as_me:$LINENO: result: yes" >&5
8149 echo "${ECHO_T}yes" >&6
8151 echo "$as_me:$LINENO: result: no" >&5
8152 echo "${ECHO_T}no" >&6
8156 echo "$as_me:$LINENO: result: no" >&5
8157 echo "${ECHO_T}no" >&6
8162 if test "x$enable_dlopen" != xyes
; then
8163 enable_dlopen
=unknown
8164 enable_dlopen_self
=unknown
8165 enable_dlopen_self_static
=unknown
8172 lt_cv_dlopen
="load_add_on"
8174 lt_cv_dlopen_self
=yes
8178 lt_cv_dlopen
="LoadLibrary"
8183 lt_cv_dlopen
="dlopen"
8188 # if libdl is installed we need to link against it
8189 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8190 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8191 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8194 ac_check_lib_save_LIBS
=$LIBS
8196 cat >conftest.
$ac_ext <<_ACEOF
8199 cat confdefs.h
>>conftest.
$ac_ext
8200 cat >>conftest.
$ac_ext <<_ACEOF
8201 /* end confdefs.h. */
8203 /* Override any gcc2 internal prototype to avoid an error. */
8207 /* We use char because int might match the return type of a gcc2
8208 builtin and then its argument prototype would still apply. */
8218 rm -f conftest.
$ac_objext conftest
$ac_exeext
8219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8220 (eval $ac_link) 2>conftest.er1
8222 grep -v '^ *+' conftest.er1
>conftest.err
8224 cat conftest.err
>&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); } &&
8227 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; } &&
8233 { ac_try
='test -s conftest$ac_exeext'
8234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); }; }; then
8239 ac_cv_lib_dl_dlopen
=yes
8241 echo "$as_me: failed program was:" >&5
8242 sed 's/^/| /' conftest.
$ac_ext >&5
8244 ac_cv_lib_dl_dlopen
=no
8246 rm -f conftest.err conftest.
$ac_objext \
8247 conftest
$ac_exeext conftest.
$ac_ext
8248 LIBS
=$ac_check_lib_save_LIBS
8250 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8251 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8252 if test $ac_cv_lib_dl_dlopen = yes; then
8253 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
8258 lt_cv_dlopen_self
=yes
8265 echo "$as_me:$LINENO: checking for shl_load" >&5
8266 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8267 if test "${ac_cv_func_shl_load+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8270 cat >conftest.
$ac_ext <<_ACEOF
8273 cat confdefs.h
>>conftest.
$ac_ext
8274 cat >>conftest.
$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8276 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8278 #define shl_load innocuous_shl_load
8280 /* System header to define __stub macros and hopefully few prototypes,
8281 which can conflict with char shl_load (); below.
8282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8283 <limits.h> exists even on freestanding compilers. */
8286 # include <limits.h>
8288 # include <assert.h>
8293 /* Override any gcc2 internal prototype to avoid an error. */
8298 /* We use char because int might match the return type of a gcc2
8299 builtin and then its argument prototype would still apply. */
8301 /* The GNU C library defines this for functions which it implements
8302 to always fail with ENOSYS. Some functions are actually named
8303 something starting with __ and the normal name is an alias. */
8304 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8307 char (*f) () = shl_load;
8316 return f != shl_load;
8321 rm -f conftest.
$ac_objext conftest
$ac_exeext
8322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8323 (eval $ac_link) 2>conftest.er1
8325 grep -v '^ *+' conftest.er1
>conftest.err
8327 cat conftest.err
>&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } &&
8330 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); }; } &&
8336 { ac_try
='test -s conftest$ac_exeext'
8337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); }; }; then
8342 ac_cv_func_shl_load
=yes
8344 echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.
$ac_ext >&5
8347 ac_cv_func_shl_load
=no
8349 rm -f conftest.err conftest.
$ac_objext \
8350 conftest
$ac_exeext conftest.
$ac_ext
8352 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8353 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8354 if test $ac_cv_func_shl_load = yes; then
8355 lt_cv_dlopen
="shl_load"
8357 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8358 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8359 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8362 ac_check_lib_save_LIBS
=$LIBS
8364 cat >conftest.
$ac_ext <<_ACEOF
8367 cat confdefs.h
>>conftest.
$ac_ext
8368 cat >>conftest.
$ac_ext <<_ACEOF
8369 /* end confdefs.h. */
8371 /* Override any gcc2 internal prototype to avoid an error. */
8375 /* We use char because int might match the return type of a gcc2
8376 builtin and then its argument prototype would still apply. */
8386 rm -f conftest.
$ac_objext conftest
$ac_exeext
8387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8388 (eval $ac_link) 2>conftest.er1
8390 grep -v '^ *+' conftest.er1
>conftest.err
8392 cat conftest.err
>&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } &&
8395 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; } &&
8401 { ac_try
='test -s conftest$ac_exeext'
8402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; }; then
8407 ac_cv_lib_dld_shl_load
=yes
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.
$ac_ext >&5
8412 ac_cv_lib_dld_shl_load
=no
8414 rm -f conftest.err conftest.
$ac_objext \
8415 conftest
$ac_exeext conftest.
$ac_ext
8416 LIBS
=$ac_check_lib_save_LIBS
8418 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8419 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8420 if test $ac_cv_lib_dld_shl_load = yes; then
8421 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
8423 echo "$as_me:$LINENO: checking for dlopen" >&5
8424 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8425 if test "${ac_cv_func_dlopen+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 cat >conftest.
$ac_ext <<_ACEOF
8431 cat confdefs.h
>>conftest.
$ac_ext
8432 cat >>conftest.
$ac_ext <<_ACEOF
8433 /* end confdefs.h. */
8434 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8436 #define dlopen innocuous_dlopen
8438 /* System header to define __stub macros and hopefully few prototypes,
8439 which can conflict with char dlopen (); below.
8440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8441 <limits.h> exists even on freestanding compilers. */
8444 # include <limits.h>
8446 # include <assert.h>
8451 /* Override any gcc2 internal prototype to avoid an error. */
8456 /* We use char because int might match the return type of a gcc2
8457 builtin and then its argument prototype would still apply. */
8459 /* The GNU C library defines this for functions which it implements
8460 to always fail with ENOSYS. Some functions are actually named
8461 something starting with __ and the normal name is an alias. */
8462 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8465 char (*f) () = dlopen;
8479 rm -f conftest.
$ac_objext conftest
$ac_exeext
8480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8481 (eval $ac_link) 2>conftest.er1
8483 grep -v '^ *+' conftest.er1
>conftest.err
8485 cat conftest.err
>&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } &&
8488 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; } &&
8494 { ac_try
='test -s conftest$ac_exeext'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8500 ac_cv_func_dlopen
=yes
8502 echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.
$ac_ext >&5
8505 ac_cv_func_dlopen
=no
8507 rm -f conftest.err conftest.
$ac_objext \
8508 conftest
$ac_exeext conftest.
$ac_ext
8510 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8511 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8512 if test $ac_cv_func_dlopen = yes; then
8513 lt_cv_dlopen
="dlopen"
8515 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8516 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8517 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
8520 ac_check_lib_save_LIBS
=$LIBS
8522 cat >conftest.
$ac_ext <<_ACEOF
8525 cat confdefs.h
>>conftest.
$ac_ext
8526 cat >>conftest.
$ac_ext <<_ACEOF
8527 /* end confdefs.h. */
8529 /* Override any gcc2 internal prototype to avoid an error. */
8533 /* We use char because int might match the return type of a gcc2
8534 builtin and then its argument prototype would still apply. */
8544 rm -f conftest.
$ac_objext conftest
$ac_exeext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8546 (eval $ac_link) 2>conftest.er1
8548 grep -v '^ *+' conftest.er1
>conftest.err
8550 cat conftest.err
>&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } &&
8553 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; } &&
8559 { ac_try
='test -s conftest$ac_exeext'
8560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); }; }; then
8565 ac_cv_lib_dl_dlopen
=yes
8567 echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.
$ac_ext >&5
8570 ac_cv_lib_dl_dlopen
=no
8572 rm -f conftest.err conftest.
$ac_objext \
8573 conftest
$ac_exeext conftest.
$ac_ext
8574 LIBS
=$ac_check_lib_save_LIBS
8576 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8577 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8578 if test $ac_cv_lib_dl_dlopen = yes; then
8579 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
8581 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8582 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8583 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 ac_check_lib_save_LIBS
=$LIBS
8588 cat >conftest.
$ac_ext <<_ACEOF
8591 cat confdefs.h
>>conftest.
$ac_ext
8592 cat >>conftest.
$ac_ext <<_ACEOF
8593 /* end confdefs.h. */
8595 /* Override any gcc2 internal prototype to avoid an error. */
8599 /* We use char because int might match the return type of a gcc2
8600 builtin and then its argument prototype would still apply. */
8610 rm -f conftest.
$ac_objext conftest
$ac_exeext
8611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8612 (eval $ac_link) 2>conftest.er1
8614 grep -v '^ *+' conftest.er1
>conftest.err
8616 cat conftest.err
>&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } &&
8619 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; } &&
8625 { ac_try
='test -s conftest$ac_exeext'
8626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; }; then
8631 ac_cv_lib_svld_dlopen
=yes
8633 echo "$as_me: failed program was:" >&5
8634 sed 's/^/| /' conftest.
$ac_ext >&5
8636 ac_cv_lib_svld_dlopen
=no
8638 rm -f conftest.err conftest.
$ac_objext \
8639 conftest
$ac_exeext conftest.
$ac_ext
8640 LIBS
=$ac_check_lib_save_LIBS
8642 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8643 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8644 if test $ac_cv_lib_svld_dlopen = yes; then
8645 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
8647 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8648 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8649 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
8652 ac_check_lib_save_LIBS
=$LIBS
8654 cat >conftest.
$ac_ext <<_ACEOF
8657 cat confdefs.h
>>conftest.
$ac_ext
8658 cat >>conftest.
$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8661 /* Override any gcc2 internal prototype to avoid an error. */
8665 /* We use char because int might match the return type of a gcc2
8666 builtin and then its argument prototype would still apply. */
8676 rm -f conftest.
$ac_objext conftest
$ac_exeext
8677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8678 (eval $ac_link) 2>conftest.er1
8680 grep -v '^ *+' conftest.er1
>conftest.err
8682 cat conftest.err
>&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); } &&
8685 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); }; } &&
8691 { ac_try
='test -s conftest$ac_exeext'
8692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); }; }; then
8697 ac_cv_lib_dld_dld_link
=yes
8699 echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.
$ac_ext >&5
8702 ac_cv_lib_dld_dld_link
=no
8704 rm -f conftest.err conftest.
$ac_objext \
8705 conftest
$ac_exeext conftest.
$ac_ext
8706 LIBS
=$ac_check_lib_save_LIBS
8708 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8709 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8710 if test $ac_cv_lib_dld_dld_link = yes; then
8711 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
8732 if test "x$lt_cv_dlopen" != xno
; then
8738 case $lt_cv_dlopen in
8740 save_CPPFLAGS
="$CPPFLAGS"
8741 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
8743 save_LDFLAGS
="$LDFLAGS"
8744 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
8747 LIBS
="$lt_cv_dlopen_libs $LIBS"
8749 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8750 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8751 if test "${lt_cv_dlopen_self+set}" = set; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
8754 if test "$cross_compiling" = yes; then :
8755 lt_cv_dlopen_self
=cross
8757 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
8758 lt_status
=$lt_dlunknown
8759 cat > conftest.
$ac_ext <<EOF
8760 #line 8760 "configure"
8761 #include "confdefs.h"
8770 # define LT_DLGLOBAL RTLD_GLOBAL
8773 # define LT_DLGLOBAL DL_GLOBAL
8775 # define LT_DLGLOBAL 0
8779 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8780 find out it does not work in some platform. */
8781 #ifndef LT_DLLAZY_OR_NOW
8783 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8786 # define LT_DLLAZY_OR_NOW DL_LAZY
8789 # define LT_DLLAZY_OR_NOW RTLD_NOW
8792 # define LT_DLLAZY_OR_NOW DL_NOW
8794 # define LT_DLLAZY_OR_NOW 0
8802 extern "C" void exit (int);
8805 void fnord() { int i=42;}
8808 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8809 int status = $lt_dlunknown;
8813 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8814 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8815 /* dlclose (self); */
8821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8822 (eval $ac_link) 2>&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
8826 (.
/conftest
; exit; ) 2>/dev
/null
8829 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
8830 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
8831 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
8834 # compilation failed
8835 lt_cv_dlopen_self
=no
8842 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8843 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8845 if test "x$lt_cv_dlopen_self" = xyes
; then
8846 LDFLAGS
="$LDFLAGS $link_static_flag"
8847 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8848 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8849 if test "${lt_cv_dlopen_self_static+set}" = set; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8852 if test "$cross_compiling" = yes; then :
8853 lt_cv_dlopen_self_static
=cross
8855 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
8856 lt_status
=$lt_dlunknown
8857 cat > conftest.
$ac_ext <<EOF
8858 #line 8858 "configure"
8859 #include "confdefs.h"
8868 # define LT_DLGLOBAL RTLD_GLOBAL
8871 # define LT_DLGLOBAL DL_GLOBAL
8873 # define LT_DLGLOBAL 0
8877 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8878 find out it does not work in some platform. */
8879 #ifndef LT_DLLAZY_OR_NOW
8881 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8884 # define LT_DLLAZY_OR_NOW DL_LAZY
8887 # define LT_DLLAZY_OR_NOW RTLD_NOW
8890 # define LT_DLLAZY_OR_NOW DL_NOW
8892 # define LT_DLLAZY_OR_NOW 0
8900 extern "C" void exit (int);
8903 void fnord() { int i=42;}
8906 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8907 int status = $lt_dlunknown;
8911 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8912 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8913 /* dlclose (self); */
8919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8920 (eval $ac_link) 2>&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
8924 (.
/conftest
; exit; ) 2>/dev
/null
8927 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
8928 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
8929 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
8932 # compilation failed
8933 lt_cv_dlopen_self_static
=no
8940 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8941 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8944 CPPFLAGS
="$save_CPPFLAGS"
8945 LDFLAGS
="$save_LDFLAGS"
8950 case $lt_cv_dlopen_self in
8951 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
8952 *) enable_dlopen_self
=unknown
;;
8955 case $lt_cv_dlopen_self_static in
8956 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
8957 *) enable_dlopen_self_static
=unknown
;;
8962 # Report which librarie types wil actually be built
8963 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8964 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8965 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8966 echo "${ECHO_T}$can_build_shared" >&6
8968 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8969 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8970 test "$can_build_shared" = "no" && enable_shared
=no
8972 # On AIX, shared libraries and static libraries use the same namespace, and
8973 # are all built from PIC.
8976 test "$enable_shared" = yes && enable_static
=no
8977 if test -n "$RANLIB"; then
8978 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
8979 postinstall_cmds
='$RANLIB $lib'
8984 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
8985 test "$enable_shared" = yes && enable_static
=no
8988 darwin
* | rhapsody
*)
8989 if test "$GCC" = yes; then
8990 archive_cmds_need_lc
=no
8992 rhapsody
* | darwin1.
[012])
8993 allow_undefined_flag
='-undefined suppress'
8996 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8997 allow_undefined_flag
='-flat_namespace -undefined suppress'
8999 case ${MACOSX_DEPLOYMENT_TARGET} in
9001 allow_undefined_flag
='-flat_namespace -undefined suppress'
9004 allow_undefined_flag
='-undefined dynamic_lookup'
9010 output_verbose_link_cmd
='echo'
9011 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9012 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9013 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9014 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}'
9015 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}'
9017 hardcode_automatic
=yes
9018 hardcode_shlibpath_var
=unsupported
9019 whole_archive_flag_spec
='-all_load $convenience'
9020 link_all_deplibs
=yes
9026 echo "$as_me:$LINENO: result: $enable_shared" >&5
9027 echo "${ECHO_T}$enable_shared" >&6
9029 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9030 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9031 # Make sure either enable_shared or enable_static is yes.
9032 test "$enable_shared" = yes || enable_static
=yes
9033 echo "$as_me:$LINENO: result: $enable_static" >&5
9034 echo "${ECHO_T}$enable_static" >&6
9036 # The else clause should only fire when bootstrapping the
9037 # libtool distribution, otherwise you forgot to ship ltmain.sh
9038 # with your package, and you will get complaints that there are
9039 # no rules to generate ltmain.sh.
9040 if test -f "$ltmain"; then
9041 # See if we are running on zsh, and set the options which allow our commands through
9042 # without removal of \ escapes.
9043 if test -n "${ZSH_VERSION+set}" ; then
9044 setopt NO_GLOB_SUBST
9046 # Now quote all the things that may contain metacharacters while being
9047 # careful not to overquote the AC_SUBSTed values. We take copies of the
9048 # variables and quote the copies for generation of the libtool script.
9049 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9051 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9052 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9053 deplibs_check_method reload_flag reload_cmds need_locks \
9054 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9055 lt_cv_sys_global_symbol_to_c_name_address \
9056 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9057 old_postinstall_cmds old_postuninstall_cmds \
9061 lt_prog_compiler_wl \
9062 lt_prog_compiler_pic \
9063 lt_prog_compiler_static \
9064 lt_prog_compiler_no_builtin_flag \
9065 export_dynamic_flag_spec \
9066 thread_safe_flag_spec \
9067 whole_archive_flag_spec \
9068 enable_shared_with_static_runtimes \
9070 old_archive_from_new_cmds \
9075 compiler_lib_search_path \
9077 archive_expsym_cmds \
9079 postuninstall_cmds \
9080 old_archive_from_expsyms_cmds \
9081 allow_undefined_flag \
9083 export_symbols_cmds \
9084 hardcode_libdir_flag_spec \
9085 hardcode_libdir_flag_spec_ld \
9086 hardcode_libdir_separator \
9087 hardcode_automatic \
9089 module_expsym_cmds \
9090 lt_cv_prog_compiler_c_o \
9095 old_archive_cmds | \
9096 old_archive_from_new_cmds | \
9098 archive_expsym_cmds | \
9100 module_expsym_cmds | \
9101 old_archive_from_expsyms_cmds | \
9102 export_symbols_cmds | \
9103 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9104 postinstall_cmds | postuninstall_cmds | \
9105 old_postinstall_cmds | old_postuninstall_cmds | \
9106 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
9107 # Double-quote double-evaled strings.
9108 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9111 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9117 *'\$0 --fallback-echo"')
9118 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9123 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9125 { echo "$as_me:$LINENO: creating $ofile" >&5
9126 echo "$as_me: creating $ofile" >&6;}
9128 cat <<__EOF__ >> "$cfgfile"
9131 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9132 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9133 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9135 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9136 # Free Software Foundation, Inc.
9138 # This file is part of GNU Libtool:
9139 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9141 # This program is free software; you can redistribute it and/or modify
9142 # it under the terms of the GNU General Public License as published by
9143 # the Free Software Foundation; either version 2 of the License, or
9144 # (at your option) any later version.
9146 # This program is distributed in the hope that it will be useful, but
9147 # WITHOUT ANY WARRANTY; without even the implied warranty of
9148 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9149 # General Public License for more details.
9151 # You should have received a copy of the GNU General Public License
9152 # along with this program; if not, write to the Free Software
9153 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9155 # As a special exception to the GNU General Public License, if you
9156 # distribute this file as part of a program that contains a
9157 # configuration script generated by Autoconf, you may include it under
9158 # the same distribution terms that you use for the rest of that program.
9160 # A sed program that does not truncate output.
9163 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9164 Xsed="$SED -e s/^X//"
9166 # The HP-UX ksh and POSIX shell print the target directory to stdout
9168 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9170 # The names of the tagged configurations supported by this script.
9173 # ### BEGIN LIBTOOL CONFIG
9175 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9177 # Shell to use when invoking shell scripts.
9180 # Whether or not to build shared libraries.
9181 build_libtool_libs=$enable_shared
9183 # Whether or not to build static libraries.
9184 build_old_libs=$enable_static
9186 # Whether or not to add -lc for building shared libraries.
9187 build_libtool_need_lc=$archive_cmds_need_lc
9189 # Whether or not to disallow shared libs when runtime libs are static
9190 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9192 # Whether or not to optimize for fast installation.
9193 fast_install=$enable_fast_install
9196 host_alias=$host_alias
9199 # An echo program that does not interpret backslashes.
9204 AR_FLAGS=$lt_AR_FLAGS
9209 # A language-specific compiler.
9212 # Is the compiler the GNU C compiler?
9218 # The linker used to build libraries.
9221 # Whether we need hard or soft links.
9224 # A BSD-compatible nm program.
9227 # A symbol stripping program
9230 # Used to examine libraries when file_magic_cmd begins "file"
9231 MAGIC_CMD=$MAGIC_CMD
9233 # Used on cygwin: DLL creation program.
9236 # Used on cygwin: object dumper.
9239 # Used on cygwin: assembler.
9242 # The name of the directory that contains temporary libtool files.
9245 # How to create reloadable object files.
9246 reload_flag=$lt_reload_flag
9247 reload_cmds=$lt_reload_cmds
9249 # How to pass a linker flag through the compiler.
9250 wl=$lt_lt_prog_compiler_wl
9252 # Object file suffix (normally "o").
9255 # Old archive suffix (normally "a").
9258 # Shared library suffix (normally ".so").
9259 shrext_cmds='$shrext_cmds'
9261 # Executable file suffix (normally "").
9264 # Additional compiler flags for building library objects.
9265 pic_flag=$lt_lt_prog_compiler_pic
9268 # What is the maximum length of a command?
9269 max_cmd_len=$lt_cv_sys_max_cmd_len
9271 # Does compiler simultaneously support -c and -o options?
9272 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9274 # Must we lock files when doing compilation ?
9275 need_locks=$lt_need_locks
9277 # Do we need the lib prefix for modules?
9278 need_lib_prefix=$need_lib_prefix
9280 # Do we need a version for libraries?
9281 need_version=$need_version
9283 # Whether dlopen is supported.
9284 dlopen_support=$enable_dlopen
9286 # Whether dlopen of programs is supported.
9287 dlopen_self=$enable_dlopen_self
9289 # Whether dlopen of statically linked programs is supported.
9290 dlopen_self_static=$enable_dlopen_self_static
9292 # Compiler flag to prevent dynamic linking.
9293 link_static_flag=$lt_lt_prog_compiler_static
9295 # Compiler flag to turn off builtin functions.
9296 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9298 # Compiler flag to allow reflexive dlopens.
9299 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9301 # Compiler flag to generate shared objects directly from archives.
9302 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9304 # Compiler flag to generate thread-safe objects.
9305 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9307 # Library versioning type.
9308 version_type=$version_type
9310 # Format of library name prefix.
9311 libname_spec=$lt_libname_spec
9313 # List of archive names. First name is the real one, the rest are links.
9314 # The last name is the one that the linker finds with -lNAME.
9315 library_names_spec=$lt_library_names_spec
9317 # The coded name of the library, if different from the real name.
9318 soname_spec=$lt_soname_spec
9320 # Commands used to build and install an old-style archive.
9322 old_archive_cmds=$lt_old_archive_cmds
9323 old_postinstall_cmds=$lt_old_postinstall_cmds
9324 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9326 # Create an old-style archive from a shared archive.
9327 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9329 # Create a temporary old-style archive to link instead of a shared archive.
9330 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9332 # Commands used to build and install a shared archive.
9333 archive_cmds=$lt_archive_cmds
9334 archive_expsym_cmds=$lt_archive_expsym_cmds
9335 postinstall_cmds=$lt_postinstall_cmds
9336 postuninstall_cmds=$lt_postuninstall_cmds
9338 # Commands used to build a loadable module (assumed same as above if empty)
9339 module_cmds=$lt_module_cmds
9340 module_expsym_cmds=$lt_module_expsym_cmds
9342 # Commands to strip libraries.
9343 old_striplib=$lt_old_striplib
9344 striplib=$lt_striplib
9346 # Dependencies to place before the objects being linked to create a
9348 predep_objects=$lt_predep_objects
9350 # Dependencies to place after the objects being linked to create a
9352 postdep_objects=$lt_postdep_objects
9354 # Dependencies to place before the objects being linked to create a
9358 # Dependencies to place after the objects being linked to create a
9360 postdeps=$lt_postdeps
9362 # The library search path used internally by the compiler when linking
9364 compiler_lib_search_path=$lt_compiler_lib_search_path
9366 # Method to check whether dependent libraries are shared objects.
9367 deplibs_check_method=$lt_deplibs_check_method
9369 # Command to use when deplibs_check_method == file_magic.
9370 file_magic_cmd=$lt_file_magic_cmd
9372 # Flag that allows shared libraries with undefined symbols to be built.
9373 allow_undefined_flag=$lt_allow_undefined_flag
9375 # Flag that forces no undefined symbols.
9376 no_undefined_flag=$lt_no_undefined_flag
9378 # Commands used to finish a libtool library installation in a directory.
9379 finish_cmds=$lt_finish_cmds
9381 # Same as above, but a single script fragment to be evaled but not shown.
9382 finish_eval=$lt_finish_eval
9384 # Take the output of nm and produce a listing of raw symbols and C names.
9385 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9387 # Transform the output of nm in a proper C declaration
9388 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9390 # Transform the output of nm in a C name address pair
9391 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9393 # This is the shared library runtime path variable.
9394 runpath_var=$runpath_var
9396 # This is the shared library path variable.
9397 shlibpath_var=$shlibpath_var
9399 # Is shlibpath searched before the hard-coded library search path?
9400 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9402 # How to hardcode a shared library path into an executable.
9403 hardcode_action=$hardcode_action
9405 # Whether we should hardcode library paths into libraries.
9406 hardcode_into_libs=$hardcode_into_libs
9408 # Flag to hardcode \$libdir into a binary during linking.
9409 # This must work even if \$libdir does not exist.
9410 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9412 # If ld is used when linking, flag to hardcode \$libdir into
9413 # a binary during linking. This must work even if \$libdir does
9415 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9417 # Whether we need a single -rpath flag with a separated argument.
9418 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9420 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9422 hardcode_direct=$hardcode_direct
9424 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9426 hardcode_minus_L=$hardcode_minus_L
9428 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9429 # the resulting binary.
9430 hardcode_shlibpath_var=$hardcode_shlibpath_var
9432 # Set to yes if building a shared library automatically hardcodes DIR into the library
9433 # and all subsequent libraries and executables linked against it.
9434 hardcode_automatic=$hardcode_automatic
9436 # Variables whose values should be saved in libtool wrapper scripts and
9437 # restored at relink time.
9438 variables_saved_for_relink="$variables_saved_for_relink"
9440 # Whether libtool must link a program against all its dependency libraries.
9441 link_all_deplibs=$link_all_deplibs
9443 # Compile-time system search path for libraries
9444 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9446 # Run-time system search path for libraries
9447 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9449 # Fix the shell variable \$srcfile for the compiler.
9450 fix_srcfile_path="$fix_srcfile_path"
9452 # Set to yes if exported symbols are required.
9453 always_export_symbols=$always_export_symbols
9455 # The commands to list exported symbols.
9456 export_symbols_cmds=$lt_export_symbols_cmds
9458 # The commands to extract the exported symbol list from a shared archive.
9459 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9461 # Symbols that should not be listed in the preloaded symbols.
9462 exclude_expsyms=$lt_exclude_expsyms
9464 # Symbols that must always be exported.
9465 include_expsyms=$lt_include_expsyms
9467 # ### END LIBTOOL CONFIG
9474 cat <<\EOF
>> "$cfgfile"
9476 # AIX sometimes has problems with the GCC collect2 program. For some
9477 # reason, if we set the COLLECT_NAMES environment variable, the problems
9478 # vanish in a puff of smoke.
9479 if test "X${COLLECT_NAMES+set}" != Xset
; then
9481 export COLLECT_NAMES
9487 # We use sed instead of cat because bash on DJGPP gets confused if
9488 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9489 # text mode, it properly converts lines to CR/LF. This bash problem
9490 # is reportedly fixed, but why not run on old versions too?
9491 sed '$q' "$ltmain" >> "$cfgfile" ||
(rm -f "$cfgfile"; exit 1)
9493 mv -f "$cfgfile" "$ofile" || \
9494 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9498 # If there is no Makefile yet, we rely on a make rule to execute
9499 # `config.status --recheck' to rerun these tests and create the
9500 # libtool script then.
9501 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9502 if test -f "$ltmain_in"; then
9503 test -f Makefile
&& make "$ltmain"
9509 ac_cpp
='$CPP $CPPFLAGS'
9510 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9511 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9512 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9517 # Check whether --with-tags or --without-tags was given.
9518 if test "${with_tags+set}" = set; then
9519 withval
="$with_tags"
9523 if test -f "$ltmain" && test -n "$tagnames"; then
9524 if test ! -f "${ofile}"; then
9525 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9526 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9529 if test -z "$LTCC"; then
9530 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9531 if test -z "$LTCC"; then
9532 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9533 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9535 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9536 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9540 # Extract list of available tagged configurations in $ofile.
9541 # Note that this assumes the entire list is on one line.
9542 available_tags
=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9544 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
9545 for tagname
in $tagnames; do
9547 # Check whether tagname contains only valid characters
9548 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9550 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9551 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9552 { (exit 1); exit 1; }; }
9556 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev
/null
9558 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9559 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9560 { (exit 1); exit 1; }; }
9563 # Update the list of available tags.
9564 if test -n "$tagname"; then
9565 echo appending configuration tag
\"$tagname\" to
$ofile
9569 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9571 ac_cpp
='$CXXCPP $CPPFLAGS'
9572 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9573 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9574 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9579 archive_cmds_need_lc_CXX
=no
9580 allow_undefined_flag_CXX
=
9581 always_export_symbols_CXX
=no
9582 archive_expsym_cmds_CXX
=
9583 export_dynamic_flag_spec_CXX
=
9584 hardcode_direct_CXX
=no
9585 hardcode_libdir_flag_spec_CXX
=
9586 hardcode_libdir_flag_spec_ld_CXX
=
9587 hardcode_libdir_separator_CXX
=
9588 hardcode_minus_L_CXX
=no
9589 hardcode_automatic_CXX
=no
9591 module_expsym_cmds_CXX
=
9592 link_all_deplibs_CXX
=unknown
9593 old_archive_cmds_CXX
=$old_archive_cmds
9594 no_undefined_flag_CXX
=
9595 whole_archive_flag_spec_CXX
=
9596 enable_shared_with_static_runtimes_CXX
=no
9598 # Dependencies to place before and after the object being linked:
9600 postdep_objects_CXX
=
9603 compiler_lib_search_path_CXX
=
9605 # Source file extension for C++ test sources.
9608 # Object file extension for compiled C++ test sources.
9612 # Code to be used in simple compile tests
9613 lt_simple_compile_test_code
="int some_variable = 0;\n"
9615 # Code to be used in simple link tests
9616 lt_simple_link_test_code
='int main(int, char *) { return(0); }\n'
9618 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9620 # If no C compiler was specified, use CC.
9623 # Allow CC to be a program name with arguments.
9627 # Allow CC to be a program name with arguments.
9632 lt_save_with_gnu_ld
=$with_gnu_ld
9633 lt_save_path_LD
=$lt_cv_path_LD
9634 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9635 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
9637 unset lt_cv_prog_gnu_ld
9639 if test -n "${lt_cv_path_LDCXX+set}"; then
9640 lt_cv_path_LD
=$lt_cv_path_LDCXX
9644 test -z "${LDCXX+set}" || LD
=$LDCXX
9648 cc_basename
=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9650 # We don't want -fno-exception wen compiling C++ code, so set the
9651 # no_builtin_flag separately
9652 if test "$GXX" = yes; then
9653 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
9655 lt_prog_compiler_no_builtin_flag_CXX
=
9658 if test "$GXX" = yes; then
9659 # Set up default GNU C++ configuration
9662 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9663 if test "${with_gnu_ld+set}" = set; then
9664 withval
="$with_gnu_ld"
9665 test "$withval" = no || with_gnu_ld
=yes
9670 if test "$GCC" = yes; then
9671 # Check if gcc -print-prog-name=ld gives a path.
9672 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9673 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9676 # gcc leaves a trailing carriage return which upsets mingw
9677 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9679 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9682 # Accept absolute paths.
9684 re_direlt
='/[^/][^/]*/\.\./'
9685 # Canonicalize the pathname of ld
9686 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
9687 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9688 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9690 test -z "$LD" && LD
="$ac_prog"
9693 # If it fails, then pretend we aren't using GCC.
9697 # If it is relative, then search for the first ld in PATH.
9701 elif test "$with_gnu_ld" = yes; then
9702 echo "$as_me:$LINENO: checking for GNU ld" >&5
9703 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9705 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9706 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9708 if test "${lt_cv_path_LD+set}" = set; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
9711 if test -z "$LD"; then
9712 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
9713 for ac_dir
in $PATH; do
9715 test -z "$ac_dir" && ac_dir
=.
9716 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9717 lt_cv_path_LD
="$ac_dir/$ac_prog"
9718 # Check to see if the program is GNU ld. I'd rather use --version,
9719 # but apparently some GNU ld's only accept -v.
9720 # Break only if it was the GNU/non-GNU ld that we prefer.
9721 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9722 *GNU
* |
*'with BFD'*)
9723 test "$with_gnu_ld" != no
&& break
9726 test "$with_gnu_ld" != yes && break
9733 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
9738 if test -n "$LD"; then
9739 echo "$as_me:$LINENO: result: $LD" >&5
9740 echo "${ECHO_T}$LD" >&6
9742 echo "$as_me:$LINENO: result: no" >&5
9743 echo "${ECHO_T}no" >&6
9745 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9746 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9747 { (exit 1); exit 1; }; }
9748 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9749 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9750 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9753 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9754 case `$LD -v 2>&1 </dev/null` in
9755 *GNU
* |
*'with BFD'*)
9756 lt_cv_prog_gnu_ld
=yes
9759 lt_cv_prog_gnu_ld
=no
9763 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9764 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9765 with_gnu_ld
=$lt_cv_prog_gnu_ld
9769 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9770 # archiving commands below assume that GNU ld is being used.
9771 if test "$with_gnu_ld" = yes; then
9772 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9773 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'
9775 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
9776 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
9778 # If archive_cmds runs LD, not CC, wlarc should be empty
9779 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9780 # investigate it a little bit more. (MM)
9783 # ancient GNU ld didn't support --whole-archive et. al.
9784 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9785 grep 'no-whole-archive' > /dev
/null
; then
9786 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9788 whole_archive_flag_spec_CXX
=
9794 # A generic and very simple default shared library creation
9795 # command for GNU C++ for the case where it uses the native
9796 # linker, instead of GNU ld. If possible, this setting should
9797 # overridden to take advantage of the native linker features on
9798 # the platform it is being used on.
9799 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9802 # Commands to make compiler produce verbose output that lists
9803 # what "hidden" libraries, object files and flags are used when
9804 # linking a shared library.
9805 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9813 # PORTME: fill in a description of your system's C++ link characteristics
9814 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9815 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9819 # FIXME: insert proper C++ library support
9823 if test "$host_cpu" = ia64
; then
9824 # On IA64, the linker does run time linking by default, so we don't
9825 # have to do anything special.
9826 aix_use_runtimelinking
=no
9827 exp_sym_flag
='-Bexport'
9830 aix_use_runtimelinking
=no
9832 # Test if we are trying to use run time linking or normal
9833 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9834 # need to do runtime linking.
9835 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
9836 for ld_flag
in $LDFLAGS; do
9839 aix_use_runtimelinking
=yes
9846 exp_sym_flag
='-bexport'
9847 no_entry_flag
='-bnoentry'
9850 # When large executables or shared objects are built, AIX ld can
9851 # have problems creating the table of contents. If linking a library
9852 # or program results in "error TOC overflow" add -mminimal-toc to
9853 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9854 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9857 hardcode_direct_CXX
=yes
9858 hardcode_libdir_separator_CXX
=':'
9859 link_all_deplibs_CXX
=yes
9861 if test "$GXX" = yes; then
9862 case $host_os in aix4.012|aix4.012.
*)
9863 # We only want to do this on AIX 4.2 and lower, the check
9864 # below for broken collect2 doesn't work under 4.3+
9865 collect2name
=`${CC} -print-prog-name=collect2`
9866 if test -f "$collect2name" && \
9867 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
9869 # We have reworked collect2
9870 hardcode_direct_CXX
=yes
9872 # We have old collect2
9873 hardcode_direct_CXX
=unsupported
9874 # It fails to find uninstalled libraries when the uninstalled
9875 # path is not listed in the libpath. Setting hardcode_minus_L
9876 # to unsupported forces relinking
9877 hardcode_minus_L_CXX
=yes
9878 hardcode_libdir_flag_spec_CXX
='-L$libdir'
9879 hardcode_libdir_separator_CXX
=
9882 shared_flag
='-shared'
9885 if test "$host_cpu" = ia64
; then
9886 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9887 # chokes on -Wl,-G. The following line is correct:
9890 if test "$aix_use_runtimelinking" = yes; then
9891 shared_flag
='${wl}-G'
9893 shared_flag
='${wl}-bM:SRE'
9898 # It seems that -bexpall does not export symbols beginning with
9899 # underscore (_), so it is better to generate a list of symbols to export.
9900 always_export_symbols_CXX
=yes
9901 if test "$aix_use_runtimelinking" = yes; then
9902 # Warning - without using the other runtime loading flags (-brtl),
9903 # -berok will link without error, but may produce a broken library.
9904 allow_undefined_flag_CXX
='-berok'
9905 # Determine the default libpath from the value encoded in an empty executable.
9906 cat >conftest.
$ac_ext <<_ACEOF
9909 cat confdefs.h
>>conftest.
$ac_ext
9910 cat >>conftest.
$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9921 rm -f conftest.
$ac_objext conftest
$ac_exeext
9922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9923 (eval $ac_link) 2>conftest.er1
9925 grep -v '^ *+' conftest.er1
>conftest.err
9927 cat conftest.err
>&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); } &&
9930 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); }; } &&
9936 { ac_try
='test -s conftest$ac_exeext'
9937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); }; }; then
9943 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9945 # Check for a 64-bit object if we didn't find anything.
9946 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; }
9949 echo "$as_me: failed program was:" >&5
9950 sed 's/^/| /' conftest.
$ac_ext >&5
9953 rm -f conftest.err conftest.
$ac_objext \
9954 conftest
$ac_exeext conftest.
$ac_ext
9955 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9957 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
9959 archive_expsym_cmds_CXX
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9961 if test "$host_cpu" = ia64; then
9962 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr
/lib
:/lib
'
9963 allow_undefined_flag_CXX="-z nodefs"
9964 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\
$export_symbols"
9966 # Determine the default libpath from the value encoded in an empty executable.
9967 cat >conftest.$ac_ext <<_ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h. */
9982 rm -f conftest.$ac_objext conftest$ac_exeext
9983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9984 (eval $ac_link) 2>conftest.er1
9986 grep -v '^ *+' conftest.er1 >conftest.err
9988 cat conftest.err >&5
9989 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9990 (exit $ac_status); } &&
9991 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9996 (exit $ac_status); }; } &&
9997 { ac_try='test -s conftest$ac_exeext'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10002 (exit $ac_status); }; }; then
10004 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10006 # Check for a 64-bit object if we didn't find anything.
10007 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; }
10010 echo "$as_me: failed program was
:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10014 rm -f conftest.err conftest.$ac_objext \
10015 conftest$ac_exeext conftest.$ac_ext
10016 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
10018 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10019 # Warning - without using the other run time loading flags,
10020 # -berok will link without error, but may produce a broken library.
10021 no_undefined_flag_CXX=' ${wl}-bernotok'
10022 allow_undefined_flag_CXX=' ${wl}-berok'
10023 # -bexpall does not export symbols beginning with underscore (_)
10024 always_export_symbols_CXX=yes
10025 # Exported symbols can be pulled into shared objects from archives
10026 whole_archive_flag_spec_CXX=' '
10027 archive_cmds_need_lc_CXX=yes
10028 # This is similar to how AIX traditionally builds it's shared libraries.
10029 archive_expsym_cmds_CXX="\
$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10034 case $cc_basename in
10036 # FIXME: insert proper C++ library support
10042 cygwin* | mingw* | pw32*)
10043 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10044 # as there is no search path for DLLs.
10045 hardcode_libdir_flag_spec_CXX='-L$libdir'
10046 allow_undefined_flag_CXX=unsupported
10047 always_export_symbols_CXX=no
10048 enable_shared_with_static_runtimes_CXX=yes
10050 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10051 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10052 # If the export-symbols file already is a .def file (1st line
10053 # is EXPORTS), use it as is; otherwise, prepend...
10054 archive_expsym_cmds_CXX='if test "x
`$SED 1q $export_symbols`" = xEXPORTS; then
10055 cp $export_symbols $output_objdir/$soname.def;
10057 echo EXPORTS > $output_objdir/$soname.def;
10058 cat $export_symbols >> $output_objdir/$soname.def;
10060 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10066 darwin* | rhapsody*)
10067 if test "$GXX" = yes; then
10068 archive_cmds_need_lc_CXX=no
10070 rhapsody* | darwin1.[012])
10071 allow_undefined_flag_CXX='-undefined suppress'
10074 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10075 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10077 case ${MACOSX_DEPLOYMENT_TARGET} in
10079 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10082 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10088 lt_int_apple_cc_single_mod=no
10089 output_verbose_link_cmd='echo'
10090 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10091 lt_int_apple_cc_single_mod=yes
10093 if test "X
$lt_int_apple_cc_single_mod" = Xyes ; then
10094 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10096 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
10098 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10100 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10101 if test "X
$lt_int_apple_cc_single_mod" = Xyes ; then
10102 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}'
10104 archive_expsym_cmds_CXX
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
10106 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}'
10107 hardcode_direct_CXX
=no
10108 hardcode_automatic_CXX
=yes
10109 hardcode_shlibpath_var_CXX
=unsupported
10110 whole_archive_flag_spec_CXX
='-all_load $convenience'
10111 link_all_deplibs_CXX
=yes
10118 case $cc_basename in
10120 # FIXME: insert proper C++ library support
10124 # Green Hills C++ Compiler
10125 # FIXME: insert proper C++ library support
10129 # FIXME: insert proper C++ library support
10135 # C++ shared libraries reported to be fairly broken before switch to ELF
10139 archive_cmds_need_lc_CXX
=no
10141 freebsd
* | kfreebsd
*-gnu)
10142 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10149 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10150 hardcode_libdir_separator_CXX
=:
10151 export_dynamic_flag_spec_CXX
='${wl}-E'
10152 hardcode_direct_CXX
=yes
10153 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10154 # but as the default
10155 # location of the library.
10157 case $cc_basename in
10159 # FIXME: insert proper C++ library support
10163 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'
10164 # Commands to make compiler produce verbose output that lists
10165 # what "hidden" libraries, object files and flags are used when
10166 # linking a shared library.
10168 # There doesn't appear to be a way to prevent this compiler from
10169 # explicitly linking system object files so we need to strip them
10170 # from the output so that they don't get included in the library
10172 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'
10175 if test "$GXX" = yes; then
10176 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'
10178 # FIXME: insert proper C++ library support
10185 if test $with_gnu_ld = no
; then
10186 case "$host_cpu" in
10188 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10189 hardcode_libdir_flag_spec_ld_CXX
='+b $libdir'
10190 hardcode_libdir_separator_CXX
=:
10193 hardcode_libdir_flag_spec_CXX
='-L$libdir'
10196 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10197 hardcode_libdir_separator_CXX
=:
10198 export_dynamic_flag_spec_CXX
='${wl}-E'
10202 case "$host_cpu" in
10204 hardcode_direct_CXX
=no
10205 hardcode_shlibpath_var_CXX
=no
10208 hardcode_direct_CXX
=no
10209 hardcode_shlibpath_var_CXX
=no
10210 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10211 # but as the default
10212 # location of the library.
10215 hardcode_direct_CXX
=yes
10216 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10217 # but as the default
10218 # location of the library.
10222 case $cc_basename in
10224 # FIXME: insert proper C++ library support
10228 case "$host_cpu" in
10230 archive_cmds_CXX
='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10233 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10236 # Commands to make compiler produce verbose output that lists
10237 # what "hidden" libraries, object files and flags are used when
10238 # linking a shared library.
10240 # There doesn't appear to be a way to prevent this compiler from
10241 # explicitly linking system object files so we need to strip them
10242 # from the output so that they don't get included in the library
10244 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'
10247 if test "$GXX" = yes; then
10248 if test $with_gnu_ld = no
; then
10249 case "$host_cpu" in
10251 archive_cmds_CXX
='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10254 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'
10259 # FIXME: insert proper C++ library support
10266 case $cc_basename in
10269 archive_cmds_CXX
='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10271 # Archives containing C++ object files must be created using
10272 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10273 # necessary to make sure instantiated templates are included
10275 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
10278 if test "$GXX" = yes; then
10279 if test "$with_gnu_ld" = no
; then
10280 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10282 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'
10285 link_all_deplibs_CXX
=yes
10288 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10289 hardcode_libdir_separator_CXX
=:
10292 case $cc_basename in
10294 # Kuck and Associates, Inc. (KAI) C++ Compiler
10296 # KCC will only create a shared library if the output file
10297 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10298 # to its proper name (with version) after linking.
10299 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'
10300 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'
10301 # Commands to make compiler produce verbose output that lists
10302 # what "hidden" libraries, object files and flags are used when
10303 # linking a shared library.
10305 # There doesn't appear to be a way to prevent this compiler from
10306 # explicitly linking system object files so we need to strip them
10307 # from the output so that they don't get included in the library
10309 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'
10311 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
10312 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
10314 # Archives containing C++ object files must be created using
10315 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10316 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
10321 archive_cmds_need_lc_CXX
=no
10322 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10323 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'
10324 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10325 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
10326 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10330 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10331 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'
10333 runpath_var
=LD_RUN_PATH
10334 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
10335 hardcode_libdir_separator_CXX
=:
10337 # Commands to make compiler produce verbose output that lists
10338 # what "hidden" libraries, object files and flags are used when
10339 # linking a shared library.
10341 # There doesn't appear to be a way to prevent this compiler from
10342 # explicitly linking system object files so we need to strip them
10343 # from the output so that they don't get included in the library
10345 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'
10350 # FIXME: insert proper C++ library support
10354 # FIXME: insert proper C++ library support
10358 case $cc_basename in
10360 # FIXME: insert proper C++ library support
10364 # FIXME: insert proper C++ library support
10369 netbsd
* | netbsdelf
*-gnu | knetbsd
*-gnu)
10370 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
10371 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10373 hardcode_libdir_flag_spec_CXX
='-R$libdir'
10374 hardcode_direct_CXX
=yes
10375 hardcode_shlibpath_var_CXX
=no
10377 # Workaround some broken pre-1.5 toolchains
10378 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10381 case $cc_basename in
10383 # Kuck and Associates, Inc. (KAI) C++ Compiler
10385 # KCC will only create a shared library if the output file
10386 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10387 # to its proper name (with version) after linking.
10388 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'
10390 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10391 hardcode_libdir_separator_CXX
=:
10393 # Archives containing C++ object files must be created using
10394 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10395 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
10399 # Rational C++ 2.4.1
10400 # FIXME: insert proper C++ library support
10404 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
10405 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10407 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10408 hardcode_libdir_separator_CXX
=:
10410 # Commands to make compiler produce verbose output that lists
10411 # what "hidden" libraries, object files and flags are used when
10412 # linking a shared library.
10414 # There doesn't appear to be a way to prevent this compiler from
10415 # explicitly linking system object files so we need to strip them
10416 # from the output so that they don't get included in the library
10418 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'
10421 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
10422 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
10423 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10425 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10426 hardcode_libdir_separator_CXX
=:
10428 # Commands to make compiler produce verbose output that lists
10429 # what "hidden" libraries, object files and flags are used when
10430 # linking a shared library.
10431 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10434 # FIXME: insert proper C++ library support
10441 case $cc_basename in
10443 # Kuck and Associates, Inc. (KAI) C++ Compiler
10445 # KCC will only create a shared library if the output file
10446 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10447 # to its proper name (with version) after linking.
10448 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'
10450 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10451 hardcode_libdir_separator_CXX
=:
10453 # Archives containing C++ object files must be created using
10454 # the KAI C++ compiler.
10455 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
10458 # Rational C++ 2.4.1
10459 # FIXME: insert proper C++ library support
10463 allow_undefined_flag_CXX
=' -expect_unresolved \*'
10464 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10465 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10466 echo "-hidden">> $lib.exp~
10467 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10470 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
10471 hardcode_libdir_separator_CXX
=:
10473 # Commands to make compiler produce verbose output that lists
10474 # what "hidden" libraries, object files and flags are used when
10475 # linking a shared library.
10477 # There doesn't appear to be a way to prevent this compiler from
10478 # explicitly linking system object files so we need to strip them
10479 # from the output so that they don't get included in the library
10481 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'
10484 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
10485 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
10486 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10488 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10489 hardcode_libdir_separator_CXX
=:
10491 # Commands to make compiler produce verbose output that lists
10492 # what "hidden" libraries, object files and flags are used when
10493 # linking a shared library.
10494 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10497 # FIXME: insert proper C++ library support
10504 # FIXME: insert proper C++ library support
10508 archive_cmds_need_lc_CXX
=no
10509 case $cc_basename in
10511 # FIXME: insert proper C++ library support
10515 # FIXME: insert proper C++ library support
10521 case $cc_basename in
10524 # FIXME: insert proper C++ library support
10529 # FIXME: insert proper C++ library support
10533 # FIXME: insert proper C++ library support
10539 case $cc_basename in
10541 # Sun C++ 4.2, 5.x and Centerline C++
10542 no_undefined_flag_CXX
=' -zdefs'
10543 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10544 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10545 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10547 hardcode_libdir_flag_spec_CXX
='-R$libdir'
10548 hardcode_shlibpath_var_CXX
=no
10550 solaris2.0
-5 | solaris2.0
-5.
*) ;;
10552 # The C++ compiler is used as linker so we must use $wl
10553 # flag to pass the commands to the underlying system
10555 # Supported since Solaris 2.6 (maybe 2.5.1?)
10556 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10559 link_all_deplibs_CXX
=yes
10561 # Commands to make compiler produce verbose output that lists
10562 # what "hidden" libraries, object files and flags are used when
10563 # linking a shared library.
10565 # There doesn't appear to be a way to prevent this compiler from
10566 # explicitly linking system object files so we need to strip them
10567 # from the output so that they don't get included in the library
10569 output_verbose_link_cmd
='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10571 # Archives containing C++ object files must be created using
10572 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10573 # necessary to make sure instantiated templates are included
10575 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
10578 # Green Hills C++ Compiler
10579 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10581 # The C++ compiler must be used to create the archive.
10582 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10585 # GNU C++ compiler with Solaris linker
10586 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
10587 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
10588 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
10589 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10590 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10591 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10593 # Commands to make compiler produce verbose output that lists
10594 # what "hidden" libraries, object files and flags are used when
10595 # linking a shared library.
10596 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10598 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10600 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10601 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10602 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10604 # Commands to make compiler produce verbose output that lists
10605 # what "hidden" libraries, object files and flags are used when
10606 # linking a shared library.
10607 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10610 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
10615 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
10616 archive_cmds_need_lc_CXX
=no
10619 case $cc_basename in
10621 # NonStop-UX NCC 3.20
10622 # FIXME: insert proper C++ library support
10626 # FIXME: insert proper C++ library support
10632 # FIXME: insert proper C++ library support
10636 # FIXME: insert proper C++ library support
10640 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10641 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10642 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
10648 cat > conftest.
$ac_ext <<EOF
10652 Foo (void) { a = 0; }
10658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10659 (eval $ac_compile) 2>&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; then
10663 # Parse the compiler output and extract the necessary
10664 # objects, libraries and library flags.
10666 # Sentinel used to keep track of whether or not we are before
10667 # the conftest object file.
10668 pre_test_object_deps_done
=no
10670 # The `*' in the case matches for architectures that use `case' in
10671 # $output_verbose_cmd can trigger glob expansion during the loop
10672 # eval without this substitution.
10673 output_verbose_link_cmd
="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10675 for p
in `eval $output_verbose_link_cmd`; do
10679 # Some compilers place space between "-{L,R}" and the path.
10680 # Remove the space.
10681 if test $p = "-L" \
10682 ||
test $p = "-R"; then
10689 if test "$pre_test_object_deps_done" = no
; then
10692 # Internal compiler library paths should come after those
10693 # provided the user. The postdeps already come after the
10694 # user supplied libs so there is no need to process them.
10695 if test -z "$compiler_lib_search_path_CXX"; then
10696 compiler_lib_search_path_CXX
="${prev}${p}"
10698 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
10701 # The "-l" case would never come before the object being
10702 # linked, so don't bother handling this case.
10705 if test -z "$postdeps_CXX"; then
10706 postdeps_CXX
="${prev}${p}"
10708 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
10714 # This assumes that the test object file only shows up
10715 # once in the compiler output.
10716 if test "$p" = "conftest.$objext"; then
10717 pre_test_object_deps_done
=yes
10721 if test "$pre_test_object_deps_done" = no
; then
10722 if test -z "$predep_objects_CXX"; then
10723 predep_objects_CXX
="$p"
10725 predep_objects_CXX
="$predep_objects_CXX $p"
10728 if test -z "$postdep_objects_CXX"; then
10729 postdep_objects_CXX
="$p"
10731 postdep_objects_CXX
="$postdep_objects_CXX $p"
10736 *) ;; # Ignore the rest.
10744 echo "libtool.m4: error: problem compiling CXX test program"
10747 $rm -f confest.
$objext
10749 case " $postdeps_CXX " in
10750 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
10753 lt_prog_compiler_wl_CXX
=
10754 lt_prog_compiler_pic_CXX
=
10755 lt_prog_compiler_static_CXX
=
10757 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10758 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10760 # C++ specific cases for pic, static, wl, etc.
10761 if test "$GXX" = yes; then
10762 lt_prog_compiler_wl_CXX
='-Wl,'
10763 lt_prog_compiler_static_CXX
='-static'
10767 # All AIX code is PIC.
10768 if test "$host_cpu" = ia64
; then
10769 # AIX 5 now supports IA64 processor
10770 lt_prog_compiler_static_CXX
='-Bstatic'
10774 # FIXME: we need at least 68020 code to build shared libraries, but
10775 # adding the `-m68020' flag to GCC prevents building anything better,
10777 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
10779 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
10780 # PIC is the default for these OSes.
10782 mingw
* | os2
* | pw32
*)
10783 # This hack is so that the source file can tell whether it is being
10784 # built for inclusion in a dll (and should export symbols for example).
10785 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
10787 darwin
* | rhapsody
*)
10788 # PIC is the default on this platform
10789 # Common symbols not allowed in MH_DYLIB files
10790 lt_prog_compiler_pic_CXX
='-fno-common'
10793 # DJGPP does not support shared libraries at all
10794 lt_prog_compiler_pic_CXX
=
10797 if test -d /usr
/nec
; then
10798 lt_prog_compiler_pic_CXX
=-Kconform_pic
10802 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10803 # not for PA HP-UX.
10804 case "$host_cpu" in
10808 lt_prog_compiler_pic_CXX
='-fPIC'
10813 lt_prog_compiler_pic_CXX
='-fPIC'
10819 # All AIX code is PIC.
10820 if test "$host_cpu" = ia64
; then
10821 # AIX 5 now supports IA64 processor
10822 lt_prog_compiler_static_CXX
='-Bstatic'
10824 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
10828 case $cc_basename in
10830 # Green Hills C++ Compiler
10831 # _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"
10836 case $cc_basename in
10838 lt_prog_compiler_pic_CXX
='-KPIC'
10841 # Green Hills C++ Compiler
10842 lt_prog_compiler_pic_CXX
='-pic'
10848 freebsd
* | kfreebsd
*-gnu)
10849 # FreeBSD uses GNU C++
10851 hpux9
* | hpux10
* | hpux11
*)
10852 case $cc_basename in
10854 lt_prog_compiler_wl_CXX
='-Wl,'
10855 lt_prog_compiler_static_CXX
="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10856 if test "$host_cpu" != ia64
; then
10857 lt_prog_compiler_pic_CXX
='+Z'
10861 lt_prog_compiler_wl_CXX
='-Wl,'
10862 lt_prog_compiler_static_CXX
="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10863 case "$host_cpu" in
10868 lt_prog_compiler_pic_CXX
='+Z'
10876 irix5
* | irix6
* | nonstopux
*)
10877 case $cc_basename in
10879 lt_prog_compiler_wl_CXX
='-Wl,'
10880 lt_prog_compiler_static_CXX
='-non_shared'
10881 # CC pic flag -KPIC is the default.
10888 case $cc_basename in
10891 lt_prog_compiler_wl_CXX
='--backend -Wl,'
10892 lt_prog_compiler_pic_CXX
='-fPIC'
10896 lt_prog_compiler_wl_CXX
='-Wl,'
10897 lt_prog_compiler_pic_CXX
='-KPIC'
10898 lt_prog_compiler_static_CXX
='-static'
10902 # Make sure the PIC flag is empty. It appears that all Alpha
10903 # Linux and Compaq Tru64 Unix objects are PIC.
10904 lt_prog_compiler_pic_CXX
=
10905 lt_prog_compiler_static_CXX
='-non_shared'
10916 case $cc_basename in
10918 lt_prog_compiler_pic_CXX
='-W c,exportall'
10924 netbsd
* | netbsdelf
*-gnu | knetbsd
*-gnu)
10926 osf3
* | osf4
* | osf5
*)
10927 case $cc_basename in
10929 lt_prog_compiler_wl_CXX
='--backend -Wl,'
10932 # Rational C++ 2.4.1
10933 lt_prog_compiler_pic_CXX
='-pic'
10936 # Digital/Compaq C++
10937 lt_prog_compiler_wl_CXX
='-Wl,'
10938 # Make sure the PIC flag is empty. It appears that all Alpha
10939 # Linux and Compaq Tru64 Unix objects are PIC.
10940 lt_prog_compiler_pic_CXX
=
10941 lt_prog_compiler_static_CXX
='-non_shared'
10950 case $cc_basename in
10952 lt_prog_compiler_pic_CXX
='-fPIC'
10959 case $cc_basename in
10961 # Sun C++ 4.2, 5.x and Centerline C++
10962 lt_prog_compiler_pic_CXX
='-KPIC'
10963 lt_prog_compiler_static_CXX
='-Bstatic'
10964 lt_prog_compiler_wl_CXX
='-Qoption ld '
10967 # Green Hills C++ Compiler
10968 lt_prog_compiler_pic_CXX
='-PIC'
10975 case $cc_basename in
10978 lt_prog_compiler_pic_CXX
='-pic'
10979 lt_prog_compiler_static_CXX
='-Bstatic'
10983 lt_prog_compiler_pic_CXX
='-pic'
10990 case $cc_basename in
10992 # NonStop-UX NCC 3.20
10993 lt_prog_compiler_pic_CXX
='-KPIC'
11004 lt_prog_compiler_can_build_shared_CXX
=no
11009 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11010 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11013 # Check to make sure the PIC flag actually works.
11015 if test -n "$lt_prog_compiler_pic_CXX"; then
11017 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11018 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11019 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11022 lt_prog_compiler_pic_works_CXX
=no
11023 ac_outfile
=conftest.
$ac_objext
11024 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11025 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
11026 # Insert the option either (1) after the last *FLAGS variable, or
11027 # (2) before a word containing "conftest.", or (3) at the end.
11028 # Note that $ac_compile itself does not contain backslashes and begins
11029 # with a dollar sign (not a hyphen), so the echo should work correctly.
11030 # The option is referenced via a variable to avoid confusing sed.
11031 lt_compile
=`echo "$ac_compile" | $SED \
11032 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11033 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11034 -e 's:$: $lt_compiler_flag:'`
11035 (eval echo "\"\$as_me:11035: $lt_compile\"" >&5)
11036 (eval "$lt_compile" 2>conftest.err
)
11038 cat conftest.err
>&5
11039 echo "$as_me:11039: \$? = $ac_status" >&5
11040 if (exit $ac_status) && test -s "$ac_outfile"; then
11041 # The compiler can only warn and ignore the option if not recognized
11042 # So say no if there are warnings
11043 if test ! -s conftest.err
; then
11044 lt_prog_compiler_pic_works_CXX
=yes
11050 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11051 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11053 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
11054 case $lt_prog_compiler_pic_CXX in
11056 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
11059 lt_prog_compiler_pic_CXX
=
11060 lt_prog_compiler_can_build_shared_CXX
=no
11065 # For platforms which do not support PIC, -DPIC is meaningless:
11067 lt_prog_compiler_pic_CXX
=
11070 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
11074 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11075 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11076 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11079 lt_cv_prog_compiler_c_o_CXX
=no
11080 $rm -r conftest
2>/dev
/null
11084 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11086 lt_compiler_flag
="-o out/conftest2.$ac_objext"
11087 # Insert the option either (1) after the last *FLAGS variable, or
11088 # (2) before a word containing "conftest.", or (3) at the end.
11089 # Note that $ac_compile itself does not contain backslashes and begins
11090 # with a dollar sign (not a hyphen), so the echo should work correctly.
11091 lt_compile
=`echo "$ac_compile" | $SED \
11092 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11094 -e 's:$: $lt_compiler_flag:'`
11095 (eval echo "\"\$as_me:11095: $lt_compile\"" >&5)
11096 (eval "$lt_compile" 2>out
/conftest.err
)
11098 cat out
/conftest.err
>&5
11099 echo "$as_me:11099: \$? = $ac_status" >&5
11100 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
11102 # The compiler can only warn and ignore the option if not recognized
11103 # So say no if there are warnings
11104 if test ! -s out
/conftest.err
; then
11105 lt_cv_prog_compiler_c_o_CXX
=yes
11110 # SGI C++ compiler will create directory out/ii_files/ for
11111 # template instantiation
11112 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
11113 $rm out
/* && rmdir out
11119 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11120 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11123 hard_links
="nottested"
11124 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
11125 # do not overwrite the value of need_locks provided by the user
11126 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11127 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11130 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
11132 ln conftest.a conftest.b
2>&5 || hard_links
=no
11133 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
11134 echo "$as_me:$LINENO: result: $hard_links" >&5
11135 echo "${ECHO_T}$hard_links" >&6
11136 if test "$hard_links" = no
; then
11137 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11138 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11145 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11146 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11148 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11151 # If we're using GNU nm, then we don't want the "-C" option.
11152 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11153 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
11154 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'
11156 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'
11160 export_symbols_cmds_CXX
="$ltdll_cmds"
11163 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11166 link_all_deplibs_CXX
=no
11169 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11173 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11174 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11175 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
11177 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11178 if test "$GCC" = yes; then
11179 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11183 # Do we need to explicitly link libc?
11185 case "x$archive_cmds_need_lc_CXX" in
11187 # Assume -lc should be added
11188 archive_cmds_need_lc_CXX
=yes
11190 if test "$enable_shared" = yes && test "$GCC" = yes; then
11191 case $archive_cmds_CXX in
11193 # FIXME: we may have to deal with multi-command sequences.
11196 # Test whether the compiler implicitly links with -lc since on some
11197 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11198 # to ld, don't add -lc before -lgcc.
11199 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11200 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11202 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11205 (eval $ac_compile) 2>&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } 2>conftest.err
; then
11211 libobjs
=conftest.
$ac_objext
11213 wl
=$lt_prog_compiler_wl_CXX
11219 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
11220 allow_undefined_flag_CXX
=
11221 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11222 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); }
11227 archive_cmds_need_lc_CXX
=no
11229 archive_cmds_need_lc_CXX
=yes
11231 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
11233 cat conftest.err
1>&5
11236 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11237 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11244 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11245 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11246 library_names_spec
=
11247 libname_spec
='lib$name'
11251 postuninstall_cmds
=
11255 shlibpath_overrides_runpath
=unknown
11257 dynamic_linker
="$host_os ld.so"
11258 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
11259 if test "$GCC" = yes; then
11260 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11261 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
11262 # if the path contains ";" then we assume it to be the separator
11263 # otherwise default to the standard path separator (i.e. ":") - it is
11264 # assumed that no part of a normal pathname contains ";" but that should
11265 # okay in the real world where ";" in dirpaths is itself problematic.
11266 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11268 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11271 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11273 need_lib_prefix
=unknown
11274 hardcode_into_libs
=no
11276 # when you set need_version to no, make sure it does not cause -set_version
11277 # flags to be left without arguments
11278 need_version
=unknown
11283 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
11284 shlibpath_var
=LIBPATH
11286 # AIX 3 has no versioning support, so we append a major version to the name.
11287 soname_spec
='${libname}${release}${shared_ext}$major'
11294 hardcode_into_libs
=yes
11295 if test "$host_cpu" = ia64
; then
11296 # AIX 5 supports IA64
11297 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11298 shlibpath_var
=LD_LIBRARY_PATH
11300 # With GCC up to 2.95.x, collect2 would create an import file
11301 # for dependence libraries. The import file would start with
11302 # the line `#! .'. This would cause the generated library to
11303 # depend on `.', always an invalid library. This was fixed in
11304 # development snapshots of GCC prior to 3.0.
11306 aix4 | aix4.
[01] | aix4.
[01].
*)
11307 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11309 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
11312 can_build_shared
=no
11316 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11317 # soname into executable. Probably we can add versioning support to
11318 # collect2, so additional links can be useful in future.
11319 if test "$aix_use_runtimelinking" = yes; then
11320 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11321 # instead of lib<name>.a to let people know that these are not
11322 # typical AIX shared libraries.
11323 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11325 # We preserve .a as extension for shared libraries through AIX4.2
11326 # and later when we are not doing run time linking.
11327 library_names_spec
='${libname}${release}.a $libname.a'
11328 soname_spec
='${libname}${release}${shared_ext}$major'
11330 shlibpath_var
=LIBPATH
11335 library_names_spec
='$libname.ixlibrary $libname.a'
11336 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11337 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'
11341 library_names_spec
='${libname}${shared_ext}'
11342 dynamic_linker
="$host_os ld.so"
11343 shlibpath_var
=LIBRARY_PATH
11349 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11350 soname_spec
='${libname}${release}${shared_ext}$major'
11351 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
11352 shlibpath_var
=LD_LIBRARY_PATH
11353 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11354 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
11355 # the default ld.so.conf also contains /usr/contrib/lib and
11356 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11357 # libtool to hard-code these into programs
11360 cygwin
* | mingw
* | pw32
*)
11361 version_type
=windows
11366 case $GCC,$host_os in
11367 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
11368 library_names_spec
='$libname.dll.a'
11369 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11370 postinstall_cmds
='base_file=`basename \${file}`~
11371 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11372 dldir=$destdir/`dirname \$dlpath`~
11373 test -d \$dldir || mkdir -p \$dldir~
11374 $install_prog $dir/$dlname \$dldir/$dlname'
11375 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11376 dlpath=$dir/\$dldll~
11378 shlibpath_overrides_runpath
=yes
11382 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11383 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11384 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
11387 # MinGW DLLs use traditional 'lib' prefix
11388 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11389 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11390 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
11391 # It is most probably a Windows format PATH printed by
11392 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11393 # path with ; separators, and with drive letters. We can handle the
11394 # drive letters (cygwin fileutils understands them), so leave them,
11395 # especially as we might pass files found there to a mingw objdump,
11396 # which wouldn't understand a cygwinified path. Ahh.
11397 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11399 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11403 # pw32 DLLs use 'pw' prefix rather than 'lib'
11404 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11410 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11413 dynamic_linker
='Win32 ld.exe'
11414 # FIXME: first we should search . and the directory the executable is in
11418 darwin
* | rhapsody
*)
11419 dynamic_linker
="$host_os dyld"
11420 version_type
=darwin
11423 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11424 soname_spec
='${libname}${release}${major}$shared_ext'
11425 shlibpath_overrides_runpath
=yes
11426 shlibpath_var
=DYLD_LIBRARY_PATH
11427 shrext_cmds
='$(test .$module = .yes && echo .so || echo .dylib)'
11428 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11429 if test "$GCC" = yes; then
11430 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"`
11432 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
11434 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11441 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11442 soname_spec
='${libname}${release}${shared_ext}$major'
11443 shlibpath_var
=LD_LIBRARY_PATH
11454 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11455 soname_spec
='${libname}${release}${shared_ext}$major'
11456 shlibpath_var
=LD_LIBRARY_PATH
11457 shlibpath_overrides_runpath
=no
11458 hardcode_into_libs
=yes
11459 dynamic_linker
='GNU ld.so'
11463 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11464 version_type
=freebsd-
$objformat
11465 case $version_type in
11467 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11472 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11476 shlibpath_var
=LD_LIBRARY_PATH
11479 shlibpath_overrides_runpath
=yes
11481 freebsd3.01
* | freebsdelf3.01
*)
11482 shlibpath_overrides_runpath
=yes
11483 hardcode_into_libs
=yes
11486 shlibpath_overrides_runpath
=no
11487 hardcode_into_libs
=yes
11496 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11497 soname_spec
='${libname}${release}${shared_ext}$major'
11498 shlibpath_var
=LD_LIBRARY_PATH
11499 hardcode_into_libs
=yes
11502 hpux9
* | hpux10
* | hpux11
*)
11503 # Give a soname corresponding to the major version so that dld.sl refuses to
11504 # link against other versions.
11508 case "$host_cpu" in
11511 hardcode_into_libs
=yes
11512 dynamic_linker
="$host_os dld.so"
11513 shlibpath_var
=LD_LIBRARY_PATH
11514 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11515 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11516 soname_spec
='${libname}${release}${shared_ext}$major'
11517 if test "X$HPUX_IA64_MODE" = X32
; then
11518 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11520 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11522 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11526 hardcode_into_libs
=yes
11527 dynamic_linker
="$host_os dld.sl"
11528 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11529 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11530 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11531 soname_spec
='${libname}${release}${shared_ext}$major'
11532 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11533 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11537 dynamic_linker
="$host_os dld.sl"
11538 shlibpath_var
=SHLIB_PATH
11539 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11540 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11541 soname_spec
='${libname}${release}${shared_ext}$major'
11544 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11545 postinstall_cmds
='chmod 555 $lib'
11548 irix5
* | irix6
* | nonstopux
*)
11550 nonstopux
*) version_type
=nonstopux
;;
11552 if test "$lt_cv_prog_gnu_ld" = yes; then
11560 soname_spec
='${libname}${release}${shared_ext}$major'
11561 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11563 irix5
* | nonstopux
*)
11564 libsuff
= shlibsuff
=
11567 case $LD in # libtool.m4 will add one of these switches to LD
11568 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11569 libsuff
= shlibsuff
= libmagic
=32-bit;;
11570 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11571 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11572 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11573 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11574 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11578 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11579 shlibpath_overrides_runpath
=no
11580 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11581 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
11582 hardcode_into_libs
=yes
11585 # No shared lib support for Linux oldld, aout, or coff.
11586 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11590 # This must be Linux ELF.
11595 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11596 soname_spec
='${libname}${release}${shared_ext}$major'
11597 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11598 shlibpath_var
=LD_LIBRARY_PATH
11599 shlibpath_overrides_runpath
=no
11600 # This implies no fast_install, which is unacceptable.
11601 # Some rework will be needed to allow for fast_install
11602 # before this can be enabled.
11603 hardcode_into_libs
=yes
11605 # Append ld.so.conf contents to the search path
11606 if test -f /etc
/ld.so.conf
; then
11607 lt_ld_extra
=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11608 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11611 # We used to test for /lib/ld.so.1 and disable shared libraries on
11612 # powerpc, because MkLinux only supported shared libraries with the
11613 # GNU dynamic linker. Since this was broken with cross compilers,
11614 # most powerpc-linux boxes support dynamic linking these days and
11615 # people can always --disable-shared, the test was removed, and we
11616 # assume the GNU/Linux dynamic linker is in use.
11617 dynamic_linker
='GNU/Linux ld.so'
11624 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11625 soname_spec
='${libname}${release}${shared_ext}$major'
11626 shlibpath_var
=LD_LIBRARY_PATH
11627 shlibpath_overrides_runpath
=no
11628 hardcode_into_libs
=yes
11629 dynamic_linker
='NetBSD ld.elf_so'
11636 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11637 soname_spec
='${libname}${release}${shared_ext}$major'
11638 shlibpath_var
=LD_LIBRARY_PATH
11639 shlibpath_overrides_runpath
=no
11640 hardcode_into_libs
=yes
11641 dynamic_linker
='GNU ld.so'
11648 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11649 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11650 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11651 dynamic_linker
='NetBSD (a.out) ld.so'
11653 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11654 soname_spec
='${libname}${release}${shared_ext}$major'
11655 dynamic_linker
='NetBSD ld.elf_so'
11657 shlibpath_var
=LD_LIBRARY_PATH
11658 shlibpath_overrides_runpath
=yes
11659 hardcode_into_libs
=yes
11664 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11665 shlibpath_var
=LD_LIBRARY_PATH
11666 shlibpath_overrides_runpath
=yes
11673 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11674 soname_spec
='${libname}${release}${shared_ext}$major'
11675 shlibpath_var
=LD_LIBRARY_PATH
11676 shlibpath_overrides_runpath
=yes
11683 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11684 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11685 shlibpath_var
=LD_LIBRARY_PATH
11686 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11688 openbsd2.
[89] | openbsd2.
[89].
*)
11689 shlibpath_overrides_runpath
=no
11692 shlibpath_overrides_runpath
=yes
11696 shlibpath_overrides_runpath
=yes
11701 libname_spec
='$name'
11704 library_names_spec
='$libname${shared_ext} $libname.a'
11705 dynamic_linker
='OS/2 ld.exe'
11706 shlibpath_var
=LIBPATH
11709 osf3
* | osf4
* | osf5
*)
11713 soname_spec
='${libname}${release}${shared_ext}$major'
11714 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11715 shlibpath_var
=LD_LIBRARY_PATH
11716 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11717 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11722 soname_spec
='${libname}${release}${shared_ext}$major'
11723 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11724 shlibpath_var
=LD_LIBRARY_PATH
11731 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11732 soname_spec
='${libname}${release}${shared_ext}$major'
11733 shlibpath_var
=LD_LIBRARY_PATH
11734 shlibpath_overrides_runpath
=yes
11735 hardcode_into_libs
=yes
11736 # ldd complains unless libraries are executable
11737 postinstall_cmds
='chmod +x $lib'
11742 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11743 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11744 shlibpath_var
=LD_LIBRARY_PATH
11745 shlibpath_overrides_runpath
=yes
11746 if test "$with_gnu_ld" = yes; then
11752 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
11754 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11755 soname_spec
='${libname}${release}${shared_ext}$major'
11756 shlibpath_var
=LD_LIBRARY_PATH
11757 case $host_vendor in
11759 shlibpath_overrides_runpath
=no
11761 export_dynamic_flag_spec
='${wl}-Blargedynsym'
11762 runpath_var
=LD_RUN_PATH
11770 shlibpath_overrides_runpath
=no
11771 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11777 if test -d /usr
/nec
;then
11779 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11780 soname_spec
='$libname${shared_ext}.$major'
11781 shlibpath_var
=LD_LIBRARY_PATH
11787 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11788 soname_spec
='${libname}${release}${shared_ext}$major'
11789 shlibpath_var
=LD_LIBRARY_PATH
11796 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11797 echo "${ECHO_T}$dynamic_linker" >&6
11798 test "$dynamic_linker" = no
&& can_build_shared
=no
11800 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11801 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11802 hardcode_action_CXX
=
11803 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11804 test -n "$runpath_var CXX" || \
11805 test "X$hardcode_automatic_CXX"="Xyes" ; then
11807 # We can hardcode non-existant directories.
11808 if test "$hardcode_direct_CXX" != no
&&
11809 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11810 # have to relink, otherwise we might link with an installed library
11811 # when we should be linking with a yet-to-be-installed one
11812 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11813 test "$hardcode_minus_L_CXX" != no
; then
11814 # Linking always hardcodes the temporary library directory.
11815 hardcode_action_CXX
=relink
11817 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11818 hardcode_action_CXX
=immediate
11821 # We cannot hardcode anything, or else we can only hardcode existing
11823 hardcode_action_CXX
=unsupported
11825 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11826 echo "${ECHO_T}$hardcode_action_CXX" >&6
11828 if test "$hardcode_action_CXX" = relink
; then
11829 # Fast installation is not supported
11830 enable_fast_install
=no
11831 elif test "$shlibpath_overrides_runpath" = yes ||
11832 test "$enable_shared" = no
; then
11833 # Fast installation is not necessary
11834 enable_fast_install
=needless
11839 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11840 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11841 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
11842 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11843 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11844 echo "$as_me:$LINENO: result: yes" >&5
11845 echo "${ECHO_T}yes" >&6
11847 # FIXME - insert some real tests, host_os isn't really good enough
11850 if test -n "$STRIP" ; then
11851 striplib
="$STRIP -x"
11852 echo "$as_me:$LINENO: result: yes" >&5
11853 echo "${ECHO_T}yes" >&6
11855 echo "$as_me:$LINENO: result: no" >&5
11856 echo "${ECHO_T}no" >&6
11860 echo "$as_me:$LINENO: result: no" >&5
11861 echo "${ECHO_T}no" >&6
11866 if test "x$enable_dlopen" != xyes
; then
11867 enable_dlopen
=unknown
11868 enable_dlopen_self
=unknown
11869 enable_dlopen_self_static
=unknown
11876 lt_cv_dlopen
="load_add_on"
11878 lt_cv_dlopen_self
=yes
11882 lt_cv_dlopen
="LoadLibrary"
11887 lt_cv_dlopen
="dlopen"
11892 # if libdl is installed we need to link against it
11893 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11894 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11895 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11896 echo $ECHO_N "(cached) $ECHO_C" >&6
11898 ac_check_lib_save_LIBS
=$LIBS
11900 cat >conftest.
$ac_ext <<_ACEOF
11903 cat confdefs.h
>>conftest.
$ac_ext
11904 cat >>conftest.
$ac_ext <<_ACEOF
11905 /* end confdefs.h. */
11907 /* Override any gcc2 internal prototype to avoid an error. */
11911 /* We use char because int might match the return type of a gcc2
11912 builtin and then its argument prototype would still apply. */
11922 rm -f conftest.
$ac_objext conftest
$ac_exeext
11923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11924 (eval $ac_link) 2>conftest.er1
11926 grep -v '^ *+' conftest.er1
>conftest.err
11928 cat conftest.err
>&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } &&
11931 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11933 (eval $ac_try) 2>&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); }; } &&
11937 { ac_try
='test -s conftest$ac_exeext'
11938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939 (eval $ac_try) 2>&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; }; then
11943 ac_cv_lib_dl_dlopen
=yes
11945 echo "$as_me: failed program was:" >&5
11946 sed 's/^/| /' conftest.
$ac_ext >&5
11948 ac_cv_lib_dl_dlopen
=no
11950 rm -f conftest.err conftest.
$ac_objext \
11951 conftest
$ac_exeext conftest.
$ac_ext
11952 LIBS
=$ac_check_lib_save_LIBS
11954 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11955 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11956 if test $ac_cv_lib_dl_dlopen = yes; then
11957 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11960 lt_cv_dlopen
="dyld"
11962 lt_cv_dlopen_self
=yes
11969 echo "$as_me:$LINENO: checking for shl_load" >&5
11970 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11971 if test "${ac_cv_func_shl_load+set}" = set; then
11972 echo $ECHO_N "(cached) $ECHO_C" >&6
11974 cat >conftest.
$ac_ext <<_ACEOF
11977 cat confdefs.h
>>conftest.
$ac_ext
11978 cat >>conftest.
$ac_ext <<_ACEOF
11979 /* end confdefs.h. */
11980 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11982 #define shl_load innocuous_shl_load
11984 /* System header to define __stub macros and hopefully few prototypes,
11985 which can conflict with char shl_load (); below.
11986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11987 <limits.h> exists even on freestanding compilers. */
11990 # include <limits.h>
11992 # include <assert.h>
11997 /* Override any gcc2 internal prototype to avoid an error. */
12002 /* We use char because int might match the return type of a gcc2
12003 builtin and then its argument prototype would still apply. */
12005 /* The GNU C library defines this for functions which it implements
12006 to always fail with ENOSYS. Some functions are actually named
12007 something starting with __ and the normal name is an alias. */
12008 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12011 char (*f) () = shl_load;
12020 return f != shl_load;
12025 rm -f conftest.
$ac_objext conftest
$ac_exeext
12026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12027 (eval $ac_link) 2>conftest.er1
12029 grep -v '^ *+' conftest.er1
>conftest.err
12031 cat conftest.err
>&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); } &&
12034 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036 (eval $ac_try) 2>&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; } &&
12040 { ac_try
='test -s conftest$ac_exeext'
12041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12042 (eval $ac_try) 2>&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; }; then
12046 ac_cv_func_shl_load
=yes
12048 echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.
$ac_ext >&5
12051 ac_cv_func_shl_load
=no
12053 rm -f conftest.err conftest.
$ac_objext \
12054 conftest
$ac_exeext conftest.
$ac_ext
12056 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12057 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12058 if test $ac_cv_func_shl_load = yes; then
12059 lt_cv_dlopen
="shl_load"
12061 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12062 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12063 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12064 echo $ECHO_N "(cached) $ECHO_C" >&6
12066 ac_check_lib_save_LIBS
=$LIBS
12068 cat >conftest.
$ac_ext <<_ACEOF
12071 cat confdefs.h
>>conftest.
$ac_ext
12072 cat >>conftest.
$ac_ext <<_ACEOF
12073 /* end confdefs.h. */
12075 /* Override any gcc2 internal prototype to avoid an error. */
12079 /* We use char because int might match the return type of a gcc2
12080 builtin and then its argument prototype would still apply. */
12090 rm -f conftest.
$ac_objext conftest
$ac_exeext
12091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12092 (eval $ac_link) 2>conftest.er1
12094 grep -v '^ *+' conftest.er1
>conftest.err
12096 cat conftest.err
>&5
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); } &&
12099 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12101 (eval $ac_try) 2>&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; } &&
12105 { ac_try
='test -s conftest$ac_exeext'
12106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12107 (eval $ac_try) 2>&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; }; then
12111 ac_cv_lib_dld_shl_load
=yes
12113 echo "$as_me: failed program was:" >&5
12114 sed 's/^/| /' conftest.
$ac_ext >&5
12116 ac_cv_lib_dld_shl_load
=no
12118 rm -f conftest.err conftest.
$ac_objext \
12119 conftest
$ac_exeext conftest.
$ac_ext
12120 LIBS
=$ac_check_lib_save_LIBS
12122 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12123 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12124 if test $ac_cv_lib_dld_shl_load = yes; then
12125 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
12127 echo "$as_me:$LINENO: checking for dlopen" >&5
12128 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12129 if test "${ac_cv_func_dlopen+set}" = set; then
12130 echo $ECHO_N "(cached) $ECHO_C" >&6
12132 cat >conftest.
$ac_ext <<_ACEOF
12135 cat confdefs.h
>>conftest.
$ac_ext
12136 cat >>conftest.
$ac_ext <<_ACEOF
12137 /* end confdefs.h. */
12138 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12140 #define dlopen innocuous_dlopen
12142 /* System header to define __stub macros and hopefully few prototypes,
12143 which can conflict with char dlopen (); below.
12144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12145 <limits.h> exists even on freestanding compilers. */
12148 # include <limits.h>
12150 # include <assert.h>
12155 /* Override any gcc2 internal prototype to avoid an error. */
12160 /* We use char because int might match the return type of a gcc2
12161 builtin and then its argument prototype would still apply. */
12163 /* The GNU C library defines this for functions which it implements
12164 to always fail with ENOSYS. Some functions are actually named
12165 something starting with __ and the normal name is an alias. */
12166 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12169 char (*f) () = dlopen;
12178 return f != dlopen;
12183 rm -f conftest.
$ac_objext conftest
$ac_exeext
12184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12185 (eval $ac_link) 2>conftest.er1
12187 grep -v '^ *+' conftest.er1
>conftest.err
12189 cat conftest.err
>&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); } &&
12192 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194 (eval $ac_try) 2>&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); }; } &&
12198 { ac_try
='test -s conftest$ac_exeext'
12199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12200 (eval $ac_try) 2>&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }; }; then
12204 ac_cv_func_dlopen
=yes
12206 echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.
$ac_ext >&5
12209 ac_cv_func_dlopen
=no
12211 rm -f conftest.err conftest.
$ac_objext \
12212 conftest
$ac_exeext conftest.
$ac_ext
12214 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12215 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12216 if test $ac_cv_func_dlopen = yes; then
12217 lt_cv_dlopen
="dlopen"
12219 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12220 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12221 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12222 echo $ECHO_N "(cached) $ECHO_C" >&6
12224 ac_check_lib_save_LIBS
=$LIBS
12226 cat >conftest.
$ac_ext <<_ACEOF
12229 cat confdefs.h
>>conftest.
$ac_ext
12230 cat >>conftest.
$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12233 /* Override any gcc2 internal prototype to avoid an error. */
12237 /* We use char because int might match the return type of a gcc2
12238 builtin and then its argument prototype would still apply. */
12248 rm -f conftest.
$ac_objext conftest
$ac_exeext
12249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12250 (eval $ac_link) 2>conftest.er1
12252 grep -v '^ *+' conftest.er1
>conftest.err
12254 cat conftest.err
>&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } &&
12257 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259 (eval $ac_try) 2>&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; } &&
12263 { ac_try
='test -s conftest$ac_exeext'
12264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265 (eval $ac_try) 2>&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; }; then
12269 ac_cv_lib_dl_dlopen
=yes
12271 echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.
$ac_ext >&5
12274 ac_cv_lib_dl_dlopen
=no
12276 rm -f conftest.err conftest.
$ac_objext \
12277 conftest
$ac_exeext conftest.
$ac_ext
12278 LIBS
=$ac_check_lib_save_LIBS
12280 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12281 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12282 if test $ac_cv_lib_dl_dlopen = yes; then
12283 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12285 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12286 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12287 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12290 ac_check_lib_save_LIBS
=$LIBS
12291 LIBS
="-lsvld $LIBS"
12292 cat >conftest.
$ac_ext <<_ACEOF
12295 cat confdefs.h
>>conftest.
$ac_ext
12296 cat >>conftest.
$ac_ext <<_ACEOF
12297 /* end confdefs.h. */
12299 /* Override any gcc2 internal prototype to avoid an error. */
12303 /* We use char because int might match the return type of a gcc2
12304 builtin and then its argument prototype would still apply. */
12314 rm -f conftest.
$ac_objext conftest
$ac_exeext
12315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12316 (eval $ac_link) 2>conftest.er1
12318 grep -v '^ *+' conftest.er1
>conftest.err
12320 cat conftest.err
>&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); } &&
12323 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325 (eval $ac_try) 2>&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; } &&
12329 { ac_try
='test -s conftest$ac_exeext'
12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331 (eval $ac_try) 2>&5
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; }; then
12335 ac_cv_lib_svld_dlopen
=yes
12337 echo "$as_me: failed program was:" >&5
12338 sed 's/^/| /' conftest.
$ac_ext >&5
12340 ac_cv_lib_svld_dlopen
=no
12342 rm -f conftest.err conftest.
$ac_objext \
12343 conftest
$ac_exeext conftest.
$ac_ext
12344 LIBS
=$ac_check_lib_save_LIBS
12346 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12347 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12348 if test $ac_cv_lib_svld_dlopen = yes; then
12349 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
12351 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12352 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12353 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12354 echo $ECHO_N "(cached) $ECHO_C" >&6
12356 ac_check_lib_save_LIBS
=$LIBS
12358 cat >conftest.
$ac_ext <<_ACEOF
12361 cat confdefs.h
>>conftest.
$ac_ext
12362 cat >>conftest.
$ac_ext <<_ACEOF
12363 /* end confdefs.h. */
12365 /* Override any gcc2 internal prototype to avoid an error. */
12369 /* We use char because int might match the return type of a gcc2
12370 builtin and then its argument prototype would still apply. */
12380 rm -f conftest.
$ac_objext conftest
$ac_exeext
12381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12382 (eval $ac_link) 2>conftest.er1
12384 grep -v '^ *+' conftest.er1
>conftest.err
12386 cat conftest.err
>&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); } &&
12389 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12391 (eval $ac_try) 2>&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; } &&
12395 { ac_try
='test -s conftest$ac_exeext'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; }; then
12401 ac_cv_lib_dld_dld_link
=yes
12403 echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.
$ac_ext >&5
12406 ac_cv_lib_dld_dld_link
=no
12408 rm -f conftest.err conftest.
$ac_objext \
12409 conftest
$ac_exeext conftest.
$ac_ext
12410 LIBS
=$ac_check_lib_save_LIBS
12412 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12413 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12414 if test $ac_cv_lib_dld_dld_link = yes; then
12415 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
12436 if test "x$lt_cv_dlopen" != xno
; then
12442 case $lt_cv_dlopen in
12444 save_CPPFLAGS
="$CPPFLAGS"
12445 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
12447 save_LDFLAGS
="$LDFLAGS"
12448 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
12451 LIBS
="$lt_cv_dlopen_libs $LIBS"
12453 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12454 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12455 if test "${lt_cv_dlopen_self+set}" = set; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12458 if test "$cross_compiling" = yes; then :
12459 lt_cv_dlopen_self
=cross
12461 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12462 lt_status
=$lt_dlunknown
12463 cat > conftest.
$ac_ext <<EOF
12464 #line 12464 "configure"
12465 #include "confdefs.h"
12474 # define LT_DLGLOBAL RTLD_GLOBAL
12477 # define LT_DLGLOBAL DL_GLOBAL
12479 # define LT_DLGLOBAL 0
12483 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12484 find out it does not work in some platform. */
12485 #ifndef LT_DLLAZY_OR_NOW
12487 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12490 # define LT_DLLAZY_OR_NOW DL_LAZY
12493 # define LT_DLLAZY_OR_NOW RTLD_NOW
12496 # define LT_DLLAZY_OR_NOW DL_NOW
12498 # define LT_DLLAZY_OR_NOW 0
12506 extern "C" void exit (int);
12509 void fnord() { int i=42;}
12512 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12513 int status = $lt_dlunknown;
12517 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12518 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12519 /* dlclose (self); */
12525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12526 (eval $ac_link) 2>&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12530 (.
/conftest
; exit; ) 2>/dev
/null
12532 case x
$lt_status in
12533 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12534 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12535 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
12538 # compilation failed
12539 lt_cv_dlopen_self
=no
12546 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12547 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12549 if test "x$lt_cv_dlopen_self" = xyes
; then
12550 LDFLAGS
="$LDFLAGS $link_static_flag"
12551 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12552 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12553 if test "${lt_cv_dlopen_self_static+set}" = set; then
12554 echo $ECHO_N "(cached) $ECHO_C" >&6
12556 if test "$cross_compiling" = yes; then :
12557 lt_cv_dlopen_self_static
=cross
12559 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12560 lt_status
=$lt_dlunknown
12561 cat > conftest.
$ac_ext <<EOF
12562 #line 12562 "configure"
12563 #include "confdefs.h"
12572 # define LT_DLGLOBAL RTLD_GLOBAL
12575 # define LT_DLGLOBAL DL_GLOBAL
12577 # define LT_DLGLOBAL 0
12581 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12582 find out it does not work in some platform. */
12583 #ifndef LT_DLLAZY_OR_NOW
12585 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12588 # define LT_DLLAZY_OR_NOW DL_LAZY
12591 # define LT_DLLAZY_OR_NOW RTLD_NOW
12594 # define LT_DLLAZY_OR_NOW DL_NOW
12596 # define LT_DLLAZY_OR_NOW 0
12604 extern "C" void exit (int);
12607 void fnord() { int i=42;}
12610 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12611 int status = $lt_dlunknown;
12615 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12616 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12617 /* dlclose (self); */
12623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12624 (eval $ac_link) 2>&5
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12628 (.
/conftest
; exit; ) 2>/dev
/null
12630 case x
$lt_status in
12631 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12632 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12633 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
12636 # compilation failed
12637 lt_cv_dlopen_self_static
=no
12644 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12645 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12648 CPPFLAGS
="$save_CPPFLAGS"
12649 LDFLAGS
="$save_LDFLAGS"
12654 case $lt_cv_dlopen_self in
12655 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12656 *) enable_dlopen_self
=unknown
;;
12659 case $lt_cv_dlopen_self_static in
12660 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12661 *) enable_dlopen_self_static
=unknown
;;
12666 # The else clause should only fire when bootstrapping the
12667 # libtool distribution, otherwise you forgot to ship ltmain.sh
12668 # with your package, and you will get complaints that there are
12669 # no rules to generate ltmain.sh.
12670 if test -f "$ltmain"; then
12671 # See if we are running on zsh, and set the options which allow our commands through
12672 # without removal of \ escapes.
12673 if test -n "${ZSH_VERSION+set}" ; then
12674 setopt NO_GLOB_SUBST
12676 # Now quote all the things that may contain metacharacters while being
12677 # careful not to overquote the AC_SUBSTed values. We take copies of the
12678 # variables and quote the copies for generation of the libtool script.
12679 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12681 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12682 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12683 deplibs_check_method reload_flag reload_cmds need_locks \
12684 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12685 lt_cv_sys_global_symbol_to_c_name_address \
12686 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12687 old_postinstall_cmds old_postuninstall_cmds \
12691 lt_prog_compiler_wl_CXX \
12692 lt_prog_compiler_pic_CXX \
12693 lt_prog_compiler_static_CXX \
12694 lt_prog_compiler_no_builtin_flag_CXX \
12695 export_dynamic_flag_spec_CXX \
12696 thread_safe_flag_spec_CXX \
12697 whole_archive_flag_spec_CXX \
12698 enable_shared_with_static_runtimes_CXX \
12699 old_archive_cmds_CXX \
12700 old_archive_from_new_cmds_CXX \
12701 predep_objects_CXX \
12702 postdep_objects_CXX \
12705 compiler_lib_search_path_CXX \
12707 archive_expsym_cmds_CXX \
12708 postinstall_cmds_CXX \
12709 postuninstall_cmds_CXX \
12710 old_archive_from_expsyms_cmds_CXX \
12711 allow_undefined_flag_CXX \
12712 no_undefined_flag_CXX \
12713 export_symbols_cmds_CXX \
12714 hardcode_libdir_flag_spec_CXX \
12715 hardcode_libdir_flag_spec_ld_CXX \
12716 hardcode_libdir_separator_CXX \
12717 hardcode_automatic_CXX \
12719 module_expsym_cmds_CXX \
12720 lt_cv_prog_compiler_c_o_CXX \
12721 exclude_expsyms_CXX \
12722 include_expsyms_CXX
; do
12725 old_archive_cmds_CXX | \
12726 old_archive_from_new_cmds_CXX | \
12727 archive_cmds_CXX | \
12728 archive_expsym_cmds_CXX | \
12729 module_cmds_CXX | \
12730 module_expsym_cmds_CXX | \
12731 old_archive_from_expsyms_cmds_CXX | \
12732 export_symbols_cmds_CXX | \
12733 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12734 postinstall_cmds | postuninstall_cmds | \
12735 old_postinstall_cmds | old_postuninstall_cmds | \
12736 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
12737 # Double-quote double-evaled strings.
12738 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12741 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12747 *'\$0 --fallback-echo"')
12748 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12754 cat <<__EOF__ >> "$cfgfile"
12755 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12757 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12759 # Shell to use when invoking shell scripts.
12762 # Whether or not to build shared libraries.
12763 build_libtool_libs=$enable_shared
12765 # Whether or not to build static libraries.
12766 build_old_libs=$enable_static
12768 # Whether or not to add -lc for building shared libraries.
12769 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12771 # Whether or not to disallow shared libs when runtime libs are static
12772 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12774 # Whether or not to optimize for fast installation.
12775 fast_install=$enable_fast_install
12778 host_alias=$host_alias
12781 # An echo program that does not interpret backslashes.
12786 AR_FLAGS=$lt_AR_FLAGS
12791 # A language-specific compiler.
12792 CC=$lt_compiler_CXX
12794 # Is the compiler the GNU C compiler?
12800 # The linker used to build libraries.
12803 # Whether we need hard or soft links.
12806 # A BSD-compatible nm program.
12809 # A symbol stripping program
12812 # Used to examine libraries when file_magic_cmd begins "file"
12813 MAGIC_CMD=$MAGIC_CMD
12815 # Used on cygwin: DLL creation program.
12818 # Used on cygwin: object dumper.
12821 # Used on cygwin: assembler.
12824 # The name of the directory that contains temporary libtool files.
12827 # How to create reloadable object files.
12828 reload_flag=$lt_reload_flag
12829 reload_cmds=$lt_reload_cmds
12831 # How to pass a linker flag through the compiler.
12832 wl=$lt_lt_prog_compiler_wl_CXX
12834 # Object file suffix (normally "o").
12835 objext="$ac_objext"
12837 # Old archive suffix (normally "a").
12840 # Shared library suffix (normally ".so").
12841 shrext_cmds='$shrext_cmds'
12843 # Executable file suffix (normally "").
12846 # Additional compiler flags for building library objects.
12847 pic_flag=$lt_lt_prog_compiler_pic_CXX
12850 # What is the maximum length of a command?
12851 max_cmd_len=$lt_cv_sys_max_cmd_len
12853 # Does compiler simultaneously support -c and -o options?
12854 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12856 # Must we lock files when doing compilation ?
12857 need_locks=$lt_need_locks
12859 # Do we need the lib prefix for modules?
12860 need_lib_prefix=$need_lib_prefix
12862 # Do we need a version for libraries?
12863 need_version=$need_version
12865 # Whether dlopen is supported.
12866 dlopen_support=$enable_dlopen
12868 # Whether dlopen of programs is supported.
12869 dlopen_self=$enable_dlopen_self
12871 # Whether dlopen of statically linked programs is supported.
12872 dlopen_self_static=$enable_dlopen_self_static
12874 # Compiler flag to prevent dynamic linking.
12875 link_static_flag=$lt_lt_prog_compiler_static_CXX
12877 # Compiler flag to turn off builtin functions.
12878 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12880 # Compiler flag to allow reflexive dlopens.
12881 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12883 # Compiler flag to generate shared objects directly from archives.
12884 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12886 # Compiler flag to generate thread-safe objects.
12887 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12889 # Library versioning type.
12890 version_type=$version_type
12892 # Format of library name prefix.
12893 libname_spec=$lt_libname_spec
12895 # List of archive names. First name is the real one, the rest are links.
12896 # The last name is the one that the linker finds with -lNAME.
12897 library_names_spec=$lt_library_names_spec
12899 # The coded name of the library, if different from the real name.
12900 soname_spec=$lt_soname_spec
12902 # Commands used to build and install an old-style archive.
12904 old_archive_cmds=$lt_old_archive_cmds_CXX
12905 old_postinstall_cmds=$lt_old_postinstall_cmds
12906 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12908 # Create an old-style archive from a shared archive.
12909 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12911 # Create a temporary old-style archive to link instead of a shared archive.
12912 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12914 # Commands used to build and install a shared archive.
12915 archive_cmds=$lt_archive_cmds_CXX
12916 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12917 postinstall_cmds=$lt_postinstall_cmds
12918 postuninstall_cmds=$lt_postuninstall_cmds
12920 # Commands used to build a loadable module (assumed same as above if empty)
12921 module_cmds=$lt_module_cmds_CXX
12922 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12924 # Commands to strip libraries.
12925 old_striplib=$lt_old_striplib
12926 striplib=$lt_striplib
12928 # Dependencies to place before the objects being linked to create a
12930 predep_objects=$lt_predep_objects_CXX
12932 # Dependencies to place after the objects being linked to create a
12934 postdep_objects=$lt_postdep_objects_CXX
12936 # Dependencies to place before the objects being linked to create a
12938 predeps=$lt_predeps_CXX
12940 # Dependencies to place after the objects being linked to create a
12942 postdeps=$lt_postdeps_CXX
12944 # The library search path used internally by the compiler when linking
12945 # a shared library.
12946 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12948 # Method to check whether dependent libraries are shared objects.
12949 deplibs_check_method=$lt_deplibs_check_method
12951 # Command to use when deplibs_check_method == file_magic.
12952 file_magic_cmd=$lt_file_magic_cmd
12954 # Flag that allows shared libraries with undefined symbols to be built.
12955 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12957 # Flag that forces no undefined symbols.
12958 no_undefined_flag=$lt_no_undefined_flag_CXX
12960 # Commands used to finish a libtool library installation in a directory.
12961 finish_cmds=$lt_finish_cmds
12963 # Same as above, but a single script fragment to be evaled but not shown.
12964 finish_eval=$lt_finish_eval
12966 # Take the output of nm and produce a listing of raw symbols and C names.
12967 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12969 # Transform the output of nm in a proper C declaration
12970 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12972 # Transform the output of nm in a C name address pair
12973 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12975 # This is the shared library runtime path variable.
12976 runpath_var=$runpath_var
12978 # This is the shared library path variable.
12979 shlibpath_var=$shlibpath_var
12981 # Is shlibpath searched before the hard-coded library search path?
12982 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12984 # How to hardcode a shared library path into an executable.
12985 hardcode_action=$hardcode_action_CXX
12987 # Whether we should hardcode library paths into libraries.
12988 hardcode_into_libs=$hardcode_into_libs
12990 # Flag to hardcode \$libdir into a binary during linking.
12991 # This must work even if \$libdir does not exist.
12992 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12994 # If ld is used when linking, flag to hardcode \$libdir into
12995 # a binary during linking. This must work even if \$libdir does
12997 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12999 # Whether we need a single -rpath flag with a separated argument.
13000 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13002 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13003 # resulting binary.
13004 hardcode_direct=$hardcode_direct_CXX
13006 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13007 # resulting binary.
13008 hardcode_minus_L=$hardcode_minus_L_CXX
13010 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13011 # the resulting binary.
13012 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13014 # Set to yes if building a shared library automatically hardcodes DIR into the library
13015 # and all subsequent libraries and executables linked against it.
13016 hardcode_automatic=$hardcode_automatic_CXX
13018 # Variables whose values should be saved in libtool wrapper scripts and
13019 # restored at relink time.
13020 variables_saved_for_relink="$variables_saved_for_relink"
13022 # Whether libtool must link a program against all its dependency libraries.
13023 link_all_deplibs=$link_all_deplibs_CXX
13025 # Compile-time system search path for libraries
13026 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13028 # Run-time system search path for libraries
13029 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13031 # Fix the shell variable \$srcfile for the compiler.
13032 fix_srcfile_path="$fix_srcfile_path_CXX"
13034 # Set to yes if exported symbols are required.
13035 always_export_symbols=$always_export_symbols_CXX
13037 # The commands to list exported symbols.
13038 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13040 # The commands to extract the exported symbol list from a shared archive.
13041 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13043 # Symbols that should not be listed in the preloaded symbols.
13044 exclude_expsyms=$lt_exclude_expsyms_CXX
13046 # Symbols that must always be exported.
13047 include_expsyms=$lt_include_expsyms_CXX
13049 # ### END LIBTOOL TAG CONFIG: $tagname
13055 # If there is no Makefile yet, we rely on a make rule to execute
13056 # `config.status --recheck' to rerun these tests and create the
13057 # libtool script then.
13058 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13059 if test -f "$ltmain_in"; then
13060 test -f Makefile
&& make "$ltmain"
13066 ac_cpp
='$CPP $CPPFLAGS'
13067 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13068 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13069 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13075 with_gnu_ldcxx
=$with_gnu_ld
13076 with_gnu_ld
=$lt_save_with_gnu_ld
13077 lt_cv_path_LDCXX
=$lt_cv_path_LD
13078 lt_cv_path_LD
=$lt_save_path_LD
13079 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
13080 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
13088 if test -n "$F77" && test "X$F77" != "Xno"; then
13091 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13092 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13093 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
13096 archive_cmds_need_lc_F77
=no
13097 allow_undefined_flag_F77
=
13098 always_export_symbols_F77
=no
13099 archive_expsym_cmds_F77
=
13100 export_dynamic_flag_spec_F77
=
13101 hardcode_direct_F77
=no
13102 hardcode_libdir_flag_spec_F77
=
13103 hardcode_libdir_flag_spec_ld_F77
=
13104 hardcode_libdir_separator_F77
=
13105 hardcode_minus_L_F77
=no
13106 hardcode_automatic_F77
=no
13108 module_expsym_cmds_F77
=
13109 link_all_deplibs_F77
=unknown
13110 old_archive_cmds_F77
=$old_archive_cmds
13111 no_undefined_flag_F77
=
13112 whole_archive_flag_spec_F77
=
13113 enable_shared_with_static_runtimes_F77
=no
13115 # Source file extension for f77 test sources.
13118 # Object file extension for compiled f77 test sources.
13122 # Code to be used in simple compile tests
13123 lt_simple_compile_test_code
=" subroutine t\n return\n end\n"
13125 # Code to be used in simple link tests
13126 lt_simple_link_test_code
=" program t\n end\n"
13128 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13130 # If no C compiler was specified, use CC.
13133 # Allow CC to be a program name with arguments.
13137 # Allow CC to be a program name with arguments.
13142 cc_basename
=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13144 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13145 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13146 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13147 echo "${ECHO_T}$can_build_shared" >&6
13149 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13150 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13151 test "$can_build_shared" = "no" && enable_shared
=no
13153 # On AIX, shared libraries and static libraries use the same namespace, and
13154 # are all built from PIC.
13157 test "$enable_shared" = yes && enable_static
=no
13158 if test -n "$RANLIB"; then
13159 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
13160 postinstall_cmds
='$RANLIB $lib'
13164 test "$enable_shared" = yes && enable_static
=no
13167 echo "$as_me:$LINENO: result: $enable_shared" >&5
13168 echo "${ECHO_T}$enable_shared" >&6
13170 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13171 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13172 # Make sure either enable_shared or enable_static is yes.
13173 test "$enable_shared" = yes || enable_static
=yes
13174 echo "$as_me:$LINENO: result: $enable_static" >&5
13175 echo "${ECHO_T}$enable_static" >&6
13177 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
13182 lt_prog_compiler_wl_F77
=
13183 lt_prog_compiler_pic_F77
=
13184 lt_prog_compiler_static_F77
=
13186 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13187 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13189 if test "$GCC" = yes; then
13190 lt_prog_compiler_wl_F77
='-Wl,'
13191 lt_prog_compiler_static_F77
='-static'
13195 # All AIX code is PIC.
13196 if test "$host_cpu" = ia64
; then
13197 # AIX 5 now supports IA64 processor
13198 lt_prog_compiler_static_F77
='-Bstatic'
13203 # FIXME: we need at least 68020 code to build shared libraries, but
13204 # adding the `-m68020' flag to GCC prevents building anything better,
13206 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
13209 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13210 # PIC is the default for these OSes.
13213 mingw
* | pw32
* | os2
*)
13214 # This hack is so that the source file can tell whether it is being
13215 # built for inclusion in a dll (and should export symbols for example).
13216 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13219 darwin
* | rhapsody
*)
13220 # PIC is the default on this platform
13221 # Common symbols not allowed in MH_DYLIB files
13222 lt_prog_compiler_pic_F77
='-fno-common'
13226 # Just because we use GCC doesn't mean we suddenly get shared libraries
13227 # on systems that don't support them.
13228 lt_prog_compiler_can_build_shared_F77
=no
13233 if test -d /usr
/nec
; then
13234 lt_prog_compiler_pic_F77
=-Kconform_pic
13239 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13240 # not for PA HP-UX.
13241 case "$host_cpu" in
13246 lt_prog_compiler_pic_F77
='-fPIC'
13252 lt_prog_compiler_pic_F77
='-fPIC'
13256 # PORTME Check for flag to pass linker flags through the system compiler.
13259 lt_prog_compiler_wl_F77
='-Wl,'
13260 if test "$host_cpu" = ia64
; then
13261 # AIX 5 now supports IA64 processor
13262 lt_prog_compiler_static_F77
='-Bstatic'
13264 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
13268 mingw
* | pw32
* | os2
*)
13269 # This hack is so that the source file can tell whether it is being
13270 # built for inclusion in a dll (and should export symbols for example).
13271 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13274 hpux9
* | hpux10
* | hpux11
*)
13275 lt_prog_compiler_wl_F77
='-Wl,'
13276 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13277 # not for PA HP-UX.
13278 case "$host_cpu" in
13283 lt_prog_compiler_pic_F77
='+Z'
13286 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13287 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
13290 irix5
* | irix6
* | nonstopux
*)
13291 lt_prog_compiler_wl_F77
='-Wl,'
13292 # PIC (with -KPIC) is the default.
13293 lt_prog_compiler_static_F77
='-non_shared'
13297 lt_prog_compiler_pic_F77
='-KPIC'
13298 lt_prog_compiler_static_F77
='-Bstatic'
13304 lt_prog_compiler_wl_F77
='-Wl,'
13305 lt_prog_compiler_pic_F77
='-KPIC'
13306 lt_prog_compiler_static_F77
='-static'
13309 lt_prog_compiler_wl_F77
='-Wl,'
13310 # All Alpha code is PIC.
13311 lt_prog_compiler_static_F77
='-non_shared'
13316 osf3
* | osf4
* | osf5
*)
13317 lt_prog_compiler_wl_F77
='-Wl,'
13318 # All OSF/1 code is PIC.
13319 lt_prog_compiler_static_F77
='-non_shared'
13323 lt_prog_compiler_pic_F77
='-Kpic'
13324 lt_prog_compiler_static_F77
='-dn'
13328 lt_prog_compiler_wl_F77
='-Wl,'
13329 lt_prog_compiler_pic_F77
='-KPIC'
13330 lt_prog_compiler_static_F77
='-Bstatic'
13334 lt_prog_compiler_wl_F77
='-Qoption ld '
13335 lt_prog_compiler_pic_F77
='-PIC'
13336 lt_prog_compiler_static_F77
='-Bstatic'
13339 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13340 lt_prog_compiler_wl_F77
='-Wl,'
13341 lt_prog_compiler_pic_F77
='-KPIC'
13342 lt_prog_compiler_static_F77
='-Bstatic'
13346 if test -d /usr
/nec
;then
13347 lt_prog_compiler_pic_F77
='-Kconform_pic'
13348 lt_prog_compiler_static_F77
='-Bstatic'
13353 lt_prog_compiler_pic_F77
='-pic'
13354 lt_prog_compiler_static_F77
='-Bstatic'
13358 lt_prog_compiler_can_build_shared_F77
=no
13363 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13364 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13367 # Check to make sure the PIC flag actually works.
13369 if test -n "$lt_prog_compiler_pic_F77"; then
13371 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13372 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13373 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13374 echo $ECHO_N "(cached) $ECHO_C" >&6
13376 lt_prog_compiler_pic_works_F77
=no
13377 ac_outfile
=conftest.
$ac_objext
13378 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13379 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
13380 # Insert the option either (1) after the last *FLAGS variable, or
13381 # (2) before a word containing "conftest.", or (3) at the end.
13382 # Note that $ac_compile itself does not contain backslashes and begins
13383 # with a dollar sign (not a hyphen), so the echo should work correctly.
13384 # The option is referenced via a variable to avoid confusing sed.
13385 lt_compile
=`echo "$ac_compile" | $SED \
13386 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13388 -e 's:$: $lt_compiler_flag:'`
13389 (eval echo "\"\$as_me:13389: $lt_compile\"" >&5)
13390 (eval "$lt_compile" 2>conftest.err
)
13392 cat conftest.err
>&5
13393 echo "$as_me:13393: \$? = $ac_status" >&5
13394 if (exit $ac_status) && test -s "$ac_outfile"; then
13395 # The compiler can only warn and ignore the option if not recognized
13396 # So say no if there are warnings
13397 if test ! -s conftest.err
; then
13398 lt_prog_compiler_pic_works_F77
=yes
13404 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13405 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13407 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
13408 case $lt_prog_compiler_pic_F77 in
13410 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
13413 lt_prog_compiler_pic_F77
=
13414 lt_prog_compiler_can_build_shared_F77
=no
13419 # For platforms which do not support PIC, -DPIC is meaningless:
13421 lt_prog_compiler_pic_F77
=
13424 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
13428 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13429 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13430 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
13433 lt_cv_prog_compiler_c_o_F77
=no
13434 $rm -r conftest
2>/dev
/null
13438 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13440 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13441 # Insert the option either (1) after the last *FLAGS variable, or
13442 # (2) before a word containing "conftest.", or (3) at the end.
13443 # Note that $ac_compile itself does not contain backslashes and begins
13444 # with a dollar sign (not a hyphen), so the echo should work correctly.
13445 lt_compile
=`echo "$ac_compile" | $SED \
13446 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13448 -e 's:$: $lt_compiler_flag:'`
13449 (eval echo "\"\$as_me:13449: $lt_compile\"" >&5)
13450 (eval "$lt_compile" 2>out
/conftest.err
)
13452 cat out
/conftest.err
>&5
13453 echo "$as_me:13453: \$? = $ac_status" >&5
13454 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13456 # The compiler can only warn and ignore the option if not recognized
13457 # So say no if there are warnings
13458 if test ! -s out
/conftest.err
; then
13459 lt_cv_prog_compiler_c_o_F77
=yes
13464 # SGI C++ compiler will create directory out/ii_files/ for
13465 # template instantiation
13466 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
13467 $rm out
/* && rmdir out
13473 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13474 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13477 hard_links
="nottested"
13478 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
13479 # do not overwrite the value of need_locks provided by the user
13480 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13481 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13484 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13486 ln conftest.a conftest.b
2>&5 || hard_links
=no
13487 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13488 echo "$as_me:$LINENO: result: $hard_links" >&5
13489 echo "${ECHO_T}$hard_links" >&6
13490 if test "$hard_links" = no
; then
13491 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13492 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13499 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13500 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13503 allow_undefined_flag_F77
=
13504 enable_shared_with_static_runtimes_F77
=no
13506 archive_expsym_cmds_F77
=
13507 old_archive_From_new_cmds_F77
=
13508 old_archive_from_expsyms_cmds_F77
=
13509 export_dynamic_flag_spec_F77
=
13510 whole_archive_flag_spec_F77
=
13511 thread_safe_flag_spec_F77
=
13512 hardcode_libdir_flag_spec_F77
=
13513 hardcode_libdir_flag_spec_ld_F77
=
13514 hardcode_libdir_separator_F77
=
13515 hardcode_direct_F77
=no
13516 hardcode_minus_L_F77
=no
13517 hardcode_shlibpath_var_F77
=unsupported
13518 link_all_deplibs_F77
=unknown
13519 hardcode_automatic_F77
=no
13521 module_expsym_cmds_F77
=
13522 always_export_symbols_F77
=no
13523 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13524 # include_expsyms should be a list of space-separated symbols to be *always*
13525 # included in the symbol list
13526 include_expsyms_F77
=
13527 # exclude_expsyms can be an extended regexp of symbols to exclude
13528 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13529 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13530 # as well as any symbol that contains `d'.
13531 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
13532 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13533 # platforms (ab)use it in PIC code, but their linkers get confused if
13534 # the symbol is explicitly referenced. Since portable code cannot
13535 # rely on this symbol name, it's probably fine to never include it in
13536 # preloaded symbol tables.
13537 extract_expsyms_cmds
=
13540 cygwin
* | mingw
* | pw32
*)
13541 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13542 # When not using gcc, we currently assume that we are using
13543 # Microsoft Visual C++.
13544 if test "$GCC" != yes; then
13554 if test "$with_gnu_ld" = yes; then
13555 # If archive_cmds runs LD, not CC, wlarc should be empty
13558 # See if GNU ld supports shared libraries.
13560 aix3
* | aix4
* | aix5
*)
13561 # On AIX/PPC, the GNU linker is very broken
13562 if test "$host_cpu" != ia64
; then
13566 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13567 *** to be unable to reliably create shared libraries on AIX.
13568 *** Therefore, libtool is disabling shared libraries support. If you
13569 *** really care for shared libraries, you may want to modify your PATH
13570 *** so that a non-GNU linker is found, and then restart.
13577 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)'
13578 hardcode_libdir_flag_spec_F77
='-L$libdir'
13579 hardcode_minus_L_F77
=yes
13581 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13582 # that the semantics of dynamic libraries on AmigaOS, at least up
13583 # to version 4, is to share data among multiple programs linked
13584 # with the same dynamic library. Since this doesn't match the
13585 # behavior of shared libraries on other platforms, we can't use
13591 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13592 allow_undefined_flag_F77
=unsupported
13593 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13594 # support --undefined. This deserves some investigation. FIXME
13595 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13601 cygwin
* | mingw
* | pw32
*)
13602 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13603 # as there is no search path for DLLs.
13604 hardcode_libdir_flag_spec_F77
='-L$libdir'
13605 allow_undefined_flag_F77
=unsupported
13606 always_export_symbols_F77
=no
13607 enable_shared_with_static_runtimes_F77
=yes
13608 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13610 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
13611 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13612 # If the export-symbols file already is a .def file (1st line
13613 # is EXPORTS), use it as is; otherwise, prepend...
13614 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13615 cp $export_symbols $output_objdir/$soname.def;
13617 echo EXPORTS > $output_objdir/$soname.def;
13618 cat $export_symbols >> $output_objdir/$soname.def;
13620 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13626 netbsd
* | netbsdelf
*-gnu | knetbsd
*-gnu)
13627 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
13628 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13631 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13632 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13637 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
13641 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13642 *** create shared libraries on Solaris systems. Therefore, libtool
13643 *** is disabling shared libraries support. We urge you to upgrade GNU
13644 *** binutils to release 2.9.1 or newer. Another option is to modify
13645 *** your PATH or compiler configuration so that the native linker is
13646 *** used, and then restart.
13649 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13650 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13651 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13658 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13660 hardcode_direct_F77
=yes
13661 hardcode_shlibpath_var_F77
=no
13665 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13666 tmp_archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13667 archive_cmds_F77
="$tmp_archive_cmds"
13668 supports_anon_versioning
=no
13669 case `$LD -v 2>/dev/null` in
13670 *\
01.
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
13671 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
13672 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
13673 *\
2.11.
*) ;; # other 2.11 versions
13674 *) supports_anon_versioning
=yes ;;
13676 if test $supports_anon_versioning = yes; then
13677 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
13678 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13679 $echo "local: *; };" >> $output_objdir/$libname.ver~
13680 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13682 archive_expsym_cmds_F77
="$tmp_archive_cmds"
13684 link_all_deplibs_F77
=no
13691 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13692 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13693 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13700 if test "$ld_shlibs_F77" = yes; then
13701 runpath_var
=LD_RUN_PATH
13702 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
13703 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
13704 # ancient GNU ld didn't support --whole-archive et. al.
13705 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
13706 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13708 whole_archive_flag_spec_F77
=
13712 # PORTME fill in a description of your system's linker (not GNU ld)
13715 allow_undefined_flag_F77
=unsupported
13716 always_export_symbols_F77
=yes
13717 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'
13718 # Note: this linker hardcodes the directories in LIBPATH if there
13719 # are no directories specified by -L.
13720 hardcode_minus_L_F77
=yes
13721 if test "$GCC" = yes && test -z "$link_static_flag"; then
13722 # Neither direct hardcoding nor static linking is supported with a
13724 hardcode_direct_F77
=unsupported
13729 if test "$host_cpu" = ia64
; then
13730 # On IA64, the linker does run time linking by default, so we don't
13731 # have to do anything special.
13732 aix_use_runtimelinking
=no
13733 exp_sym_flag
='-Bexport'
13736 # If we're using GNU nm, then we don't want the "-C" option.
13737 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13738 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
13739 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'
13741 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'
13743 aix_use_runtimelinking
=no
13745 # Test if we are trying to use run time linking or normal
13746 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13747 # need to do runtime linking.
13748 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
13749 for ld_flag
in $LDFLAGS; do
13750 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
13751 aix_use_runtimelinking
=yes
13757 exp_sym_flag
='-bexport'
13758 no_entry_flag
='-bnoentry'
13761 # When large executables or shared objects are built, AIX ld can
13762 # have problems creating the table of contents. If linking a library
13763 # or program results in "error TOC overflow" add -mminimal-toc to
13764 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13765 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13767 archive_cmds_F77
=''
13768 hardcode_direct_F77
=yes
13769 hardcode_libdir_separator_F77
=':'
13770 link_all_deplibs_F77
=yes
13772 if test "$GCC" = yes; then
13773 case $host_os in aix4.012|aix4.012.
*)
13774 # We only want to do this on AIX 4.2 and lower, the check
13775 # below for broken collect2 doesn't work under 4.3+
13776 collect2name
=`${CC} -print-prog-name=collect2`
13777 if test -f "$collect2name" && \
13778 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
13780 # We have reworked collect2
13781 hardcode_direct_F77
=yes
13783 # We have old collect2
13784 hardcode_direct_F77
=unsupported
13785 # It fails to find uninstalled libraries when the uninstalled
13786 # path is not listed in the libpath. Setting hardcode_minus_L
13787 # to unsupported forces relinking
13788 hardcode_minus_L_F77
=yes
13789 hardcode_libdir_flag_spec_F77
='-L$libdir'
13790 hardcode_libdir_separator_F77
=
13793 shared_flag
='-shared'
13796 if test "$host_cpu" = ia64
; then
13797 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13798 # chokes on -Wl,-G. The following line is correct:
13801 if test "$aix_use_runtimelinking" = yes; then
13802 shared_flag
='${wl}-G'
13804 shared_flag
='${wl}-bM:SRE'
13809 # It seems that -bexpall does not export symbols beginning with
13810 # underscore (_), so it is better to generate a list of symbols to export.
13811 always_export_symbols_F77
=yes
13812 if test "$aix_use_runtimelinking" = yes; then
13813 # Warning - without using the other runtime loading flags (-brtl),
13814 # -berok will link without error, but may produce a broken library.
13815 allow_undefined_flag_F77
='-berok'
13816 # Determine the default libpath from the value encoded in an empty executable.
13817 cat >conftest.
$ac_ext <<_ACEOF
13822 rm -f conftest.
$ac_objext conftest
$ac_exeext
13823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13824 (eval $ac_link) 2>conftest.er1
13826 grep -v '^ *+' conftest.er1
>conftest.err
13828 cat conftest.err
>&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); } &&
13831 { ac_try
='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833 (eval $ac_try) 2>&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); }; } &&
13837 { ac_try
='test -s conftest$ac_exeext'
13838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; }; then
13844 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13846 # Check for a 64-bit object if we didn't find anything.
13847 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; }
13850 echo "$as_me: failed program was:" >&5
13851 sed 's/^/| /' conftest.
$ac_ext >&5
13854 rm -f conftest.err conftest.
$ac_objext \
13855 conftest
$ac_exeext conftest.
$ac_ext
13856 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13858 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
13859 archive_expsym_cmds_F77
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13861 if test "$host_cpu" = ia64; then
13862 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr
/lib
:/lib
'
13863 allow_undefined_flag_F77="-z nodefs"
13864 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\
$export_symbols"
13866 # Determine the default libpath from the value encoded in an empty executable.
13867 cat >conftest.$ac_ext <<_ACEOF
13872 rm -f conftest.$ac_objext conftest$ac_exeext
13873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13874 (eval $ac_link) 2>conftest.er1
13876 grep -v '^ *+' conftest.er1 >conftest.err
13878 cat conftest.err >&5
13879 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13880 (exit $ac_status); } &&
13881 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883 (eval $ac_try) 2>&5
13885 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13886 (exit $ac_status); }; } &&
13887 { ac_try='test -s conftest$ac_exeext'
13888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889 (eval $ac_try) 2>&5
13891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13892 (exit $ac_status); }; }; then
13894 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13896 # Check for a 64-bit object if we didn't find anything.
13897 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; }
13900 echo "$as_me: failed program was
:" >&5
13901 sed 's/^/| /' conftest.$ac_ext >&5
13904 rm -f conftest.err conftest.$ac_objext \
13905 conftest$ac_exeext conftest.$ac_ext
13906 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
13908 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13909 # Warning - without using the other run time loading flags,
13910 # -berok will link without error, but may produce a broken library.
13911 no_undefined_flag_F77=' ${wl}-bernotok'
13912 allow_undefined_flag_F77=' ${wl}-berok'
13913 # -bexpall does not export symbols beginning with underscore (_)
13914 always_export_symbols_F77=yes
13915 # Exported symbols can be pulled into shared objects from archives
13916 whole_archive_flag_spec_F77=' '
13917 archive_cmds_need_lc_F77=yes
13918 # This is similar to how AIX traditionally builds it's shared libraries.
13919 archive_expsym_cmds_F77="\
$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13925 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)'
13926 hardcode_libdir_flag_spec_F77
='-L$libdir'
13927 hardcode_minus_L_F77
=yes
13928 # see comment about different semantics on the GNU ld section
13933 export_dynamic_flag_spec_F77
=-rdynamic
13936 cygwin
* | mingw
* | pw32
*)
13937 # When not using gcc, we currently assume that we are using
13938 # Microsoft Visual C++.
13939 # hardcode_libdir_flag_spec is actually meaningless, as there is
13940 # no search path for DLLs.
13941 hardcode_libdir_flag_spec_F77
=' '
13942 allow_undefined_flag_F77
=unsupported
13943 # Tell ltmain to make .lib files, not .a files.
13945 # Tell ltmain to make .dll files, not .so files.
13947 # FIXME: Setting linknames here is a bad hack.
13948 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13949 # The linker will automatically build a .lib file if we build a DLL.
13950 old_archive_From_new_cmds_F77
='true'
13951 # FIXME: Should let the user specify the lib program.
13952 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
13953 fix_srcfile_path
='`cygpath -w "$srcfile"`'
13954 enable_shared_with_static_runtimes_F77
=yes
13957 darwin
* | rhapsody
*)
13958 if test "$GXX" = yes ; then
13959 archive_cmds_need_lc_F77
=no
13961 rhapsody
* | darwin1.
[012])
13962 allow_undefined_flag_F77
='-undefined suppress'
13965 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13966 allow_undefined_flag_F77
='-flat_namespace -undefined suppress'
13968 case ${MACOSX_DEPLOYMENT_TARGET} in
13970 allow_undefined_flag_F77
='-flat_namespace -undefined suppress'
13973 allow_undefined_flag_F77
='-undefined dynamic_lookup'
13979 lt_int_apple_cc_single_mod
=no
13980 output_verbose_link_cmd
='echo'
13981 if $CC -dumpspecs 2>&1 |
grep 'single_module' >/dev
/null
; then
13982 lt_int_apple_cc_single_mod
=yes
13984 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
13985 archive_cmds_F77
='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13987 archive_cmds_F77
='$CC -r ${wl}-bind_at_load -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'
13989 module_cmds_F77
='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13990 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13991 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
13992 archive_expsym_cmds_F77
='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}'
13994 archive_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
13996 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}'
13997 hardcode_direct_F77
=no
13998 hardcode_automatic_F77
=yes
13999 hardcode_shlibpath_var_F77
=unsupported
14000 whole_archive_flag_spec_F77
='-all_load $convenience'
14001 link_all_deplibs_F77
=yes
14008 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14009 hardcode_libdir_flag_spec_F77
='-L$libdir'
14010 hardcode_shlibpath_var_F77
=no
14017 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14018 # support. Future versions do this automatically, but an explicit c++rt0.o
14019 # does not break anything, and helps significantly (at the cost of a little
14022 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14023 hardcode_libdir_flag_spec_F77
='-R$libdir'
14024 hardcode_direct_F77
=yes
14025 hardcode_shlibpath_var_F77
=no
14028 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14030 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14031 hardcode_direct_F77
=yes
14032 hardcode_minus_L_F77
=yes
14033 hardcode_shlibpath_var_F77
=no
14036 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14037 freebsd
* | kfreebsd
*-gnu)
14038 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14039 hardcode_libdir_flag_spec_F77
='-R$libdir'
14040 hardcode_direct_F77
=yes
14041 hardcode_shlibpath_var_F77
=no
14045 if test "$GCC" = yes; then
14046 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'
14048 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'
14050 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14051 hardcode_libdir_separator_F77
=:
14052 hardcode_direct_F77
=yes
14054 # hardcode_minus_L: Not really in the search PATH,
14055 # but as the default location of the library.
14056 hardcode_minus_L_F77
=yes
14057 export_dynamic_flag_spec_F77
='${wl}-E'
14061 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14062 case "$host_cpu" in
14064 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14067 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14071 case "$host_cpu" in
14073 archive_cmds_F77
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14076 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14080 if test "$with_gnu_ld" = no
; then
14081 case "$host_cpu" in
14083 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14084 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
14085 hardcode_libdir_separator_F77
=:
14086 hardcode_direct_F77
=no
14087 hardcode_shlibpath_var_F77
=no
14090 hardcode_libdir_flag_spec_F77
='-L$libdir'
14091 hardcode_direct_F77
=no
14092 hardcode_shlibpath_var_F77
=no
14094 # hardcode_minus_L: Not really in the search PATH,
14095 # but as the default location of the library.
14096 hardcode_minus_L_F77
=yes
14099 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14100 hardcode_libdir_separator_F77
=:
14101 hardcode_direct_F77
=yes
14102 export_dynamic_flag_spec_F77
='${wl}-E'
14104 # hardcode_minus_L: Not really in the search PATH,
14105 # but as the default location of the library.
14106 hardcode_minus_L_F77
=yes
14112 irix5
* | irix6
* | nonstopux
*)
14113 if test "$GCC" = yes; then
14114 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'
14116 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'
14117 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
14119 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14120 hardcode_libdir_separator_F77
=:
14121 link_all_deplibs_F77
=yes
14124 netbsd
* | netbsdelf
*-gnu | knetbsd
*-gnu)
14125 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14126 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14128 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14130 hardcode_libdir_flag_spec_F77
='-R$libdir'
14131 hardcode_direct_F77
=yes
14132 hardcode_shlibpath_var_F77
=no
14136 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14137 hardcode_direct_F77
=yes
14138 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14139 hardcode_libdir_separator_F77
=:
14140 hardcode_shlibpath_var_F77
=no
14144 hardcode_direct_F77
=yes
14145 hardcode_shlibpath_var_F77
=no
14146 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14147 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14148 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14149 export_dynamic_flag_spec_F77
='${wl}-E'
14152 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
14153 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14154 hardcode_libdir_flag_spec_F77
='-R$libdir'
14157 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14158 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14165 hardcode_libdir_flag_spec_F77
='-L$libdir'
14166 hardcode_minus_L_F77
=yes
14167 allow_undefined_flag_F77
=unsupported
14168 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'
14169 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14173 if test "$GCC" = yes; then
14174 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14175 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'
14177 allow_undefined_flag_F77
=' -expect_unresolved \*'
14178 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'
14180 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14181 hardcode_libdir_separator_F77
=:
14184 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
14185 if test "$GCC" = yes; then
14186 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14187 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'
14188 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14190 allow_undefined_flag_F77
=' -expect_unresolved \*'
14191 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'
14192 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~
14193 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14195 # Both c and cxx compiler support -rpath directly
14196 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
14198 hardcode_libdir_separator_F77
=:
14202 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14203 hardcode_shlibpath_var_F77
=no
14204 export_dynamic_flag_spec_F77
='${wl}-Bexport'
14205 runpath_var
=LD_RUN_PATH
14206 hardcode_runpath_var
=yes
14210 no_undefined_flag_F77
=' -z text'
14211 if test "$GCC" = yes; then
14212 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14213 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14214 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14216 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14217 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14218 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14220 hardcode_libdir_flag_spec_F77
='-R$libdir'
14221 hardcode_shlibpath_var_F77
=no
14223 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
14224 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14225 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract' ;;
14227 link_all_deplibs_F77
=yes
14231 if test "x$host_vendor" = xsequent
; then
14232 # Use $CC to link under sequent, because it throws in some extra .o
14233 # files that make .init and .fini sections work.
14234 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14236 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14238 hardcode_libdir_flag_spec_F77
='-L$libdir'
14239 hardcode_direct_F77
=yes
14240 hardcode_minus_L_F77
=yes
14241 hardcode_shlibpath_var_F77
=no
14245 case $host_vendor in
14247 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14248 hardcode_direct_F77
=yes # is this really true???
14251 ## LD is ld it makes a PLAMLIB
14252 ## CC just makes a GrossModule.
14253 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14254 reload_cmds_F77
='$CC -r -o $output$reload_objs'
14255 hardcode_direct_F77
=no
14258 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14259 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
14262 runpath_var
='LD_RUN_PATH'
14263 hardcode_shlibpath_var_F77
=no
14267 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14268 hardcode_shlibpath_var_F77
=no
14269 export_dynamic_flag_spec_F77
='-Bexport'
14273 if test -d /usr
/nec
; then
14274 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14275 hardcode_shlibpath_var_F77
=no
14276 runpath_var
=LD_RUN_PATH
14277 hardcode_runpath_var
=yes
14283 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14284 hardcode_direct_F77
=yes
14285 hardcode_minus_L_F77
=no
14286 hardcode_shlibpath_var_F77
=no
14287 hardcode_runpath_var
=yes
14288 runpath_var
=LD_RUN_PATH
14291 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
14292 no_undefined_flag_F77
='${wl}-z ${wl}text'
14293 if test "$GCC" = yes; then
14294 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14296 archive_cmds_F77
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14298 runpath_var
='LD_RUN_PATH'
14299 hardcode_shlibpath_var_F77
=no
14303 no_undefined_flag_F77
=' -z text'
14304 # $CC -shared without GNU ld will not create a library from C++
14305 # object files and a static libstdc++, better avoid it by now
14306 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14307 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14308 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14309 hardcode_libdir_flag_spec_F77
=
14310 hardcode_shlibpath_var_F77
=no
14311 runpath_var
='LD_RUN_PATH'
14315 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14316 hardcode_libdir_flag_spec_F77
='-L$libdir'
14317 hardcode_shlibpath_var_F77
=no
14326 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14327 echo "${ECHO_T}$ld_shlibs_F77" >&6
14328 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
14330 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14331 if test "$GCC" = yes; then
14332 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14336 # Do we need to explicitly link libc?
14338 case "x$archive_cmds_need_lc_F77" in
14340 # Assume -lc should be added
14341 archive_cmds_need_lc_F77
=yes
14343 if test "$enable_shared" = yes && test "$GCC" = yes; then
14344 case $archive_cmds_F77 in
14346 # FIXME: we may have to deal with multi-command sequences.
14349 # Test whether the compiler implicitly links with -lc since on some
14350 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14351 # to ld, don't add -lc before -lgcc.
14352 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14353 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14355 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
14357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14358 (eval $ac_compile) 2>&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } 2>conftest.err
; then
14364 libobjs
=conftest.
$ac_objext
14366 wl
=$lt_prog_compiler_wl_F77
14372 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
14373 allow_undefined_flag_F77
=
14374 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14375 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); }
14380 archive_cmds_need_lc_F77
=no
14382 archive_cmds_need_lc_F77
=yes
14384 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
14386 cat conftest.err
1>&5
14389 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14390 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14397 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14398 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14399 library_names_spec
=
14400 libname_spec
='lib$name'
14404 postuninstall_cmds
=
14408 shlibpath_overrides_runpath
=unknown
14410 dynamic_linker
="$host_os ld.so"
14411 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14412 if test "$GCC" = yes; then
14413 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14414 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
14415 # if the path contains ";" then we assume it to be the separator
14416 # otherwise default to the standard path separator (i.e. ":") - it is
14417 # assumed that no part of a normal pathname contains ";" but that should
14418 # okay in the real world where ";" in dirpaths is itself problematic.
14419 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14421 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14424 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
14426 need_lib_prefix
=unknown
14427 hardcode_into_libs
=no
14429 # when you set need_version to no, make sure it does not cause -set_version
14430 # flags to be left without arguments
14431 need_version
=unknown
14436 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14437 shlibpath_var
=LIBPATH
14439 # AIX 3 has no versioning support, so we append a major version to the name.
14440 soname_spec
='${libname}${release}${shared_ext}$major'
14447 hardcode_into_libs
=yes
14448 if test "$host_cpu" = ia64
; then
14449 # AIX 5 supports IA64
14450 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14451 shlibpath_var
=LD_LIBRARY_PATH
14453 # With GCC up to 2.95.x, collect2 would create an import file
14454 # for dependence libraries. The import file would start with
14455 # the line `#! .'. This would cause the generated library to
14456 # depend on `.', always an invalid library. This was fixed in
14457 # development snapshots of GCC prior to 3.0.
14459 aix4 | aix4.
[01] | aix4.
[01].
*)
14460 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14462 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
14465 can_build_shared
=no
14469 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14470 # soname into executable. Probably we can add versioning support to
14471 # collect2, so additional links can be useful in future.
14472 if test "$aix_use_runtimelinking" = yes; then
14473 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14474 # instead of lib<name>.a to let people know that these are not
14475 # typical AIX shared libraries.
14476 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14478 # We preserve .a as extension for shared libraries through AIX4.2
14479 # and later when we are not doing run time linking.
14480 library_names_spec
='${libname}${release}.a $libname.a'
14481 soname_spec
='${libname}${release}${shared_ext}$major'
14483 shlibpath_var
=LIBPATH
14488 library_names_spec
='$libname.ixlibrary $libname.a'
14489 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14490 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'
14494 library_names_spec
='${libname}${shared_ext}'
14495 dynamic_linker
="$host_os ld.so"
14496 shlibpath_var
=LIBRARY_PATH
14502 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14503 soname_spec
='${libname}${release}${shared_ext}$major'
14504 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14505 shlibpath_var
=LD_LIBRARY_PATH
14506 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14507 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14508 # the default ld.so.conf also contains /usr/contrib/lib and
14509 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14510 # libtool to hard-code these into programs
14513 cygwin
* | mingw
* | pw32
*)
14514 version_type
=windows
14519 case $GCC,$host_os in
14520 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
14521 library_names_spec
='$libname.dll.a'
14522 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14523 postinstall_cmds
='base_file=`basename \${file}`~
14524 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14525 dldir=$destdir/`dirname \$dlpath`~
14526 test -d \$dldir || mkdir -p \$dldir~
14527 $install_prog $dir/$dlname \$dldir/$dlname'
14528 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14529 dlpath=$dir/\$dldll~
14531 shlibpath_overrides_runpath
=yes
14535 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14536 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14537 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
14540 # MinGW DLLs use traditional 'lib' prefix
14541 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14542 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14543 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
14544 # It is most probably a Windows format PATH printed by
14545 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14546 # path with ; separators, and with drive letters. We can handle the
14547 # drive letters (cygwin fileutils understands them), so leave them,
14548 # especially as we might pass files found there to a mingw objdump,
14549 # which wouldn't understand a cygwinified path. Ahh.
14550 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14552 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14556 # pw32 DLLs use 'pw' prefix rather than 'lib'
14557 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14563 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14566 dynamic_linker
='Win32 ld.exe'
14567 # FIXME: first we should search . and the directory the executable is in
14571 darwin
* | rhapsody
*)
14572 dynamic_linker
="$host_os dyld"
14573 version_type
=darwin
14576 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14577 soname_spec
='${libname}${release}${major}$shared_ext'
14578 shlibpath_overrides_runpath
=yes
14579 shlibpath_var
=DYLD_LIBRARY_PATH
14580 shrext_cmds
='$(test .$module = .yes && echo .so || echo .dylib)'
14581 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14582 if test "$GCC" = yes; then
14583 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"`
14585 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
14587 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14594 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14595 soname_spec
='${libname}${release}${shared_ext}$major'
14596 shlibpath_var
=LD_LIBRARY_PATH
14607 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14608 soname_spec
='${libname}${release}${shared_ext}$major'
14609 shlibpath_var
=LD_LIBRARY_PATH
14610 shlibpath_overrides_runpath
=no
14611 hardcode_into_libs
=yes
14612 dynamic_linker
='GNU ld.so'
14616 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14617 version_type
=freebsd-
$objformat
14618 case $version_type in
14620 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14625 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14629 shlibpath_var
=LD_LIBRARY_PATH
14632 shlibpath_overrides_runpath
=yes
14634 freebsd3.01
* | freebsdelf3.01
*)
14635 shlibpath_overrides_runpath
=yes
14636 hardcode_into_libs
=yes
14639 shlibpath_overrides_runpath
=no
14640 hardcode_into_libs
=yes
14649 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14650 soname_spec
='${libname}${release}${shared_ext}$major'
14651 shlibpath_var
=LD_LIBRARY_PATH
14652 hardcode_into_libs
=yes
14655 hpux9
* | hpux10
* | hpux11
*)
14656 # Give a soname corresponding to the major version so that dld.sl refuses to
14657 # link against other versions.
14661 case "$host_cpu" in
14664 hardcode_into_libs
=yes
14665 dynamic_linker
="$host_os dld.so"
14666 shlibpath_var
=LD_LIBRARY_PATH
14667 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14668 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14669 soname_spec
='${libname}${release}${shared_ext}$major'
14670 if test "X$HPUX_IA64_MODE" = X32
; then
14671 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14673 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14675 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14679 hardcode_into_libs
=yes
14680 dynamic_linker
="$host_os dld.sl"
14681 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14682 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14683 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14684 soname_spec
='${libname}${release}${shared_ext}$major'
14685 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14686 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14690 dynamic_linker
="$host_os dld.sl"
14691 shlibpath_var
=SHLIB_PATH
14692 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14693 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14694 soname_spec
='${libname}${release}${shared_ext}$major'
14697 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14698 postinstall_cmds
='chmod 555 $lib'
14701 irix5
* | irix6
* | nonstopux
*)
14703 nonstopux
*) version_type
=nonstopux
;;
14705 if test "$lt_cv_prog_gnu_ld" = yes; then
14713 soname_spec
='${libname}${release}${shared_ext}$major'
14714 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14716 irix5
* | nonstopux
*)
14717 libsuff
= shlibsuff
=
14720 case $LD in # libtool.m4 will add one of these switches to LD
14721 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14722 libsuff
= shlibsuff
= libmagic
=32-bit;;
14723 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14724 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14725 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14726 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14727 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14731 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14732 shlibpath_overrides_runpath
=no
14733 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14734 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14735 hardcode_into_libs
=yes
14738 # No shared lib support for Linux oldld, aout, or coff.
14739 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14743 # This must be Linux ELF.
14748 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14749 soname_spec
='${libname}${release}${shared_ext}$major'
14750 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14751 shlibpath_var
=LD_LIBRARY_PATH
14752 shlibpath_overrides_runpath
=no
14753 # This implies no fast_install, which is unacceptable.
14754 # Some rework will be needed to allow for fast_install
14755 # before this can be enabled.
14756 hardcode_into_libs
=yes
14758 # Append ld.so.conf contents to the search path
14759 if test -f /etc
/ld.so.conf
; then
14760 lt_ld_extra
=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14761 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14764 # We used to test for /lib/ld.so.1 and disable shared libraries on
14765 # powerpc, because MkLinux only supported shared libraries with the
14766 # GNU dynamic linker. Since this was broken with cross compilers,
14767 # most powerpc-linux boxes support dynamic linking these days and
14768 # people can always --disable-shared, the test was removed, and we
14769 # assume the GNU/Linux dynamic linker is in use.
14770 dynamic_linker
='GNU/Linux ld.so'
14777 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14778 soname_spec
='${libname}${release}${shared_ext}$major'
14779 shlibpath_var
=LD_LIBRARY_PATH
14780 shlibpath_overrides_runpath
=no
14781 hardcode_into_libs
=yes
14782 dynamic_linker
='NetBSD ld.elf_so'
14789 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14790 soname_spec
='${libname}${release}${shared_ext}$major'
14791 shlibpath_var
=LD_LIBRARY_PATH
14792 shlibpath_overrides_runpath
=no
14793 hardcode_into_libs
=yes
14794 dynamic_linker
='GNU ld.so'
14801 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14802 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14803 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14804 dynamic_linker
='NetBSD (a.out) ld.so'
14806 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14807 soname_spec
='${libname}${release}${shared_ext}$major'
14808 dynamic_linker
='NetBSD ld.elf_so'
14810 shlibpath_var
=LD_LIBRARY_PATH
14811 shlibpath_overrides_runpath
=yes
14812 hardcode_into_libs
=yes
14817 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14818 shlibpath_var
=LD_LIBRARY_PATH
14819 shlibpath_overrides_runpath
=yes
14826 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14827 soname_spec
='${libname}${release}${shared_ext}$major'
14828 shlibpath_var
=LD_LIBRARY_PATH
14829 shlibpath_overrides_runpath
=yes
14836 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14837 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14838 shlibpath_var
=LD_LIBRARY_PATH
14839 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14841 openbsd2.
[89] | openbsd2.
[89].
*)
14842 shlibpath_overrides_runpath
=no
14845 shlibpath_overrides_runpath
=yes
14849 shlibpath_overrides_runpath
=yes
14854 libname_spec
='$name'
14857 library_names_spec
='$libname${shared_ext} $libname.a'
14858 dynamic_linker
='OS/2 ld.exe'
14859 shlibpath_var
=LIBPATH
14862 osf3
* | osf4
* | osf5
*)
14866 soname_spec
='${libname}${release}${shared_ext}$major'
14867 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14868 shlibpath_var
=LD_LIBRARY_PATH
14869 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14870 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14875 soname_spec
='${libname}${release}${shared_ext}$major'
14876 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14877 shlibpath_var
=LD_LIBRARY_PATH
14884 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14885 soname_spec
='${libname}${release}${shared_ext}$major'
14886 shlibpath_var
=LD_LIBRARY_PATH
14887 shlibpath_overrides_runpath
=yes
14888 hardcode_into_libs
=yes
14889 # ldd complains unless libraries are executable
14890 postinstall_cmds
='chmod +x $lib'
14895 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14896 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14897 shlibpath_var
=LD_LIBRARY_PATH
14898 shlibpath_overrides_runpath
=yes
14899 if test "$with_gnu_ld" = yes; then
14905 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
14907 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14908 soname_spec
='${libname}${release}${shared_ext}$major'
14909 shlibpath_var
=LD_LIBRARY_PATH
14910 case $host_vendor in
14912 shlibpath_overrides_runpath
=no
14914 export_dynamic_flag_spec
='${wl}-Blargedynsym'
14915 runpath_var
=LD_RUN_PATH
14923 shlibpath_overrides_runpath
=no
14924 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14930 if test -d /usr
/nec
;then
14932 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14933 soname_spec
='$libname${shared_ext}.$major'
14934 shlibpath_var
=LD_LIBRARY_PATH
14940 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14941 soname_spec
='${libname}${release}${shared_ext}$major'
14942 shlibpath_var
=LD_LIBRARY_PATH
14949 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14950 echo "${ECHO_T}$dynamic_linker" >&6
14951 test "$dynamic_linker" = no
&& can_build_shared
=no
14953 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14954 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14955 hardcode_action_F77
=
14956 if test -n "$hardcode_libdir_flag_spec_F77" || \
14957 test -n "$runpath_var F77" || \
14958 test "X$hardcode_automatic_F77"="Xyes" ; then
14960 # We can hardcode non-existant directories.
14961 if test "$hardcode_direct_F77" != no
&&
14962 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14963 # have to relink, otherwise we might link with an installed library
14964 # when we should be linking with a yet-to-be-installed one
14965 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14966 test "$hardcode_minus_L_F77" != no
; then
14967 # Linking always hardcodes the temporary library directory.
14968 hardcode_action_F77
=relink
14970 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14971 hardcode_action_F77
=immediate
14974 # We cannot hardcode anything, or else we can only hardcode existing
14976 hardcode_action_F77
=unsupported
14978 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14979 echo "${ECHO_T}$hardcode_action_F77" >&6
14981 if test "$hardcode_action_F77" = relink
; then
14982 # Fast installation is not supported
14983 enable_fast_install
=no
14984 elif test "$shlibpath_overrides_runpath" = yes ||
14985 test "$enable_shared" = no
; then
14986 # Fast installation is not necessary
14987 enable_fast_install
=needless
14992 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14993 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14994 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
14995 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
14996 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
14997 echo "$as_me:$LINENO: result: yes" >&5
14998 echo "${ECHO_T}yes" >&6
15000 # FIXME - insert some real tests, host_os isn't really good enough
15003 if test -n "$STRIP" ; then
15004 striplib
="$STRIP -x"
15005 echo "$as_me:$LINENO: result: yes" >&5
15006 echo "${ECHO_T}yes" >&6
15008 echo "$as_me:$LINENO: result: no" >&5
15009 echo "${ECHO_T}no" >&6
15013 echo "$as_me:$LINENO: result: no" >&5
15014 echo "${ECHO_T}no" >&6
15021 # The else clause should only fire when bootstrapping the
15022 # libtool distribution, otherwise you forgot to ship ltmain.sh
15023 # with your package, and you will get complaints that there are
15024 # no rules to generate ltmain.sh.
15025 if test -f "$ltmain"; then
15026 # See if we are running on zsh, and set the options which allow our commands through
15027 # without removal of \ escapes.
15028 if test -n "${ZSH_VERSION+set}" ; then
15029 setopt NO_GLOB_SUBST
15031 # Now quote all the things that may contain metacharacters while being
15032 # careful not to overquote the AC_SUBSTed values. We take copies of the
15033 # variables and quote the copies for generation of the libtool script.
15034 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15036 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15037 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15038 deplibs_check_method reload_flag reload_cmds need_locks \
15039 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15040 lt_cv_sys_global_symbol_to_c_name_address \
15041 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15042 old_postinstall_cmds old_postuninstall_cmds \
15046 lt_prog_compiler_wl_F77 \
15047 lt_prog_compiler_pic_F77 \
15048 lt_prog_compiler_static_F77 \
15049 lt_prog_compiler_no_builtin_flag_F77 \
15050 export_dynamic_flag_spec_F77 \
15051 thread_safe_flag_spec_F77 \
15052 whole_archive_flag_spec_F77 \
15053 enable_shared_with_static_runtimes_F77 \
15054 old_archive_cmds_F77 \
15055 old_archive_from_new_cmds_F77 \
15056 predep_objects_F77 \
15057 postdep_objects_F77 \
15060 compiler_lib_search_path_F77 \
15062 archive_expsym_cmds_F77 \
15063 postinstall_cmds_F77 \
15064 postuninstall_cmds_F77 \
15065 old_archive_from_expsyms_cmds_F77 \
15066 allow_undefined_flag_F77 \
15067 no_undefined_flag_F77 \
15068 export_symbols_cmds_F77 \
15069 hardcode_libdir_flag_spec_F77 \
15070 hardcode_libdir_flag_spec_ld_F77 \
15071 hardcode_libdir_separator_F77 \
15072 hardcode_automatic_F77 \
15074 module_expsym_cmds_F77 \
15075 lt_cv_prog_compiler_c_o_F77 \
15076 exclude_expsyms_F77 \
15077 include_expsyms_F77
; do
15080 old_archive_cmds_F77 | \
15081 old_archive_from_new_cmds_F77 | \
15082 archive_cmds_F77 | \
15083 archive_expsym_cmds_F77 | \
15084 module_cmds_F77 | \
15085 module_expsym_cmds_F77 | \
15086 old_archive_from_expsyms_cmds_F77 | \
15087 export_symbols_cmds_F77 | \
15088 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15089 postinstall_cmds | postuninstall_cmds | \
15090 old_postinstall_cmds | old_postuninstall_cmds | \
15091 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
15092 # Double-quote double-evaled strings.
15093 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15096 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15102 *'\$0 --fallback-echo"')
15103 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15109 cat <<__EOF__ >> "$cfgfile"
15110 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15112 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15114 # Shell to use when invoking shell scripts.
15117 # Whether or not to build shared libraries.
15118 build_libtool_libs=$enable_shared
15120 # Whether or not to build static libraries.
15121 build_old_libs=$enable_static
15123 # Whether or not to add -lc for building shared libraries.
15124 build_libtool_need_lc=$archive_cmds_need_lc_F77
15126 # Whether or not to disallow shared libs when runtime libs are static
15127 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15129 # Whether or not to optimize for fast installation.
15130 fast_install=$enable_fast_install
15133 host_alias=$host_alias
15136 # An echo program that does not interpret backslashes.
15141 AR_FLAGS=$lt_AR_FLAGS
15146 # A language-specific compiler.
15147 CC=$lt_compiler_F77
15149 # Is the compiler the GNU C compiler?
15155 # The linker used to build libraries.
15158 # Whether we need hard or soft links.
15161 # A BSD-compatible nm program.
15164 # A symbol stripping program
15167 # Used to examine libraries when file_magic_cmd begins "file"
15168 MAGIC_CMD=$MAGIC_CMD
15170 # Used on cygwin: DLL creation program.
15173 # Used on cygwin: object dumper.
15176 # Used on cygwin: assembler.
15179 # The name of the directory that contains temporary libtool files.
15182 # How to create reloadable object files.
15183 reload_flag=$lt_reload_flag
15184 reload_cmds=$lt_reload_cmds
15186 # How to pass a linker flag through the compiler.
15187 wl=$lt_lt_prog_compiler_wl_F77
15189 # Object file suffix (normally "o").
15190 objext="$ac_objext"
15192 # Old archive suffix (normally "a").
15195 # Shared library suffix (normally ".so").
15196 shrext_cmds='$shrext_cmds'
15198 # Executable file suffix (normally "").
15201 # Additional compiler flags for building library objects.
15202 pic_flag=$lt_lt_prog_compiler_pic_F77
15205 # What is the maximum length of a command?
15206 max_cmd_len=$lt_cv_sys_max_cmd_len
15208 # Does compiler simultaneously support -c and -o options?
15209 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15211 # Must we lock files when doing compilation ?
15212 need_locks=$lt_need_locks
15214 # Do we need the lib prefix for modules?
15215 need_lib_prefix=$need_lib_prefix
15217 # Do we need a version for libraries?
15218 need_version=$need_version
15220 # Whether dlopen is supported.
15221 dlopen_support=$enable_dlopen
15223 # Whether dlopen of programs is supported.
15224 dlopen_self=$enable_dlopen_self
15226 # Whether dlopen of statically linked programs is supported.
15227 dlopen_self_static=$enable_dlopen_self_static
15229 # Compiler flag to prevent dynamic linking.
15230 link_static_flag=$lt_lt_prog_compiler_static_F77
15232 # Compiler flag to turn off builtin functions.
15233 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15235 # Compiler flag to allow reflexive dlopens.
15236 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15238 # Compiler flag to generate shared objects directly from archives.
15239 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15241 # Compiler flag to generate thread-safe objects.
15242 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15244 # Library versioning type.
15245 version_type=$version_type
15247 # Format of library name prefix.
15248 libname_spec=$lt_libname_spec
15250 # List of archive names. First name is the real one, the rest are links.
15251 # The last name is the one that the linker finds with -lNAME.
15252 library_names_spec=$lt_library_names_spec
15254 # The coded name of the library, if different from the real name.
15255 soname_spec=$lt_soname_spec
15257 # Commands used to build and install an old-style archive.
15259 old_archive_cmds=$lt_old_archive_cmds_F77
15260 old_postinstall_cmds=$lt_old_postinstall_cmds
15261 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15263 # Create an old-style archive from a shared archive.
15264 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15266 # Create a temporary old-style archive to link instead of a shared archive.
15267 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15269 # Commands used to build and install a shared archive.
15270 archive_cmds=$lt_archive_cmds_F77
15271 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15272 postinstall_cmds=$lt_postinstall_cmds
15273 postuninstall_cmds=$lt_postuninstall_cmds
15275 # Commands used to build a loadable module (assumed same as above if empty)
15276 module_cmds=$lt_module_cmds_F77
15277 module_expsym_cmds=$lt_module_expsym_cmds_F77
15279 # Commands to strip libraries.
15280 old_striplib=$lt_old_striplib
15281 striplib=$lt_striplib
15283 # Dependencies to place before the objects being linked to create a
15285 predep_objects=$lt_predep_objects_F77
15287 # Dependencies to place after the objects being linked to create a
15289 postdep_objects=$lt_postdep_objects_F77
15291 # Dependencies to place before the objects being linked to create a
15293 predeps=$lt_predeps_F77
15295 # Dependencies to place after the objects being linked to create a
15297 postdeps=$lt_postdeps_F77
15299 # The library search path used internally by the compiler when linking
15300 # a shared library.
15301 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15303 # Method to check whether dependent libraries are shared objects.
15304 deplibs_check_method=$lt_deplibs_check_method
15306 # Command to use when deplibs_check_method == file_magic.
15307 file_magic_cmd=$lt_file_magic_cmd
15309 # Flag that allows shared libraries with undefined symbols to be built.
15310 allow_undefined_flag=$lt_allow_undefined_flag_F77
15312 # Flag that forces no undefined symbols.
15313 no_undefined_flag=$lt_no_undefined_flag_F77
15315 # Commands used to finish a libtool library installation in a directory.
15316 finish_cmds=$lt_finish_cmds
15318 # Same as above, but a single script fragment to be evaled but not shown.
15319 finish_eval=$lt_finish_eval
15321 # Take the output of nm and produce a listing of raw symbols and C names.
15322 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15324 # Transform the output of nm in a proper C declaration
15325 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15327 # Transform the output of nm in a C name address pair
15328 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15330 # This is the shared library runtime path variable.
15331 runpath_var=$runpath_var
15333 # This is the shared library path variable.
15334 shlibpath_var=$shlibpath_var
15336 # Is shlibpath searched before the hard-coded library search path?
15337 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15339 # How to hardcode a shared library path into an executable.
15340 hardcode_action=$hardcode_action_F77
15342 # Whether we should hardcode library paths into libraries.
15343 hardcode_into_libs=$hardcode_into_libs
15345 # Flag to hardcode \$libdir into a binary during linking.
15346 # This must work even if \$libdir does not exist.
15347 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15349 # If ld is used when linking, flag to hardcode \$libdir into
15350 # a binary during linking. This must work even if \$libdir does
15352 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15354 # Whether we need a single -rpath flag with a separated argument.
15355 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15357 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15358 # resulting binary.
15359 hardcode_direct=$hardcode_direct_F77
15361 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15362 # resulting binary.
15363 hardcode_minus_L=$hardcode_minus_L_F77
15365 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15366 # the resulting binary.
15367 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15369 # Set to yes if building a shared library automatically hardcodes DIR into the library
15370 # and all subsequent libraries and executables linked against it.
15371 hardcode_automatic=$hardcode_automatic_F77
15373 # Variables whose values should be saved in libtool wrapper scripts and
15374 # restored at relink time.
15375 variables_saved_for_relink="$variables_saved_for_relink"
15377 # Whether libtool must link a program against all its dependency libraries.
15378 link_all_deplibs=$link_all_deplibs_F77
15380 # Compile-time system search path for libraries
15381 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15383 # Run-time system search path for libraries
15384 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15386 # Fix the shell variable \$srcfile for the compiler.
15387 fix_srcfile_path="$fix_srcfile_path_F77"
15389 # Set to yes if exported symbols are required.
15390 always_export_symbols=$always_export_symbols_F77
15392 # The commands to list exported symbols.
15393 export_symbols_cmds=$lt_export_symbols_cmds_F77
15395 # The commands to extract the exported symbol list from a shared archive.
15396 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15398 # Symbols that should not be listed in the preloaded symbols.
15399 exclude_expsyms=$lt_exclude_expsyms_F77
15401 # Symbols that must always be exported.
15402 include_expsyms=$lt_include_expsyms_F77
15404 # ### END LIBTOOL TAG CONFIG: $tagname
15410 # If there is no Makefile yet, we rely on a make rule to execute
15411 # `config.status --recheck' to rerun these tests and create the
15412 # libtool script then.
15413 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15414 if test -f "$ltmain_in"; then
15415 test -f Makefile
&& make "$ltmain"
15421 ac_cpp
='$CPP $CPPFLAGS'
15422 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15423 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15424 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15434 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15438 # Source file extension for Java test sources.
15441 # Object file extension for compiled Java test sources.
15445 # Code to be used in simple compile tests
15446 lt_simple_compile_test_code
="class foo {}\n"
15448 # Code to be used in simple link tests
15449 lt_simple_link_test_code
='public class conftest { public static void main(String argv) {}; }\n'
15451 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15453 # If no C compiler was specified, use CC.
15456 # Allow CC to be a program name with arguments.
15460 # Allow CC to be a program name with arguments.
15466 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15467 archive_cmds_need_lc_GCJ
=no
15470 lt_prog_compiler_no_builtin_flag_GCJ
=
15472 if test "$GCC" = yes; then
15473 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
15476 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15477 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15478 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15479 echo $ECHO_N "(cached) $ECHO_C" >&6
15481 lt_cv_prog_compiler_rtti_exceptions
=no
15482 ac_outfile
=conftest.
$ac_objext
15483 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15484 lt_compiler_flag
="-fno-rtti -fno-exceptions"
15485 # Insert the option either (1) after the last *FLAGS variable, or
15486 # (2) before a word containing "conftest.", or (3) at the end.
15487 # Note that $ac_compile itself does not contain backslashes and begins
15488 # with a dollar sign (not a hyphen), so the echo should work correctly.
15489 # The option is referenced via a variable to avoid confusing sed.
15490 lt_compile
=`echo "$ac_compile" | $SED \
15491 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15493 -e 's:$: $lt_compiler_flag:'`
15494 (eval echo "\"\$as_me:15494: $lt_compile\"" >&5)
15495 (eval "$lt_compile" 2>conftest.err
)
15497 cat conftest.err
>&5
15498 echo "$as_me:15498: \$? = $ac_status" >&5
15499 if (exit $ac_status) && test -s "$ac_outfile"; then
15500 # The compiler can only warn and ignore the option if not recognized
15501 # So say no if there are warnings
15502 if test ! -s conftest.err
; then
15503 lt_cv_prog_compiler_rtti_exceptions
=yes
15509 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15510 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15512 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
15513 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15520 lt_prog_compiler_wl_GCJ
=
15521 lt_prog_compiler_pic_GCJ
=
15522 lt_prog_compiler_static_GCJ
=
15524 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15525 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15527 if test "$GCC" = yes; then
15528 lt_prog_compiler_wl_GCJ
='-Wl,'
15529 lt_prog_compiler_static_GCJ
='-static'
15533 # All AIX code is PIC.
15534 if test "$host_cpu" = ia64
; then
15535 # AIX 5 now supports IA64 processor
15536 lt_prog_compiler_static_GCJ
='-Bstatic'
15541 # FIXME: we need at least 68020 code to build shared libraries, but
15542 # adding the `-m68020' flag to GCC prevents building anything better,
15544 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
15547 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
15548 # PIC is the default for these OSes.
15551 mingw
* | pw32
* | os2
*)
15552 # This hack is so that the source file can tell whether it is being
15553 # built for inclusion in a dll (and should export symbols for example).
15554 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
15557 darwin
* | rhapsody
*)
15558 # PIC is the default on this platform
15559 # Common symbols not allowed in MH_DYLIB files
15560 lt_prog_compiler_pic_GCJ
='-fno-common'
15564 # Just because we use GCC doesn't mean we suddenly get shared libraries
15565 # on systems that don't support them.
15566 lt_prog_compiler_can_build_shared_GCJ
=no
15571 if test -d /usr
/nec
; then
15572 lt_prog_compiler_pic_GCJ
=-Kconform_pic
15577 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15578 # not for PA HP-UX.
15579 case "$host_cpu" in
15584 lt_prog_compiler_pic_GCJ
='-fPIC'
15590 lt_prog_compiler_pic_GCJ
='-fPIC'
15594 # PORTME Check for flag to pass linker flags through the system compiler.
15597 lt_prog_compiler_wl_GCJ
='-Wl,'
15598 if test "$host_cpu" = ia64
; then
15599 # AIX 5 now supports IA64 processor
15600 lt_prog_compiler_static_GCJ
='-Bstatic'
15602 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
15606 mingw
* | pw32
* | os2
*)
15607 # This hack is so that the source file can tell whether it is being
15608 # built for inclusion in a dll (and should export symbols for example).
15609 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
15612 hpux9
* | hpux10
* | hpux11
*)
15613 lt_prog_compiler_wl_GCJ
='-Wl,'
15614 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15615 # not for PA HP-UX.
15616 case "$host_cpu" in
15621 lt_prog_compiler_pic_GCJ
='+Z'
15624 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15625 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
15628 irix5
* | irix6
* | nonstopux
*)
15629 lt_prog_compiler_wl_GCJ
='-Wl,'
15630 # PIC (with -KPIC) is the default.
15631 lt_prog_compiler_static_GCJ
='-non_shared'
15635 lt_prog_compiler_pic_GCJ
='-KPIC'
15636 lt_prog_compiler_static_GCJ
='-Bstatic'
15642 lt_prog_compiler_wl_GCJ
='-Wl,'
15643 lt_prog_compiler_pic_GCJ
='-KPIC'
15644 lt_prog_compiler_static_GCJ
='-static'
15647 lt_prog_compiler_wl_GCJ
='-Wl,'
15648 # All Alpha code is PIC.
15649 lt_prog_compiler_static_GCJ
='-non_shared'
15654 osf3
* | osf4
* | osf5
*)
15655 lt_prog_compiler_wl_GCJ
='-Wl,'
15656 # All OSF/1 code is PIC.
15657 lt_prog_compiler_static_GCJ
='-non_shared'
15661 lt_prog_compiler_pic_GCJ
='-Kpic'
15662 lt_prog_compiler_static_GCJ
='-dn'
15666 lt_prog_compiler_wl_GCJ
='-Wl,'
15667 lt_prog_compiler_pic_GCJ
='-KPIC'
15668 lt_prog_compiler_static_GCJ
='-Bstatic'
15672 lt_prog_compiler_wl_GCJ
='-Qoption ld '
15673 lt_prog_compiler_pic_GCJ
='-PIC'
15674 lt_prog_compiler_static_GCJ
='-Bstatic'
15677 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
15678 lt_prog_compiler_wl_GCJ
='-Wl,'
15679 lt_prog_compiler_pic_GCJ
='-KPIC'
15680 lt_prog_compiler_static_GCJ
='-Bstatic'
15684 if test -d /usr
/nec
;then
15685 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
15686 lt_prog_compiler_static_GCJ
='-Bstatic'
15691 lt_prog_compiler_pic_GCJ
='-pic'
15692 lt_prog_compiler_static_GCJ
='-Bstatic'
15696 lt_prog_compiler_can_build_shared_GCJ
=no
15701 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15702 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15705 # Check to make sure the PIC flag actually works.
15707 if test -n "$lt_prog_compiler_pic_GCJ"; then
15709 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15710 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15711 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15712 echo $ECHO_N "(cached) $ECHO_C" >&6
15714 lt_prog_compiler_pic_works_GCJ
=no
15715 ac_outfile
=conftest.
$ac_objext
15716 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15717 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
15718 # Insert the option either (1) after the last *FLAGS variable, or
15719 # (2) before a word containing "conftest.", or (3) at the end.
15720 # Note that $ac_compile itself does not contain backslashes and begins
15721 # with a dollar sign (not a hyphen), so the echo should work correctly.
15722 # The option is referenced via a variable to avoid confusing sed.
15723 lt_compile
=`echo "$ac_compile" | $SED \
15724 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15726 -e 's:$: $lt_compiler_flag:'`
15727 (eval echo "\"\$as_me:15727: $lt_compile\"" >&5)
15728 (eval "$lt_compile" 2>conftest.err
)
15730 cat conftest.err
>&5
15731 echo "$as_me:15731: \$? = $ac_status" >&5
15732 if (exit $ac_status) && test -s "$ac_outfile"; then
15733 # The compiler can only warn and ignore the option if not recognized
15734 # So say no if there are warnings
15735 if test ! -s conftest.err
; then
15736 lt_prog_compiler_pic_works_GCJ
=yes
15742 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15743 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15745 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
15746 case $lt_prog_compiler_pic_GCJ in
15748 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
15751 lt_prog_compiler_pic_GCJ
=
15752 lt_prog_compiler_can_build_shared_GCJ
=no
15757 # For platforms which do not support PIC, -DPIC is meaningless:
15759 lt_prog_compiler_pic_GCJ
=
15762 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
15766 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15767 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15768 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15769 echo $ECHO_N "(cached) $ECHO_C" >&6
15771 lt_cv_prog_compiler_c_o_GCJ
=no
15772 $rm -r conftest
2>/dev
/null
15776 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15778 lt_compiler_flag
="-o out/conftest2.$ac_objext"
15779 # Insert the option either (1) after the last *FLAGS variable, or
15780 # (2) before a word containing "conftest.", or (3) at the end.
15781 # Note that $ac_compile itself does not contain backslashes and begins
15782 # with a dollar sign (not a hyphen), so the echo should work correctly.
15783 lt_compile
=`echo "$ac_compile" | $SED \
15784 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15786 -e 's:$: $lt_compiler_flag:'`
15787 (eval echo "\"\$as_me:15787: $lt_compile\"" >&5)
15788 (eval "$lt_compile" 2>out
/conftest.err
)
15790 cat out
/conftest.err
>&5
15791 echo "$as_me:15791: \$? = $ac_status" >&5
15792 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
15794 # The compiler can only warn and ignore the option if not recognized
15795 # So say no if there are warnings
15796 if test ! -s out
/conftest.err
; then
15797 lt_cv_prog_compiler_c_o_GCJ
=yes
15802 # SGI C++ compiler will create directory out/ii_files/ for
15803 # template instantiation
15804 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
15805 $rm out
/* && rmdir out
15811 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15812 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15815 hard_links
="nottested"
15816 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
15817 # do not overwrite the value of need_locks provided by the user
15818 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15819 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15822 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
15824 ln conftest.a conftest.b
2>&5 || hard_links
=no
15825 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
15826 echo "$as_me:$LINENO: result: $hard_links" >&5
15827 echo "${ECHO_T}$hard_links" >&6
15828 if test "$hard_links" = no
; then
15829 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15830 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15837 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15838 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15841 allow_undefined_flag_GCJ
=
15842 enable_shared_with_static_runtimes_GCJ
=no
15844 archive_expsym_cmds_GCJ
=
15845 old_archive_From_new_cmds_GCJ
=
15846 old_archive_from_expsyms_cmds_GCJ
=
15847 export_dynamic_flag_spec_GCJ
=
15848 whole_archive_flag_spec_GCJ
=
15849 thread_safe_flag_spec_GCJ
=
15850 hardcode_libdir_flag_spec_GCJ
=
15851 hardcode_libdir_flag_spec_ld_GCJ
=
15852 hardcode_libdir_separator_GCJ
=
15853 hardcode_direct_GCJ
=no
15854 hardcode_minus_L_GCJ
=no
15855 hardcode_shlibpath_var_GCJ
=unsupported
15856 link_all_deplibs_GCJ
=unknown
15857 hardcode_automatic_GCJ
=no
15859 module_expsym_cmds_GCJ
=
15860 always_export_symbols_GCJ
=no
15861 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15862 # include_expsyms should be a list of space-separated symbols to be *always*
15863 # included in the symbol list
15864 include_expsyms_GCJ
=
15865 # exclude_expsyms can be an extended regexp of symbols to exclude
15866 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15867 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15868 # as well as any symbol that contains `d'.
15869 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
15870 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15871 # platforms (ab)use it in PIC code, but their linkers get confused if
15872 # the symbol is explicitly referenced. Since portable code cannot
15873 # rely on this symbol name, it's probably fine to never include it in
15874 # preloaded symbol tables.
15875 extract_expsyms_cmds
=
15878 cygwin
* | mingw
* | pw32
*)
15879 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15880 # When not using gcc, we currently assume that we are using
15881 # Microsoft Visual C++.
15882 if test "$GCC" != yes; then
15892 if test "$with_gnu_ld" = yes; then
15893 # If archive_cmds runs LD, not CC, wlarc should be empty
15896 # See if GNU ld supports shared libraries.
15898 aix3
* | aix4
* | aix5
*)
15899 # On AIX/PPC, the GNU linker is very broken
15900 if test "$host_cpu" != ia64
; then
15904 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15905 *** to be unable to reliably create shared libraries on AIX.
15906 *** Therefore, libtool is disabling shared libraries support. If you
15907 *** really care for shared libraries, you may want to modify your PATH
15908 *** so that a non-GNU linker is found, and then restart.
15915 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)'
15916 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
15917 hardcode_minus_L_GCJ
=yes
15919 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15920 # that the semantics of dynamic libraries on AmigaOS, at least up
15921 # to version 4, is to share data among multiple programs linked
15922 # with the same dynamic library. Since this doesn't match the
15923 # behavior of shared libraries on other platforms, we can't use
15929 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15930 allow_undefined_flag_GCJ
=unsupported
15931 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15932 # support --undefined. This deserves some investigation. FIXME
15933 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15939 cygwin
* | mingw
* | pw32
*)
15940 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15941 # as there is no search path for DLLs.
15942 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
15943 allow_undefined_flag_GCJ
=unsupported
15944 always_export_symbols_GCJ
=no
15945 enable_shared_with_static_runtimes_GCJ
=yes
15946 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15948 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
15949 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15950 # If the export-symbols file already is a .def file (1st line
15951 # is EXPORTS), use it as is; otherwise, prepend...
15952 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15953 cp $export_symbols $output_objdir/$soname.def;
15955 echo EXPORTS > $output_objdir/$soname.def;
15956 cat $export_symbols >> $output_objdir/$soname.def;
15958 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15964 netbsd
* | netbsdelf
*-gnu | knetbsd
*-gnu)
15965 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15966 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15969 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15970 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15975 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
15979 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15980 *** create shared libraries on Solaris systems. Therefore, libtool
15981 *** is disabling shared libraries support. We urge you to upgrade GNU
15982 *** binutils to release 2.9.1 or newer. Another option is to modify
15983 *** your PATH or compiler configuration so that the native linker is
15984 *** used, and then restart.
15987 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
15988 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15989 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15996 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15998 hardcode_direct_GCJ
=yes
15999 hardcode_shlibpath_var_GCJ
=no
16003 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16004 tmp_archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16005 archive_cmds_GCJ
="$tmp_archive_cmds"
16006 supports_anon_versioning
=no
16007 case `$LD -v 2>/dev/null` in
16008 *\
01.
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
16009 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
16010 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
16011 *\
2.11.
*) ;; # other 2.11 versions
16012 *) supports_anon_versioning
=yes ;;
16014 if test $supports_anon_versioning = yes; then
16015 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
16016 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16017 $echo "local: *; };" >> $output_objdir/$libname.ver~
16018 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16020 archive_expsym_cmds_GCJ
="$tmp_archive_cmds"
16022 link_all_deplibs_GCJ
=no
16029 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16030 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16031 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16038 if test "$ld_shlibs_GCJ" = yes; then
16039 runpath_var
=LD_RUN_PATH
16040 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
16041 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
16042 # ancient GNU ld didn't support --whole-archive et. al.
16043 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
16044 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16046 whole_archive_flag_spec_GCJ
=
16050 # PORTME fill in a description of your system's linker (not GNU ld)
16053 allow_undefined_flag_GCJ
=unsupported
16054 always_export_symbols_GCJ
=yes
16055 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'
16056 # Note: this linker hardcodes the directories in LIBPATH if there
16057 # are no directories specified by -L.
16058 hardcode_minus_L_GCJ
=yes
16059 if test "$GCC" = yes && test -z "$link_static_flag"; then
16060 # Neither direct hardcoding nor static linking is supported with a
16062 hardcode_direct_GCJ
=unsupported
16067 if test "$host_cpu" = ia64
; then
16068 # On IA64, the linker does run time linking by default, so we don't
16069 # have to do anything special.
16070 aix_use_runtimelinking
=no
16071 exp_sym_flag
='-Bexport'
16074 # If we're using GNU nm, then we don't want the "-C" option.
16075 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16076 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
16077 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'
16079 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'
16081 aix_use_runtimelinking
=no
16083 # Test if we are trying to use run time linking or normal
16084 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16085 # need to do runtime linking.
16086 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
16087 for ld_flag
in $LDFLAGS; do
16088 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16089 aix_use_runtimelinking
=yes
16095 exp_sym_flag
='-bexport'
16096 no_entry_flag
='-bnoentry'
16099 # When large executables or shared objects are built, AIX ld can
16100 # have problems creating the table of contents. If linking a library
16101 # or program results in "error TOC overflow" add -mminimal-toc to
16102 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16103 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16105 archive_cmds_GCJ
=''
16106 hardcode_direct_GCJ
=yes
16107 hardcode_libdir_separator_GCJ
=':'
16108 link_all_deplibs_GCJ
=yes
16110 if test "$GCC" = yes; then
16111 case $host_os in aix4.012|aix4.012.
*)
16112 # We only want to do this on AIX 4.2 and lower, the check
16113 # below for broken collect2 doesn't work under 4.3+
16114 collect2name
=`${CC} -print-prog-name=collect2`
16115 if test -f "$collect2name" && \
16116 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
16118 # We have reworked collect2
16119 hardcode_direct_GCJ
=yes
16121 # We have old collect2
16122 hardcode_direct_GCJ
=unsupported
16123 # It fails to find uninstalled libraries when the uninstalled
16124 # path is not listed in the libpath. Setting hardcode_minus_L
16125 # to unsupported forces relinking
16126 hardcode_minus_L_GCJ
=yes
16127 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16128 hardcode_libdir_separator_GCJ
=
16131 shared_flag
='-shared'
16134 if test "$host_cpu" = ia64
; then
16135 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16136 # chokes on -Wl,-G. The following line is correct:
16139 if test "$aix_use_runtimelinking" = yes; then
16140 shared_flag
='${wl}-G'
16142 shared_flag
='${wl}-bM:SRE'
16147 # It seems that -bexpall does not export symbols beginning with
16148 # underscore (_), so it is better to generate a list of symbols to export.
16149 always_export_symbols_GCJ
=yes
16150 if test "$aix_use_runtimelinking" = yes; then
16151 # Warning - without using the other runtime loading flags (-brtl),
16152 # -berok will link without error, but may produce a broken library.
16153 allow_undefined_flag_GCJ
='-berok'
16154 # Determine the default libpath from the value encoded in an empty executable.
16155 cat >conftest.
$ac_ext <<_ACEOF
16158 cat confdefs.h
>>conftest.
$ac_ext
16159 cat >>conftest.
$ac_ext <<_ACEOF
16160 /* end confdefs.h. */
16170 rm -f conftest.
$ac_objext conftest
$ac_exeext
16171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16172 (eval $ac_link) 2>conftest.er1
16174 grep -v '^ *+' conftest.er1
>conftest.err
16176 cat conftest.err
>&5
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); } &&
16179 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16181 (eval $ac_try) 2>&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; } &&
16185 { ac_try
='test -s conftest$ac_exeext'
16186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16187 (eval $ac_try) 2>&5
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; }; then
16192 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16194 # Check for a 64-bit object if we didn't find anything.
16195 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; }
16198 echo "$as_me: failed program was:" >&5
16199 sed 's/^/| /' conftest.
$ac_ext >&5
16202 rm -f conftest.err conftest.
$ac_objext \
16203 conftest
$ac_exeext conftest.
$ac_ext
16204 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16206 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
16207 archive_expsym_cmds_GCJ
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16209 if test "$host_cpu" = ia64; then
16210 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr
/lib
:/lib
'
16211 allow_undefined_flag_GCJ="-z nodefs"
16212 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\
$export_symbols"
16214 # Determine the default libpath from the value encoded in an empty executable.
16215 cat >conftest.$ac_ext <<_ACEOF
16218 cat confdefs.h >>conftest.$ac_ext
16219 cat >>conftest.$ac_ext <<_ACEOF
16220 /* end confdefs.h. */
16230 rm -f conftest.$ac_objext conftest$ac_exeext
16231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16232 (eval $ac_link) 2>conftest.er1
16234 grep -v '^ *+' conftest.er1 >conftest.err
16236 cat conftest.err >&5
16237 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16238 (exit $ac_status); } &&
16239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241 (eval $ac_try) 2>&5
16243 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16244 (exit $ac_status); }; } &&
16245 { ac_try='test -s conftest$ac_exeext'
16246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16247 (eval $ac_try) 2>&5
16249 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16250 (exit $ac_status); }; }; then
16252 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16254 # Check for a 64-bit object if we didn't find anything.
16255 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; }
16258 echo "$as_me: failed program was
:" >&5
16259 sed 's/^/| /' conftest.$ac_ext >&5
16262 rm -f conftest.err conftest.$ac_objext \
16263 conftest$ac_exeext conftest.$ac_ext
16264 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
16266 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16267 # Warning - without using the other run time loading flags,
16268 # -berok will link without error, but may produce a broken library.
16269 no_undefined_flag_GCJ=' ${wl}-bernotok'
16270 allow_undefined_flag_GCJ=' ${wl}-berok'
16271 # -bexpall does not export symbols beginning with underscore (_)
16272 always_export_symbols_GCJ=yes
16273 # Exported symbols can be pulled into shared objects from archives
16274 whole_archive_flag_spec_GCJ=' '
16275 archive_cmds_need_lc_GCJ=yes
16276 # This is similar to how AIX traditionally builds it's shared libraries.
16277 archive_expsym_cmds_GCJ="\
$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16283 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)'
16284 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16285 hardcode_minus_L_GCJ
=yes
16286 # see comment about different semantics on the GNU ld section
16291 export_dynamic_flag_spec_GCJ
=-rdynamic
16294 cygwin
* | mingw
* | pw32
*)
16295 # When not using gcc, we currently assume that we are using
16296 # Microsoft Visual C++.
16297 # hardcode_libdir_flag_spec is actually meaningless, as there is
16298 # no search path for DLLs.
16299 hardcode_libdir_flag_spec_GCJ
=' '
16300 allow_undefined_flag_GCJ
=unsupported
16301 # Tell ltmain to make .lib files, not .a files.
16303 # Tell ltmain to make .dll files, not .so files.
16305 # FIXME: Setting linknames here is a bad hack.
16306 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16307 # The linker will automatically build a .lib file if we build a DLL.
16308 old_archive_From_new_cmds_GCJ
='true'
16309 # FIXME: Should let the user specify the lib program.
16310 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
16311 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16312 enable_shared_with_static_runtimes_GCJ
=yes
16315 darwin
* | rhapsody
*)
16316 if test "$GXX" = yes ; then
16317 archive_cmds_need_lc_GCJ
=no
16319 rhapsody
* | darwin1.
[012])
16320 allow_undefined_flag_GCJ
='-undefined suppress'
16323 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16324 allow_undefined_flag_GCJ
='-flat_namespace -undefined suppress'
16326 case ${MACOSX_DEPLOYMENT_TARGET} in
16328 allow_undefined_flag_GCJ
='-flat_namespace -undefined suppress'
16331 allow_undefined_flag_GCJ
='-undefined dynamic_lookup'
16337 lt_int_apple_cc_single_mod
=no
16338 output_verbose_link_cmd
='echo'
16339 if $CC -dumpspecs 2>&1 |
grep 'single_module' >/dev
/null
; then
16340 lt_int_apple_cc_single_mod
=yes
16342 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
16343 archive_cmds_GCJ
='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16345 archive_cmds_GCJ
='$CC -r ${wl}-bind_at_load -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'
16347 module_cmds_GCJ
='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16348 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16349 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
16350 archive_expsym_cmds_GCJ
='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}'
16352 archive_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
16354 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}'
16355 hardcode_direct_GCJ
=no
16356 hardcode_automatic_GCJ
=yes
16357 hardcode_shlibpath_var_GCJ
=unsupported
16358 whole_archive_flag_spec_GCJ
='-all_load $convenience'
16359 link_all_deplibs_GCJ
=yes
16366 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16367 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16368 hardcode_shlibpath_var_GCJ
=no
16375 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16376 # support. Future versions do this automatically, but an explicit c++rt0.o
16377 # does not break anything, and helps significantly (at the cost of a little
16380 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16381 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16382 hardcode_direct_GCJ
=yes
16383 hardcode_shlibpath_var_GCJ
=no
16386 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16388 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16389 hardcode_direct_GCJ
=yes
16390 hardcode_minus_L_GCJ
=yes
16391 hardcode_shlibpath_var_GCJ
=no
16394 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16395 freebsd
* | kfreebsd
*-gnu)
16396 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16397 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16398 hardcode_direct_GCJ
=yes
16399 hardcode_shlibpath_var_GCJ
=no
16403 if test "$GCC" = yes; then
16404 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'
16406 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'
16408 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16409 hardcode_libdir_separator_GCJ
=:
16410 hardcode_direct_GCJ
=yes
16412 # hardcode_minus_L: Not really in the search PATH,
16413 # but as the default location of the library.
16414 hardcode_minus_L_GCJ
=yes
16415 export_dynamic_flag_spec_GCJ
='${wl}-E'
16419 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
16420 case "$host_cpu" in
16422 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16425 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16429 case "$host_cpu" in
16431 archive_cmds_GCJ
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16434 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16438 if test "$with_gnu_ld" = no
; then
16439 case "$host_cpu" in
16441 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16442 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
16443 hardcode_libdir_separator_GCJ
=:
16444 hardcode_direct_GCJ
=no
16445 hardcode_shlibpath_var_GCJ
=no
16448 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16449 hardcode_direct_GCJ
=no
16450 hardcode_shlibpath_var_GCJ
=no
16452 # hardcode_minus_L: Not really in the search PATH,
16453 # but as the default location of the library.
16454 hardcode_minus_L_GCJ
=yes
16457 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16458 hardcode_libdir_separator_GCJ
=:
16459 hardcode_direct_GCJ
=yes
16460 export_dynamic_flag_spec_GCJ
='${wl}-E'
16462 # hardcode_minus_L: Not really in the search PATH,
16463 # but as the default location of the library.
16464 hardcode_minus_L_GCJ
=yes
16470 irix5
* | irix6
* | nonstopux
*)
16471 if test "$GCC" = yes; then
16472 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'
16474 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'
16475 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
16477 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16478 hardcode_libdir_separator_GCJ
=:
16479 link_all_deplibs_GCJ
=yes
16482 netbsd
* | netbsdelf
*-gnu | knetbsd
*-gnu)
16483 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16484 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16486 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16488 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16489 hardcode_direct_GCJ
=yes
16490 hardcode_shlibpath_var_GCJ
=no
16494 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16495 hardcode_direct_GCJ
=yes
16496 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16497 hardcode_libdir_separator_GCJ
=:
16498 hardcode_shlibpath_var_GCJ
=no
16502 hardcode_direct_GCJ
=yes
16503 hardcode_shlibpath_var_GCJ
=no
16504 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16505 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16506 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
16507 export_dynamic_flag_spec_GCJ
='${wl}-E'
16510 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16511 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16512 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16515 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16516 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
16523 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16524 hardcode_minus_L_GCJ
=yes
16525 allow_undefined_flag_GCJ
=unsupported
16526 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'
16527 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16531 if test "$GCC" = yes; then
16532 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
16533 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'
16535 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
16536 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'
16538 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16539 hardcode_libdir_separator_GCJ
=:
16542 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16543 if test "$GCC" = yes; then
16544 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
16545 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'
16546 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16548 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
16549 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'
16550 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~
16551 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16553 # Both c and cxx compiler support -rpath directly
16554 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
16556 hardcode_libdir_separator_GCJ
=:
16560 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16561 hardcode_shlibpath_var_GCJ
=no
16562 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
16563 runpath_var
=LD_RUN_PATH
16564 hardcode_runpath_var
=yes
16568 no_undefined_flag_GCJ
=' -z text'
16569 if test "$GCC" = yes; then
16570 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16571 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16572 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16574 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16575 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16576 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16578 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16579 hardcode_shlibpath_var_GCJ
=no
16581 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16582 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16583 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
16585 link_all_deplibs_GCJ
=yes
16589 if test "x$host_vendor" = xsequent
; then
16590 # Use $CC to link under sequent, because it throws in some extra .o
16591 # files that make .init and .fini sections work.
16592 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16594 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16596 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16597 hardcode_direct_GCJ
=yes
16598 hardcode_minus_L_GCJ
=yes
16599 hardcode_shlibpath_var_GCJ
=no
16603 case $host_vendor in
16605 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16606 hardcode_direct_GCJ
=yes # is this really true???
16609 ## LD is ld it makes a PLAMLIB
16610 ## CC just makes a GrossModule.
16611 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16612 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
16613 hardcode_direct_GCJ
=no
16616 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16617 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
16620 runpath_var
='LD_RUN_PATH'
16621 hardcode_shlibpath_var_GCJ
=no
16625 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16626 hardcode_shlibpath_var_GCJ
=no
16627 export_dynamic_flag_spec_GCJ
='-Bexport'
16631 if test -d /usr
/nec
; then
16632 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16633 hardcode_shlibpath_var_GCJ
=no
16634 runpath_var
=LD_RUN_PATH
16635 hardcode_runpath_var
=yes
16641 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16642 hardcode_direct_GCJ
=yes
16643 hardcode_minus_L_GCJ
=no
16644 hardcode_shlibpath_var_GCJ
=no
16645 hardcode_runpath_var
=yes
16646 runpath_var
=LD_RUN_PATH
16649 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
16650 no_undefined_flag_GCJ
='${wl}-z ${wl}text'
16651 if test "$GCC" = yes; then
16652 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16654 archive_cmds_GCJ
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16656 runpath_var
='LD_RUN_PATH'
16657 hardcode_shlibpath_var_GCJ
=no
16661 no_undefined_flag_GCJ
=' -z text'
16662 # $CC -shared without GNU ld will not create a library from C++
16663 # object files and a static libstdc++, better avoid it by now
16664 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16665 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16666 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16667 hardcode_libdir_flag_spec_GCJ
=
16668 hardcode_shlibpath_var_GCJ
=no
16669 runpath_var
='LD_RUN_PATH'
16673 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16674 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16675 hardcode_shlibpath_var_GCJ
=no
16684 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16685 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16686 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
16688 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16689 if test "$GCC" = yes; then
16690 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16694 # Do we need to explicitly link libc?
16696 case "x$archive_cmds_need_lc_GCJ" in
16698 # Assume -lc should be added
16699 archive_cmds_need_lc_GCJ
=yes
16701 if test "$enable_shared" = yes && test "$GCC" = yes; then
16702 case $archive_cmds_GCJ in
16704 # FIXME: we may have to deal with multi-command sequences.
16707 # Test whether the compiler implicitly links with -lc since on some
16708 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16709 # to ld, don't add -lc before -lgcc.
16710 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16711 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16713 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16716 (eval $ac_compile) 2>&5
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); } 2>conftest.err
; then
16722 libobjs
=conftest.
$ac_objext
16724 wl
=$lt_prog_compiler_wl_GCJ
16730 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
16731 allow_undefined_flag_GCJ
=
16732 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16733 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }
16738 archive_cmds_need_lc_GCJ
=no
16740 archive_cmds_need_lc_GCJ
=yes
16742 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
16744 cat conftest.err
1>&5
16747 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16748 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16755 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16756 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16757 library_names_spec
=
16758 libname_spec
='lib$name'
16762 postuninstall_cmds
=
16766 shlibpath_overrides_runpath
=unknown
16768 dynamic_linker
="$host_os ld.so"
16769 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16770 if test "$GCC" = yes; then
16771 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16772 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
16773 # if the path contains ";" then we assume it to be the separator
16774 # otherwise default to the standard path separator (i.e. ":") - it is
16775 # assumed that no part of a normal pathname contains ";" but that should
16776 # okay in the real world where ";" in dirpaths is itself problematic.
16777 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16779 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16782 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16784 need_lib_prefix
=unknown
16785 hardcode_into_libs
=no
16787 # when you set need_version to no, make sure it does not cause -set_version
16788 # flags to be left without arguments
16789 need_version
=unknown
16794 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16795 shlibpath_var
=LIBPATH
16797 # AIX 3 has no versioning support, so we append a major version to the name.
16798 soname_spec
='${libname}${release}${shared_ext}$major'
16805 hardcode_into_libs
=yes
16806 if test "$host_cpu" = ia64
; then
16807 # AIX 5 supports IA64
16808 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16809 shlibpath_var
=LD_LIBRARY_PATH
16811 # With GCC up to 2.95.x, collect2 would create an import file
16812 # for dependence libraries. The import file would start with
16813 # the line `#! .'. This would cause the generated library to
16814 # depend on `.', always an invalid library. This was fixed in
16815 # development snapshots of GCC prior to 3.0.
16817 aix4 | aix4.
[01] | aix4.
[01].
*)
16818 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16820 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
16823 can_build_shared
=no
16827 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16828 # soname into executable. Probably we can add versioning support to
16829 # collect2, so additional links can be useful in future.
16830 if test "$aix_use_runtimelinking" = yes; then
16831 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16832 # instead of lib<name>.a to let people know that these are not
16833 # typical AIX shared libraries.
16834 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16836 # We preserve .a as extension for shared libraries through AIX4.2
16837 # and later when we are not doing run time linking.
16838 library_names_spec
='${libname}${release}.a $libname.a'
16839 soname_spec
='${libname}${release}${shared_ext}$major'
16841 shlibpath_var
=LIBPATH
16846 library_names_spec
='$libname.ixlibrary $libname.a'
16847 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16848 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'
16852 library_names_spec
='${libname}${shared_ext}'
16853 dynamic_linker
="$host_os ld.so"
16854 shlibpath_var
=LIBRARY_PATH
16860 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16861 soname_spec
='${libname}${release}${shared_ext}$major'
16862 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16863 shlibpath_var
=LD_LIBRARY_PATH
16864 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16865 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16866 # the default ld.so.conf also contains /usr/contrib/lib and
16867 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16868 # libtool to hard-code these into programs
16871 cygwin
* | mingw
* | pw32
*)
16872 version_type
=windows
16877 case $GCC,$host_os in
16878 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
16879 library_names_spec
='$libname.dll.a'
16880 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16881 postinstall_cmds
='base_file=`basename \${file}`~
16882 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16883 dldir=$destdir/`dirname \$dlpath`~
16884 test -d \$dldir || mkdir -p \$dldir~
16885 $install_prog $dir/$dlname \$dldir/$dlname'
16886 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16887 dlpath=$dir/\$dldll~
16889 shlibpath_overrides_runpath
=yes
16893 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16894 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16895 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
16898 # MinGW DLLs use traditional 'lib' prefix
16899 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16900 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16901 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
16902 # It is most probably a Windows format PATH printed by
16903 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16904 # path with ; separators, and with drive letters. We can handle the
16905 # drive letters (cygwin fileutils understands them), so leave them,
16906 # especially as we might pass files found there to a mingw objdump,
16907 # which wouldn't understand a cygwinified path. Ahh.
16908 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16910 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16914 # pw32 DLLs use 'pw' prefix rather than 'lib'
16915 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16921 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16924 dynamic_linker
='Win32 ld.exe'
16925 # FIXME: first we should search . and the directory the executable is in
16929 darwin
* | rhapsody
*)
16930 dynamic_linker
="$host_os dyld"
16931 version_type
=darwin
16934 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16935 soname_spec
='${libname}${release}${major}$shared_ext'
16936 shlibpath_overrides_runpath
=yes
16937 shlibpath_var
=DYLD_LIBRARY_PATH
16938 shrext_cmds
='$(test .$module = .yes && echo .so || echo .dylib)'
16939 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16940 if test "$GCC" = yes; then
16941 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"`
16943 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
16945 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16952 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16953 soname_spec
='${libname}${release}${shared_ext}$major'
16954 shlibpath_var
=LD_LIBRARY_PATH
16965 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16966 soname_spec
='${libname}${release}${shared_ext}$major'
16967 shlibpath_var
=LD_LIBRARY_PATH
16968 shlibpath_overrides_runpath
=no
16969 hardcode_into_libs
=yes
16970 dynamic_linker
='GNU ld.so'
16974 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16975 version_type
=freebsd-
$objformat
16976 case $version_type in
16978 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16983 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16987 shlibpath_var
=LD_LIBRARY_PATH
16990 shlibpath_overrides_runpath
=yes
16992 freebsd3.01
* | freebsdelf3.01
*)
16993 shlibpath_overrides_runpath
=yes
16994 hardcode_into_libs
=yes
16997 shlibpath_overrides_runpath
=no
16998 hardcode_into_libs
=yes
17007 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17008 soname_spec
='${libname}${release}${shared_ext}$major'
17009 shlibpath_var
=LD_LIBRARY_PATH
17010 hardcode_into_libs
=yes
17013 hpux9
* | hpux10
* | hpux11
*)
17014 # Give a soname corresponding to the major version so that dld.sl refuses to
17015 # link against other versions.
17019 case "$host_cpu" in
17022 hardcode_into_libs
=yes
17023 dynamic_linker
="$host_os dld.so"
17024 shlibpath_var
=LD_LIBRARY_PATH
17025 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17026 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17027 soname_spec
='${libname}${release}${shared_ext}$major'
17028 if test "X$HPUX_IA64_MODE" = X32
; then
17029 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17031 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17033 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17037 hardcode_into_libs
=yes
17038 dynamic_linker
="$host_os dld.sl"
17039 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17040 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17041 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17042 soname_spec
='${libname}${release}${shared_ext}$major'
17043 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17044 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17048 dynamic_linker
="$host_os dld.sl"
17049 shlibpath_var
=SHLIB_PATH
17050 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17051 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17052 soname_spec
='${libname}${release}${shared_ext}$major'
17055 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17056 postinstall_cmds
='chmod 555 $lib'
17059 irix5
* | irix6
* | nonstopux
*)
17061 nonstopux
*) version_type
=nonstopux
;;
17063 if test "$lt_cv_prog_gnu_ld" = yes; then
17071 soname_spec
='${libname}${release}${shared_ext}$major'
17072 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17074 irix5
* | nonstopux
*)
17075 libsuff
= shlibsuff
=
17078 case $LD in # libtool.m4 will add one of these switches to LD
17079 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17080 libsuff
= shlibsuff
= libmagic
=32-bit;;
17081 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17082 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17083 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17084 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17085 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17089 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17090 shlibpath_overrides_runpath
=no
17091 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17092 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17093 hardcode_into_libs
=yes
17096 # No shared lib support for Linux oldld, aout, or coff.
17097 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17101 # This must be Linux ELF.
17106 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17107 soname_spec
='${libname}${release}${shared_ext}$major'
17108 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17109 shlibpath_var
=LD_LIBRARY_PATH
17110 shlibpath_overrides_runpath
=no
17111 # This implies no fast_install, which is unacceptable.
17112 # Some rework will be needed to allow for fast_install
17113 # before this can be enabled.
17114 hardcode_into_libs
=yes
17116 # Append ld.so.conf contents to the search path
17117 if test -f /etc
/ld.so.conf
; then
17118 lt_ld_extra
=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17119 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17122 # We used to test for /lib/ld.so.1 and disable shared libraries on
17123 # powerpc, because MkLinux only supported shared libraries with the
17124 # GNU dynamic linker. Since this was broken with cross compilers,
17125 # most powerpc-linux boxes support dynamic linking these days and
17126 # people can always --disable-shared, the test was removed, and we
17127 # assume the GNU/Linux dynamic linker is in use.
17128 dynamic_linker
='GNU/Linux ld.so'
17135 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17136 soname_spec
='${libname}${release}${shared_ext}$major'
17137 shlibpath_var
=LD_LIBRARY_PATH
17138 shlibpath_overrides_runpath
=no
17139 hardcode_into_libs
=yes
17140 dynamic_linker
='NetBSD ld.elf_so'
17147 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17148 soname_spec
='${libname}${release}${shared_ext}$major'
17149 shlibpath_var
=LD_LIBRARY_PATH
17150 shlibpath_overrides_runpath
=no
17151 hardcode_into_libs
=yes
17152 dynamic_linker
='GNU ld.so'
17159 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17160 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17161 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17162 dynamic_linker
='NetBSD (a.out) ld.so'
17164 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17165 soname_spec
='${libname}${release}${shared_ext}$major'
17166 dynamic_linker
='NetBSD ld.elf_so'
17168 shlibpath_var
=LD_LIBRARY_PATH
17169 shlibpath_overrides_runpath
=yes
17170 hardcode_into_libs
=yes
17175 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17176 shlibpath_var
=LD_LIBRARY_PATH
17177 shlibpath_overrides_runpath
=yes
17184 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17185 soname_spec
='${libname}${release}${shared_ext}$major'
17186 shlibpath_var
=LD_LIBRARY_PATH
17187 shlibpath_overrides_runpath
=yes
17194 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17195 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17196 shlibpath_var
=LD_LIBRARY_PATH
17197 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17199 openbsd2.
[89] | openbsd2.
[89].
*)
17200 shlibpath_overrides_runpath
=no
17203 shlibpath_overrides_runpath
=yes
17207 shlibpath_overrides_runpath
=yes
17212 libname_spec
='$name'
17215 library_names_spec
='$libname${shared_ext} $libname.a'
17216 dynamic_linker
='OS/2 ld.exe'
17217 shlibpath_var
=LIBPATH
17220 osf3
* | osf4
* | osf5
*)
17224 soname_spec
='${libname}${release}${shared_ext}$major'
17225 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17226 shlibpath_var
=LD_LIBRARY_PATH
17227 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17228 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17233 soname_spec
='${libname}${release}${shared_ext}$major'
17234 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17235 shlibpath_var
=LD_LIBRARY_PATH
17242 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17243 soname_spec
='${libname}${release}${shared_ext}$major'
17244 shlibpath_var
=LD_LIBRARY_PATH
17245 shlibpath_overrides_runpath
=yes
17246 hardcode_into_libs
=yes
17247 # ldd complains unless libraries are executable
17248 postinstall_cmds
='chmod +x $lib'
17253 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17254 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17255 shlibpath_var
=LD_LIBRARY_PATH
17256 shlibpath_overrides_runpath
=yes
17257 if test "$with_gnu_ld" = yes; then
17263 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17265 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17266 soname_spec
='${libname}${release}${shared_ext}$major'
17267 shlibpath_var
=LD_LIBRARY_PATH
17268 case $host_vendor in
17270 shlibpath_overrides_runpath
=no
17272 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17273 runpath_var
=LD_RUN_PATH
17281 shlibpath_overrides_runpath
=no
17282 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17288 if test -d /usr
/nec
;then
17290 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17291 soname_spec
='$libname${shared_ext}.$major'
17292 shlibpath_var
=LD_LIBRARY_PATH
17298 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17299 soname_spec
='${libname}${release}${shared_ext}$major'
17300 shlibpath_var
=LD_LIBRARY_PATH
17307 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17308 echo "${ECHO_T}$dynamic_linker" >&6
17309 test "$dynamic_linker" = no
&& can_build_shared
=no
17311 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17312 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17313 hardcode_action_GCJ
=
17314 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17315 test -n "$runpath_var GCJ" || \
17316 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17318 # We can hardcode non-existant directories.
17319 if test "$hardcode_direct_GCJ" != no
&&
17320 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17321 # have to relink, otherwise we might link with an installed library
17322 # when we should be linking with a yet-to-be-installed one
17323 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17324 test "$hardcode_minus_L_GCJ" != no
; then
17325 # Linking always hardcodes the temporary library directory.
17326 hardcode_action_GCJ
=relink
17328 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17329 hardcode_action_GCJ
=immediate
17332 # We cannot hardcode anything, or else we can only hardcode existing
17334 hardcode_action_GCJ
=unsupported
17336 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17337 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17339 if test "$hardcode_action_GCJ" = relink
; then
17340 # Fast installation is not supported
17341 enable_fast_install
=no
17342 elif test "$shlibpath_overrides_runpath" = yes ||
17343 test "$enable_shared" = no
; then
17344 # Fast installation is not necessary
17345 enable_fast_install
=needless
17350 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17351 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17352 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
17353 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
17354 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
17355 echo "$as_me:$LINENO: result: yes" >&5
17356 echo "${ECHO_T}yes" >&6
17358 # FIXME - insert some real tests, host_os isn't really good enough
17361 if test -n "$STRIP" ; then
17362 striplib
="$STRIP -x"
17363 echo "$as_me:$LINENO: result: yes" >&5
17364 echo "${ECHO_T}yes" >&6
17366 echo "$as_me:$LINENO: result: no" >&5
17367 echo "${ECHO_T}no" >&6
17371 echo "$as_me:$LINENO: result: no" >&5
17372 echo "${ECHO_T}no" >&6
17377 if test "x$enable_dlopen" != xyes
; then
17378 enable_dlopen
=unknown
17379 enable_dlopen_self
=unknown
17380 enable_dlopen_self_static
=unknown
17387 lt_cv_dlopen
="load_add_on"
17389 lt_cv_dlopen_self
=yes
17393 lt_cv_dlopen
="LoadLibrary"
17398 lt_cv_dlopen
="dlopen"
17403 # if libdl is installed we need to link against it
17404 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17405 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17406 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17407 echo $ECHO_N "(cached) $ECHO_C" >&6
17409 ac_check_lib_save_LIBS
=$LIBS
17411 cat >conftest.
$ac_ext <<_ACEOF
17414 cat confdefs.h
>>conftest.
$ac_ext
17415 cat >>conftest.
$ac_ext <<_ACEOF
17416 /* end confdefs.h. */
17418 /* Override any gcc2 internal prototype to avoid an error. */
17422 /* We use char because int might match the return type of a gcc2
17423 builtin and then its argument prototype would still apply. */
17433 rm -f conftest.
$ac_objext conftest
$ac_exeext
17434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17435 (eval $ac_link) 2>conftest.er1
17437 grep -v '^ *+' conftest.er1
>conftest.err
17439 cat conftest.err
>&5
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); } &&
17442 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17444 (eval $ac_try) 2>&5
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); }; } &&
17448 { ac_try
='test -s conftest$ac_exeext'
17449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17450 (eval $ac_try) 2>&5
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); }; }; then
17454 ac_cv_lib_dl_dlopen
=yes
17456 echo "$as_me: failed program was:" >&5
17457 sed 's/^/| /' conftest.
$ac_ext >&5
17459 ac_cv_lib_dl_dlopen
=no
17461 rm -f conftest.err conftest.
$ac_objext \
17462 conftest
$ac_exeext conftest.
$ac_ext
17463 LIBS
=$ac_check_lib_save_LIBS
17465 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17466 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17467 if test $ac_cv_lib_dl_dlopen = yes; then
17468 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17471 lt_cv_dlopen
="dyld"
17473 lt_cv_dlopen_self
=yes
17480 echo "$as_me:$LINENO: checking for shl_load" >&5
17481 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17482 if test "${ac_cv_func_shl_load+set}" = set; then
17483 echo $ECHO_N "(cached) $ECHO_C" >&6
17485 cat >conftest.
$ac_ext <<_ACEOF
17488 cat confdefs.h
>>conftest.
$ac_ext
17489 cat >>conftest.
$ac_ext <<_ACEOF
17490 /* end confdefs.h. */
17491 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17493 #define shl_load innocuous_shl_load
17495 /* System header to define __stub macros and hopefully few prototypes,
17496 which can conflict with char shl_load (); below.
17497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17498 <limits.h> exists even on freestanding compilers. */
17501 # include <limits.h>
17503 # include <assert.h>
17508 /* Override any gcc2 internal prototype to avoid an error. */
17513 /* We use char because int might match the return type of a gcc2
17514 builtin and then its argument prototype would still apply. */
17516 /* The GNU C library defines this for functions which it implements
17517 to always fail with ENOSYS. Some functions are actually named
17518 something starting with __ and the normal name is an alias. */
17519 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17522 char (*f) () = shl_load;
17531 return f != shl_load;
17536 rm -f conftest.
$ac_objext conftest
$ac_exeext
17537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17538 (eval $ac_link) 2>conftest.er1
17540 grep -v '^ *+' conftest.er1
>conftest.err
17542 cat conftest.err
>&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); } &&
17545 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17547 (eval $ac_try) 2>&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); }; } &&
17551 { ac_try
='test -s conftest$ac_exeext'
17552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17553 (eval $ac_try) 2>&5
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); }; }; then
17557 ac_cv_func_shl_load
=yes
17559 echo "$as_me: failed program was:" >&5
17560 sed 's/^/| /' conftest.
$ac_ext >&5
17562 ac_cv_func_shl_load
=no
17564 rm -f conftest.err conftest.
$ac_objext \
17565 conftest
$ac_exeext conftest.
$ac_ext
17567 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17568 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17569 if test $ac_cv_func_shl_load = yes; then
17570 lt_cv_dlopen
="shl_load"
17572 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17573 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17574 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17575 echo $ECHO_N "(cached) $ECHO_C" >&6
17577 ac_check_lib_save_LIBS
=$LIBS
17579 cat >conftest.
$ac_ext <<_ACEOF
17582 cat confdefs.h
>>conftest.
$ac_ext
17583 cat >>conftest.
$ac_ext <<_ACEOF
17584 /* end confdefs.h. */
17586 /* Override any gcc2 internal prototype to avoid an error. */
17590 /* We use char because int might match the return type of a gcc2
17591 builtin and then its argument prototype would still apply. */
17601 rm -f conftest.
$ac_objext conftest
$ac_exeext
17602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17603 (eval $ac_link) 2>conftest.er1
17605 grep -v '^ *+' conftest.er1
>conftest.err
17607 cat conftest.err
>&5
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); } &&
17610 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; } &&
17616 { ac_try
='test -s conftest$ac_exeext'
17617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618 (eval $ac_try) 2>&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17622 ac_cv_lib_dld_shl_load
=yes
17624 echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.
$ac_ext >&5
17627 ac_cv_lib_dld_shl_load
=no
17629 rm -f conftest.err conftest.
$ac_objext \
17630 conftest
$ac_exeext conftest.
$ac_ext
17631 LIBS
=$ac_check_lib_save_LIBS
17633 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17634 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17635 if test $ac_cv_lib_dld_shl_load = yes; then
17636 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
17638 echo "$as_me:$LINENO: checking for dlopen" >&5
17639 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17640 if test "${ac_cv_func_dlopen+set}" = set; then
17641 echo $ECHO_N "(cached) $ECHO_C" >&6
17643 cat >conftest.
$ac_ext <<_ACEOF
17646 cat confdefs.h
>>conftest.
$ac_ext
17647 cat >>conftest.
$ac_ext <<_ACEOF
17648 /* end confdefs.h. */
17649 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17651 #define dlopen innocuous_dlopen
17653 /* System header to define __stub macros and hopefully few prototypes,
17654 which can conflict with char dlopen (); below.
17655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17656 <limits.h> exists even on freestanding compilers. */
17659 # include <limits.h>
17661 # include <assert.h>
17666 /* Override any gcc2 internal prototype to avoid an error. */
17671 /* We use char because int might match the return type of a gcc2
17672 builtin and then its argument prototype would still apply. */
17674 /* The GNU C library defines this for functions which it implements
17675 to always fail with ENOSYS. Some functions are actually named
17676 something starting with __ and the normal name is an alias. */
17677 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17680 char (*f) () = dlopen;
17689 return f != dlopen;
17694 rm -f conftest.
$ac_objext conftest
$ac_exeext
17695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17696 (eval $ac_link) 2>conftest.er1
17698 grep -v '^ *+' conftest.er1
>conftest.err
17700 cat conftest.err
>&5
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); } &&
17703 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705 (eval $ac_try) 2>&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; } &&
17709 { ac_try
='test -s conftest$ac_exeext'
17710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711 (eval $ac_try) 2>&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; }; then
17715 ac_cv_func_dlopen
=yes
17717 echo "$as_me: failed program was:" >&5
17718 sed 's/^/| /' conftest.
$ac_ext >&5
17720 ac_cv_func_dlopen
=no
17722 rm -f conftest.err conftest.
$ac_objext \
17723 conftest
$ac_exeext conftest.
$ac_ext
17725 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17726 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17727 if test $ac_cv_func_dlopen = yes; then
17728 lt_cv_dlopen
="dlopen"
17730 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17731 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17732 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17733 echo $ECHO_N "(cached) $ECHO_C" >&6
17735 ac_check_lib_save_LIBS
=$LIBS
17737 cat >conftest.
$ac_ext <<_ACEOF
17740 cat confdefs.h
>>conftest.
$ac_ext
17741 cat >>conftest.
$ac_ext <<_ACEOF
17742 /* end confdefs.h. */
17744 /* Override any gcc2 internal prototype to avoid an error. */
17748 /* We use char because int might match the return type of a gcc2
17749 builtin and then its argument prototype would still apply. */
17759 rm -f conftest.
$ac_objext conftest
$ac_exeext
17760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17761 (eval $ac_link) 2>conftest.er1
17763 grep -v '^ *+' conftest.er1
>conftest.err
17765 cat conftest.err
>&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); } &&
17768 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770 (eval $ac_try) 2>&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; } &&
17774 { ac_try
='test -s conftest$ac_exeext'
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; }; then
17780 ac_cv_lib_dl_dlopen
=yes
17782 echo "$as_me: failed program was:" >&5
17783 sed 's/^/| /' conftest.
$ac_ext >&5
17785 ac_cv_lib_dl_dlopen
=no
17787 rm -f conftest.err conftest.
$ac_objext \
17788 conftest
$ac_exeext conftest.
$ac_ext
17789 LIBS
=$ac_check_lib_save_LIBS
17791 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17792 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17793 if test $ac_cv_lib_dl_dlopen = yes; then
17794 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17796 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17797 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17798 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17799 echo $ECHO_N "(cached) $ECHO_C" >&6
17801 ac_check_lib_save_LIBS
=$LIBS
17802 LIBS
="-lsvld $LIBS"
17803 cat >conftest.
$ac_ext <<_ACEOF
17806 cat confdefs.h
>>conftest.
$ac_ext
17807 cat >>conftest.
$ac_ext <<_ACEOF
17808 /* end confdefs.h. */
17810 /* Override any gcc2 internal prototype to avoid an error. */
17814 /* We use char because int might match the return type of a gcc2
17815 builtin and then its argument prototype would still apply. */
17825 rm -f conftest.
$ac_objext conftest
$ac_exeext
17826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17827 (eval $ac_link) 2>conftest.er1
17829 grep -v '^ *+' conftest.er1
>conftest.err
17831 cat conftest.err
>&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); } &&
17834 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17836 (eval $ac_try) 2>&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); }; } &&
17840 { ac_try
='test -s conftest$ac_exeext'
17841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17842 (eval $ac_try) 2>&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); }; }; then
17846 ac_cv_lib_svld_dlopen
=yes
17848 echo "$as_me: failed program was:" >&5
17849 sed 's/^/| /' conftest.
$ac_ext >&5
17851 ac_cv_lib_svld_dlopen
=no
17853 rm -f conftest.err conftest.
$ac_objext \
17854 conftest
$ac_exeext conftest.
$ac_ext
17855 LIBS
=$ac_check_lib_save_LIBS
17857 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17858 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17859 if test $ac_cv_lib_svld_dlopen = yes; then
17860 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17862 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17863 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17864 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17865 echo $ECHO_N "(cached) $ECHO_C" >&6
17867 ac_check_lib_save_LIBS
=$LIBS
17869 cat >conftest.
$ac_ext <<_ACEOF
17872 cat confdefs.h
>>conftest.
$ac_ext
17873 cat >>conftest.
$ac_ext <<_ACEOF
17874 /* end confdefs.h. */
17876 /* Override any gcc2 internal prototype to avoid an error. */
17880 /* We use char because int might match the return type of a gcc2
17881 builtin and then its argument prototype would still apply. */
17891 rm -f conftest.
$ac_objext conftest
$ac_exeext
17892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17893 (eval $ac_link) 2>conftest.er1
17895 grep -v '^ *+' conftest.er1
>conftest.err
17897 cat conftest.err
>&5
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); } &&
17900 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17902 (eval $ac_try) 2>&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); }; } &&
17906 { ac_try
='test -s conftest$ac_exeext'
17907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17908 (eval $ac_try) 2>&5
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); }; }; then
17912 ac_cv_lib_dld_dld_link
=yes
17914 echo "$as_me: failed program was:" >&5
17915 sed 's/^/| /' conftest.
$ac_ext >&5
17917 ac_cv_lib_dld_dld_link
=no
17919 rm -f conftest.err conftest.
$ac_objext \
17920 conftest
$ac_exeext conftest.
$ac_ext
17921 LIBS
=$ac_check_lib_save_LIBS
17923 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17924 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17925 if test $ac_cv_lib_dld_dld_link = yes; then
17926 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
17947 if test "x$lt_cv_dlopen" != xno
; then
17953 case $lt_cv_dlopen in
17955 save_CPPFLAGS
="$CPPFLAGS"
17956 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17958 save_LDFLAGS
="$LDFLAGS"
17959 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17962 LIBS
="$lt_cv_dlopen_libs $LIBS"
17964 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17965 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17966 if test "${lt_cv_dlopen_self+set}" = set; then
17967 echo $ECHO_N "(cached) $ECHO_C" >&6
17969 if test "$cross_compiling" = yes; then :
17970 lt_cv_dlopen_self
=cross
17972 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17973 lt_status
=$lt_dlunknown
17974 cat > conftest.
$ac_ext <<EOF
17975 #line 17975 "configure"
17976 #include "confdefs.h"
17985 # define LT_DLGLOBAL RTLD_GLOBAL
17988 # define LT_DLGLOBAL DL_GLOBAL
17990 # define LT_DLGLOBAL 0
17994 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17995 find out it does not work in some platform. */
17996 #ifndef LT_DLLAZY_OR_NOW
17998 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18001 # define LT_DLLAZY_OR_NOW DL_LAZY
18004 # define LT_DLLAZY_OR_NOW RTLD_NOW
18007 # define LT_DLLAZY_OR_NOW DL_NOW
18009 # define LT_DLLAZY_OR_NOW 0
18017 extern "C" void exit (int);
18020 void fnord() { int i=42;}
18023 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18024 int status = $lt_dlunknown;
18028 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18029 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18030 /* dlclose (self); */
18036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18037 (eval $ac_link) 2>&5
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18041 (.
/conftest
; exit; ) 2>/dev
/null
18043 case x
$lt_status in
18044 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18045 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18046 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
18049 # compilation failed
18050 lt_cv_dlopen_self
=no
18057 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18058 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18060 if test "x$lt_cv_dlopen_self" = xyes
; then
18061 LDFLAGS
="$LDFLAGS $link_static_flag"
18062 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18063 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18064 if test "${lt_cv_dlopen_self_static+set}" = set; then
18065 echo $ECHO_N "(cached) $ECHO_C" >&6
18067 if test "$cross_compiling" = yes; then :
18068 lt_cv_dlopen_self_static
=cross
18070 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18071 lt_status
=$lt_dlunknown
18072 cat > conftest.
$ac_ext <<EOF
18073 #line 18073 "configure"
18074 #include "confdefs.h"
18083 # define LT_DLGLOBAL RTLD_GLOBAL
18086 # define LT_DLGLOBAL DL_GLOBAL
18088 # define LT_DLGLOBAL 0
18092 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18093 find out it does not work in some platform. */
18094 #ifndef LT_DLLAZY_OR_NOW
18096 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18099 # define LT_DLLAZY_OR_NOW DL_LAZY
18102 # define LT_DLLAZY_OR_NOW RTLD_NOW
18105 # define LT_DLLAZY_OR_NOW DL_NOW
18107 # define LT_DLLAZY_OR_NOW 0
18115 extern "C" void exit (int);
18118 void fnord() { int i=42;}
18121 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18122 int status = $lt_dlunknown;
18126 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18127 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18128 /* dlclose (self); */
18134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18135 (eval $ac_link) 2>&5
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18139 (.
/conftest
; exit; ) 2>/dev
/null
18141 case x
$lt_status in
18142 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18143 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18144 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
18147 # compilation failed
18148 lt_cv_dlopen_self_static
=no
18155 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18156 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18159 CPPFLAGS
="$save_CPPFLAGS"
18160 LDFLAGS
="$save_LDFLAGS"
18165 case $lt_cv_dlopen_self in
18166 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18167 *) enable_dlopen_self
=unknown
;;
18170 case $lt_cv_dlopen_self_static in
18171 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18172 *) enable_dlopen_self_static
=unknown
;;
18177 # The else clause should only fire when bootstrapping the
18178 # libtool distribution, otherwise you forgot to ship ltmain.sh
18179 # with your package, and you will get complaints that there are
18180 # no rules to generate ltmain.sh.
18181 if test -f "$ltmain"; then
18182 # See if we are running on zsh, and set the options which allow our commands through
18183 # without removal of \ escapes.
18184 if test -n "${ZSH_VERSION+set}" ; then
18185 setopt NO_GLOB_SUBST
18187 # Now quote all the things that may contain metacharacters while being
18188 # careful not to overquote the AC_SUBSTed values. We take copies of the
18189 # variables and quote the copies for generation of the libtool script.
18190 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18192 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18193 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18194 deplibs_check_method reload_flag reload_cmds need_locks \
18195 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18196 lt_cv_sys_global_symbol_to_c_name_address \
18197 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18198 old_postinstall_cmds old_postuninstall_cmds \
18202 lt_prog_compiler_wl_GCJ \
18203 lt_prog_compiler_pic_GCJ \
18204 lt_prog_compiler_static_GCJ \
18205 lt_prog_compiler_no_builtin_flag_GCJ \
18206 export_dynamic_flag_spec_GCJ \
18207 thread_safe_flag_spec_GCJ \
18208 whole_archive_flag_spec_GCJ \
18209 enable_shared_with_static_runtimes_GCJ \
18210 old_archive_cmds_GCJ \
18211 old_archive_from_new_cmds_GCJ \
18212 predep_objects_GCJ \
18213 postdep_objects_GCJ \
18216 compiler_lib_search_path_GCJ \
18218 archive_expsym_cmds_GCJ \
18219 postinstall_cmds_GCJ \
18220 postuninstall_cmds_GCJ \
18221 old_archive_from_expsyms_cmds_GCJ \
18222 allow_undefined_flag_GCJ \
18223 no_undefined_flag_GCJ \
18224 export_symbols_cmds_GCJ \
18225 hardcode_libdir_flag_spec_GCJ \
18226 hardcode_libdir_flag_spec_ld_GCJ \
18227 hardcode_libdir_separator_GCJ \
18228 hardcode_automatic_GCJ \
18230 module_expsym_cmds_GCJ \
18231 lt_cv_prog_compiler_c_o_GCJ \
18232 exclude_expsyms_GCJ \
18233 include_expsyms_GCJ
; do
18236 old_archive_cmds_GCJ | \
18237 old_archive_from_new_cmds_GCJ | \
18238 archive_cmds_GCJ | \
18239 archive_expsym_cmds_GCJ | \
18240 module_cmds_GCJ | \
18241 module_expsym_cmds_GCJ | \
18242 old_archive_from_expsyms_cmds_GCJ | \
18243 export_symbols_cmds_GCJ | \
18244 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18245 postinstall_cmds | postuninstall_cmds | \
18246 old_postinstall_cmds | old_postuninstall_cmds | \
18247 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18248 # Double-quote double-evaled strings.
18249 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18252 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18258 *'\$0 --fallback-echo"')
18259 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18265 cat <<__EOF__ >> "$cfgfile"
18266 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18268 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18270 # Shell to use when invoking shell scripts.
18273 # Whether or not to build shared libraries.
18274 build_libtool_libs=$enable_shared
18276 # Whether or not to build static libraries.
18277 build_old_libs=$enable_static
18279 # Whether or not to add -lc for building shared libraries.
18280 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18282 # Whether or not to disallow shared libs when runtime libs are static
18283 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18285 # Whether or not to optimize for fast installation.
18286 fast_install=$enable_fast_install
18289 host_alias=$host_alias
18292 # An echo program that does not interpret backslashes.
18297 AR_FLAGS=$lt_AR_FLAGS
18302 # A language-specific compiler.
18303 CC=$lt_compiler_GCJ
18305 # Is the compiler the GNU C compiler?
18311 # The linker used to build libraries.
18314 # Whether we need hard or soft links.
18317 # A BSD-compatible nm program.
18320 # A symbol stripping program
18323 # Used to examine libraries when file_magic_cmd begins "file"
18324 MAGIC_CMD=$MAGIC_CMD
18326 # Used on cygwin: DLL creation program.
18329 # Used on cygwin: object dumper.
18332 # Used on cygwin: assembler.
18335 # The name of the directory that contains temporary libtool files.
18338 # How to create reloadable object files.
18339 reload_flag=$lt_reload_flag
18340 reload_cmds=$lt_reload_cmds
18342 # How to pass a linker flag through the compiler.
18343 wl=$lt_lt_prog_compiler_wl_GCJ
18345 # Object file suffix (normally "o").
18346 objext="$ac_objext"
18348 # Old archive suffix (normally "a").
18351 # Shared library suffix (normally ".so").
18352 shrext_cmds='$shrext_cmds'
18354 # Executable file suffix (normally "").
18357 # Additional compiler flags for building library objects.
18358 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18361 # What is the maximum length of a command?
18362 max_cmd_len=$lt_cv_sys_max_cmd_len
18364 # Does compiler simultaneously support -c and -o options?
18365 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18367 # Must we lock files when doing compilation ?
18368 need_locks=$lt_need_locks
18370 # Do we need the lib prefix for modules?
18371 need_lib_prefix=$need_lib_prefix
18373 # Do we need a version for libraries?
18374 need_version=$need_version
18376 # Whether dlopen is supported.
18377 dlopen_support=$enable_dlopen
18379 # Whether dlopen of programs is supported.
18380 dlopen_self=$enable_dlopen_self
18382 # Whether dlopen of statically linked programs is supported.
18383 dlopen_self_static=$enable_dlopen_self_static
18385 # Compiler flag to prevent dynamic linking.
18386 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18388 # Compiler flag to turn off builtin functions.
18389 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18391 # Compiler flag to allow reflexive dlopens.
18392 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18394 # Compiler flag to generate shared objects directly from archives.
18395 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18397 # Compiler flag to generate thread-safe objects.
18398 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18400 # Library versioning type.
18401 version_type=$version_type
18403 # Format of library name prefix.
18404 libname_spec=$lt_libname_spec
18406 # List of archive names. First name is the real one, the rest are links.
18407 # The last name is the one that the linker finds with -lNAME.
18408 library_names_spec=$lt_library_names_spec
18410 # The coded name of the library, if different from the real name.
18411 soname_spec=$lt_soname_spec
18413 # Commands used to build and install an old-style archive.
18415 old_archive_cmds=$lt_old_archive_cmds_GCJ
18416 old_postinstall_cmds=$lt_old_postinstall_cmds
18417 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18419 # Create an old-style archive from a shared archive.
18420 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18422 # Create a temporary old-style archive to link instead of a shared archive.
18423 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18425 # Commands used to build and install a shared archive.
18426 archive_cmds=$lt_archive_cmds_GCJ
18427 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18428 postinstall_cmds=$lt_postinstall_cmds
18429 postuninstall_cmds=$lt_postuninstall_cmds
18431 # Commands used to build a loadable module (assumed same as above if empty)
18432 module_cmds=$lt_module_cmds_GCJ
18433 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18435 # Commands to strip libraries.
18436 old_striplib=$lt_old_striplib
18437 striplib=$lt_striplib
18439 # Dependencies to place before the objects being linked to create a
18441 predep_objects=$lt_predep_objects_GCJ
18443 # Dependencies to place after the objects being linked to create a
18445 postdep_objects=$lt_postdep_objects_GCJ
18447 # Dependencies to place before the objects being linked to create a
18449 predeps=$lt_predeps_GCJ
18451 # Dependencies to place after the objects being linked to create a
18453 postdeps=$lt_postdeps_GCJ
18455 # The library search path used internally by the compiler when linking
18456 # a shared library.
18457 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18459 # Method to check whether dependent libraries are shared objects.
18460 deplibs_check_method=$lt_deplibs_check_method
18462 # Command to use when deplibs_check_method == file_magic.
18463 file_magic_cmd=$lt_file_magic_cmd
18465 # Flag that allows shared libraries with undefined symbols to be built.
18466 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18468 # Flag that forces no undefined symbols.
18469 no_undefined_flag=$lt_no_undefined_flag_GCJ
18471 # Commands used to finish a libtool library installation in a directory.
18472 finish_cmds=$lt_finish_cmds
18474 # Same as above, but a single script fragment to be evaled but not shown.
18475 finish_eval=$lt_finish_eval
18477 # Take the output of nm and produce a listing of raw symbols and C names.
18478 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18480 # Transform the output of nm in a proper C declaration
18481 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18483 # Transform the output of nm in a C name address pair
18484 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18486 # This is the shared library runtime path variable.
18487 runpath_var=$runpath_var
18489 # This is the shared library path variable.
18490 shlibpath_var=$shlibpath_var
18492 # Is shlibpath searched before the hard-coded library search path?
18493 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18495 # How to hardcode a shared library path into an executable.
18496 hardcode_action=$hardcode_action_GCJ
18498 # Whether we should hardcode library paths into libraries.
18499 hardcode_into_libs=$hardcode_into_libs
18501 # Flag to hardcode \$libdir into a binary during linking.
18502 # This must work even if \$libdir does not exist.
18503 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18505 # If ld is used when linking, flag to hardcode \$libdir into
18506 # a binary during linking. This must work even if \$libdir does
18508 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18510 # Whether we need a single -rpath flag with a separated argument.
18511 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18513 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18514 # resulting binary.
18515 hardcode_direct=$hardcode_direct_GCJ
18517 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18518 # resulting binary.
18519 hardcode_minus_L=$hardcode_minus_L_GCJ
18521 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18522 # the resulting binary.
18523 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18525 # Set to yes if building a shared library automatically hardcodes DIR into the library
18526 # and all subsequent libraries and executables linked against it.
18527 hardcode_automatic=$hardcode_automatic_GCJ
18529 # Variables whose values should be saved in libtool wrapper scripts and
18530 # restored at relink time.
18531 variables_saved_for_relink="$variables_saved_for_relink"
18533 # Whether libtool must link a program against all its dependency libraries.
18534 link_all_deplibs=$link_all_deplibs_GCJ
18536 # Compile-time system search path for libraries
18537 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18539 # Run-time system search path for libraries
18540 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18542 # Fix the shell variable \$srcfile for the compiler.
18543 fix_srcfile_path="$fix_srcfile_path_GCJ"
18545 # Set to yes if exported symbols are required.
18546 always_export_symbols=$always_export_symbols_GCJ
18548 # The commands to list exported symbols.
18549 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18551 # The commands to extract the exported symbol list from a shared archive.
18552 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18554 # Symbols that should not be listed in the preloaded symbols.
18555 exclude_expsyms=$lt_exclude_expsyms_GCJ
18557 # Symbols that must always be exported.
18558 include_expsyms=$lt_include_expsyms_GCJ
18560 # ### END LIBTOOL TAG CONFIG: $tagname
18566 # If there is no Makefile yet, we rely on a make rule to execute
18567 # `config.status --recheck' to rerun these tests and create the
18568 # libtool script then.
18569 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18570 if test -f "$ltmain_in"; then
18571 test -f Makefile
&& make "$ltmain"
18577 ac_cpp
='$CPP $CPPFLAGS'
18578 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18579 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18580 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18593 # Source file extension for RC test sources.
18596 # Object file extension for compiled RC test sources.
18600 # Code to be used in simple compile tests
18601 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18603 # Code to be used in simple link tests
18604 lt_simple_link_test_code
="$lt_simple_compile_test_code"
18606 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18608 # If no C compiler was specified, use CC.
18611 # Allow CC to be a program name with arguments.
18615 # Allow CC to be a program name with arguments.
18620 lt_cv_prog_compiler_c_o_RC
=yes
18622 # The else clause should only fire when bootstrapping the
18623 # libtool distribution, otherwise you forgot to ship ltmain.sh
18624 # with your package, and you will get complaints that there are
18625 # no rules to generate ltmain.sh.
18626 if test -f "$ltmain"; then
18627 # See if we are running on zsh, and set the options which allow our commands through
18628 # without removal of \ escapes.
18629 if test -n "${ZSH_VERSION+set}" ; then
18630 setopt NO_GLOB_SUBST
18632 # Now quote all the things that may contain metacharacters while being
18633 # careful not to overquote the AC_SUBSTed values. We take copies of the
18634 # variables and quote the copies for generation of the libtool script.
18635 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18637 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18638 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18639 deplibs_check_method reload_flag reload_cmds need_locks \
18640 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18641 lt_cv_sys_global_symbol_to_c_name_address \
18642 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18643 old_postinstall_cmds old_postuninstall_cmds \
18647 lt_prog_compiler_wl_RC \
18648 lt_prog_compiler_pic_RC \
18649 lt_prog_compiler_static_RC \
18650 lt_prog_compiler_no_builtin_flag_RC \
18651 export_dynamic_flag_spec_RC \
18652 thread_safe_flag_spec_RC \
18653 whole_archive_flag_spec_RC \
18654 enable_shared_with_static_runtimes_RC \
18655 old_archive_cmds_RC \
18656 old_archive_from_new_cmds_RC \
18657 predep_objects_RC \
18658 postdep_objects_RC \
18661 compiler_lib_search_path_RC \
18663 archive_expsym_cmds_RC \
18664 postinstall_cmds_RC \
18665 postuninstall_cmds_RC \
18666 old_archive_from_expsyms_cmds_RC \
18667 allow_undefined_flag_RC \
18668 no_undefined_flag_RC \
18669 export_symbols_cmds_RC \
18670 hardcode_libdir_flag_spec_RC \
18671 hardcode_libdir_flag_spec_ld_RC \
18672 hardcode_libdir_separator_RC \
18673 hardcode_automatic_RC \
18675 module_expsym_cmds_RC \
18676 lt_cv_prog_compiler_c_o_RC \
18677 exclude_expsyms_RC \
18678 include_expsyms_RC
; do
18681 old_archive_cmds_RC | \
18682 old_archive_from_new_cmds_RC | \
18683 archive_cmds_RC | \
18684 archive_expsym_cmds_RC | \
18686 module_expsym_cmds_RC | \
18687 old_archive_from_expsyms_cmds_RC | \
18688 export_symbols_cmds_RC | \
18689 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18690 postinstall_cmds | postuninstall_cmds | \
18691 old_postinstall_cmds | old_postuninstall_cmds | \
18692 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18693 # Double-quote double-evaled strings.
18694 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18697 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18703 *'\$0 --fallback-echo"')
18704 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18710 cat <<__EOF__ >> "$cfgfile"
18711 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18713 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18715 # Shell to use when invoking shell scripts.
18718 # Whether or not to build shared libraries.
18719 build_libtool_libs=$enable_shared
18721 # Whether or not to build static libraries.
18722 build_old_libs=$enable_static
18724 # Whether or not to add -lc for building shared libraries.
18725 build_libtool_need_lc=$archive_cmds_need_lc_RC
18727 # Whether or not to disallow shared libs when runtime libs are static
18728 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18730 # Whether or not to optimize for fast installation.
18731 fast_install=$enable_fast_install
18734 host_alias=$host_alias
18737 # An echo program that does not interpret backslashes.
18742 AR_FLAGS=$lt_AR_FLAGS
18747 # A language-specific compiler.
18750 # Is the compiler the GNU C compiler?
18756 # The linker used to build libraries.
18759 # Whether we need hard or soft links.
18762 # A BSD-compatible nm program.
18765 # A symbol stripping program
18768 # Used to examine libraries when file_magic_cmd begins "file"
18769 MAGIC_CMD=$MAGIC_CMD
18771 # Used on cygwin: DLL creation program.
18774 # Used on cygwin: object dumper.
18777 # Used on cygwin: assembler.
18780 # The name of the directory that contains temporary libtool files.
18783 # How to create reloadable object files.
18784 reload_flag=$lt_reload_flag
18785 reload_cmds=$lt_reload_cmds
18787 # How to pass a linker flag through the compiler.
18788 wl=$lt_lt_prog_compiler_wl_RC
18790 # Object file suffix (normally "o").
18791 objext="$ac_objext"
18793 # Old archive suffix (normally "a").
18796 # Shared library suffix (normally ".so").
18797 shrext_cmds='$shrext_cmds'
18799 # Executable file suffix (normally "").
18802 # Additional compiler flags for building library objects.
18803 pic_flag=$lt_lt_prog_compiler_pic_RC
18806 # What is the maximum length of a command?
18807 max_cmd_len=$lt_cv_sys_max_cmd_len
18809 # Does compiler simultaneously support -c and -o options?
18810 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18812 # Must we lock files when doing compilation ?
18813 need_locks=$lt_need_locks
18815 # Do we need the lib prefix for modules?
18816 need_lib_prefix=$need_lib_prefix
18818 # Do we need a version for libraries?
18819 need_version=$need_version
18821 # Whether dlopen is supported.
18822 dlopen_support=$enable_dlopen
18824 # Whether dlopen of programs is supported.
18825 dlopen_self=$enable_dlopen_self
18827 # Whether dlopen of statically linked programs is supported.
18828 dlopen_self_static=$enable_dlopen_self_static
18830 # Compiler flag to prevent dynamic linking.
18831 link_static_flag=$lt_lt_prog_compiler_static_RC
18833 # Compiler flag to turn off builtin functions.
18834 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18836 # Compiler flag to allow reflexive dlopens.
18837 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18839 # Compiler flag to generate shared objects directly from archives.
18840 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18842 # Compiler flag to generate thread-safe objects.
18843 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18845 # Library versioning type.
18846 version_type=$version_type
18848 # Format of library name prefix.
18849 libname_spec=$lt_libname_spec
18851 # List of archive names. First name is the real one, the rest are links.
18852 # The last name is the one that the linker finds with -lNAME.
18853 library_names_spec=$lt_library_names_spec
18855 # The coded name of the library, if different from the real name.
18856 soname_spec=$lt_soname_spec
18858 # Commands used to build and install an old-style archive.
18860 old_archive_cmds=$lt_old_archive_cmds_RC
18861 old_postinstall_cmds=$lt_old_postinstall_cmds
18862 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18864 # Create an old-style archive from a shared archive.
18865 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18867 # Create a temporary old-style archive to link instead of a shared archive.
18868 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18870 # Commands used to build and install a shared archive.
18871 archive_cmds=$lt_archive_cmds_RC
18872 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18873 postinstall_cmds=$lt_postinstall_cmds
18874 postuninstall_cmds=$lt_postuninstall_cmds
18876 # Commands used to build a loadable module (assumed same as above if empty)
18877 module_cmds=$lt_module_cmds_RC
18878 module_expsym_cmds=$lt_module_expsym_cmds_RC
18880 # Commands to strip libraries.
18881 old_striplib=$lt_old_striplib
18882 striplib=$lt_striplib
18884 # Dependencies to place before the objects being linked to create a
18886 predep_objects=$lt_predep_objects_RC
18888 # Dependencies to place after the objects being linked to create a
18890 postdep_objects=$lt_postdep_objects_RC
18892 # Dependencies to place before the objects being linked to create a
18894 predeps=$lt_predeps_RC
18896 # Dependencies to place after the objects being linked to create a
18898 postdeps=$lt_postdeps_RC
18900 # The library search path used internally by the compiler when linking
18901 # a shared library.
18902 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18904 # Method to check whether dependent libraries are shared objects.
18905 deplibs_check_method=$lt_deplibs_check_method
18907 # Command to use when deplibs_check_method == file_magic.
18908 file_magic_cmd=$lt_file_magic_cmd
18910 # Flag that allows shared libraries with undefined symbols to be built.
18911 allow_undefined_flag=$lt_allow_undefined_flag_RC
18913 # Flag that forces no undefined symbols.
18914 no_undefined_flag=$lt_no_undefined_flag_RC
18916 # Commands used to finish a libtool library installation in a directory.
18917 finish_cmds=$lt_finish_cmds
18919 # Same as above, but a single script fragment to be evaled but not shown.
18920 finish_eval=$lt_finish_eval
18922 # Take the output of nm and produce a listing of raw symbols and C names.
18923 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18925 # Transform the output of nm in a proper C declaration
18926 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18928 # Transform the output of nm in a C name address pair
18929 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18931 # This is the shared library runtime path variable.
18932 runpath_var=$runpath_var
18934 # This is the shared library path variable.
18935 shlibpath_var=$shlibpath_var
18937 # Is shlibpath searched before the hard-coded library search path?
18938 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18940 # How to hardcode a shared library path into an executable.
18941 hardcode_action=$hardcode_action_RC
18943 # Whether we should hardcode library paths into libraries.
18944 hardcode_into_libs=$hardcode_into_libs
18946 # Flag to hardcode \$libdir into a binary during linking.
18947 # This must work even if \$libdir does not exist.
18948 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18950 # If ld is used when linking, flag to hardcode \$libdir into
18951 # a binary during linking. This must work even if \$libdir does
18953 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18955 # Whether we need a single -rpath flag with a separated argument.
18956 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18958 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18959 # resulting binary.
18960 hardcode_direct=$hardcode_direct_RC
18962 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18963 # resulting binary.
18964 hardcode_minus_L=$hardcode_minus_L_RC
18966 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18967 # the resulting binary.
18968 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18970 # Set to yes if building a shared library automatically hardcodes DIR into the library
18971 # and all subsequent libraries and executables linked against it.
18972 hardcode_automatic=$hardcode_automatic_RC
18974 # Variables whose values should be saved in libtool wrapper scripts and
18975 # restored at relink time.
18976 variables_saved_for_relink="$variables_saved_for_relink"
18978 # Whether libtool must link a program against all its dependency libraries.
18979 link_all_deplibs=$link_all_deplibs_RC
18981 # Compile-time system search path for libraries
18982 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18984 # Run-time system search path for libraries
18985 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18987 # Fix the shell variable \$srcfile for the compiler.
18988 fix_srcfile_path="$fix_srcfile_path_RC"
18990 # Set to yes if exported symbols are required.
18991 always_export_symbols=$always_export_symbols_RC
18993 # The commands to list exported symbols.
18994 export_symbols_cmds=$lt_export_symbols_cmds_RC
18996 # The commands to extract the exported symbol list from a shared archive.
18997 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18999 # Symbols that should not be listed in the preloaded symbols.
19000 exclude_expsyms=$lt_exclude_expsyms_RC
19002 # Symbols that must always be exported.
19003 include_expsyms=$lt_include_expsyms_RC
19005 # ### END LIBTOOL TAG CONFIG: $tagname
19011 # If there is no Makefile yet, we rely on a make rule to execute
19012 # `config.status --recheck' to rerun these tests and create the
19013 # libtool script then.
19014 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19015 if test -f "$ltmain_in"; then
19016 test -f Makefile
&& make "$ltmain"
19022 ac_cpp
='$CPP $CPPFLAGS'
19023 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19024 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19025 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19032 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19033 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19034 { (exit 1); exit 1; }; }
19038 # Append the new tag name to the list of available tags.
19039 if test -n "$tagname" ; then
19040 available_tags
="$available_tags $tagname"
19046 # Now substitute the updated list of available tags.
19047 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19048 mv "${ofile}T" "$ofile"
19052 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19053 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19054 { (exit 1); exit 1; }; }
19060 # This can be used to rebuild libtool when needed
19061 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
19063 # Always use our own libtool.
19064 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
19066 # Prevent multiple expansion
19089 ac_cpp
='$CXXCPP $CPPFLAGS'
19090 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19091 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19092 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19096 # Check whether --with-libusb or --without-libusb was given.
19097 if test "${with_libusb+set}" = set; then
19098 withval
="$with_libusb"
19099 LIBUSB_LIB_PATH
="$with_libusb/lib"
19100 LIBUSB_INC_PATH
="$with_libusb/include"
19102 LIBUSB_LIB_PATH
="/usr/lib"
19103 LIBUSB_INC_PATH
="/usr/include"
19106 # Check whether --with-boost or --without-boost was given.
19107 if test "${with_boost+set}" = set; then
19108 withval
="$with_boost"
19109 BOOST_LIB_PATH
="$with_boost/lib"
19110 BOOST_INC_PATH
="$with_boost/include"
19111 BOOST_ENABLED
="true"
19113 BOOST_LIB_PATH
="/usr/lib"
19114 BOOST_INC_PATH
="/usr/include"
19124 if test "$BOOST_ENABLED" = "true"; then
19126 WITH_BOOST_FALSE
='#'
19128 WITH_BOOST_TRUE
='#'
19133 # Checks for libraries.
19134 #AC_CHECK_LIB([IOKit], [main])
19136 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
19137 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
19138 if test "${ac_cv_lib_pthread_main+set}" = set; then
19139 echo $ECHO_N "(cached) $ECHO_C" >&6
19141 ac_check_lib_save_LIBS
=$LIBS
19142 LIBS
="-lpthread $LIBS"
19143 cat >conftest.
$ac_ext <<_ACEOF
19146 cat confdefs.h
>>conftest.
$ac_ext
19147 cat >>conftest.
$ac_ext <<_ACEOF
19148 /* end confdefs.h. */
19159 rm -f conftest.
$ac_objext conftest
$ac_exeext
19160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19161 (eval $ac_link) 2>conftest.er1
19163 grep -v '^ *+' conftest.er1
>conftest.err
19165 cat conftest.err
>&5
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); } &&
19168 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19170 (eval $ac_try) 2>&5
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); }; } &&
19174 { ac_try
='test -s conftest$ac_exeext'
19175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19176 (eval $ac_try) 2>&5
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); }; }; then
19180 ac_cv_lib_pthread_main
=yes
19182 echo "$as_me: failed program was:" >&5
19183 sed 's/^/| /' conftest.
$ac_ext >&5
19185 ac_cv_lib_pthread_main
=no
19187 rm -f conftest.err conftest.
$ac_objext \
19188 conftest
$ac_exeext conftest.
$ac_ext
19189 LIBS
=$ac_check_lib_save_LIBS
19191 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
19192 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
19193 if test $ac_cv_lib_pthread_main = yes; then
19194 cat >>confdefs.h
<<_ACEOF
19195 #define HAVE_LIBPTHREAD 1
19198 LIBS
="-lpthread $LIBS"
19202 #AC_CHECK_LIB([libusb], [libusb_init])
19204 # Checks for header files.
19210 ac_header_dirent
=no
19211 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
19212 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19213 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19214 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19216 echo $ECHO_N "(cached) $ECHO_C" >&6
19218 cat >conftest.
$ac_ext <<_ACEOF
19221 cat confdefs.h
>>conftest.
$ac_ext
19222 cat >>conftest.
$ac_ext <<_ACEOF
19223 /* end confdefs.h. */
19224 #include <sys/types.h>
19236 rm -f conftest.
$ac_objext
19237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19238 (eval $ac_compile) 2>conftest.er1
19240 grep -v '^ *+' conftest.er1
>conftest.err
19242 cat conftest.err
>&5
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); } &&
19245 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; } &&
19251 { ac_try
='test -s conftest.$ac_objext'
19252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253 (eval $ac_try) 2>&5
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; }; then
19257 eval "$as_ac_Header=yes"
19259 echo "$as_me: failed program was:" >&5
19260 sed 's/^/| /' conftest.
$ac_ext >&5
19262 eval "$as_ac_Header=no"
19264 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19269 cat >>confdefs.h
<<_ACEOF
19270 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19273 ac_header_dirent
=$ac_hdr; break
19277 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19278 if test $ac_header_dirent = dirent.h
; then
19279 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19280 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19281 if test "${ac_cv_search_opendir+set}" = set; then
19282 echo $ECHO_N "(cached) $ECHO_C" >&6
19284 ac_func_search_save_LIBS
=$LIBS
19285 ac_cv_search_opendir
=no
19286 cat >conftest.
$ac_ext <<_ACEOF
19289 cat confdefs.h
>>conftest.
$ac_ext
19290 cat >>conftest.
$ac_ext <<_ACEOF
19291 /* end confdefs.h. */
19293 /* Override any gcc2 internal prototype to avoid an error. */
19297 /* We use char because int might match the return type of a gcc2
19298 builtin and then its argument prototype would still apply. */
19308 rm -f conftest.
$ac_objext conftest
$ac_exeext
19309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19310 (eval $ac_link) 2>conftest.er1
19312 grep -v '^ *+' conftest.er1
>conftest.err
19314 cat conftest.err
>&5
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); } &&
19317 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319 (eval $ac_try) 2>&5
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); }; } &&
19323 { ac_try
='test -s conftest$ac_exeext'
19324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325 (eval $ac_try) 2>&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); }; }; then
19329 ac_cv_search_opendir
="none required"
19331 echo "$as_me: failed program was:" >&5
19332 sed 's/^/| /' conftest.
$ac_ext >&5
19335 rm -f conftest.err conftest.
$ac_objext \
19336 conftest
$ac_exeext conftest.
$ac_ext
19337 if test "$ac_cv_search_opendir" = no
; then
19338 for ac_lib
in dir
; do
19339 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
19340 cat >conftest.
$ac_ext <<_ACEOF
19343 cat confdefs.h
>>conftest.
$ac_ext
19344 cat >>conftest.
$ac_ext <<_ACEOF
19345 /* end confdefs.h. */
19347 /* Override any gcc2 internal prototype to avoid an error. */
19351 /* We use char because int might match the return type of a gcc2
19352 builtin and then its argument prototype would still apply. */
19362 rm -f conftest.
$ac_objext conftest
$ac_exeext
19363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19364 (eval $ac_link) 2>conftest.er1
19366 grep -v '^ *+' conftest.er1
>conftest.err
19368 cat conftest.err
>&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); } &&
19371 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373 (eval $ac_try) 2>&5
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; } &&
19377 { ac_try
='test -s conftest$ac_exeext'
19378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379 (eval $ac_try) 2>&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); }; }; then
19383 ac_cv_search_opendir
="-l$ac_lib"
19386 echo "$as_me: failed program was:" >&5
19387 sed 's/^/| /' conftest.
$ac_ext >&5
19390 rm -f conftest.err conftest.
$ac_objext \
19391 conftest
$ac_exeext conftest.
$ac_ext
19394 LIBS
=$ac_func_search_save_LIBS
19396 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19397 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19398 if test "$ac_cv_search_opendir" != no
; then
19399 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
19404 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19405 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19406 if test "${ac_cv_search_opendir+set}" = set; then
19407 echo $ECHO_N "(cached) $ECHO_C" >&6
19409 ac_func_search_save_LIBS
=$LIBS
19410 ac_cv_search_opendir
=no
19411 cat >conftest.
$ac_ext <<_ACEOF
19414 cat confdefs.h
>>conftest.
$ac_ext
19415 cat >>conftest.
$ac_ext <<_ACEOF
19416 /* end confdefs.h. */
19418 /* Override any gcc2 internal prototype to avoid an error. */
19422 /* We use char because int might match the return type of a gcc2
19423 builtin and then its argument prototype would still apply. */
19433 rm -f conftest.
$ac_objext conftest
$ac_exeext
19434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19435 (eval $ac_link) 2>conftest.er1
19437 grep -v '^ *+' conftest.er1
>conftest.err
19439 cat conftest.err
>&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } &&
19442 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19444 (eval $ac_try) 2>&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; } &&
19448 { ac_try
='test -s conftest$ac_exeext'
19449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450 (eval $ac_try) 2>&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; }; then
19454 ac_cv_search_opendir
="none required"
19456 echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.
$ac_ext >&5
19460 rm -f conftest.err conftest.
$ac_objext \
19461 conftest
$ac_exeext conftest.
$ac_ext
19462 if test "$ac_cv_search_opendir" = no
; then
19463 for ac_lib
in x
; do
19464 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
19465 cat >conftest.
$ac_ext <<_ACEOF
19468 cat confdefs.h
>>conftest.
$ac_ext
19469 cat >>conftest.
$ac_ext <<_ACEOF
19470 /* end confdefs.h. */
19472 /* Override any gcc2 internal prototype to avoid an error. */
19476 /* We use char because int might match the return type of a gcc2
19477 builtin and then its argument prototype would still apply. */
19487 rm -f conftest.
$ac_objext conftest
$ac_exeext
19488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19489 (eval $ac_link) 2>conftest.er1
19491 grep -v '^ *+' conftest.er1
>conftest.err
19493 cat conftest.err
>&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); } &&
19496 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498 (eval $ac_try) 2>&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; } &&
19502 { ac_try
='test -s conftest$ac_exeext'
19503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19504 (eval $ac_try) 2>&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); }; }; then
19508 ac_cv_search_opendir
="-l$ac_lib"
19511 echo "$as_me: failed program was:" >&5
19512 sed 's/^/| /' conftest.
$ac_ext >&5
19515 rm -f conftest.err conftest.
$ac_objext \
19516 conftest
$ac_exeext conftest.
$ac_ext
19519 LIBS
=$ac_func_search_save_LIBS
19521 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19522 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19523 if test "$ac_cv_search_opendir" != no
; then
19524 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
19531 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19532 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19533 if test "${ac_cv_header_stdc+set}" = set; then
19534 echo $ECHO_N "(cached) $ECHO_C" >&6
19536 cat >conftest.
$ac_ext <<_ACEOF
19539 cat confdefs.h
>>conftest.
$ac_ext
19540 cat >>conftest.
$ac_ext <<_ACEOF
19541 /* end confdefs.h. */
19542 #include <stdlib.h>
19543 #include <stdarg.h>
19544 #include <string.h>
19555 rm -f conftest.
$ac_objext
19556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19557 (eval $ac_compile) 2>conftest.er1
19559 grep -v '^ *+' conftest.er1
>conftest.err
19561 cat conftest.err
>&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); } &&
19564 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566 (eval $ac_try) 2>&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; } &&
19570 { ac_try
='test -s conftest.$ac_objext'
19571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572 (eval $ac_try) 2>&5
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); }; }; then
19576 ac_cv_header_stdc
=yes
19578 echo "$as_me: failed program was:" >&5
19579 sed 's/^/| /' conftest.
$ac_ext >&5
19581 ac_cv_header_stdc
=no
19583 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19585 if test $ac_cv_header_stdc = yes; then
19586 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19587 cat >conftest.
$ac_ext <<_ACEOF
19590 cat confdefs.h
>>conftest.
$ac_ext
19591 cat >>conftest.
$ac_ext <<_ACEOF
19592 /* end confdefs.h. */
19593 #include <string.h>
19596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19597 $EGREP "memchr" >/dev
/null
2>&1; then
19600 ac_cv_header_stdc
=no
19606 if test $ac_cv_header_stdc = yes; then
19607 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19608 cat >conftest.
$ac_ext <<_ACEOF
19611 cat confdefs.h
>>conftest.
$ac_ext
19612 cat >>conftest.
$ac_ext <<_ACEOF
19613 /* end confdefs.h. */
19614 #include <stdlib.h>
19617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19618 $EGREP "free" >/dev
/null
2>&1; then
19621 ac_cv_header_stdc
=no
19627 if test $ac_cv_header_stdc = yes; then
19628 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19629 if test "$cross_compiling" = yes; then
19632 cat >conftest.
$ac_ext <<_ACEOF
19635 cat confdefs.h
>>conftest.
$ac_ext
19636 cat >>conftest.
$ac_ext <<_ACEOF
19637 /* end confdefs.h. */
19639 #if ((' ' & 0x0FF) == 0x020)
19640 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19641 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19643 # define ISLOWER(c) \
19644 (('a' <= (c) && (c) <= 'i') \
19645 || ('j' <= (c) && (c) <= 'r') \
19646 || ('s' <= (c) && (c) <= 'z'))
19647 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19650 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19655 for (i = 0; i < 256; i++)
19656 if (XOR (islower (i), ISLOWER (i))
19657 || toupper (i) != TOUPPER (i))
19662 rm -f conftest
$ac_exeext
19663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19664 (eval $ac_link) 2>&5
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19669 (eval $ac_try) 2>&5
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); }; }; then
19675 echo "$as_me: program exited with status $ac_status" >&5
19676 echo "$as_me: failed program was:" >&5
19677 sed 's/^/| /' conftest.
$ac_ext >&5
19679 ( exit $ac_status )
19680 ac_cv_header_stdc
=no
19682 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19686 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19687 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19688 if test $ac_cv_header_stdc = yes; then
19690 cat >>confdefs.h
<<\_ACEOF
19691 #define STDC_HEADERS 1
19699 for ac_header
in assert.h stdint.h
time.h
19701 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19703 echo "$as_me:$LINENO: checking for $ac_header" >&5
19704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19706 echo $ECHO_N "(cached) $ECHO_C" >&6
19708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19711 # Is the header compilable?
19712 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19714 cat >conftest.
$ac_ext <<_ACEOF
19717 cat confdefs.h
>>conftest.
$ac_ext
19718 cat >>conftest.
$ac_ext <<_ACEOF
19719 /* end confdefs.h. */
19720 $ac_includes_default
19721 #include <$ac_header>
19723 rm -f conftest.
$ac_objext
19724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19725 (eval $ac_compile) 2>conftest.er1
19727 grep -v '^ *+' conftest.er1
>conftest.err
19729 cat conftest.err
>&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); } &&
19732 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734 (eval $ac_try) 2>&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; } &&
19738 { ac_try
='test -s conftest.$ac_objext'
19739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19740 (eval $ac_try) 2>&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); }; }; then
19744 ac_header_compiler
=yes
19746 echo "$as_me: failed program was:" >&5
19747 sed 's/^/| /' conftest.
$ac_ext >&5
19749 ac_header_compiler
=no
19751 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19752 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19753 echo "${ECHO_T}$ac_header_compiler" >&6
19755 # Is the header present?
19756 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19758 cat >conftest.
$ac_ext <<_ACEOF
19761 cat confdefs.h
>>conftest.
$ac_ext
19762 cat >>conftest.
$ac_ext <<_ACEOF
19763 /* end confdefs.h. */
19764 #include <$ac_header>
19766 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19767 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19769 grep -v '^ *+' conftest.er1
>conftest.err
19771 cat conftest.err
>&5
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); } >/dev
/null
; then
19774 if test -s conftest.err
; then
19775 ac_cpp_err
=$ac_cxx_preproc_warn_flag
19776 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
19783 if test -z "$ac_cpp_err"; then
19784 ac_header_preproc
=yes
19786 echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.
$ac_ext >&5
19789 ac_header_preproc
=no
19791 rm -f conftest.err conftest.
$ac_ext
19792 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19793 echo "${ECHO_T}$ac_header_preproc" >&6
19795 # So? What about this header?
19796 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19798 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19799 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19801 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19802 ac_header_preproc
=yes
19805 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19806 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19807 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19808 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19809 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19810 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19811 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19812 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19814 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19815 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19816 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19819 ## ------------------------------------------------ ##
19820 ## Report this to barry-devel@lists.sourceforge.net ##
19821 ## ------------------------------------------------ ##
19824 sed "s/^/$as_me: WARNING: /" >&2
19827 echo "$as_me:$LINENO: checking for $ac_header" >&5
19828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19830 echo $ECHO_N "(cached) $ECHO_C" >&6
19832 eval "$as_ac_Header=\$ac_header_preproc"
19834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19839 cat >>confdefs.h
<<_ACEOF
19840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19848 # Checks for typedefs, structures, and compiler characteristics.
19850 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19851 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19852 if test "${ac_cv_header_time+set}" = set; then
19853 echo $ECHO_N "(cached) $ECHO_C" >&6
19855 cat >conftest.
$ac_ext <<_ACEOF
19858 cat confdefs.h
>>conftest.
$ac_ext
19859 cat >>conftest.
$ac_ext <<_ACEOF
19860 /* end confdefs.h. */
19861 #include <sys/types.h>
19862 #include <sys/time.h>
19868 if ((struct tm *) 0)
19874 rm -f conftest.
$ac_objext
19875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19876 (eval $ac_compile) 2>conftest.er1
19878 grep -v '^ *+' conftest.er1
>conftest.err
19880 cat conftest.err
>&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } &&
19883 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19885 (eval $ac_try) 2>&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); }; } &&
19889 { ac_try
='test -s conftest.$ac_objext'
19890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19891 (eval $ac_try) 2>&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); }; }; then
19895 ac_cv_header_time
=yes
19897 echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.
$ac_ext >&5
19900 ac_cv_header_time
=no
19902 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19904 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19905 echo "${ECHO_T}$ac_cv_header_time" >&6
19906 if test $ac_cv_header_time = yes; then
19908 cat >>confdefs.h
<<\_ACEOF
19909 #define TIME_WITH_SYS_TIME 1
19914 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19915 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19916 if test "${ac_cv_struct_tm+set}" = set; then
19917 echo $ECHO_N "(cached) $ECHO_C" >&6
19919 cat >conftest.
$ac_ext <<_ACEOF
19922 cat confdefs.h
>>conftest.
$ac_ext
19923 cat >>conftest.
$ac_ext <<_ACEOF
19924 /* end confdefs.h. */
19925 #include <sys/types.h>
19931 struct tm *tp; tp->tm_sec;
19936 rm -f conftest.
$ac_objext
19937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19938 (eval $ac_compile) 2>conftest.er1
19940 grep -v '^ *+' conftest.er1
>conftest.err
19942 cat conftest.err
>&5
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); } &&
19945 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947 (eval $ac_try) 2>&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); }; } &&
19951 { ac_try
='test -s conftest.$ac_objext'
19952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; }; then
19957 ac_cv_struct_tm
=time.h
19959 echo "$as_me: failed program was:" >&5
19960 sed 's/^/| /' conftest.
$ac_ext >&5
19962 ac_cv_struct_tm
=sys
/time.h
19964 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19966 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19967 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19968 if test $ac_cv_struct_tm = sys
/time.h
; then
19970 cat >>confdefs.h
<<\_ACEOF
19971 #define TM_IN_SYS_TIME 1
19977 # Checks for library functions.
19978 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
19979 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
19980 if test "${ac_cv_func_closedir_void+set}" = set; then
19981 echo $ECHO_N "(cached) $ECHO_C" >&6
19983 if test "$cross_compiling" = yes; then
19984 ac_cv_func_closedir_void
=yes
19986 cat >conftest.
$ac_ext <<_ACEOF
19989 cat confdefs.h
>>conftest.
$ac_ext
19990 cat >>conftest.
$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19992 $ac_includes_default
19993 #include <$ac_header_dirent>
19994 #ifndef __cplusplus
20001 exit (closedir (opendir (".")) != 0);
20006 rm -f conftest
$ac_exeext
20007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20008 (eval $ac_link) 2>&5
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20013 (eval $ac_try) 2>&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); }; }; then
20017 ac_cv_func_closedir_void
=no
20019 echo "$as_me: program exited with status $ac_status" >&5
20020 echo "$as_me: failed program was:" >&5
20021 sed 's/^/| /' conftest.
$ac_ext >&5
20023 ( exit $ac_status )
20024 ac_cv_func_closedir_void
=yes
20026 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20029 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
20030 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
20031 if test $ac_cv_func_closedir_void = yes; then
20033 cat >>confdefs.h
<<\_ACEOF
20034 #define CLOSEDIR_VOID 1
20039 if test $ac_cv_c_compiler_gnu = yes; then
20040 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
20041 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
20042 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
20043 echo $ECHO_N "(cached) $ECHO_C" >&6
20045 ac_pattern
="Autoconf.*'x'"
20046 cat >conftest.
$ac_ext <<_ACEOF
20049 cat confdefs.h
>>conftest.
$ac_ext
20050 cat >>conftest.
$ac_ext <<_ACEOF
20051 /* end confdefs.h. */
20055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20056 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
20057 ac_cv_prog_gcc_traditional
=yes
20059 ac_cv_prog_gcc_traditional
=no
20064 if test $ac_cv_prog_gcc_traditional = no
; then
20065 cat >conftest.
$ac_ext <<_ACEOF
20068 cat confdefs.h
>>conftest.
$ac_ext
20069 cat >>conftest.
$ac_ext <<_ACEOF
20070 /* end confdefs.h. */
20071 #include <termio.h>
20074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20075 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
20076 ac_cv_prog_gcc_traditional
=yes
20082 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
20083 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
20084 if test $ac_cv_prog_gcc_traditional = yes; then
20085 CC
="$CC -traditional"
20090 for ac_header
in stdlib.h
20092 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20094 echo "$as_me:$LINENO: checking for $ac_header" >&5
20095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20097 echo $ECHO_N "(cached) $ECHO_C" >&6
20099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20102 # Is the header compilable?
20103 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20105 cat >conftest.
$ac_ext <<_ACEOF
20108 cat confdefs.h
>>conftest.
$ac_ext
20109 cat >>conftest.
$ac_ext <<_ACEOF
20110 /* end confdefs.h. */
20111 $ac_includes_default
20112 #include <$ac_header>
20114 rm -f conftest.
$ac_objext
20115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20116 (eval $ac_compile) 2>conftest.er1
20118 grep -v '^ *+' conftest.er1
>conftest.err
20120 cat conftest.err
>&5
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); } &&
20123 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20125 (eval $ac_try) 2>&5
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); }; } &&
20129 { ac_try
='test -s conftest.$ac_objext'
20130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20131 (eval $ac_try) 2>&5
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); }; }; then
20135 ac_header_compiler
=yes
20137 echo "$as_me: failed program was:" >&5
20138 sed 's/^/| /' conftest.
$ac_ext >&5
20140 ac_header_compiler
=no
20142 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20144 echo "${ECHO_T}$ac_header_compiler" >&6
20146 # Is the header present?
20147 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20149 cat >conftest.
$ac_ext <<_ACEOF
20152 cat confdefs.h
>>conftest.
$ac_ext
20153 cat >>conftest.
$ac_ext <<_ACEOF
20154 /* end confdefs.h. */
20155 #include <$ac_header>
20157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20158 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20160 grep -v '^ *+' conftest.er1
>conftest.err
20162 cat conftest.err
>&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); } >/dev
/null
; then
20165 if test -s conftest.err
; then
20166 ac_cpp_err
=$ac_cxx_preproc_warn_flag
20167 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
20174 if test -z "$ac_cpp_err"; then
20175 ac_header_preproc
=yes
20177 echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.
$ac_ext >&5
20180 ac_header_preproc
=no
20182 rm -f conftest.err conftest.
$ac_ext
20183 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20184 echo "${ECHO_T}$ac_header_preproc" >&6
20186 # So? What about this header?
20187 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20193 ac_header_preproc
=yes
20196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20199 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20203 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20210 ## ------------------------------------------------ ##
20211 ## Report this to barry-devel@lists.sourceforge.net ##
20212 ## ------------------------------------------------ ##
20215 sed "s/^/$as_me: WARNING: /" >&2
20218 echo "$as_me:$LINENO: checking for $ac_header" >&5
20219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20221 echo $ECHO_N "(cached) $ECHO_C" >&6
20223 eval "$as_ac_Header=\$ac_header_preproc"
20225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20230 cat >>confdefs.h
<<_ACEOF
20231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20238 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
20239 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
20240 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
20241 echo $ECHO_N "(cached) $ECHO_C" >&6
20243 if test "$cross_compiling" = yes; then
20244 ac_cv_func_malloc_0_nonnull
=no
20246 cat >conftest.
$ac_ext <<_ACEOF
20249 cat confdefs.h
>>conftest.
$ac_ext
20250 cat >>conftest.
$ac_ext <<_ACEOF
20251 /* end confdefs.h. */
20252 #if STDC_HEADERS || HAVE_STDLIB_H
20253 # include <stdlib.h>
20261 exit (malloc (0) ? 0 : 1);
20266 rm -f conftest
$ac_exeext
20267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20268 (eval $ac_link) 2>&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273 (eval $ac_try) 2>&5
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }; }; then
20277 ac_cv_func_malloc_0_nonnull
=yes
20279 echo "$as_me: program exited with status $ac_status" >&5
20280 echo "$as_me: failed program was:" >&5
20281 sed 's/^/| /' conftest.
$ac_ext >&5
20283 ( exit $ac_status )
20284 ac_cv_func_malloc_0_nonnull
=no
20286 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20289 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
20290 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
20291 if test $ac_cv_func_malloc_0_nonnull = yes; then
20293 cat >>confdefs.h
<<\_ACEOF
20294 #define HAVE_MALLOC 1
20298 cat >>confdefs.h
<<\_ACEOF
20299 #define HAVE_MALLOC 0
20303 "malloc.$ac_objext" | \
20304 *" malloc.$ac_objext" | \
20305 "malloc.$ac_objext "* | \
20306 *" malloc.$ac_objext "* ) ;;
20307 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext" ;;
20311 cat >>confdefs.h
<<\_ACEOF
20312 #define malloc rpl_malloc
20322 for ac_header
in stdlib.h sys
/time.h unistd.h
20324 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20326 echo "$as_me:$LINENO: checking for $ac_header" >&5
20327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20329 echo $ECHO_N "(cached) $ECHO_C" >&6
20331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20334 # Is the header compilable?
20335 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20337 cat >conftest.
$ac_ext <<_ACEOF
20340 cat confdefs.h
>>conftest.
$ac_ext
20341 cat >>conftest.
$ac_ext <<_ACEOF
20342 /* end confdefs.h. */
20343 $ac_includes_default
20344 #include <$ac_header>
20346 rm -f conftest.
$ac_objext
20347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20348 (eval $ac_compile) 2>conftest.er1
20350 grep -v '^ *+' conftest.er1
>conftest.err
20352 cat conftest.err
>&5
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); } &&
20355 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20357 (eval $ac_try) 2>&5
20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); }; } &&
20361 { ac_try
='test -s conftest.$ac_objext'
20362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20363 (eval $ac_try) 2>&5
20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366 (exit $ac_status); }; }; then
20367 ac_header_compiler
=yes
20369 echo "$as_me: failed program was:" >&5
20370 sed 's/^/| /' conftest.
$ac_ext >&5
20372 ac_header_compiler
=no
20374 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20375 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20376 echo "${ECHO_T}$ac_header_compiler" >&6
20378 # Is the header present?
20379 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20381 cat >conftest.
$ac_ext <<_ACEOF
20384 cat confdefs.h
>>conftest.
$ac_ext
20385 cat >>conftest.
$ac_ext <<_ACEOF
20386 /* end confdefs.h. */
20387 #include <$ac_header>
20389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20390 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20392 grep -v '^ *+' conftest.er1
>conftest.err
20394 cat conftest.err
>&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); } >/dev
/null
; then
20397 if test -s conftest.err
; then
20398 ac_cpp_err
=$ac_cxx_preproc_warn_flag
20399 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
20406 if test -z "$ac_cpp_err"; then
20407 ac_header_preproc
=yes
20409 echo "$as_me: failed program was:" >&5
20410 sed 's/^/| /' conftest.
$ac_ext >&5
20412 ac_header_preproc
=no
20414 rm -f conftest.err conftest.
$ac_ext
20415 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20416 echo "${ECHO_T}$ac_header_preproc" >&6
20418 # So? What about this header?
20419 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20425 ac_header_preproc
=yes
20428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20435 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20442 ## ------------------------------------------------ ##
20443 ## Report this to barry-devel@lists.sourceforge.net ##
20444 ## ------------------------------------------------ ##
20447 sed "s/^/$as_me: WARNING: /" >&2
20450 echo "$as_me:$LINENO: checking for $ac_header" >&5
20451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20455 eval "$as_ac_Header=\$ac_header_preproc"
20457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20462 cat >>confdefs.h
<<_ACEOF
20463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20471 for ac_func
in alarm
20473 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20474 echo "$as_me:$LINENO: checking for $ac_func" >&5
20475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20476 if eval "test \"\${$as_ac_var+set}\" = set"; then
20477 echo $ECHO_N "(cached) $ECHO_C" >&6
20479 cat >conftest.
$ac_ext <<_ACEOF
20482 cat confdefs.h
>>conftest.
$ac_ext
20483 cat >>conftest.
$ac_ext <<_ACEOF
20484 /* end confdefs.h. */
20485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20487 #define $ac_func innocuous_$ac_func
20489 /* System header to define __stub macros and hopefully few prototypes,
20490 which can conflict with char $ac_func (); below.
20491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20492 <limits.h> exists even on freestanding compilers. */
20495 # include <limits.h>
20497 # include <assert.h>
20502 /* Override any gcc2 internal prototype to avoid an error. */
20507 /* We use char because int might match the return type of a gcc2
20508 builtin and then its argument prototype would still apply. */
20510 /* The GNU C library defines this for functions which it implements
20511 to always fail with ENOSYS. Some functions are actually named
20512 something starting with __ and the normal name is an alias. */
20513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20516 char (*f) () = $ac_func;
20525 return f != $ac_func;
20530 rm -f conftest.
$ac_objext conftest
$ac_exeext
20531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20532 (eval $ac_link) 2>conftest.er1
20534 grep -v '^ *+' conftest.er1
>conftest.err
20536 cat conftest.err
>&5
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); } &&
20539 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20541 (eval $ac_try) 2>&5
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); }; } &&
20545 { ac_try
='test -s conftest$ac_exeext'
20546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20547 (eval $ac_try) 2>&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); }; }; then
20551 eval "$as_ac_var=yes"
20553 echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.
$ac_ext >&5
20556 eval "$as_ac_var=no"
20558 rm -f conftest.err conftest.
$ac_objext \
20559 conftest
$ac_exeext conftest.
$ac_ext
20561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20563 if test `eval echo '${'$as_ac_var'}'` = yes; then
20564 cat >>confdefs.h
<<_ACEOF
20565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20571 echo "$as_me:$LINENO: checking for working mktime" >&5
20572 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
20573 if test "${ac_cv_func_working_mktime+set}" = set; then
20574 echo $ECHO_N "(cached) $ECHO_C" >&6
20576 if test "$cross_compiling" = yes; then
20577 ac_cv_func_working_mktime
=no
20579 cat >conftest.
$ac_ext <<_ACEOF
20582 cat confdefs.h
>>conftest.
$ac_ext
20583 cat >>conftest.
$ac_ext <<_ACEOF
20584 /* end confdefs.h. */
20585 /* Test program from Paul Eggert and Tony Leneis. */
20586 #if TIME_WITH_SYS_TIME
20587 # include <sys/time.h>
20590 # if HAVE_SYS_TIME_H
20591 # include <sys/time.h>
20598 # include <stdlib.h>
20602 # include <unistd.h>
20606 # define alarm(X) /* empty */
20609 /* Work around redefinition to rpl_putenv by other config tests. */
20612 static time_t time_t_max;
20613 static time_t time_t_min;
20615 /* Values we'll use to set the TZ environment variable. */
20616 static char *tz_strings[] = {
20617 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20618 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20620 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20622 /* Fail if mktime fails to convert a date in the spring-forward gap.
20623 Based on a problem report from Andreas Jaeger. */
20625 spring_forward_gap ()
20627 /* glibc (up to about 1998-10-07) failed this test. */
20630 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20631 instead of "TZ=America/Vancouver" in order to detect the bug even
20632 on systems that don't support the Olson extension, or don't have the
20633 full zoneinfo tables installed. */
20634 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20643 if (mktime (&tm) == (time_t)-1)
20652 if ((lt = localtime (&now)) && mktime (lt) != now)
20660 mktime_test1 (now);
20661 mktime_test1 ((time_t) (time_t_max - now));
20662 mktime_test1 ((time_t) (time_t_min + now));
20668 /* Based on code from Ariel Faigon. */
20678 if (tm.tm_mon != 2 || tm.tm_mday != 31)
20688 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20689 now = mktime (&tm);
20690 if (now != (time_t) -1)
20692 struct tm *lt = localtime (&now);
20694 && lt->tm_year == tm.tm_year
20695 && lt->tm_mon == tm.tm_mon
20696 && lt->tm_mday == tm.tm_mday
20697 && lt->tm_hour == tm.tm_hour
20698 && lt->tm_min == tm.tm_min
20699 && lt->tm_sec == tm.tm_sec
20700 && lt->tm_yday == tm.tm_yday
20701 && lt->tm_wday == tm.tm_wday
20702 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20703 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20714 /* This test makes some buggy mktime implementations loop.
20715 Give up after 60 seconds; a mktime slower than that
20716 isn't worth using anyway. */
20719 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
20722 if ((time_t) -1 < 0)
20723 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
20725 delta = time_t_max / 997; /* a suitable prime number */
20726 for (i = 0; i < N_STRINGS; i++)
20729 putenv (tz_strings[i]);
20731 for (t = 0; t <= time_t_max - delta; t += delta)
20733 mktime_test ((time_t) 1);
20734 mktime_test ((time_t) (60 * 60));
20735 mktime_test ((time_t) (60 * 60 * 24));
20737 for (j = 1; 0 < j; j *= 2)
20739 bigtime_test (j - 1);
20742 spring_forward_gap ();
20746 rm -f conftest
$ac_exeext
20747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20748 (eval $ac_link) 2>&5
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20753 (eval $ac_try) 2>&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); }; }; then
20757 ac_cv_func_working_mktime
=yes
20759 echo "$as_me: program exited with status $ac_status" >&5
20760 echo "$as_me: failed program was:" >&5
20761 sed 's/^/| /' conftest.
$ac_ext >&5
20763 ( exit $ac_status )
20764 ac_cv_func_working_mktime
=no
20766 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20769 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
20770 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
20771 if test $ac_cv_func_working_mktime = no
; then
20773 "mktime.$ac_objext" | \
20774 *" mktime.$ac_objext" | \
20775 "mktime.$ac_objext "* | \
20776 *" mktime.$ac_objext "* ) ;;
20777 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
20783 for ac_header
in stdlib.h
20785 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20787 echo "$as_me:$LINENO: checking for $ac_header" >&5
20788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20790 echo $ECHO_N "(cached) $ECHO_C" >&6
20792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20795 # Is the header compilable?
20796 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20798 cat >conftest.
$ac_ext <<_ACEOF
20801 cat confdefs.h
>>conftest.
$ac_ext
20802 cat >>conftest.
$ac_ext <<_ACEOF
20803 /* end confdefs.h. */
20804 $ac_includes_default
20805 #include <$ac_header>
20807 rm -f conftest.
$ac_objext
20808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20809 (eval $ac_compile) 2>conftest.er1
20811 grep -v '^ *+' conftest.er1
>conftest.err
20813 cat conftest.err
>&5
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); } &&
20816 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20818 (eval $ac_try) 2>&5
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); }; } &&
20822 { ac_try
='test -s conftest.$ac_objext'
20823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20824 (eval $ac_try) 2>&5
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); }; }; then
20828 ac_header_compiler
=yes
20830 echo "$as_me: failed program was:" >&5
20831 sed 's/^/| /' conftest.
$ac_ext >&5
20833 ac_header_compiler
=no
20835 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20837 echo "${ECHO_T}$ac_header_compiler" >&6
20839 # Is the header present?
20840 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20842 cat >conftest.
$ac_ext <<_ACEOF
20845 cat confdefs.h
>>conftest.
$ac_ext
20846 cat >>conftest.
$ac_ext <<_ACEOF
20847 /* end confdefs.h. */
20848 #include <$ac_header>
20850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20851 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20853 grep -v '^ *+' conftest.er1
>conftest.err
20855 cat conftest.err
>&5
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); } >/dev
/null
; then
20858 if test -s conftest.err
; then
20859 ac_cpp_err
=$ac_cxx_preproc_warn_flag
20860 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
20867 if test -z "$ac_cpp_err"; then
20868 ac_header_preproc
=yes
20870 echo "$as_me: failed program was:" >&5
20871 sed 's/^/| /' conftest.
$ac_ext >&5
20873 ac_header_preproc
=no
20875 rm -f conftest.err conftest.
$ac_ext
20876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20877 echo "${ECHO_T}$ac_header_preproc" >&6
20879 # So? What about this header?
20880 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20886 ac_header_preproc
=yes
20889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20896 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20903 ## ------------------------------------------------ ##
20904 ## Report this to barry-devel@lists.sourceforge.net ##
20905 ## ------------------------------------------------ ##
20908 sed "s/^/$as_me: WARNING: /" >&2
20911 echo "$as_me:$LINENO: checking for $ac_header" >&5
20912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20914 echo $ECHO_N "(cached) $ECHO_C" >&6
20916 eval "$as_ac_Header=\$ac_header_preproc"
20918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20923 cat >>confdefs.h
<<_ACEOF
20924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20931 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
20932 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
20933 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
20934 echo $ECHO_N "(cached) $ECHO_C" >&6
20936 if test "$cross_compiling" = yes; then
20937 ac_cv_func_realloc_0_nonnull
=no
20939 cat >conftest.
$ac_ext <<_ACEOF
20942 cat confdefs.h
>>conftest.
$ac_ext
20943 cat >>conftest.
$ac_ext <<_ACEOF
20944 /* end confdefs.h. */
20945 #if STDC_HEADERS || HAVE_STDLIB_H
20946 # include <stdlib.h>
20954 exit (realloc (0, 0) ? 0 : 1);
20959 rm -f conftest
$ac_exeext
20960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20961 (eval $ac_link) 2>&5
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20966 (eval $ac_try) 2>&5
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); }; }; then
20970 ac_cv_func_realloc_0_nonnull
=yes
20972 echo "$as_me: program exited with status $ac_status" >&5
20973 echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.
$ac_ext >&5
20976 ( exit $ac_status )
20977 ac_cv_func_realloc_0_nonnull
=no
20979 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20982 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
20983 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
20984 if test $ac_cv_func_realloc_0_nonnull = yes; then
20986 cat >>confdefs.h
<<\_ACEOF
20987 #define HAVE_REALLOC 1
20991 cat >>confdefs.h
<<\_ACEOF
20992 #define HAVE_REALLOC 0
20996 "realloc.$ac_objext" | \
20997 *" realloc.$ac_objext" | \
20998 "realloc.$ac_objext "* | \
20999 *" realloc.$ac_objext "* ) ;;
21000 *) LIBOBJS
="$LIBOBJS realloc.$ac_objext" ;;
21004 cat >>confdefs.h
<<\_ACEOF
21005 #define realloc rpl_realloc
21014 for ac_header
in sys
/select.h sys
/socket.h
21016 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21018 echo "$as_me:$LINENO: checking for $ac_header" >&5
21019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21021 echo $ECHO_N "(cached) $ECHO_C" >&6
21023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21026 # Is the header compilable?
21027 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21028 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21029 cat >conftest.
$ac_ext <<_ACEOF
21032 cat confdefs.h
>>conftest.
$ac_ext
21033 cat >>conftest.
$ac_ext <<_ACEOF
21034 /* end confdefs.h. */
21035 $ac_includes_default
21036 #include <$ac_header>
21038 rm -f conftest.
$ac_objext
21039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21040 (eval $ac_compile) 2>conftest.er1
21042 grep -v '^ *+' conftest.er1
>conftest.err
21044 cat conftest.err
>&5
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); } &&
21047 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21049 (eval $ac_try) 2>&5
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); }; } &&
21053 { ac_try
='test -s conftest.$ac_objext'
21054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21055 (eval $ac_try) 2>&5
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); }; }; then
21059 ac_header_compiler
=yes
21061 echo "$as_me: failed program was:" >&5
21062 sed 's/^/| /' conftest.
$ac_ext >&5
21064 ac_header_compiler
=no
21066 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21068 echo "${ECHO_T}$ac_header_compiler" >&6
21070 # Is the header present?
21071 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21073 cat >conftest.
$ac_ext <<_ACEOF
21076 cat confdefs.h
>>conftest.
$ac_ext
21077 cat >>conftest.
$ac_ext <<_ACEOF
21078 /* end confdefs.h. */
21079 #include <$ac_header>
21081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21082 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21084 grep -v '^ *+' conftest.er1
>conftest.err
21086 cat conftest.err
>&5
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); } >/dev
/null
; then
21089 if test -s conftest.err
; then
21090 ac_cpp_err
=$ac_cxx_preproc_warn_flag
21091 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
21098 if test -z "$ac_cpp_err"; then
21099 ac_header_preproc
=yes
21101 echo "$as_me: failed program was:" >&5
21102 sed 's/^/| /' conftest.
$ac_ext >&5
21104 ac_header_preproc
=no
21106 rm -f conftest.err conftest.
$ac_ext
21107 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21108 echo "${ECHO_T}$ac_header_preproc" >&6
21110 # So? What about this header?
21111 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21113 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21117 ac_header_preproc
=yes
21120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21123 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21124 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21126 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21127 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21130 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21134 ## ------------------------------------------------ ##
21135 ## Report this to barry-devel@lists.sourceforge.net ##
21136 ## ------------------------------------------------ ##
21139 sed "s/^/$as_me: WARNING: /" >&2
21142 echo "$as_me:$LINENO: checking for $ac_header" >&5
21143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21145 echo $ECHO_N "(cached) $ECHO_C" >&6
21147 eval "$as_ac_Header=\$ac_header_preproc"
21149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21154 cat >>confdefs.h
<<_ACEOF
21155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21162 echo "$as_me:$LINENO: checking types of arguments for select" >&5
21163 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
21164 if test "${ac_cv_func_select_args+set}" = set; then
21165 echo $ECHO_N "(cached) $ECHO_C" >&6
21167 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
21168 for ac_arg1
in 'int' 'size_t' 'unsigned long' 'unsigned'; do
21169 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
21170 cat >conftest.
$ac_ext <<_ACEOF
21173 cat confdefs.h
>>conftest.
$ac_ext
21174 cat >>conftest.
$ac_ext <<_ACEOF
21175 /* end confdefs.h. */
21176 $ac_includes_default
21177 #if HAVE_SYS_SELECT_H
21178 # include <sys/select.h>
21180 #if HAVE_SYS_SOCKET_H
21181 # include <sys/socket.h>
21187 extern int select ($ac_arg1,
21188 $ac_arg234, $ac_arg234, $ac_arg234,
21194 rm -f conftest.
$ac_objext
21195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21196 (eval $ac_compile) 2>conftest.er1
21198 grep -v '^ *+' conftest.er1
>conftest.err
21200 cat conftest.err
>&5
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); } &&
21203 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21205 (eval $ac_try) 2>&5
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); }; } &&
21209 { ac_try
='test -s conftest.$ac_objext'
21210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211 (eval $ac_try) 2>&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); }; }; then
21215 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
21217 echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.
$ac_ext >&5
21221 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21225 # Provide a safe default value.
21226 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
21229 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
21230 echo "${ECHO_T}$ac_cv_func_select_args" >&6
21231 ac_save_IFS
=$IFS; IFS
=','
21232 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21236 cat >>confdefs.h
<<_ACEOF
21237 #define SELECT_TYPE_ARG1 $1
21241 cat >>confdefs.h
<<_ACEOF
21242 #define SELECT_TYPE_ARG234 ($2)
21246 cat >>confdefs.h
<<_ACEOF
21247 #define SELECT_TYPE_ARG5 ($3)
21252 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
21253 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
21254 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
21255 echo $ECHO_N "(cached) $ECHO_C" >&6
21257 rm -f conftest.sym conftest.
file
21258 echo >conftest.
file
21259 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
21260 if test "$cross_compiling" = yes; then
21261 ac_cv_func_lstat_dereferences_slashed_symlink
=no
21263 cat >conftest.
$ac_ext <<_ACEOF
21266 cat confdefs.h
>>conftest.
$ac_ext
21267 cat >>conftest.
$ac_ext <<_ACEOF
21268 /* end confdefs.h. */
21269 $ac_includes_default
21274 /* Linux will dereference the symlink and fail.
21275 That is better in the sense that it means we will not
21276 have to compile and use the lstat wrapper. */
21277 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
21282 rm -f conftest
$ac_exeext
21283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21284 (eval $ac_link) 2>&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21289 (eval $ac_try) 2>&5
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); }; }; then
21293 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
21295 echo "$as_me: program exited with status $ac_status" >&5
21296 echo "$as_me: failed program was:" >&5
21297 sed 's/^/| /' conftest.
$ac_ext >&5
21299 ( exit $ac_status )
21300 ac_cv_func_lstat_dereferences_slashed_symlink
=no
21302 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21305 # If the `ln -s' command failed, then we probably don't even
21306 # have an lstat function.
21307 ac_cv_func_lstat_dereferences_slashed_symlink
=no
21309 rm -f conftest.sym conftest.
file
21312 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
21313 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
21315 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
21317 cat >>confdefs.h
<<_ACEOF
21318 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
21322 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
21324 "lstat.$ac_objext" | \
21325 *" lstat.$ac_objext" | \
21326 "lstat.$ac_objext "* | \
21327 *" lstat.$ac_objext "* ) ;;
21328 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
21333 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
21334 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
21335 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
21336 echo $ECHO_N "(cached) $ECHO_C" >&6
21338 if test "$cross_compiling" = yes; then
21339 ac_cv_func_stat_empty_string_bug
=yes
21341 cat >conftest.
$ac_ext <<_ACEOF
21344 cat confdefs.h
>>conftest.
$ac_ext
21345 cat >>conftest.
$ac_ext <<_ACEOF
21346 /* end confdefs.h. */
21347 $ac_includes_default
21352 exit (stat ("", &sbuf) ? 1 : 0);
21357 rm -f conftest
$ac_exeext
21358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21359 (eval $ac_link) 2>&5
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21364 (eval $ac_try) 2>&5
21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); }; }; then
21368 ac_cv_func_stat_empty_string_bug
=yes
21370 echo "$as_me: program exited with status $ac_status" >&5
21371 echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.
$ac_ext >&5
21374 ( exit $ac_status )
21375 ac_cv_func_stat_empty_string_bug
=no
21377 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21380 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
21381 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
21382 if test $ac_cv_func_stat_empty_string_bug = yes; then
21384 "stat.$ac_objext" | \
21385 *" stat.$ac_objext" | \
21386 "stat.$ac_objext "* | \
21387 *" stat.$ac_objext "* ) ;;
21388 *) LIBOBJS
="$LIBOBJS stat.$ac_objext" ;;
21392 cat >>confdefs.h
<<_ACEOF
21393 #define HAVE_STAT_EMPTY_STRING_BUG 1
21407 for ac_func
in bzero gettimeofday memset
select strcasecmp strchr strerror strtol strtoul
21409 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21410 echo "$as_me:$LINENO: checking for $ac_func" >&5
21411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21412 if eval "test \"\${$as_ac_var+set}\" = set"; then
21413 echo $ECHO_N "(cached) $ECHO_C" >&6
21415 cat >conftest.
$ac_ext <<_ACEOF
21418 cat confdefs.h
>>conftest.
$ac_ext
21419 cat >>conftest.
$ac_ext <<_ACEOF
21420 /* end confdefs.h. */
21421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21423 #define $ac_func innocuous_$ac_func
21425 /* System header to define __stub macros and hopefully few prototypes,
21426 which can conflict with char $ac_func (); below.
21427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21428 <limits.h> exists even on freestanding compilers. */
21431 # include <limits.h>
21433 # include <assert.h>
21438 /* Override any gcc2 internal prototype to avoid an error. */
21443 /* We use char because int might match the return type of a gcc2
21444 builtin and then its argument prototype would still apply. */
21446 /* The GNU C library defines this for functions which it implements
21447 to always fail with ENOSYS. Some functions are actually named
21448 something starting with __ and the normal name is an alias. */
21449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21452 char (*f) () = $ac_func;
21461 return f != $ac_func;
21466 rm -f conftest.
$ac_objext conftest
$ac_exeext
21467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21468 (eval $ac_link) 2>conftest.er1
21470 grep -v '^ *+' conftest.er1
>conftest.err
21472 cat conftest.err
>&5
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); } &&
21475 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21477 (eval $ac_try) 2>&5
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); }; } &&
21481 { ac_try
='test -s conftest$ac_exeext'
21482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21483 (eval $ac_try) 2>&5
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); }; }; then
21487 eval "$as_ac_var=yes"
21489 echo "$as_me: failed program was:" >&5
21490 sed 's/^/| /' conftest.
$ac_ext >&5
21492 eval "$as_ac_var=no"
21494 rm -f conftest.err conftest.
$ac_objext \
21495 conftest
$ac_exeext conftest.
$ac_ext
21497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21499 if test `eval echo '${'$as_ac_var'}'` = yes; then
21500 cat >>confdefs.h
<<_ACEOF
21501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21508 ac_config_files
="$ac_config_files Makefile src/Makefile tools/Makefile examples/Makefile man/Makefile"
21510 cat >confcache
<<\_ACEOF
21511 # This file is a shell script that caches the results of configure
21512 # tests run on this system so they can be shared between configure
21513 # scripts and configure runs, see configure's option --config-cache.
21514 # It is not useful on other systems. If it contains results you don't
21515 # want to keep, you may remove or edit it.
21517 # config.status only pays attention to the cache file if you give it
21518 # the --recheck option to rerun configure.
21520 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21521 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21522 # following values.
21526 # The following way of writing the cache mishandles newlines in values,
21527 # but we know of no workaround that is simple, portable, and efficient.
21528 # So, don't put newlines in cache variables' values.
21529 # Ultrix sh set writes to stderr and can't be redirected directly,
21530 # and sets the high bit in the cache file unless we assign to the vars.
21533 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21535 # `set' does not quote correctly, so add quotes (double-quote
21536 # substitution turns \\\\ into \\, and sed turns \\ into \).
21539 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21542 # `set' quotes correctly as required by POSIX, so do not add quotes.
21544 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21551 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21553 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21555 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
21556 if test -w $cache_file; then
21557 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21558 cat confcache
>$cache_file
21560 echo "not updating unwritable cache $cache_file"
21565 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21566 # Let make expand exec_prefix.
21567 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21569 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21570 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21571 # trailing colons and then remove the whole line if VPATH becomes empty
21572 # (actually we leave an empty line to preserve line numbers).
21573 if test "x$srcdir" = x.
; then
21574 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21575 s/:*\$(srcdir):*/:/;
21576 s/:*\${srcdir}:*/:/;
21578 s/^\([^=]*=[ ]*\):*/\1/;
21584 DEFS
=-DHAVE_CONFIG_H
21588 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21589 # 1. Remove the extension, and $U if already installed.
21590 ac_i
=`echo "$ac_i" |
21591 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21593 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
21594 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
21596 LIBOBJS
=$ac_libobjs
21598 LTLIBOBJS
=$ac_ltlibobjs
21601 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21602 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21603 Usually this means the macro was only invoked conditionally." >&5
21604 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21605 Usually this means the macro was only invoked conditionally." >&2;}
21606 { (exit 1); exit 1; }; }
21608 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21609 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21610 Usually this means the macro was only invoked conditionally." >&5
21611 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21612 Usually this means the macro was only invoked conditionally." >&2;}
21613 { (exit 1); exit 1; }; }
21615 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21616 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21617 Usually this means the macro was only invoked conditionally." >&5
21618 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21619 Usually this means the macro was only invoked conditionally." >&2;}
21620 { (exit 1); exit 1; }; }
21622 if test -z "${WITH_BOOST_TRUE}" && test -z "${WITH_BOOST_FALSE}"; then
21623 { { echo "$as_me:$LINENO: error: conditional \"WITH_BOOST\" was never defined.
21624 Usually this means the macro was only invoked conditionally." >&5
21625 echo "$as_me: error: conditional \"WITH_BOOST\" was never defined.
21626 Usually this means the macro was only invoked conditionally." >&2;}
21627 { (exit 1); exit 1; }; }
21630 : ${CONFIG_STATUS=./config.status}
21631 ac_clean_files_save
=$ac_clean_files
21632 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21633 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21634 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21635 cat >$CONFIG_STATUS <<_ACEOF
21637 # Generated by $as_me.
21638 # Run this file to recreate the current configuration.
21639 # Compiler output produced by configure, useful for debugging
21640 # configure, is in config.log if it exists.
21643 ac_cs_recheck=false
21645 SHELL=\${CONFIG_SHELL-$SHELL}
21648 cat >>$CONFIG_STATUS <<\_ACEOF
21649 ## --------------------- ##
21650 ## M4sh Initialization. ##
21651 ## --------------------- ##
21653 # Be Bourne compatible
21654 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21657 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21658 # is contrary to our usage. Disable this feature.
21659 alias -g '${1+"$@"}'='"$@"'
21660 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
21663 DUALCASE
=1; export DUALCASE
# for MKS sh
21665 # Support unset when possible.
21666 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
21673 # Work around bugs in pre-3.0 UWIN ksh.
21674 $as_unset ENV MAIL MAILPATH
21681 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21682 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21683 LC_TELEPHONE LC_TIME
21685 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21686 eval $as_var=C
; export $as_var
21692 # Required to use basename.
21693 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21699 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
21700 as_basename
=basename
21706 # Name of the executable.
21707 as_me
=`$as_basename "$0" ||
21708 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21709 X"$0" : 'X\(//\)$' \| \
21710 X"$0" : 'X\(/\)$' \| \
21711 . : '\(.\)' 2>/dev/null ||
21713 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21714 /^X\/\(\/\/\)$/{ s//\1/; q; }
21715 /^X\/\(\/\).*/{ s//\1/; q; }
21719 # PATH needs CR, and LINENO needs CR and PATH.
21720 # Avoid depending upon Character Ranges.
21721 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
21722 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21723 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
21724 as_cr_digits
='0123456789'
21725 as_cr_alnum
=$as_cr_Letters$as_cr_digits
21727 # The user is always right.
21728 if test "${PATH_SEPARATOR+set}" != set; then
21729 echo "#! /bin/sh" >conf$$.sh
21730 echo "exit 0" >>conf$$.sh
21732 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
21741 as_lineno_1
=$LINENO
21742 as_lineno_2
=$LINENO
21743 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
21744 test "x$as_lineno_1" != "x$as_lineno_2" &&
21745 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
21746 # Find who we are. Look in the path if we contain no path at all
21749 *[\\/]* ) as_myself
=$0 ;;
21750 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21751 for as_dir
in $PATH
21754 test -z "$as_dir" && as_dir
=.
21755 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
21760 # We did not find ourselves, most probably we were run as `sh COMMAND'
21761 # in which case we are not to be found in the path.
21762 if test "x$as_myself" = x
; then
21765 if test ! -f "$as_myself"; then
21766 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21767 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21768 { (exit 1); exit 1; }; }
21770 case $CONFIG_SHELL in
21772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21773 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
21776 test -z "$as_dir" && as_dir
=.
21777 for as_base
in sh bash ksh sh5
; do
21780 if ("$as_dir/$as_base" -c '
21781 as_lineno_1=$LINENO
21782 as_lineno_2=$LINENO
21783 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21784 test "x$as_lineno_1" != "x$as_lineno_2" &&
21785 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
21786 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
21787 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
21788 CONFIG_SHELL
=$as_dir/$as_base
21789 export CONFIG_SHELL
21790 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21798 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21799 # uniformly replaced by the line number. The first 'sed' inserts a
21800 # line-number line before each line; the second 'sed' does the real
21801 # work. The second script uses 'N' to pair each line-number line
21802 # with the numbered line, and appends trailing '-' during
21803 # substitution so that $LINENO is not a special case at line end.
21804 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21805 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21806 sed '=' <$as_myself |
21811 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21814 s,^['$as_cr_digits']*\n,,
21815 ' >$as_me.lineno
&&
21816 chmod +x
$as_me.lineno ||
21817 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21818 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21819 { (exit 1); exit 1; }; }
21821 # Don't try to exec as it changes $[0], causing all sort of problems
21822 # (the dirname of $[0] is not the place where we might find the
21823 # original and so on. Autoconf is especially sensible to this).
21825 # Exit status is that of the last command.
21830 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21831 *c
*,-n*) ECHO_N
= ECHO_C
='
21833 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
21834 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
21837 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21843 rm -f conf$$ conf$$.exe conf$$.
file
21845 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
21846 # We could just check for DJGPP; but this test a) works b) is more generic
21847 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21848 if test -f conf$$.exe
; then
21849 # Don't use ln at all; we don't have any links
21854 elif ln conf$$.
file conf$$
2>/dev
/null
; then
21859 rm -f conf$$ conf$$.exe conf$$.
file
21861 if mkdir
-p .
2>/dev
/null
; then
21864 test -d .
/-p && rmdir .
/-p
21868 as_executable_p
="test -f"
21870 # Sed expression to map a string onto a valid CPP name.
21871 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21873 # Sed expression to map a string onto a valid variable name.
21874 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21878 # We need space, tab and new line, in precisely that order.
21888 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21889 # report actual input values of CONFIG_FILES etc. instead of their
21890 # values after options handling. Logging --version etc. is OK.
21894 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21895 ## Running $as_me. ##
21900 This file was extended by barry $as_me 0.4, which was
21901 generated by GNU Autoconf 2.59. Invocation command line was
21903 CONFIG_FILES = $CONFIG_FILES
21904 CONFIG_HEADERS = $CONFIG_HEADERS
21905 CONFIG_LINKS = $CONFIG_LINKS
21906 CONFIG_COMMANDS = $CONFIG_COMMANDS
21910 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21914 # Files that config.status was made for.
21915 if test -n "$ac_config_files"; then
21916 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21919 if test -n "$ac_config_headers"; then
21920 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21923 if test -n "$ac_config_links"; then
21924 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21927 if test -n "$ac_config_commands"; then
21928 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21931 cat >>$CONFIG_STATUS <<\_ACEOF
21934 \`$as_me' instantiates files from templates according to the
21935 current configuration.
21937 Usage: $0 [OPTIONS] [FILE]...
21939 -h, --help print this help, then exit
21940 -V, --version print version number, then exit
21941 -q, --quiet do not print progress messages
21942 -d, --debug don't remove temporary files
21943 --recheck update $as_me by reconfiguring in the same conditions
21944 --file=FILE[:TEMPLATE]
21945 instantiate the configuration file FILE
21946 --header=FILE[:TEMPLATE]
21947 instantiate the configuration header FILE
21949 Configuration files:
21952 Configuration headers:
21955 Configuration commands:
21958 Report bugs to <bug-autoconf@gnu.org>."
21961 cat >>$CONFIG_STATUS <<_ACEOF
21963 barry config.status 0.4
21964 configured by $0, generated by GNU Autoconf 2.59,
21965 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21967 Copyright (C) 2003 Free Software Foundation, Inc.
21968 This config.status script is free software; the Free Software Foundation
21969 gives unlimited permission to copy, distribute and modify it."
21974 cat >>$CONFIG_STATUS <<\_ACEOF
21975 # If no file are specified by the user, then we need to provide default
21976 # value. By we need to know if files were specified by the user.
21982 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
21983 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
21991 *) # This is not an option, so the user has probably given explicit
21994 ac_need_defaults
=false
;;
21998 # Handling of the options.
22000 cat >>$CONFIG_STATUS <<\_ACEOF
22001 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22003 --version |
--vers* |
-V )
22004 echo "$ac_cs_version"; exit 0 ;;
22006 # Conflict between --help and --header
22007 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22008 Try \`$0 --help' for more information." >&5
22009 echo "$as_me: error: ambiguous option: $1
22010 Try \`$0 --help' for more information." >&2;}
22011 { (exit 1); exit 1; }; };;
22012 --help |
--hel |
-h )
22013 echo "$ac_cs_usage"; exit 0 ;;
22014 --debug |
--d* |
-d )
22016 --file |
--fil |
--fi |
--f )
22018 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
22019 ac_need_defaults
=false
;;
22020 --header |
--heade |
--head |
--hea )
22022 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
22023 ac_need_defaults
=false
;;
22024 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22025 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22028 # This is an error.
22029 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22030 Try \`$0 --help' for more information." >&5
22031 echo "$as_me: error: unrecognized option: $1
22032 Try \`$0 --help' for more information." >&2;}
22033 { (exit 1); exit 1; }; } ;;
22035 *) ac_config_targets
="$ac_config_targets $1" ;;
22041 ac_configure_extra_args
=
22043 if $ac_cs_silent; then
22045 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22049 cat >>$CONFIG_STATUS <<_ACEOF
22050 if \$ac_cs_recheck; then
22051 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22052 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22057 cat >>$CONFIG_STATUS <<_ACEOF
22059 # INIT-COMMANDS section.
22062 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22068 cat >>$CONFIG_STATUS <<\_ACEOF
22069 for ac_config_target
in $ac_config_targets
22071 case "$ac_config_target" in
22072 # Handling of arguments.
22073 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
22074 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
22075 "tools/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
22076 "examples/Makefile" ) CONFIG_FILES
="$CONFIG_FILES examples/Makefile" ;;
22077 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
22078 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
22079 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.h.in" ;;
22080 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22081 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22082 { (exit 1); exit 1; }; };;
22086 # If the user did not use the arguments to specify the items to instantiate,
22087 # then the envvar interface is used. Set only those that are not.
22088 # We use the long form for the default assignment because of an extremely
22089 # bizarre bug on SunOS 4.1.3.
22090 if $ac_need_defaults; then
22091 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22092 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22093 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
22096 # Have a temporary directory for convenience. Make it in the build tree
22097 # simply because there is no reason to put it here, and in addition,
22098 # creating and moving files from /tmp can sometimes cause problems.
22099 # Create a temporary directory, and hook for its removal unless debugging.
22102 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22103 trap '{ (exit 1); exit 1; }' 1 2 13 15
22106 # Create a (secure) tmp directory for tmp files.
22109 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22110 test -n "$tmp" && test -d "$tmp"
22113 tmp
=.
/confstat$$
-$RANDOM
22114 (umask 077 && mkdir
$tmp)
22117 echo "$me: cannot create a temporary directory in ." >&2
22118 { (exit 1); exit 1; }
22123 cat >>$CONFIG_STATUS <<_ACEOF
22126 # CONFIG_FILES section.
22129 # No need to generate the scripts if there are no CONFIG_FILES.
22130 # This happens for instance when ./config.status config.h
22131 if test -n "\$CONFIG_FILES"; then
22132 # Protect against being on the right side of a sed subst in config.status.
22133 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22134 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22135 s,@SHELL@,$SHELL,;t t
22136 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22137 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22138 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22139 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22140 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22141 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22142 s,@exec_prefix@,$exec_prefix,;t t
22143 s,@prefix@,$prefix,;t t
22144 s,@program_transform_name@,$program_transform_name,;t t
22145 s,@bindir@,$bindir,;t t
22146 s,@sbindir@,$sbindir,;t t
22147 s,@libexecdir@,$libexecdir,;t t
22148 s,@datadir@,$datadir,;t t
22149 s,@sysconfdir@,$sysconfdir,;t t
22150 s,@sharedstatedir@,$sharedstatedir,;t t
22151 s,@localstatedir@,$localstatedir,;t t
22152 s,@libdir@,$libdir,;t t
22153 s,@includedir@,$includedir,;t t
22154 s,@oldincludedir@,$oldincludedir,;t t
22155 s,@infodir@,$infodir,;t t
22156 s,@mandir@,$mandir,;t t
22157 s,@build_alias@,$build_alias,;t t
22158 s,@host_alias@,$host_alias,;t t
22159 s,@target_alias@,$target_alias,;t t
22160 s,@DEFS@,$DEFS,;t t
22161 s,@ECHO_C@,$ECHO_C,;t t
22162 s,@ECHO_N@,$ECHO_N,;t t
22163 s,@ECHO_T@,$ECHO_T,;t t
22164 s,@LIBS@,$LIBS,;t t
22165 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22166 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22167 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22168 s,@CYGPATH_W@,$CYGPATH_W,;t t
22169 s,@PACKAGE@,$PACKAGE,;t t
22170 s,@VERSION@,$VERSION,;t t
22171 s,@ACLOCAL@,$ACLOCAL,;t t
22172 s,@AUTOCONF@,$AUTOCONF,;t t
22173 s,@AUTOMAKE@,$AUTOMAKE,;t t
22174 s,@AUTOHEADER@,$AUTOHEADER,;t t
22175 s,@MAKEINFO@,$MAKEINFO,;t t
22176 s,@install_sh@,$install_sh,;t t
22177 s,@STRIP@,$STRIP,;t t
22178 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22179 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22180 s,@mkdir_p@,$mkdir_p,;t t
22182 s,@SET_MAKE@,$SET_MAKE,;t t
22183 s,@am__leading_dot@,$am__leading_dot,;t t
22184 s,@AMTAR@,$AMTAR,;t t
22185 s,@am__tar@,$am__tar,;t t
22186 s,@am__untar@,$am__untar,;t t
22188 s,@CFLAGS@,$CFLAGS,;t t
22189 s,@LDFLAGS@,$LDFLAGS,;t t
22190 s,@CPPFLAGS@,$CPPFLAGS,;t t
22191 s,@ac_ct_CC@,$ac_ct_CC,;t t
22192 s,@EXEEXT@,$EXEEXT,;t t
22193 s,@OBJEXT@,$OBJEXT,;t t
22194 s,@DEPDIR@,$DEPDIR,;t t
22195 s,@am__include@,$am__include,;t t
22196 s,@am__quote@,$am__quote,;t t
22197 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22198 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22199 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22200 s,@CCDEPMODE@,$CCDEPMODE,;t t
22201 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22202 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22204 s,@CXXFLAGS@,$CXXFLAGS,;t t
22205 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22206 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22207 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22208 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22209 s,@build@,$build,;t t
22210 s,@build_cpu@,$build_cpu,;t t
22211 s,@build_vendor@,$build_vendor,;t t
22212 s,@build_os@,$build_os,;t t
22213 s,@host@,$host,;t t
22214 s,@host_cpu@,$host_cpu,;t t
22215 s,@host_vendor@,$host_vendor,;t t
22216 s,@host_os@,$host_os,;t t
22217 s,@EGREP@,$EGREP,;t t
22218 s,@LN_S@,$LN_S,;t t
22219 s,@ECHO@,$ECHO,;t t
22221 s,@ac_ct_AR@,$ac_ct_AR,;t t
22222 s,@RANLIB@,$RANLIB,;t t
22223 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22225 s,@CXXCPP@,$CXXCPP,;t t
22227 s,@FFLAGS@,$FFLAGS,;t t
22228 s,@ac_ct_F77@,$ac_ct_F77,;t t
22229 s,@LIBTOOL@,$LIBTOOL,;t t
22230 s,@LIBUSB_LIB_PATH@,$LIBUSB_LIB_PATH,;t t
22231 s,@LIBUSB_INC_PATH@,$LIBUSB_INC_PATH,;t t
22232 s,@BOOST_LIB_PATH@,$BOOST_LIB_PATH,;t t
22233 s,@BOOST_INC_PATH@,$BOOST_INC_PATH,;t t
22234 s,@WITH_BOOST_TRUE@,$WITH_BOOST_TRUE,;t t
22235 s,@WITH_BOOST_FALSE@,$WITH_BOOST_FALSE,;t t
22236 s,@LIBOBJS@,$LIBOBJS,;t t
22237 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22242 cat >>$CONFIG_STATUS <<\_ACEOF
22243 # Split the substitutions into bite-sized pieces for seds with
22244 # small command number limits, like on Digital OSF/1 and HP-UX.
22245 ac_max_sed_lines
=48
22246 ac_sed_frag
=1 # Number of current file.
22247 ac_beg
=1 # First line for current file.
22248 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22251 while $ac_more_lines; do
22252 if test $ac_beg -gt 1; then
22253 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22255 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22257 if test ! -s $tmp/subs.frag
; then
22258 ac_more_lines
=false
22260 # The purpose of the label and of the branching condition is to
22261 # speed up the sed processing (if there are no `@' at all, there
22262 # is no need to browse any of the substitutions).
22263 # These are the two extra sed commands mentioned above.
22265 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22266 if test -z "$ac_sed_cmds"; then
22267 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22269 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22271 ac_sed_frag
=`expr $ac_sed_frag + 1`
22273 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22276 if test -z "$ac_sed_cmds"; then
22279 fi # test -n "$CONFIG_FILES"
22282 cat >>$CONFIG_STATUS <<\_ACEOF
22283 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22284 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22286 - |
*:- |
*:-:* ) # input from stdin
22288 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22289 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22290 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22291 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22292 * ) ac_file_in
=$ac_file.
in ;;
22295 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22296 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22297 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22298 X"$ac_file" : 'X\(//\)[^/]' \| \
22299 X"$ac_file" : 'X\(//\)$' \| \
22300 X"$ac_file" : 'X\(/\)' \| \
22301 . : '\(.\)' 2>/dev/null ||
22303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22304 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22305 /^X\(\/\/\)$/{ s//\1/; q; }
22306 /^X\(\/\).*/{ s//\1/; q; }
22308 { if $as_mkdir_p; then
22313 while test ! -d "$as_dir"; do
22314 as_dirs
="$as_dir $as_dirs"
22315 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22317 X"$as_dir" : 'X\(//\)[^/]' \| \
22318 X"$as_dir" : 'X\(//\)$' \| \
22319 X"$as_dir" : 'X\(/\)' \| \
22320 . : '\(.\)' 2>/dev/null ||
22322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22323 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22324 /^X\(\/\/\)$/{ s//\1/; q; }
22325 /^X\(\/\).*/{ s//\1/; q; }
22328 test ! -n "$as_dirs" || mkdir
$as_dirs
22329 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22330 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22331 { (exit 1); exit 1; }; }; }
22335 if test "$ac_dir" != .
; then
22336 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22337 # A "../" for each directory in $ac_dir_suffix.
22338 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22340 ac_dir_suffix
= ac_top_builddir
=
22344 .
) # No --srcdir option. We are building in place.
22346 if test -z "$ac_top_builddir"; then
22349 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22351 [\\/]* | ?
:[\\/]* ) # Absolute path.
22352 ac_srcdir
=$srcdir$ac_dir_suffix;
22353 ac_top_srcdir
=$srcdir ;;
22354 *) # Relative path.
22355 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22356 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22359 # Do not use `cd foo && pwd` to compute absolute paths, because
22360 # the directories may not exist.
22362 .
) ac_abs_builddir
="$ac_dir";;
22365 .
) ac_abs_builddir
=`pwd`;;
22366 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22367 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22370 case $ac_abs_builddir in
22371 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22373 case ${ac_top_builddir}.
in
22374 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22375 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22376 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22379 case $ac_abs_builddir in
22380 .
) ac_abs_srcdir
=$ac_srcdir;;
22383 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22384 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22385 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22388 case $ac_abs_builddir in
22389 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22391 case $ac_top_srcdir in
22392 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22393 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22394 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22400 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22401 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
22404 # Let's still pretend it is `configure' which instantiates (i.e., don't
22405 # use $as_me), people would be surprised to read:
22406 # /* config.h. Generated by config.status. */
22407 if test x
"$ac_file" = x-
; then
22410 configure_input
="$ac_file. "
22412 configure_input
=$configure_input"Generated from `echo $ac_file_in |
22413 sed 's,.*/,,'` by configure."
22415 # First look for the input files in the build tree, otherwise in the
22417 ac_file_inputs
=`IFS=:
22418 for f in $ac_file_in; do
22420 -) echo $tmp/stdin ;;
22422 # Absolute (can't be DOS-style, as IFS=:)
22423 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22424 echo "$as_me: error: cannot find input file: $f" >&2;}
22425 { (exit 1); exit 1; }; }
22428 if test -f "$f"; then
22431 elif test -f "$srcdir/$f"; then
22436 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22437 echo "$as_me: error: cannot find input file: $f" >&2;}
22438 { (exit 1); exit 1; }; }
22441 done` ||
{ (exit 1); exit 1; }
22443 if test x
"$ac_file" != x-
; then
22444 { echo "$as_me:$LINENO: creating $ac_file" >&5
22445 echo "$as_me: creating $ac_file" >&6;}
22449 cat >>$CONFIG_STATUS <<_ACEOF
22453 cat >>$CONFIG_STATUS <<\_ACEOF
22455 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22456 s
,@configure_input@
,$configure_input,;t t
22457 s
,@srcdir@
,$ac_srcdir,;t t
22458 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
22459 s
,@top_srcdir@
,$ac_top_srcdir,;t t
22460 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
22461 s
,@builddir@
,$ac_builddir,;t t
22462 s
,@abs_builddir@
,$ac_abs_builddir,;t t
22463 s
,@top_builddir@
,$ac_top_builddir,;t t
22464 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
22465 s
,@INSTALL@
,$ac_INSTALL,;t t
22466 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22468 if test x"$ac_file" != x-; then
22469 mv $tmp/out $ac_file
22477 cat >>$CONFIG_STATUS <<\_ACEOF
22480 # CONFIG_HEADER section.
22483 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
22484 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22486 # ac_d sets the value in "#define NAME VALUE" lines.
22487 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22488 ac_dB
='[ ].*$,\1#\2'
22491 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22492 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22493 ac_uB
='$,\1#\2define\3'
22497 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
22498 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22500 - |
*:- |
*:-:* ) # input from stdin
22502 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22503 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22504 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22505 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22506 * ) ac_file_in
=$ac_file.
in ;;
22509 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
22510 echo "$as_me: creating $ac_file" >&6;}
22512 # First look for the input files in the build tree, otherwise in the
22514 ac_file_inputs
=`IFS=:
22515 for f in $ac_file_in; do
22517 -) echo $tmp/stdin ;;
22519 # Absolute (can't be DOS-style, as IFS=:)
22520 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22521 echo "$as_me: error: cannot find input file: $f" >&2;}
22522 { (exit 1); exit 1; }; }
22523 # Do quote $f, to prevent DOS paths from being IFS'd.
22526 if test -f "$f"; then
22529 elif test -f "$srcdir/$f"; then
22534 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22535 echo "$as_me: error: cannot find input file: $f" >&2;}
22536 { (exit 1); exit 1; }; }
22539 done` ||
{ (exit 1); exit 1; }
22540 # Remove the trailing spaces.
22541 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22545 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22546 # `conftest.undefs', that substitutes the proper values into
22547 # config.h.in to produce config.h. The first handles `#define'
22548 # templates, and the second `#undef' templates.
22549 # And first: Protect against being on the right side of a sed subst in
22550 # config.status. Protect against being in an unquoted here document
22551 # in config.status.
22552 rm -f conftest.defines conftest.undefs
22553 # Using a here document instead of a string reduces the quoting nightmare.
22554 # Putting comments in sed scripts is not portable.
22556 # `end' is used to avoid that the second main sed command (meant for
22557 # 0-ary CPP macros) applies to n-ary macro definitions.
22558 # See the Autoconf documentation for `clear'.
22559 cat >confdef2sed.
sed <<\_ACEOF
22564 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22566 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22569 # If some macros were called several times there might be several times
22570 # the same #defines, which is useless. Nevertheless, we may not want to
22571 # sort them, since we want the *last* AC-DEFINE to be honored.
22572 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22573 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22574 rm -f confdef2sed.sed
22576 # This sed command replaces #undef with comments. This is necessary, for
22577 # example, in the case of _POSIX_SOURCE, which is predefined and required
22578 # on some systems where configure will not decide to define it.
22579 cat >>conftest.undefs <<\_ACEOF
22580 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22583 # Break up conftest.defines because some shells have a limit on the size
22584 # of here documents, and old seds have small limits too (100 cmds).
22585 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22586 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22587 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22588 echo ' :' >>$CONFIG_STATUS
22589 rm -f conftest.tail
22590 while grep . conftest.defines >/dev/null
22592 # Write a limited-size here document to $tmp/defines.sed.
22593 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22594 # Speed up: don't consider the non `#define' lines.
22595 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22596 # Work around the forget-to-reset-the-flag bug.
22597 echo 't clr' >>$CONFIG_STATUS
22598 echo ': clr' >>$CONFIG_STATUS
22599 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
22601 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22603 mv $tmp/out $tmp/in
22605 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
22606 rm -f conftest.defines
22607 mv conftest.
tail conftest.defines
22609 rm -f conftest.defines
22610 echo ' fi # grep' >>$CONFIG_STATUS
22611 echo >>$CONFIG_STATUS
22613 # Break up conftest.undefs because some shells have a limit on the size
22614 # of here documents, and old seds have small limits too (100 cmds).
22615 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22616 rm -f conftest.
tail
22617 while grep . conftest.undefs
>/dev
/null
22619 # Write a limited-size here document to $tmp/undefs.sed.
22620 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22621 # Speed up: don't consider the non
`#undef'
22622 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22623 # Work around the forget-to-reset-the-flag bug.
22624 echo 't clr' >>$CONFIG_STATUS
22625 echo ': clr' >>$CONFIG_STATUS
22626 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22628 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22630 mv $tmp/out $tmp/in
22632 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22633 rm -f conftest.undefs
22634 mv conftest.tail conftest.undefs
22636 rm -f conftest.undefs
22638 cat >>$CONFIG_STATUS <<\_ACEOF
22639 # Let's still pretend it is `configure
' which instantiates (i.e., don't
22640 # use $as_me), people would be surprised to read:
22641 # /* config.h. Generated by config.status. */
22642 if test x
"$ac_file" = x-
; then
22643 echo "/* Generated by configure. */" >$tmp/config.h
22645 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22647 cat $tmp/in >>$tmp/config.h
22649 if test x
"$ac_file" != x-
; then
22650 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
22651 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22652 echo "$as_me: $ac_file is unchanged" >&6;}
22654 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22655 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22656 X"$ac_file" : 'X\(//\)[^/]' \| \
22657 X"$ac_file" : 'X\(//\)$' \| \
22658 X"$ac_file" : 'X\(/\)' \| \
22659 . : '\(.\)' 2>/dev/null ||
22661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22662 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22663 /^X\(\/\/\)$/{ s//\1/; q; }
22664 /^X\(\/\).*/{ s//\1/; q; }
22666 { if $as_mkdir_p; then
22671 while test ! -d "$as_dir"; do
22672 as_dirs
="$as_dir $as_dirs"
22673 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22674 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22675 X"$as_dir" : 'X\(//\)[^/]' \| \
22676 X"$as_dir" : 'X\(//\)$' \| \
22677 X"$as_dir" : 'X\(/\)' \| \
22678 . : '\(.\)' 2>/dev/null ||
22680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22682 /^X\(\/\/\)$/{ s//\1/; q; }
22683 /^X\(\/\).*/{ s//\1/; q; }
22686 test ! -n "$as_dirs" || mkdir
$as_dirs
22687 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22688 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22689 { (exit 1); exit 1; }; }; }
22692 mv $tmp/config.h
$ac_file
22696 rm -f $tmp/config.h
22698 # Compute $ac_file's index in $config_headers.
22700 for _am_header
in $config_headers :; do
22701 case $_am_header in
22702 $ac_file |
$ac_file:* )
22705 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
22708 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22709 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22710 X$ac_file : 'X\(//\)[^/]' \| \
22711 X$ac_file : 'X\(//\)$' \| \
22712 X$ac_file : 'X\(/\)' \| \
22713 . : '\(.\)' 2>/dev/null ||
22715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22717 /^X\(\/\/\)$/{ s//\1/; q; }
22718 /^X\(\/\).*/{ s//\1/; q; }
22719 s/.*/./; q'`/stamp-h
$_am_stamp_count
22722 cat >>$CONFIG_STATUS <<\_ACEOF
22725 # CONFIG_COMMANDS section.
22727 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
22728 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
22729 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22730 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
22731 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22732 X"$ac_dest" : 'X\(//\)[^/]' \| \
22733 X"$ac_dest" : 'X\(//\)$' \| \
22734 X"$ac_dest" : 'X\(/\)' \| \
22735 . : '\(.\)' 2>/dev/null ||
22737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22738 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22739 /^X\(\/\/\)$/{ s//\1/; q; }
22740 /^X\(\/\).*/{ s//\1/; q; }
22742 { if $as_mkdir_p; then
22747 while test ! -d "$as_dir"; do
22748 as_dirs
="$as_dir $as_dirs"
22749 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22750 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22751 X"$as_dir" : 'X\(//\)[^/]' \| \
22752 X"$as_dir" : 'X\(//\)$' \| \
22753 X"$as_dir" : 'X\(/\)' \| \
22754 . : '\(.\)' 2>/dev/null ||
22756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22757 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22758 /^X\(\/\/\)$/{ s//\1/; q; }
22759 /^X\(\/\).*/{ s//\1/; q; }
22762 test ! -n "$as_dirs" || mkdir
$as_dirs
22763 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22764 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22765 { (exit 1); exit 1; }; }; }
22769 if test "$ac_dir" != .
; then
22770 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22771 # A "../" for each directory in $ac_dir_suffix.
22772 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22774 ac_dir_suffix
= ac_top_builddir
=
22778 .
) # No --srcdir option. We are building in place.
22780 if test -z "$ac_top_builddir"; then
22783 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22785 [\\/]* | ?
:[\\/]* ) # Absolute path.
22786 ac_srcdir
=$srcdir$ac_dir_suffix;
22787 ac_top_srcdir
=$srcdir ;;
22788 *) # Relative path.
22789 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22790 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22793 # Do not use `cd foo && pwd` to compute absolute paths, because
22794 # the directories may not exist.
22796 .
) ac_abs_builddir
="$ac_dir";;
22799 .
) ac_abs_builddir
=`pwd`;;
22800 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22801 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22804 case $ac_abs_builddir in
22805 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22807 case ${ac_top_builddir}.
in
22808 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22809 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22810 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22813 case $ac_abs_builddir in
22814 .
) ac_abs_srcdir
=$ac_srcdir;;
22817 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22818 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22819 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22822 case $ac_abs_builddir in
22823 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22825 case $ac_top_srcdir in
22826 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22827 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22828 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22833 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22834 echo "$as_me: executing $ac_dest commands" >&6;}
22836 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
22837 # Strip MF so we end up with the name of the file.
22838 mf
=`echo "$mf" | sed -e 's/:.*$//'`
22839 # Check whether this is an Automake generated Makefile or not.
22840 # We used to match only the files named `Makefile.in', but
22841 # some people rename them; so instead we look at the file content.
22842 # Grep'ing the first line is not enough: some people post-process
22843 # each Makefile.in and add a new line on top of each file to say so.
22844 # So let's grep whole file.
22845 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
22846 dirpart
=`(dirname "$mf") 2>/dev/null ||
22847 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22848 X"$mf" : 'X\(//\)[^/]' \| \
22849 X"$mf" : 'X\(//\)$' \| \
22850 X"$mf" : 'X\(/\)' \| \
22851 . : '\(.\)' 2>/dev/null ||
22853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22854 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22855 /^X\(\/\/\)$/{ s//\1/; q; }
22856 /^X\(\/\).*/{ s//\1/; q; }
22861 # Extract the definition of DEPDIR, am__include, and am__quote
22862 # from the Makefile without running `make'.
22863 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
22864 test -z "$DEPDIR" && continue
22865 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
22866 test -z "am__include" && continue
22867 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
22868 # When using ansi2knr, U may be empty or an underscore; expand it
22869 U
=`sed -n 's/^U = //p' < "$mf"`
22870 # Find all dependency output files, they are included files with
22871 # $(DEPDIR) in their names. We invoke sed twice because it is the
22872 # simplest approach to changing $(DEPDIR) to its actual value in the
22874 for file in `sed -n "
22875 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22876 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22877 # Make sure the directory exists.
22878 test -f "$dirpart/$file" && continue
22879 fdir
=`(dirname "$file") 2>/dev/null ||
22880 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22881 X"$file" : 'X\(//\)[^/]' \| \
22882 X"$file" : 'X\(//\)$' \| \
22883 X"$file" : 'X\(/\)' \| \
22884 . : '\(.\)' 2>/dev/null ||
22886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22887 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22888 /^X\(\/\/\)$/{ s//\1/; q; }
22889 /^X\(\/\).*/{ s//\1/; q; }
22891 { if $as_mkdir_p; then
22892 mkdir
-p $dirpart/$fdir
22894 as_dir
=$dirpart/$fdir
22896 while test ! -d "$as_dir"; do
22897 as_dirs
="$as_dir $as_dirs"
22898 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22899 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22900 X"$as_dir" : 'X\(//\)[^/]' \| \
22901 X"$as_dir" : 'X\(//\)$' \| \
22902 X"$as_dir" : 'X\(/\)' \| \
22903 . : '\(.\)' 2>/dev/null ||
22905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22906 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22907 /^X\(\/\/\)$/{ s//\1/; q; }
22908 /^X\(\/\).*/{ s//\1/; q; }
22911 test ! -n "$as_dirs" || mkdir
$as_dirs
22912 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22913 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22914 { (exit 1); exit 1; }; }; }
22916 # echo "creating $dirpart/$file"
22917 echo '# dummy' > "$dirpart/$file"
22925 cat >>$CONFIG_STATUS <<\_ACEOF
22927 { (exit 0); exit 0; }
22929 chmod +x
$CONFIG_STATUS
22930 ac_clean_files
=$ac_clean_files_save
22933 # configure is writing to config.log, and then calls config.status.
22934 # config.status does its own redirection, appending to config.log.
22935 # Unfortunately, on DOS this fails, as config.log is still kept open
22936 # by configure, so config.status won't be able to write to it; its
22937 # output is simply discarded. So we exec the FD to /dev/null,
22938 # effectively closing config.log, so it can be properly (re)opened and
22939 # appended to by config.status. When coming back to configure, we
22940 # need to make the FD available again.
22941 if test "$no_create" != yes; then
22943 ac_config_status_args
=
22944 test "$silent" = yes &&
22945 ac_config_status_args
="$ac_config_status_args --quiet"
22947 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
22949 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22950 # would make configure fail if this is the last instruction.
22951 $ac_cs_success ||
{ (exit 1); exit 1; }