2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libantlr3c 3.2.
5 # Report bugs to <jimi@temporal-wave.com>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
14 # Copyright (c) 2005-2009 Jim Idle, Temporal Wave LLC
15 # http://www.temporal-wave.com
16 # http://www.linkedin.com/in/jimidle
17 # All rights reserved.
19 # Redistribution and use in source and binary forms, with or without
20 # modification, are permitted provided that the following conditions
22 # 1. Redistributions of source code must retain the above copyright
23 # notice, this list of conditions and the following disclaimer.
24 # 2. Redistributions in binary form must reproduce the above copyright
25 # notice, this list of conditions and the following disclaimer in the
26 # documentation and/or other materials provided with the distribution.
27 # 3. The name of the author may not be used to endorse or promote products
28 # derived from this software without specific prior written permission.
30 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
31 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
32 # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
33 # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
34 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
35 # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
36 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
37 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
39 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
41 ## --------------------- ##
42 ## M4sh Initialization. ##
43 ## --------------------- ##
45 # Be more Bourne compatible
46 DUALCASE
=1; export DUALCASE
# for MKS sh
47 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
50 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
51 # is contrary to our usage. Disable this feature.
52 alias -g '${1+"$@"}'='"$@"'
55 case `(set -o) 2>/dev/null` in
56 *posix
*) set -o posix
;;
65 # Avoid depending upon Character Ranges.
66 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
67 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
68 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
69 as_cr_digits
='0123456789'
70 as_cr_alnum
=$as_cr_Letters$as_cr_digits
75 # Printing a long string crashes Solaris 7 /usr/bin/printf.
76 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
77 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
78 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
79 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
83 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
84 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
85 as_echo_n='/usr
/ucb
/echo -n'
87 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
92 expr "X$arg" : "X\\(.*\\)$as_nl";
93 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
95 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
98 as_echo_n='sh
-c $as_echo_n_body as_echo
'
101 as_echo='sh
-c $as_echo_body as_echo
'
104 # The user is always right.
105 if test "${PATH_SEPARATOR+set}" != set; then
107 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
108 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
113 # Support unset when possible.
114 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
122 # We need space, tab and new line, in precisely that order. Quoting is
123 # there to prevent editors from complaining about space-tab.
124 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
125 # splitting by setting IFS to empty value.)
128 # Find who we are. Look in the path if we contain no directory separator.
130 *[\\/]* ) as_myself=$0 ;;
131 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 test -z "$as_dir" && as_dir=.
136 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
142 # We did not find ourselves, most probably we were run as `sh COMMAND'
143 # in which case we are not to be found in the path.
144 if test "x$as_myself" = x
; then
147 if test ! -f "$as_myself"; then
148 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
149 { (exit 1); exit 1; }
152 # Work around bugs in pre-3.0 UWIN ksh.
153 for as_var
in ENV MAIL MAILPATH
154 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
166 # Required to use basename.
167 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
168 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
174 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
181 # Name of the executable.
182 as_me
=`$as_basename -- "$0" ||
183 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
184 X"$0" : 'X\(//\)$' \| \
185 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
187 sed '/^.*\/\([^/][^/]*\)\/*$/{
205 if test "x$CONFIG_SHELL" = x
; then
206 if (eval ":") 2>/dev
/null
; then
212 if test $as_have_required = yes && (eval ":
222 as_func_ret_success () {
225 as_func_ret_failure () {
230 if as_func_success; then
234 echo as_func_success failed.
237 if as_func_failure; then
239 echo as_func_failure succeeded.
242 if as_func_ret_success; then
246 echo as_func_ret_success failed.
249 if as_func_ret_failure; then
251 echo as_func_ret_failure succeeded.
254 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
258 echo positional parameters were not saved.
261 test \$exitcode = 0) || { (exit 1); exit 1; }
266 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
267 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
268 ") 2> /dev
/null
; then
272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
273 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
276 test -z "$as_dir" && as_dir
=.
279 for as_base
in sh bash ksh sh5
; do
280 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
287 for as_shell
in $as_candidate_shells $SHELL; do
288 # Try only shells that exist, to save several forks.
289 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
290 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
291 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
294 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
295 # is contrary to our usage. Disable this feature.
296 alias -g '${1+"$@"}'='"$@"'
299 case `(set -o) 2>/dev/null` in
300 *posix
*) set -o posix
;;
309 CONFIG_SHELL
=$as_shell
311 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
312 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
315 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
316 # is contrary to our usage. Disable this feature.
317 alias -g '${1+"$@"}'='"$@"'
320 case `(set -o) 2>/dev/null` in
321 *posix
*) set -o posix
;;
337 as_func_ret_success
() {
340 as_func_ret_failure
() {
345 if as_func_success
; then
349 echo as_func_success failed.
352 if as_func_failure
; then
354 echo as_func_failure succeeded.
357 if as_func_ret_success
; then
361 echo as_func_ret_success failed.
364 if as_func_ret_failure
; then
366 echo as_func_ret_failure succeeded.
369 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
373 echo positional parameters were not saved.
376 test $exitcode = 0) ||
{ (exit 1); exit 1; }
381 test "x$as_lineno_1" != "x$as_lineno_2" &&
382 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
393 if test "x$CONFIG_SHELL" != x
; then
394 for as_var
in BASH_ENV ENV
395 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
398 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
402 if test $as_have_required = no
; then
403 echo This
script requires a shell
more modern than all the
404 echo shells that I found on your system. Please
install a
405 echo modern shell
, or manually run the
script under such a
406 echo shell
if you
do have one.
407 { (exit 1); exit 1; }
417 (eval "as_func_return () {
426 as_func_ret_success () {
429 as_func_ret_failure () {
434 if as_func_success; then
438 echo as_func_success failed.
441 if as_func_failure; then
443 echo as_func_failure succeeded.
446 if as_func_ret_success; then
450 echo as_func_ret_success failed.
453 if as_func_ret_failure; then
455 echo as_func_ret_failure succeeded.
458 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
462 echo positional parameters were not saved.
465 test \$exitcode = 0") ||
{
466 echo No shell found that supports shell functions.
467 echo Please tell bug-autoconf@gnu.org about your system
,
468 echo including any error possibly output before this message.
469 echo This can
help us improve future autoconf versions.
470 echo Configuration will now proceed without shell functions.
477 test "x$as_lineno_1" != "x$as_lineno_2" &&
478 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
480 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
481 # uniformly replaced by the line number. The first 'sed' inserts a
482 # line-number line after each line using $LINENO; the second 'sed'
483 # does the real work. The second script uses 'N' to pair each
484 # line-number line with the line containing $LINENO, and appends
485 # trailing '-' during substitution so that $LINENO is not a special
487 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
488 # scripts with optimization help from Paolo Bonzini. Blame Lee
489 # E. McMahon (1931-1989) for sed's syntax. :-)
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 chmod +x
"$as_me.lineno" ||
506 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
507 { (exit 1); exit 1; }; }
509 # Don't try to exec as it changes $[0], causing all sort of problems
510 # (the dirname of $[0] is not the place where we might find the
511 # original and so on. Autoconf is especially sensitive to this).
513 # Exit status is that of the last command.
518 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
524 ECHO_C
= ECHO_N
= ECHO_T
=
528 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
534 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
535 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
541 rm -f conf$$ conf$$.exe conf$$.
file
542 if test -d conf$$.dir
; then
543 rm -f conf$$.dir
/conf$$.
file
546 mkdir conf$$.dir
2>/dev
/null
548 if (echo >conf$$.
file) 2>/dev
/null
; then
549 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
551 # ... but there are two gotchas:
552 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
553 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
554 # In both cases, we have to default to `cp -p'.
555 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
557 elif ln conf$$.
file conf$$
2>/dev
/null
; then
565 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
566 rmdir conf$$.dir
2>/dev
/null
568 if mkdir
-p .
2>/dev
/null
; then
571 test -d .
/-p && rmdir .
/-p
575 if test -x / >/dev
/null
2>&1; then
578 if ls -dL / >/dev
/null
2>&1; then
585 if test -d "$1"; then
591 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
592 ???[sx]*):;;*)false;;esac;fi
596 as_executable_p
=$as_test_x
598 # Sed expression to map a string onto a valid CPP name.
599 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
601 # Sed expression to map a string onto a valid variable name.
602 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
607 # Check that we are running under the correct shell.
608 SHELL
=${CONFIG_SHELL-/bin/sh}
612 # Remove one level of quotation (which was required for Make).
613 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
618 if test "X$1" = X--no-reexec
; then
619 # Discard the --no-reexec flag, and continue.
621 elif test "X$1" = X--fallback-echo
; then
622 # Avoid inline document here, it may be left over
624 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
625 # Yippee, $echo works!
628 # Restart under the correct shell.
629 exec $SHELL "$0" --no-reexec ${1+"$@"}
632 if test "X$1" = X--fallback-echo
; then
633 # used as fallback echo
641 # The HP-UX ksh and POSIX shell print the target directory to stdout
643 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
645 if test -z "$ECHO"; then
646 if test "X${echo_test_string+set}" != Xset
; then
647 # find a string as large as possible, as long as the shell can cope with it
648 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
649 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
650 if (echo_test_string
=`eval $cmd`) 2>/dev
/null
&&
651 echo_test_string
=`eval $cmd` &&
652 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
659 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
660 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
661 test "X$echo_testing_string" = "X$echo_test_string"; then
664 # The Solaris, AIX, and Digital Unix default echo programs unquote
665 # backslashes. This makes it impossible to quote backslashes using
666 # echo "$something" | sed 's/\\/\\\\/g'
668 # So, first we look for a working echo in the user's PATH.
670 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
671 for dir
in $PATH /usr
/ucb
; do
673 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
674 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
675 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
683 if test "X$echo" = Xecho
; then
684 # We didn't find a better echo, so look for alternatives.
685 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
686 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 # This shell has a builtin print -r that does the trick.
690 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
691 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
692 # If we have ksh, try running configure again with it.
693 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
694 export ORIGINAL_CONFIG_SHELL
695 CONFIG_SHELL
=/bin
/ksh
697 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
701 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
702 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
703 test "X$echo_testing_string" = "X$echo_test_string"; then
706 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
707 test "X$echo_testing_string" = 'X\t' &&
708 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
709 test "X$echo_testing_string" = "X$echo_test_string"; then
710 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
712 SHELL
="$CONFIG_SHELL"
714 echo="$CONFIG_SHELL $0 --fallback-echo"
715 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
716 test "X$echo_testing_string" = 'X\t' &&
717 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
718 test "X$echo_testing_string" = "X$echo_test_string"; then
719 echo="$CONFIG_SHELL $0 --fallback-echo"
721 # maybe with a smaller string...
724 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
725 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
732 if test "$prev" != 'sed 50q "$0"'; then
733 echo_test_string
=`eval $prev`
734 export echo_test_string
735 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
737 # Oops. We lost completely, so just stick with echo.
746 # Copy echo and quote the copy suitably for passing to libtool from
747 # the Makefile, instead of quoting the original, which is used later.
749 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
750 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
756 tagnames
=${tagnames+${tagnames},}CXX
758 tagnames
=${tagnames+${tagnames},}F77
760 exec 7<&0 </dev
/null
6>&1
763 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
764 # so uname gets run too.
765 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
770 ac_default_prefix
=/usr
/local
772 ac_config_libobj_dir
=.
778 SHELL
=${CONFIG_SHELL-/bin/sh}
780 # Identity of this package.
781 PACKAGE_NAME
='libantlr3c'
782 PACKAGE_TARNAME
='libantlr3c'
783 PACKAGE_VERSION
='3.2'
784 PACKAGE_STRING
='libantlr3c 3.2'
785 PACKAGE_BUGREPORT
='jimi@temporal-wave.com'
787 ac_unique_file
="src/antlr3parser.c"
788 # Factoring default headers for most tests.
789 ac_includes_default
="\
791 #ifdef HAVE_SYS_TYPES_H
792 # include <sys/types.h>
794 #ifdef HAVE_SYS_STAT_H
795 # include <sys/stat.h>
801 # ifdef HAVE_STDLIB_H
806 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
811 #ifdef HAVE_STRINGS_H
812 # include <strings.h>
814 #ifdef HAVE_INTTYPES_H
815 # include <inttypes.h>
824 ac_subst_vars
='LTLIBOBJS
855 MAINTAINER_MODE_FALSE
880 INSTALL_STRIP_PROGRAM
921 program_transform_name
933 enable_option_checking
938 enable_dependency_tracking
939 enable_maintainer_mode
948 ac_precious_vars
='build_alias
965 # Initialize some variables set by options.
967 ac_init_version
=false
968 ac_unrecognized_opts
=
970 # The variables have the same names as the options, with
971 # dashes changed to underlines.
979 program_transform_name
=s
,x
,x
,
987 # Installation directory options.
988 # These are left unexpanded so users can "make install exec_prefix=/foo"
989 # and all the variables that are supposed to be based on exec_prefix
990 # by default will actually change.
991 # Use braces instead of parens because sh, perl, etc. also accept them.
992 # (The list follows the same order as the GNU Coding Standards.)
993 bindir
='${exec_prefix}/bin'
994 sbindir
='${exec_prefix}/sbin'
995 libexecdir
='${exec_prefix}/libexec'
996 datarootdir
='${prefix}/share'
997 datadir
='${datarootdir}'
998 sysconfdir
='${prefix}/etc'
999 sharedstatedir
='${prefix}/com'
1000 localstatedir
='${prefix}/var'
1001 includedir
='${prefix}/include'
1002 oldincludedir
='/usr/include'
1003 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1004 infodir
='${datarootdir}/info'
1009 libdir
='${exec_prefix}/lib'
1010 localedir
='${datarootdir}/locale'
1011 mandir
='${datarootdir}/man'
1017 # If the previous option needs an argument, assign it.
1018 if test -n "$ac_prev"; then
1019 eval $ac_prev=\
$ac_option
1025 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1029 # Accept the important Cygnus configure options, so we can diagnose typos.
1031 case $ac_dashdash$ac_option in
1035 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1037 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1038 bindir
=$ac_optarg ;;
1040 -build |
--build |
--buil |
--bui |
--bu)
1041 ac_prev
=build_alias
;;
1042 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1043 build_alias
=$ac_optarg ;;
1045 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1046 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1047 ac_prev
=cache_file
;;
1048 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1049 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1050 cache_file
=$ac_optarg ;;
1052 --config-cache |
-C)
1053 cache_file
=config.cache
;;
1055 -datadir |
--datadir |
--datadi |
--datad)
1057 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1058 datadir
=$ac_optarg ;;
1060 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1061 |
--dataroo |
--dataro |
--datar)
1062 ac_prev
=datarootdir
;;
1063 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1064 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1065 datarootdir
=$ac_optarg ;;
1067 -disable-* |
--disable-*)
1068 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1071 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_useropt_orig
=$ac_useropt
1074 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1077 "enable_
$ac_useropt"
1079 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1080 ac_unrecognized_sep
=', ';;
1082 eval enable_
$ac_useropt=no
;;
1084 -docdir |
--docdir |
--docdi |
--doc |
--do)
1086 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1087 docdir
=$ac_optarg ;;
1089 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1091 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1092 dvidir
=$ac_optarg ;;
1094 -enable-* |
--enable-*)
1095 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1098 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1099 { (exit 1); exit 1; }; }
1100 ac_useropt_orig
=$ac_useropt
1101 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1104 "enable_
$ac_useropt"
1106 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1107 ac_unrecognized_sep
=', ';;
1109 eval enable_
$ac_useropt=\
$ac_optarg ;;
1111 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1112 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1113 |
--exec |
--exe |
--ex)
1114 ac_prev
=exec_prefix
;;
1115 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1116 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1117 |
--exec=* |
--exe=* |
--ex=*)
1118 exec_prefix
=$ac_optarg ;;
1120 -gas |
--gas |
--ga |
--g)
1121 # Obsolete; use --with-gas.
1124 -help |
--help |
--hel |
--he |
-h)
1125 ac_init_help
=long
;;
1126 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1127 ac_init_help
=recursive
;;
1128 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1129 ac_init_help
=short
;;
1131 -host |
--host |
--hos |
--ho)
1132 ac_prev
=host_alias
;;
1133 -host=* |
--host=* |
--hos=* |
--ho=*)
1134 host_alias
=$ac_optarg ;;
1136 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1138 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1140 htmldir
=$ac_optarg ;;
1142 -includedir |
--includedir |
--includedi |
--included |
--include \
1143 |
--includ |
--inclu |
--incl |
--inc)
1144 ac_prev
=includedir
;;
1145 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1146 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1147 includedir
=$ac_optarg ;;
1149 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1151 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1152 infodir
=$ac_optarg ;;
1154 -libdir |
--libdir |
--libdi |
--libd)
1156 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1157 libdir
=$ac_optarg ;;
1159 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1160 |
--libexe |
--libex |
--libe)
1161 ac_prev
=libexecdir
;;
1162 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1163 |
--libexe=* |
--libex=* |
--libe=*)
1164 libexecdir
=$ac_optarg ;;
1166 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1167 ac_prev
=localedir
;;
1168 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1169 localedir
=$ac_optarg ;;
1171 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1172 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1173 ac_prev
=localstatedir
;;
1174 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1175 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1176 localstatedir
=$ac_optarg ;;
1178 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1180 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1181 mandir
=$ac_optarg ;;
1183 -nfp |
--nfp |
--nf)
1184 # Obsolete; use --without-fp.
1187 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1188 |
--no-cr |
--no-c |
-n)
1191 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1192 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1195 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1196 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1197 |
--oldin |
--oldi |
--old |
--ol |
--o)
1198 ac_prev
=oldincludedir
;;
1199 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1200 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1201 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1202 oldincludedir
=$ac_optarg ;;
1204 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1206 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1207 prefix
=$ac_optarg ;;
1209 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1210 |
--program-pre |
--program-pr |
--program-p)
1211 ac_prev
=program_prefix
;;
1212 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1213 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1214 program_prefix
=$ac_optarg ;;
1216 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1217 |
--program-suf |
--program-su |
--program-s)
1218 ac_prev
=program_suffix
;;
1219 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1220 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1221 program_suffix
=$ac_optarg ;;
1223 -program-transform-name |
--program-transform-name \
1224 |
--program-transform-nam |
--program-transform-na \
1225 |
--program-transform-n |
--program-transform- \
1226 |
--program-transform |
--program-transfor \
1227 |
--program-transfo |
--program-transf \
1228 |
--program-trans |
--program-tran \
1229 |
--progr-tra |
--program-tr |
--program-t)
1230 ac_prev
=program_transform_name
;;
1231 -program-transform-name=* |
--program-transform-name=* \
1232 |
--program-transform-nam=* |
--program-transform-na=* \
1233 |
--program-transform-n=* |
--program-transform-=* \
1234 |
--program-transform=* |
--program-transfor=* \
1235 |
--program-transfo=* |
--program-transf=* \
1236 |
--program-trans=* |
--program-tran=* \
1237 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1238 program_transform_name
=$ac_optarg ;;
1240 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1242 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1243 pdfdir
=$ac_optarg ;;
1245 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1247 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1250 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1251 |
-silent |
--silent |
--silen |
--sile |
--sil)
1254 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1256 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1258 sbindir
=$ac_optarg ;;
1260 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1261 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1262 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1264 ac_prev
=sharedstatedir
;;
1265 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1266 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1267 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1269 sharedstatedir
=$ac_optarg ;;
1271 -site |
--site |
--sit)
1273 -site=* |
--site=* |
--sit=*)
1276 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1278 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1279 srcdir
=$ac_optarg ;;
1281 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1282 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1283 ac_prev
=sysconfdir
;;
1284 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1285 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1286 sysconfdir
=$ac_optarg ;;
1288 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1289 ac_prev
=target_alias
;;
1290 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1291 target_alias
=$ac_optarg ;;
1293 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1296 -version |
--version |
--versio |
--versi |
--vers |
-V)
1297 ac_init_version
=: ;;
1300 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1303 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1304 { (exit 1); exit 1; }; }
1305 ac_useropt_orig
=$ac_useropt
1306 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307 case $ac_user_opts in
1311 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1312 ac_unrecognized_sep
=', ';;
1314 eval with_
$ac_useropt=\
$ac_optarg ;;
1316 -without-* |
--without-*)
1317 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1318 # Reject names that are not valid shell variable names.
1319 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1320 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1321 { (exit 1); exit 1; }; }
1322 ac_useropt_orig
=$ac_useropt
1323 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324 case $ac_user_opts in
1328 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1329 ac_unrecognized_sep
=', ';;
1331 eval with_
$ac_useropt=no
;;
1334 # Obsolete; use --with-x.
1337 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1338 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1339 ac_prev
=x_includes
;;
1340 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1341 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1342 x_includes
=$ac_optarg ;;
1344 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1345 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1346 ac_prev
=x_libraries
;;
1347 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1348 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1349 x_libraries
=$ac_optarg ;;
1351 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1352 Try \`$0 --help' for more information." >&2
1353 { (exit 1); exit 1; }; }
1357 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1358 # Reject names that are not valid shell variable names.
1359 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1360 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1361 { (exit 1); exit 1; }; }
1362 eval $ac_envvar=\
$ac_optarg
1363 export $ac_envvar ;;
1366 # FIXME: should be removed in autoconf 3.0.
1367 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1368 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1369 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1370 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1376 if test -n "$ac_prev"; then
1377 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1378 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1379 { (exit 1); exit 1; }; }
1382 if test -n "$ac_unrecognized_opts"; then
1383 case $enable_option_checking in
1385 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1386 { (exit 1); exit 1; }; } ;;
1387 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1391 # Check all directory arguments for consistency.
1392 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1393 datadir sysconfdir sharedstatedir localstatedir includedir \
1394 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1395 libdir localedir mandir
1397 eval ac_val
=\$
$ac_var
1398 # Remove trailing slashes.
1401 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1402 eval $ac_var=\
$ac_val;;
1404 # Be sure to have absolute directory names.
1406 [\\/$
]* | ?
:[\\/]* ) continue;;
1407 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1409 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1410 { (exit 1); exit 1; }; }
1413 # There might be people who depend on the old broken behavior: `$host'
1414 # used to hold the argument of --host etc.
1415 # FIXME: To remove some day.
1418 target
=$target_alias
1420 # FIXME: To remove some day.
1421 if test "x$host_alias" != x
; then
1422 if test "x$build_alias" = x
; then
1423 cross_compiling
=maybe
1424 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1425 If a cross compiler is detected then cross compile mode will be used." >&2
1426 elif test "x$build_alias" != "x$host_alias"; then
1432 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1434 test "$silent" = yes && exec 6>/dev
/null
1437 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1438 ac_ls_di
=`ls -di .` &&
1439 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1440 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1441 { (exit 1); exit 1; }; }
1442 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1443 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1444 { (exit 1); exit 1; }; }
1447 # Find the source files, if location was not specified.
1448 if test -z "$srcdir"; then
1449 ac_srcdir_defaulted
=yes
1450 # Try the directory containing this script, then the parent directory.
1451 ac_confdir
=`$as_dirname -- "$as_myself" ||
1452 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1453 X"$as_myself" : 'X\(//\)[^/]' \| \
1454 X"$as_myself" : 'X\(//\)$' \| \
1455 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1456 $as_echo X"$as_myself" |
1457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1475 if test ! -r "$srcdir/$ac_unique_file"; then
1479 ac_srcdir_defaulted
=no
1481 if test ! -r "$srcdir/$ac_unique_file"; then
1482 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1483 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1484 { (exit 1); exit 1; }; }
1486 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1488 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1489 { (exit 1); exit 1; }; }
1491 # When building in place, set srcdir=.
1492 if test "$ac_abs_confdir" = "$ac_pwd"; then
1495 # Remove unnecessary trailing slashes from srcdir.
1496 # Double slashes in file names in object file debugging info
1497 # mess up M-x gdb in Emacs.
1499 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1501 for ac_var
in $ac_precious_vars; do
1502 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1503 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1504 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1505 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1509 # Report the --help message.
1511 if test "$ac_init_help" = "long"; then
1512 # Omit some internal or obsolete options to make the list less imposing.
1513 # This message is too long to be a string in the A/UX 3.1 sh.
1515 \`configure' configures libantlr3c 3.2 to adapt to many kinds of systems.
1517 Usage: $0 [OPTION]... [VAR=VALUE]...
1519 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1520 VAR=VALUE. See below for descriptions of some of the useful variables.
1522 Defaults for the options are specified in brackets.
1525 -h, --help display this help and exit
1526 --help=short display options specific to this package
1527 --help=recursive display the short help of all the included packages
1528 -V, --version display version information and exit
1529 -q, --quiet, --silent do not print \`checking...' messages
1530 --cache-file=FILE cache test results in FILE [disabled]
1531 -C, --config-cache alias for \`--cache-file=config.cache'
1532 -n, --no-create do not create output files
1533 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1535 Installation directories:
1536 --prefix=PREFIX install architecture-independent files in PREFIX
1537 [$ac_default_prefix]
1538 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1541 By default, \`make install' will install all the files in
1542 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1543 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1544 for instance \`--prefix=\$HOME'.
1546 For better control, use the options below.
1548 Fine tuning of the installation directories:
1549 --bindir=DIR user executables [EPREFIX/bin]
1550 --sbindir=DIR system admin executables [EPREFIX/sbin]
1551 --libexecdir=DIR program executables [EPREFIX/libexec]
1552 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1553 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1554 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1555 --libdir=DIR object code libraries [EPREFIX/lib]
1556 --includedir=DIR C header files [PREFIX/include]
1557 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1558 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1559 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1560 --infodir=DIR info documentation [DATAROOTDIR/info]
1561 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1562 --mandir=DIR man documentation [DATAROOTDIR/man]
1563 --docdir=DIR documentation root [DATAROOTDIR/doc/libantlr3c]
1564 --htmldir=DIR html documentation [DOCDIR]
1565 --dvidir=DIR dvi documentation [DOCDIR]
1566 --pdfdir=DIR pdf documentation [DOCDIR]
1567 --psdir=DIR ps documentation [DOCDIR]
1573 --program-prefix=PREFIX prepend PREFIX to installed program names
1574 --program-suffix=SUFFIX append SUFFIX to installed program names
1575 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1578 --build=BUILD configure
for building on BUILD
[guessed
]
1579 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1583 if test -n "$ac_init_help"; then
1584 case $ac_init_help in
1585 short | recursive
) echo "Configuration of libantlr3c 3.2:";;
1590 --disable-option-checking ignore unrecognized
--enable/--with options
1591 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1592 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1593 --enable-debuginfo Compiles debug info into the library
(default
1594 --disable-debuginfo)
1595 --enable-64bit Turns on flags that produce
64 bit object code
if
1596 any are required
(default
--disable-64bit)
1597 --disable-abiflags Does not add ABI flags
-m32 or
-m64 for older
1598 versions of gcc
, such as itanium
3.x
(default
1599 --enable-abiflags=yes)
1600 --disable-antlrdebug Turns off default flags that include the antlr
1601 debugger
in the runtime. Specify to remove debugger
1602 and the socket dependancies
(default
1603 --enable-antlrdebug)
1604 --disable-dependency-tracking speeds up one-time build
1605 --enable-dependency-tracking do not reject slow dependency extractors
1606 --enable-maintainer-mode enable make rules and dependencies not useful
1607 (and sometimes confusing
) to the casual installer
1608 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1609 --enable-static[=PKGS
] build static libraries
[default
=yes]
1610 --enable-fast-install[=PKGS
]
1611 optimize
for fast installation
[default
=yes]
1612 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1615 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1616 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1617 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1618 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1620 --with-tags[=TAGS
] include additional configurations
[automatic
]
1622 Some influential environment variables
:
1623 CC C compiler
command
1624 CFLAGS C compiler flags
1625 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1626 nonstandard directory
<lib dir
>
1627 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1628 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1629 you have headers
in a nonstandard directory
<include dir
>
1631 CXX C
++ compiler
command
1632 CXXFLAGS C
++ compiler flags
1633 CXXCPP C
++ preprocessor
1634 F77 Fortran
77 compiler
command
1635 FFLAGS Fortran
77 compiler flags
1637 Use these variables to override the choices made by
`configure' or to help
1638 it to find libraries and programs with nonstandard names/locations.
1640 Report bugs to <jimi@temporal-wave.com>.
1645 if test "$ac_init_help" = "recursive"; then
1646 # If there are subdirs, report their specific --help.
1647 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1648 test -d "$ac_dir" ||
1649 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1654 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1657 # A ".." for each directory in $ac_dir_suffix.
1658 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1659 case $ac_top_builddir_sub in
1660 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1664 ac_abs_top_builddir=$ac_pwd
1665 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1666 # for backward compatibility:
1667 ac_top_builddir=$ac_top_build_prefix
1670 .) # We are building in place.
1672 ac_top_srcdir=$ac_top_builddir_sub
1673 ac_abs_top_srcdir=$ac_pwd ;;
1674 [\\/]* | ?:[\\/]* ) # Absolute name.
1675 ac_srcdir=$srcdir$ac_dir_suffix;
1676 ac_top_srcdir=$srcdir
1677 ac_abs_top_srcdir=$srcdir ;;
1679 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1680 ac_top_srcdir=$ac_top_build_prefix$srcdir
1681 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1683 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1685 cd "$ac_dir" || { ac_status=$?; continue; }
1686 # Check for guested configure.
1687 if test -f "$ac_srcdir/configure.gnu"; then
1689 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1690 elif test -f "$ac_srcdir/configure"; then
1692 $SHELL "$ac_srcdir/configure" --help=recursive
1694 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1696 cd "$ac_pwd" || { ac_status=$?; break; }
1700 test -n "$ac_init_help" && exit $ac_status
1701 if $ac_init_version; then
1703 libantlr3c configure 3.2
1704 generated by GNU Autoconf 2.63
1706 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1707 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1708 This configure script is free software; the Free Software Foundation
1709 gives unlimited permission to copy, distribute and modify it.
1713 Copyright (c) 2005-2009 Jim Idle, Temporal Wave LLC
1714 http://www.temporal-wave.com
1715 http://www.linkedin.com/in/jimidle
1716 All rights reserved.
1718 Redistribution and use in source and binary forms, with or without
1719 modification, are permitted provided that the following conditions
1721 1. Redistributions of source code must retain the above copyright
1722 notice, this list of conditions and the following disclaimer.
1723 2. Redistributions in binary form must reproduce the above copyright
1724 notice, this list of conditions and the following disclaimer in the
1725 documentation and/or other materials provided with the distribution.
1726 3. The name of the author may not be used to endorse or promote products
1727 derived from this software without specific prior written permission.
1729 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1730 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
1731 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
1732 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
1733 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
1734 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1735 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1736 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1737 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
1738 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1743 cat >config.log <<_ACEOF
1744 This file contains any messages produced by compilers while
1745 running configure, to aid debugging if configure makes a mistake.
1747 It was created by libantlr3c $as_me 3.2, which was
1748 generated by GNU Autoconf 2.63. Invocation command line was
1760 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1761 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1762 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1763 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1764 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1766 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1767 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1769 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1770 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1771 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1772 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1773 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1774 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1775 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783 test -z "$as_dir" && as_dir=.
1784 $as_echo "PATH: $as_dir"
1800 # Keep a trace of the command line.
1801 # Strip out --no-create and --no-recursion so they do not pile up.
1802 # Strip out --silent because we don't want to record it for future runs.
1803 # Also quote any args containing shell meta-characters.
1804 # Make two passes to allow for proper duplicate-argument suppression.
1808 ac_must_keep_next=false
1814 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1815 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1816 | -silent | --silent | --silen | --sile | --sil)
1819 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1822 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1824 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1825 if test $ac_must_keep_next = true; then
1826 ac_must_keep_next=false # Got value, back to normal.
1829 *=* | --config-cache | -C | -disable-* | --disable-* \
1830 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1831 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1832 | -with-* | --with-* | -without-* | --without-* | --x)
1833 case "$ac_configure_args0 " in
1834 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1837 -* ) ac_must_keep_next=true ;;
1840 ac_configure_args="$ac_configure_args '$ac_arg'"
1845 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1846 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1848 # When interrupted or exit'd, cleanup temporary files, and complete
1849 # config.log. We remove comments because anyway the quotes in there
1850 # would cause problems or look ugly.
1851 # WARNING: Use '\'' to represent an apostrophe within the trap.
1852 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1853 trap 'exit_status=$?
1854 # Save into config.log some information that might help in debugging.
1859 ## ---------------- ##
1860 ## Cache variables. ##
1861 ## ---------------- ##
1864 # The following way of writing the cache mishandles newlines in values,
1866 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1867 eval ac_val=\$$ac_var
1871 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1872 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1875 _ | IFS | as_nl) ;; #(
1876 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1877 *) $as_unset $ac_var ;;
1882 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1883 *${as_nl}ac_space=\ *)
1885 "s/'\''/'\''\\\\'\'''\''/g;
1886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1889 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1897 ## ----------------- ##
1898 ## Output variables. ##
1899 ## ----------------- ##
1902 for ac_var in $ac_subst_vars
1904 eval ac_val=\$$ac_var
1906 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1908 $as_echo "$ac_var='\''$ac_val'\''"
1912 if test -n "$ac_subst_files"; then
1914 ## ------------------- ##
1915 ## File substitutions. ##
1916 ## ------------------- ##
1919 for ac_var in $ac_subst_files
1921 eval ac_val=\$$ac_var
1923 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1925 $as_echo "$ac_var='\''$ac_val'\''"
1930 if test -s confdefs.h; then
1940 test "$ac_signal" != 0 &&
1941 $as_echo "$as_me: caught signal $ac_signal"
1942 $as_echo "$as_me: exit $exit_status"
1944 rm -f core *.core core.conftest.* &&
1945 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1948 for ac_signal in 1 2 13 15; do
1949 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1953 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1954 rm -f -r conftest* confdefs.h
1956 # Predefined preprocessor variables.
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_NAME "$PACKAGE_NAME"
1963 cat >>confdefs.h <<_ACEOF
1964 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1968 cat >>confdefs.h <<_ACEOF
1969 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1973 cat >>confdefs.h <<_ACEOF
1974 #define PACKAGE_STRING "$PACKAGE_STRING"
1978 cat >>confdefs.h <<_ACEOF
1979 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1983 # Let the site file select an alternate cache file if it wants to.
1984 # Prefer an explicitly selected file to automatically selected ones.
1987 if test -n "$CONFIG_SITE"; then
1988 ac_site_file1=$CONFIG_SITE
1989 elif test "x$prefix" != xNONE; then
1990 ac_site_file1=$prefix/share/config.site
1991 ac_site_file2=$prefix/etc/config.site
1993 ac_site_file1=$ac_default_prefix/share/config.site
1994 ac_site_file2=$ac_default_prefix/etc/config.site
1996 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1998 test "x$ac_site_file" = xNONE && continue
1999 if test -r "$ac_site_file"; then
2000 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2001 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2002 sed 's/^/| /' "$ac_site_file" >&5
2007 if test -r "$cache_file"; then
2008 # Some versions of bash will fail to source /dev/null (special
2009 # files actually), so we avoid doing that.
2010 if test -f "$cache_file"; then
2011 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2012 $as_echo "$as_me: loading cache $cache_file" >&6;}
2014 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2015 *) . "./$cache_file";;
2019 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2020 $as_echo "$as_me: creating cache $cache_file" >&6;}
2024 # Check that the precious variables saved in the cache have kept the same
2026 ac_cache_corrupted=false
2027 for ac_var in $ac_precious_vars; do
2028 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2029 eval ac_new_set=\$ac_env_${ac_var}_set
2030 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2031 eval ac_new_val=\$ac_env_${ac_var}_value
2032 case $ac_old_set,$ac_new_set in
2034 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2035 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2036 ac_cache_corrupted=: ;;
2038 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
2039 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2040 ac_cache_corrupted=: ;;
2043 if test "x$ac_old_val" != "x$ac_new_val"; then
2044 # differences in whitespace do not lead to failure.
2045 ac_old_val_w=`echo x
$ac_old_val`
2046 ac_new_val_w=`echo x
$ac_new_val`
2047 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2048 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2049 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2050 ac_cache_corrupted=:
2052 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2053 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2054 eval $ac_var=\$ac_old_val
2056 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2057 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2058 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2059 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2062 # Pass precious variables to config.status.
2063 if test "$ac_new_set" = set; then
2065 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2066 *) ac_arg=$ac_var=$ac_new_val ;;
2068 case " $ac_configure_args " in
2069 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2070 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2074 if $ac_cache_corrupted; then
2075 { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2077 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2078 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2079 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&5
2080 $as_echo "$as_me: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&2;}
2081 { (exit 1); exit 1; }; }
2109 ac_cpp='$CPP $CPPFLAGS'
2110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2120 # Check whether --enable-debuginfo was given.
2121 if test "${enable_debuginfo+set}" = set; then
2122 enableval=$enable_debuginfo;
2128 # Check whether --enable-64bit was given.
2129 if test "${enable_64bit+set}" = set; then
2130 enableval=$enable_64bit;
2136 # Check whether --enable-abiflags was given.
2137 if test "${enable_abiflags+set}" = set; then
2138 enableval=$enable_abiflags;
2144 # Check whether --enable-antlrdebug was given.
2145 if test "${enable_antlrdebug+set}" = set; then
2146 enableval=$enable_antlrdebug;
2148 enable_antlrdebug=yes
2152 am__api_version="1.9"
2154 for ac_dir in "$srcdir" "$srcdir/..
" "$srcdir/..
/..
"; do
2155 if test -f "$ac_dir/install-sh
"; then
2157 ac_install_sh="$ac_aux_dir/install-sh
-c"
2159 elif test -f "$ac_dir/install.sh
"; then
2161 ac_install_sh="$ac_aux_dir/install.sh
-c"
2163 elif test -f "$ac_dir/shtool
"; then
2165 ac_install_sh="$ac_aux_dir/shtool
install -c"
2169 if test -z "$ac_aux_dir"; then
2170 { { $as_echo "$as_me:$LINENO: error
: cannot
find install-sh or
install.sh
in \"$srcdir\" \"$srcdir/..
\" \"$srcdir/..
/..
\"" >&5
2171 $as_echo "$as_me: error
: cannot
find install-sh or
install.sh
in \"$srcdir\" \"$srcdir/..
\" \"$srcdir/..
/..
\"" >&2;}
2172 { (exit 1); exit 1; }; }
2175 # These three variables are undocumented and unsupported,
2176 # and are intended to be withdrawn in a future Autoconf release.
2177 # They can cause serious problems if a builder's source tree is in a directory
2178 # whose full name contains unusual characters.
2179 ac_config_guess="$SHELL $ac_aux_dir/config.guess
" # Please don't use this var.
2180 ac_config_sub="$SHELL $ac_aux_dir/config.sub
" # Please don't use this var.
2181 ac_configure="$SHELL $ac_aux_dir/configure
" # Please don't use this var.
2184 # Find a good install program. We prefer a C program (faster),
2185 # so one script is as good as another. But avoid the broken or
2186 # incompatible versions:
2187 # SysV /etc/install, /usr/sbin/install
2188 # SunOS /usr/etc/install
2189 # IRIX /sbin/install
2191 # AmigaOS /C/install, which installs bootblocks on floppy discs
2192 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2193 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2194 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
2195 # OS/2's system install, which has a completely different semantic
2196 # ./install, which can be erroneously created by make from ./install.sh.
2197 # Reject install programs that cannot install multiple files.
2198 { $as_echo "$as_me:$LINENO: checking
for a BSD-compatible
install" >&5
2199 $as_echo_n "checking
for a BSD-compatible
install...
" >&6; }
2200 if test -z "$INSTALL"; then
2201 if test "${ac_cv_path_install+set}" = set; then
2202 $as_echo_n "(cached
) " >&6
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 test -z "$as_dir" && as_dir=.
2209 # Account for people who put trailing slashes in PATH elements.
2211 ./ | .// | /cC/* | \
2212 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2213 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2216 # OSF1 and SCO ODT 3.0 have their own names for install.
2217 # Don't use installbsd from OSF since it installs stuff as root
2219 for ac_prog in ginstall scoinst install; do
2220 for ac_exec_ext in '' $ac_executable_extensions; do
2221 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2222 if test $ac_prog = install &&
2223 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2224 # AIX install. It has an incompatible calling convention.
2226 elif test $ac_prog = install &&
2227 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2228 # program-specific install script used by HP pwplus--don't use.
2231 rm -rf conftest.one conftest.two conftest.dir
2232 echo one > conftest.one
2233 echo two > conftest.two
2235 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir
" &&
2236 test -s conftest.one && test -s conftest.two &&
2237 test -s conftest.dir/conftest.one &&
2238 test -s conftest.dir/conftest.two
2240 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2253 rm -rf conftest.one conftest.two conftest.dir
2256 if test "${ac_cv_path_install+set}" = set; then
2257 INSTALL=$ac_cv_path_install
2259 # As a last resort, use the slow shell script. Don't cache a
2260 # value for INSTALL within a source directory, because that will
2261 # break other packages using the cache if that directory is
2262 # removed, or if the value is a relative name.
2263 INSTALL=$ac_install_sh
2266 { $as_echo "$as_me:$LINENO: result
: $INSTALL" >&5
2267 $as_echo "$INSTALL" >&6; }
2269 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2270 # It thinks the first close brace ends the variable substitution.
2271 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2273 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2275 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2277 { $as_echo "$as_me:$LINENO: checking whether build environment is sane
" >&5
2278 $as_echo_n "checking whether build environment is sane...
" >&6; }
2281 echo timestamp > conftest.file
2282 # Do `set' in a subshell so we don't clobber the current shell's
2283 # arguments. Must try -L first in case configure is actually a
2284 # symlink; some systems play weird games with the mod time of symlinks
2285 # (eg FreeBSD returns the mod time of the symlink's containing
2288 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2289 if test "$
*" = "X
"; then
2291 set X `ls -t $srcdir/configure conftest.file`
2294 if test "$
*" != "X
$srcdir/configure conftest.
file" \
2295 && test "$
*" != "X conftest.
file $srcdir/configure
"; then
2297 # If neither matched, then we have a broken ls. This can happen
2298 # if, for instance, CONFIG_SHELL is bash and it inherits a
2299 # broken ls alias from the environment. This has actually
2300 # happened. Such a system could not be considered "sane
".
2301 { { $as_echo "$as_me:$LINENO: error
: ls -t appears to fail. Make sure there is not a broken
2302 alias in your environment
" >&5
2303 $as_echo "$as_me: error
: ls -t appears to fail. Make sure there is not a broken
2304 alias in your environment
" >&2;}
2305 { (exit 1); exit 1; }; }
2308 test "$2" = conftest.file
2314 { { $as_echo "$as_me:$LINENO: error
: newly created
file is older than distributed files
!
2315 Check your system
clock" >&5
2316 $as_echo "$as_me: error
: newly created
file is older than distributed files
!
2317 Check your system
clock" >&2;}
2318 { (exit 1); exit 1; }; }
2320 { $as_echo "$as_me:$LINENO: result
: yes" >&5
2321 $as_echo "yes" >&6; }
2322 test "$program_prefix" != NONE &&
2323 program_transform_name="s
&^
&$program_prefix&;$program_transform_name"
2324 # Use a double $ so make ignores it.
2325 test "$program_suffix" != NONE &&
2326 program_transform_name="s
&\$
&$program_suffix&;$program_transform_name"
2327 # Double any \ or $.
2328 # By default was `s,x,x', remove it if useless.
2329 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2330 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2332 # expand $ac_aux_dir to an absolute path
2333 am_aux_dir=`cd $ac_aux_dir && pwd`
2335 test x"${MISSING+set}" = xset || MISSING="\
${SHELL} $am_aux_dir/missing
"
2336 # Use eval to expand $SHELL
2337 if eval "$MISSING --run true
"; then
2338 am_missing_run="$MISSING --run "
2341 { $as_echo "$as_me:$LINENO: WARNING
: \
`missing' script is too old or missing" >&5
2342 $as_echo "$as_me: WARNING: \`missing
' script is too old or missing" >&2;}
2345 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2346 # We used to keeping the `.' as first argument
, in order to
2347 # allow $(mkdir_p) to be used without argument. As in
2348 # $(mkdir_p) $(somedir)
2349 # where $(somedir) is conditionally defined. However this is wrong
2351 # 1. if the package is installed by a user who cannot write `.'
2352 # make install will fail,
2353 # 2. the above comment should most certainly read
2354 # $(mkdir_p) $(DESTDIR)$(somedir)
2355 # so it does not work when $(somedir) is undefined and
2356 # $(DESTDIR) is not.
2357 # To support the latter case, we have to write
2358 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2359 # so the `.' trick is pointless.
2360 mkdir_p
='mkdir -p --'
2362 # On NextStep and OpenStep, the `mkdir' command does not
2363 # recognize any option. It will interpret all options as
2364 # directories to create, and then abort because `.' already
2366 for d
in .
/-p .
/--version;
2368 test -d $d && rmdir $d
2370 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2371 if test -f "$ac_aux_dir/mkinstalldirs"; then
2372 mkdir_p
='$(mkinstalldirs)'
2374 mkdir_p
='$(install_sh) -d'
2378 for ac_prog
in gawk mawk nawk
awk
2380 # Extract the first word of "$ac_prog", so it can be a program name with args.
2381 set dummy
$ac_prog; ac_word
=$2
2382 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2383 $as_echo_n "checking for $ac_word... " >&6; }
2384 if test "${ac_cv_prog_AWK+set}" = set; then
2385 $as_echo_n "(cached) " >&6
2387 if test -n "$AWK"; then
2388 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2390 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2394 test -z "$as_dir" && as_dir
=.
2395 for ac_exec_ext
in '' $ac_executable_extensions; do
2396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2397 ac_cv_prog_AWK
="$ac_prog"
2398 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2408 if test -n "$AWK"; then
2409 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2410 $as_echo "$AWK" >&6; }
2412 { $as_echo "$as_me:$LINENO: result: no" >&5
2413 $as_echo "no" >&6; }
2417 test -n "$AWK" && break
2420 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2421 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2423 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2424 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2425 $as_echo_n "(cached) " >&6
2427 cat >conftest.
make <<\_ACEOF
2430 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2432 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2433 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2435 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2437 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2441 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2442 { $as_echo "$as_me:$LINENO: result: yes" >&5
2443 $as_echo "yes" >&6; }
2446 { $as_echo "$as_me:$LINENO: result: no" >&5
2447 $as_echo "no" >&6; }
2448 SET_MAKE
="MAKE=${MAKE-make}"
2451 rm -rf .tst
2>/dev
/null
2452 mkdir .tst
2>/dev
/null
2453 if test -d .tst
; then
2458 rmdir .tst
2>/dev
/null
2460 # test to see if srcdir already configured
2461 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2462 test -f $srcdir/config.status
; then
2463 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2464 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2465 { (exit 1); exit 1; }; }
2468 # test whether we have cygpath
2469 if test -z "$CYGPATH_W"; then
2470 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2471 CYGPATH_W
='cygpath -w'
2478 # Define the identity of the package.
2479 PACKAGE
='libantlr3c'
2483 cat >>confdefs.h
<<_ACEOF
2484 #define PACKAGE "$PACKAGE"
2488 cat >>confdefs.h
<<_ACEOF
2489 #define VERSION "$VERSION"
2492 # Some tools Automake needs.
2494 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2497 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2500 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2503 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2506 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2508 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
2510 # Installed binaries are usually stripped using `strip' when the user
2511 # run `make install-strip'. However `strip' might not be the right
2512 # tool to use in cross-compilation environments, therefore Automake
2513 # will honor the `STRIP' environment variable to overrule this program.
2514 if test "$cross_compiling" != no
; then
2515 if test -n "$ac_tool_prefix"; then
2516 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2517 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2518 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 $as_echo_n "checking for $ac_word... " >&6; }
2520 if test "${ac_cv_prog_STRIP+set}" = set; then
2521 $as_echo_n "(cached) " >&6
2523 if test -n "$STRIP"; then
2524 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2526 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2530 test -z "$as_dir" && as_dir
=.
2531 for ac_exec_ext
in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2534 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 STRIP
=$ac_cv_prog_STRIP
2544 if test -n "$STRIP"; then
2545 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2546 $as_echo "$STRIP" >&6; }
2548 { $as_echo "$as_me:$LINENO: result: no" >&5
2549 $as_echo "no" >&6; }
2554 if test -z "$ac_cv_prog_STRIP"; then
2556 # Extract the first word of "strip", so it can be a program name with args.
2557 set dummy strip
; ac_word
=$2
2558 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2559 $as_echo_n "checking for $ac_word... " >&6; }
2560 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2561 $as_echo_n "(cached) " >&6
2563 if test -n "$ac_ct_STRIP"; then
2564 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2570 test -z "$as_dir" && as_dir
=.
2571 for ac_exec_ext
in '' $ac_executable_extensions; do
2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573 ac_cv_prog_ac_ct_STRIP
="strip"
2574 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2584 if test -n "$ac_ct_STRIP"; then
2585 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2586 $as_echo "$ac_ct_STRIP" >&6; }
2588 { $as_echo "$as_me:$LINENO: result: no" >&5
2589 $as_echo "no" >&6; }
2592 if test "x$ac_ct_STRIP" = x
; then
2595 case $cross_compiling:$ac_tool_warned in
2597 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2599 ac_tool_warned
=yes ;;
2604 STRIP
="$ac_cv_prog_STRIP"
2608 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
2610 # We need awk for the "check" target. The system "awk" is bad on
2612 # Always define AMTAR for backward compatibility.
2614 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2616 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2623 ac_cpp
='$CPP $CPPFLAGS'
2624 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2625 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2626 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2629 ac_cpp
='$CPP $CPPFLAGS'
2630 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2631 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2632 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2633 if test -n "$ac_tool_prefix"; then
2634 for ac_prog
in xlc aCC gcc cc
2636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2637 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2638 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2639 $as_echo_n "checking for $ac_word... " >&6; }
2640 if test "${ac_cv_prog_CC+set}" = set; then
2641 $as_echo_n "(cached) " >&6
2643 if test -n "$CC"; then
2644 ac_cv_prog_CC
="$CC" # Let the user override the test.
2646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2650 test -z "$as_dir" && as_dir
=.
2651 for ac_exec_ext
in '' $ac_executable_extensions; do
2652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2653 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2654 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 if test -n "$CC"; then
2665 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2666 $as_echo "$CC" >&6; }
2668 { $as_echo "$as_me:$LINENO: result: no" >&5
2669 $as_echo "no" >&6; }
2673 test -n "$CC" && break
2676 if test -z "$CC"; then
2678 for ac_prog
in xlc aCC gcc cc
2680 # Extract the first word of "$ac_prog", so it can be a program name with args.
2681 set dummy
$ac_prog; ac_word
=$2
2682 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 $as_echo_n "checking for $ac_word... " >&6; }
2684 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2685 $as_echo_n "(cached) " >&6
2687 if test -n "$ac_ct_CC"; then
2688 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir
=.
2695 for ac_exec_ext
in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 ac_cv_prog_ac_ct_CC
="$ac_prog"
2698 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2708 if test -n "$ac_ct_CC"; then
2709 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2710 $as_echo "$ac_ct_CC" >&6; }
2712 { $as_echo "$as_me:$LINENO: result: no" >&5
2713 $as_echo "no" >&6; }
2717 test -n "$ac_ct_CC" && break
2720 if test "x$ac_ct_CC" = x
; then
2723 case $cross_compiling:$ac_tool_warned in
2725 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2727 ac_tool_warned
=yes ;;
2734 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2736 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2737 See \`config.log' for more details." >&5
2738 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2739 See \`config.log' for more details." >&2;}
2740 { (exit 1); exit 1; }; }; }
2742 # Provide some information about the compiler.
2743 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2746 { (ac_try
="$ac_compiler --version >&5"
2748 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2752 $as_echo "$ac_try_echo") >&5
2753 (eval "$ac_compiler --version >&5") 2>&5
2755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }
2757 { (ac_try="$ac_compiler -v >&5"
2759 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2760 *) ac_try_echo
=$ac_try;;
2762 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2763 $as_echo "$ac_try_echo") >&5
2764 (eval "$ac_compiler -v >&5") 2>&5
2766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }
2768 { (ac_try
="$ac_compiler -V >&5"
2770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2774 $as_echo "$ac_try_echo") >&5
2775 (eval "$ac_compiler -V >&5") 2>&5
2777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }
2780 cat >conftest.$ac_ext <<_ACEOF
2783 cat confdefs.h >>conftest.$ac_ext
2784 cat >>conftest.$ac_ext <<_ACEOF
2785 /* end confdefs.h. */
2795 ac_clean_files_save=$ac_clean_files
2796 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2797 # Try to create an executable without -o first, disregard a.out.
2798 # It will help us diagnose broken compilers, and finding out an intuition
2800 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2801 $as_echo_n "checking for C compiler default output file name... " >&6; }
2802 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2804 # The possible output files:
2805 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2808 for ac_file in $ac_files
2811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2812 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2817 if { (ac_try="$ac_link_default"
2819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2820 *) ac_try_echo
=$ac_try;;
2822 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2823 $as_echo "$ac_try_echo") >&5
2824 (eval "$ac_link_default") 2>&5
2826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; then
2828 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2829 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2830 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2831 # so that the user can short-circuit this test for compilers unknown to
2833 for ac_file
in $ac_files ''
2835 test -f "$ac_file" ||
continue
2837 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2840 # We found the default executable, but exeext='' is most
2844 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2846 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2848 # We set ac_cv_exeext here because the later test for it is not
2849 # safe: cross compilers may not add the suffix if given an `-o'
2850 # argument, so we may need to know it at that point already.
2851 # Even if this section looks crufty: it has the advantage of
2858 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2864 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2865 $as_echo "$ac_file" >&6; }
2866 if test -z "$ac_file"; then
2867 $as_echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.
$ac_ext >&5
2870 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2872 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2873 See \`config.log' for more details." >&5
2874 $as_echo "$as_me: error: C compiler cannot create executables
2875 See \`config.log' for more details." >&2;}
2876 { (exit 77); exit 77; }; }; }
2879 ac_exeext
=$ac_cv_exeext
2881 # Check that the compiler produces executables we can run. If not, either
2882 # the compiler is broken, or we cross compile.
2883 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2884 $as_echo_n "checking whether the C compiler works... " >&6; }
2885 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2886 # If not cross compiling, check that we can run a simple program.
2887 if test "$cross_compiling" != yes; then
2888 if { ac_try
='./$ac_file'
2889 { (case "(($ac_try" in
2890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2894 $as_echo "$ac_try_echo") >&5
2895 (eval "$ac_try") 2>&5
2897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; }; then
2901 if test "$cross_compiling" = maybe; then
2904 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2906 { { $as_echo "$as_me:$LINENO: error
: cannot run C compiled programs.
2907 If you meant to cross compile
, use \
`--host'.
2908 See \`config.log
' for more details." >&5
2909 $as_echo "$as_me: error: cannot run C compiled programs.
2910 If you meant to cross compile, use \`--host'.
2911 See \
`config.log' for more details." >&2;}
2912 { (exit 1); exit 1; }; }; }
2916 { $as_echo "$as_me:$LINENO: result: yes" >&5
2917 $as_echo "yes" >&6; }
2919 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2920 ac_clean_files=$ac_clean_files_save
2921 # Check that the compiler produces executables we can run. If not, either
2922 # the compiler is broken, or we cross compile.
2923 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2924 $as_echo_n "checking whether we are cross compiling... " >&6; }
2925 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2926 $as_echo "$cross_compiling" >&6; }
2928 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2929 $as_echo_n "checking for suffix of executables... " >&6; }
2930 if { (ac_try="$ac_link"
2932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2933 *) ac_try_echo
=$ac_try;;
2935 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2936 $as_echo "$ac_try_echo") >&5
2937 (eval "$ac_link") 2>&5
2939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }; then
2941 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2942 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2943 # work properly (i.e., refer to `conftest.exe'), while it won't with
2945 for ac_file
in conftest.exe conftest conftest.
*; do
2946 test -f "$ac_file" ||
continue
2948 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2949 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2955 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2957 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2958 See \`config.log' for more details." >&5
2959 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2960 See \`config.log' for more details." >&2;}
2961 { (exit 1); exit 1; }; }; }
2964 rm -f conftest
$ac_cv_exeext
2965 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2966 $as_echo "$ac_cv_exeext" >&6; }
2968 rm -f conftest.
$ac_ext
2969 EXEEXT
=$ac_cv_exeext
2971 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2972 $as_echo_n "checking for suffix of object files... " >&6; }
2973 if test "${ac_cv_objext+set}" = set; then
2974 $as_echo_n "(cached) " >&6
2976 cat >conftest.
$ac_ext <<_ACEOF
2979 cat confdefs.h
>>conftest.
$ac_ext
2980 cat >>conftest.
$ac_ext <<_ACEOF
2981 /* end confdefs.h. */
2991 rm -f conftest.o conftest.obj
2992 if { (ac_try
="$ac_compile"
2994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2998 $as_echo "$ac_try_echo") >&5
2999 (eval "$ac_compile") 2>&5
3001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; then
3003 for ac_file in conftest.o conftest.obj conftest.*; do
3004 test -f "$ac_file" || continue;
3006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3007 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3012 $as_echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3015 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3017 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of object files
: cannot compile
3018 See \
`config.log' for more details." >&5
3019 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3020 See \`config.log
' for more details." >&2;}
3021 { (exit 1); exit 1; }; }; }
3024 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3026 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3027 $as_echo "$ac_cv_objext" >&6; }
3028 OBJEXT=$ac_cv_objext
3030 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3031 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3032 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3033 $as_echo_n "(cached) " >&6
3035 cat >conftest.$ac_ext <<_ACEOF
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h. */
3053 rm -f conftest.$ac_objext
3054 if { (ac_try="$ac_compile"
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3060 $as_echo "$ac_try_echo") >&5
3061 (eval "$ac_compile") 2>conftest.er1
3063 grep -v '^
*+' conftest.er1 >conftest.err
3065 cat conftest.err >&5
3066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); } && {
3068 test -z "$ac_c_werror_flag" ||
3069 test ! -s conftest.err
3070 } && test -s conftest.$ac_objext; then
3073 $as_echo "$as_me: failed program was:" >&5
3074 sed 's
/^
/|
/' conftest.$ac_ext >&5
3079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3080 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3083 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3084 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3085 if test $ac_compiler_gnu = yes; then
3090 ac_test_CFLAGS=${CFLAGS+set}
3091 ac_save_CFLAGS=$CFLAGS
3092 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3093 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3094 if test "${ac_cv_prog_cc_g+set}" = set; then
3095 $as_echo_n "(cached) " >&6
3097 ac_save_c_werror_flag=$ac_c_werror_flag
3098 ac_c_werror_flag=yes
3101 cat >conftest.$ac_ext <<_ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3116 rm -f conftest.$ac_objext
3117 if { (ac_try="$ac_compile"
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3123 $as_echo "$ac_try_echo") >&5
3124 (eval "$ac_compile") 2>conftest.er1
3126 grep -v '^
*+' conftest.er1 >conftest.err
3128 cat conftest.err >&5
3129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); } && {
3131 test -z "$ac_c_werror_flag" ||
3132 test ! -s conftest.err
3133 } && test -s conftest.$ac_objext; then
3136 $as_echo "$as_me: failed program was:" >&5
3137 sed 's
/^
/|
/' conftest.$ac_ext >&5
3140 cat >conftest.$ac_ext <<_ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3155 rm -f conftest.$ac_objext
3156 if { (ac_try="$ac_compile"
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3162 $as_echo "$ac_try_echo") >&5
3163 (eval "$ac_compile") 2>conftest.er1
3165 grep -v '^
*+' conftest.er1 >conftest.err
3167 cat conftest.err >&5
3168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); } && {
3170 test -z "$ac_c_werror_flag" ||
3171 test ! -s conftest.err
3172 } && test -s conftest.$ac_objext; then
3175 $as_echo "$as_me: failed program was:" >&5
3176 sed 's
/^
/|
/' conftest.$ac_ext >&5
3178 ac_c_werror_flag=$ac_save_c_werror_flag
3180 cat >conftest.$ac_ext <<_ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3195 rm -f conftest.$ac_objext
3196 if { (ac_try="$ac_compile"
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3202 $as_echo "$ac_try_echo") >&5
3203 (eval "$ac_compile") 2>conftest.er1
3205 grep -v '^
*+' conftest.er1 >conftest.err
3207 cat conftest.err >&5
3208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); } && {
3210 test -z "$ac_c_werror_flag" ||
3211 test ! -s conftest.err
3212 } && test -s conftest.$ac_objext; then
3215 $as_echo "$as_me: failed program was:" >&5
3216 sed 's
/^
/|
/' conftest.$ac_ext >&5
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 ac_c_werror_flag=$ac_save_c_werror_flag
3230 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3231 $as_echo "$ac_cv_prog_cc_g" >&6; }
3232 if test "$ac_test_CFLAGS" = set; then
3233 CFLAGS=$ac_save_CFLAGS
3234 elif test $ac_cv_prog_cc_g = yes; then
3235 if test "$GCC" = yes; then
3241 if test "$GCC" = yes; then
3247 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3248 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3249 if test "${ac_cv_prog_cc_c89+set}" = set; then
3250 $as_echo_n "(cached) " >&6
3252 ac_cv_prog_cc_c89=no
3254 cat >conftest.$ac_ext <<_ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3262 #include <sys/types.h>
3263 #include <sys/stat.h>
3264 /* Most of the following tests are stolen from RCS 5.7's src
/conf.sh.
*/
3265 struct buf
{ int x
; };
3266 FILE
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
3267 static char
*e
(p
, i
)
3273 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
3278 s
= g
(p
, va_arg
(v
,int
));
3283 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
3284 function prototypes and stuff
, but not
'\xHH' hex character constants.
3285 These don
't provoke an error unfortunately, instead are silently treated
3286 as 'x
'. The following induces an error, until -std is added to get
3287 proper ANSI mode. Curiously '\x00'!='x
' always comes out true, for an
3288 array size at least. It's necessary to
write '\x00'==0 to get something
3289 that
's true only with -std. */
3290 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3292 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3293 inside strings and character constants. */
3295 int xlc6_cc_array[FOO(a) == 'x
' ? 1 : -1];
3297 int test (int i, double x);
3298 struct s1 {int (*f) (int a);};
3299 struct s2 {int (*f) (double a);};
3300 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3306 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3311 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3312 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3314 CC="$ac_save_CC $ac_arg"
3315 rm -f conftest.$ac_objext
3316 if { (ac_try="$ac_compile"
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3322 $as_echo "$ac_try_echo") >&5
3323 (eval "$ac_compile") 2>conftest.er1
3325 grep -v '^
*+' conftest.er1 >conftest.err
3327 cat conftest.err >&5
3328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } && {
3330 test -z "$ac_c_werror_flag" ||
3331 test ! -s conftest.err
3332 } && test -s conftest.$ac_objext; then
3333 ac_cv_prog_cc_c89=$ac_arg
3335 $as_echo "$as_me: failed program was:" >&5
3336 sed 's
/^
/|
/' conftest.$ac_ext >&5
3341 rm -f core conftest.err conftest.$ac_objext
3342 test "x$ac_cv_prog_cc_c89" != "xno" && break
3344 rm -f conftest.$ac_ext
3349 case "x$ac_cv_prog_cc_c89" in
3351 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3352 $as_echo "none needed" >&6; } ;;
3354 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3355 $as_echo "unsupported" >&6; } ;;
3357 CC="$CC $ac_cv_prog_cc_c89"
3358 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3359 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3364 ac_cpp='$CPP $CPPFLAGS'
3365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3366 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3368 DEPDIR="${am__leading_dot}deps"
3370 ac_config_commands="$ac_config_commands depfiles"
3373 am_make=${MAKE-make}
3374 cat > confinc << 'END
'
3379 # If we don't
find an include directive
, just comment out the code.
3380 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3381 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3385 # First try GNU make style include.
3386 echo "include confinc" > confmf
3387 # We grep out `Entering directory' and `Leaving directory'
3388 # messages which can occur if `w' ends up in MAKEFLAGS.
3389 # In particular we don't look at `^make:' because GNU make might
3390 # be invoked under some other name (usually "gmake"), in which
3391 # case it prints its new name instead of `make'.
3392 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3397 # Now try BSD make style include.
3398 if test "$am__include" = "#"; then
3399 echo '.include "confinc"' > confmf
3400 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3401 am__include
=.include
3408 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3409 $as_echo "$_am_result" >&6; }
3410 rm -f confinc confmf
3412 # Check whether --enable-dependency-tracking was given.
3413 if test "${enable_dependency_tracking+set}" = set; then
3414 enableval
=$enable_dependency_tracking;
3417 if test "x$enable_dependency_tracking" != xno
; then
3418 am_depcomp
="$ac_aux_dir/depcomp"
3423 if test "x$enable_dependency_tracking" != xno; then
3434 depcc
="$CC" am_compiler_list
=
3436 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3437 $as_echo_n "checking dependency style of $depcc... " >&6; }
3438 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3439 $as_echo_n "(cached) " >&6
3441 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3442 # We make a subdir and do the tests there. Otherwise we can end up
3443 # making bogus files that we don't know about and never remove. For
3444 # instance it was reported that on HP-UX the gcc test will end up
3445 # making a dummy file named `D' -- because `-MD' means `put the output
3448 # Copy depcomp to subdir because otherwise we won't find it if we're
3449 # using a relative directory.
3450 cp "$am_depcomp" conftest.dir
3452 # We will build objects and dependencies in a subdirectory because
3453 # it helps to detect inapplicable dependency modes. For instance
3454 # both Tru64's cc and ICC support -MD to output dependencies as a
3455 # side effect of compilation, but ICC will put the dependencies in
3456 # the current directory while Tru64 will put them in the object
3460 am_cv_CC_dependencies_compiler_type
=none
3461 if test "$am_compiler_list" = ""; then
3462 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3464 for depmode
in $am_compiler_list; do
3465 # Setup a source with many dependencies, because some compilers
3466 # like to wrap large dependency lists on column 80 (with \), and
3467 # we should not choose a depcomp mode which is confused by this.
3469 # We need to recreate these files for each test, as the compiler may
3470 # overwrite some of them when testing with obscure command lines.
3471 # This happens at least with the AIX C compiler.
3473 for i
in 1 2 3 4 5 6; do
3474 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3475 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3476 # Solaris 8's {/usr,}/bin/sh.
3477 touch sub
/conftst
$i.h
3479 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3483 # after this tag, mechanisms are not by side-effect, so they'll
3484 # only be used when explicitly requested
3485 if test "x$enable_dependency_tracking" = xyes
; then
3493 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3494 # mode. It turns out that the SunPro C++ compiler does not properly
3495 # handle `-M -o', and we need to detect this.
3496 if depmode
=$depmode \
3497 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3498 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3499 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3500 >/dev
/null
2>conftest.err
&&
3501 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3502 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3503 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3504 # icc doesn't choke on unknown options, it will just issue warnings
3505 # or remarks (even with -Werror). So we grep stderr for any message
3506 # that says an option was ignored or not supported.
3507 # When given -MP, icc 7.0 and 7.1 complain thusly:
3508 # icc: Command line warning: ignoring option '-M'; no argument required
3509 # The diagnosis changed in icc 8.0:
3510 # icc: Command line remark: option '-MP' not supported
3511 if (grep 'ignoring option' conftest.err ||
3512 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3513 am_cv_CC_dependencies_compiler_type
=$depmode
3522 am_cv_CC_dependencies_compiler_type
=none
3526 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3527 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3528 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3533 test "x$enable_dependency_tracking" != xno \
3534 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3536 am__fastdepCC_FALSE
='#'
3538 am__fastdepCC_TRUE
='#'
3539 am__fastdepCC_FALSE
=
3543 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3544 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3545 # Check whether --enable-maintainer-mode was given.
3546 if test "${enable_maintainer_mode+set}" = set; then
3547 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3549 USE_MAINTAINER_MODE
=no
3552 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3553 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3556 if test $USE_MAINTAINER_MODE = yes; then
3557 MAINTAINER_MODE_TRUE
=
3558 MAINTAINER_MODE_FALSE
='#'
3560 MAINTAINER_MODE_TRUE
='#'
3561 MAINTAINER_MODE_FALSE
=
3564 MAINT
=$MAINTAINER_MODE_TRUE
3567 # Check whether --enable-shared was given.
3568 if test "${enable_shared+set}" = set; then
3569 enableval
=$enable_shared; p
=${PACKAGE-default}
3571 yes) enable_shared
=yes ;;
3572 no
) enable_shared
=no
;;
3575 # Look at the argument we got. We use all the common list separators.
3576 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3577 for pkg
in $enableval; do
3579 if test "X$pkg" = "X$p"; then
3591 # Check whether --enable-static was given.
3592 if test "${enable_static+set}" = set; then
3593 enableval
=$enable_static; p
=${PACKAGE-default}
3595 yes) enable_static
=yes ;;
3596 no
) enable_static
=no
;;
3599 # Look at the argument we got. We use all the common list separators.
3600 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3601 for pkg
in $enableval; do
3603 if test "X$pkg" = "X$p"; then
3615 # Check whether --enable-fast-install was given.
3616 if test "${enable_fast_install+set}" = set; then
3617 enableval
=$enable_fast_install; p
=${PACKAGE-default}
3619 yes) enable_fast_install
=yes ;;
3620 no
) enable_fast_install
=no
;;
3622 enable_fast_install
=no
3623 # Look at the argument we got. We use all the common list separators.
3624 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3625 for pkg
in $enableval; do
3627 if test "X$pkg" = "X$p"; then
3628 enable_fast_install
=yes
3635 enable_fast_install
=yes
3639 # Make sure we can run config.sub.
3640 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3641 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3642 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3643 { (exit 1); exit 1; }; }
3645 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3646 $as_echo_n "checking build system type... " >&6; }
3647 if test "${ac_cv_build+set}" = set; then
3648 $as_echo_n "(cached) " >&6
3650 ac_build_alias
=$build_alias
3651 test "x$ac_build_alias" = x
&&
3652 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3653 test "x$ac_build_alias" = x
&&
3654 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3655 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3656 { (exit 1); exit 1; }; }
3657 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3658 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3659 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3660 { (exit 1); exit 1; }; }
3663 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3664 $as_echo "$ac_cv_build" >&6; }
3665 case $ac_cv_build in
3667 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3668 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3669 { (exit 1); exit 1; }; };;
3672 ac_save_IFS
=$IFS; IFS
='-'
3678 # Remember, the first character of IFS is used to create $*,
3679 # except with old shells:
3682 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3685 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3686 $as_echo_n "checking host system type... " >&6; }
3687 if test "${ac_cv_host+set}" = set; then
3688 $as_echo_n "(cached) " >&6
3690 if test "x$host_alias" = x
; then
3691 ac_cv_host
=$ac_cv_build
3693 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3694 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3695 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3696 { (exit 1); exit 1; }; }
3700 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3701 $as_echo "$ac_cv_host" >&6; }
3704 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3705 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3706 { (exit 1); exit 1; }; };;
3709 ac_save_IFS
=$IFS; IFS
='-'
3715 # Remember, the first character of IFS is used to create $*,
3716 # except with old shells:
3719 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3722 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3723 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3724 if test "${lt_cv_path_SED+set}" = set; then
3725 $as_echo_n "(cached) " >&6
3727 # Loop through the user's path and test for sed and gsed.
3728 # Then use that list of sed's as ones to test for truncation.
3729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3733 test -z "$as_dir" && as_dir
=.
3734 for lt_ac_prog
in sed gsed
; do
3735 for ac_exec_ext
in '' $ac_executable_extensions; do
3736 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3737 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3745 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3746 # along with /bin/sed that truncates output.
3747 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
3748 test ! -f $lt_ac_sed && continue
3749 cat /dev
/null
> conftest.
in
3751 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
3752 # Check for GNU sed and select it if it is found.
3753 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
3754 lt_cv_path_SED
=$lt_ac_sed
3758 cat conftest.
in conftest.
in >conftest.tmp
3759 mv conftest.tmp conftest.
in
3760 cp conftest.
in conftest.
nl
3762 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
3763 cmp -s conftest.out conftest.
nl ||
break
3764 # 10000 chars as input seems more than enough
3765 test $lt_ac_count -gt 10 && break
3766 lt_ac_count
=`expr $lt_ac_count + 1`
3767 if test $lt_ac_count -gt $lt_ac_max; then
3768 lt_ac_max
=$lt_ac_count
3769 lt_cv_path_SED
=$lt_ac_sed
3778 { $as_echo "$as_me:$LINENO: result: $SED" >&5
3779 $as_echo "$SED" >&6; }
3781 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3782 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3783 if test "${ac_cv_path_GREP+set}" = set; then
3784 $as_echo_n "(cached) " >&6
3786 if test -z "$GREP"; then
3787 ac_path_GREP_found
=false
3788 # Loop through the user's path and test for each of PROGNAME-LIST
3789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3790 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3793 test -z "$as_dir" && as_dir
=.
3794 for ac_prog
in grep ggrep
; do
3795 for ac_exec_ext
in '' $ac_executable_extensions; do
3796 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3797 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3798 # Check for GNU ac_path_GREP and select it if it is found.
3799 # Check for GNU $ac_path_GREP
3800 case `"$ac_path_GREP" --version 2>&1` in
3802 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3805 $as_echo_n 0123456789 >"conftest.in"
3808 cat "conftest.in" "conftest.in" >"conftest.tmp"
3809 mv "conftest.tmp" "conftest.in"
3810 cp "conftest.in" "conftest.nl"
3811 $as_echo 'GREP' >> "conftest.nl"
3812 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3813 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3814 ac_count
=`expr $ac_count + 1`
3815 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3816 # Best one so far, save it but keep looking for a better one
3817 ac_cv_path_GREP
="$ac_path_GREP"
3818 ac_path_GREP_max
=$ac_count
3820 # 10*(2^10) chars as input seems more than enough
3821 test $ac_count -gt 10 && break
3823 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3826 $ac_path_GREP_found && break 3
3831 if test -z "$ac_cv_path_GREP"; then
3832 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3833 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3834 { (exit 1); exit 1; }; }
3837 ac_cv_path_GREP
=$GREP
3841 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3842 $as_echo "$ac_cv_path_GREP" >&6; }
3843 GREP
="$ac_cv_path_GREP"
3846 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3847 $as_echo_n "checking for egrep... " >&6; }
3848 if test "${ac_cv_path_EGREP+set}" = set; then
3849 $as_echo_n "(cached) " >&6
3851 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3852 then ac_cv_path_EGREP
="$GREP -E"
3854 if test -z "$EGREP"; then
3855 ac_path_EGREP_found
=false
3856 # Loop through the user's path and test for each of PROGNAME-LIST
3857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3858 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3861 test -z "$as_dir" && as_dir
=.
3862 for ac_prog
in egrep; do
3863 for ac_exec_ext
in '' $ac_executable_extensions; do
3864 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3865 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3866 # Check for GNU ac_path_EGREP and select it if it is found.
3867 # Check for GNU $ac_path_EGREP
3868 case `"$ac_path_EGREP" --version 2>&1` in
3870 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3873 $as_echo_n 0123456789 >"conftest.in"
3876 cat "conftest.in" "conftest.in" >"conftest.tmp"
3877 mv "conftest.tmp" "conftest.in"
3878 cp "conftest.in" "conftest.nl"
3879 $as_echo 'EGREP' >> "conftest.nl"
3880 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3881 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3882 ac_count
=`expr $ac_count + 1`
3883 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3884 # Best one so far, save it but keep looking for a better one
3885 ac_cv_path_EGREP
="$ac_path_EGREP"
3886 ac_path_EGREP_max
=$ac_count
3888 # 10*(2^10) chars as input seems more than enough
3889 test $ac_count -gt 10 && break
3891 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3894 $ac_path_EGREP_found && break 3
3899 if test -z "$ac_cv_path_EGREP"; then
3900 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3901 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3902 { (exit 1); exit 1; }; }
3905 ac_cv_path_EGREP
=$EGREP
3910 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3911 $as_echo "$ac_cv_path_EGREP" >&6; }
3912 EGREP
="$ac_cv_path_EGREP"
3916 # Check whether --with-gnu-ld was given.
3917 if test "${with_gnu_ld+set}" = set; then
3918 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
3924 if test "$GCC" = yes; then
3925 # Check if gcc -print-prog-name=ld gives a path.
3926 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3927 $as_echo_n "checking for ld used by $CC... " >&6; }
3930 # gcc leaves a trailing carriage return which upsets mingw
3931 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3933 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
3936 # Accept absolute paths.
3938 re_direlt
='/[^/][^/]*/\.\./'
3939 # Canonicalize the pathname of ld
3940 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
3941 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
3942 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3944 test -z "$LD" && LD
="$ac_prog"
3947 # If it fails, then pretend we aren't using GCC.
3951 # If it is relative, then search for the first ld in PATH.
3955 elif test "$with_gnu_ld" = yes; then
3956 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3957 $as_echo_n "checking for GNU ld... " >&6; }
3959 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3960 $as_echo_n "checking for non-GNU ld... " >&6; }
3962 if test "${lt_cv_path_LD+set}" = set; then
3963 $as_echo_n "(cached) " >&6
3965 if test -z "$LD"; then
3966 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3967 for ac_dir
in $PATH; do
3969 test -z "$ac_dir" && ac_dir
=.
3970 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
3971 lt_cv_path_LD
="$ac_dir/$ac_prog"
3972 # Check to see if the program is GNU ld. I'd rather use --version,
3973 # but apparently some variants of GNU ld only accept -v.
3974 # Break only if it was the GNU/non-GNU ld that we prefer.
3975 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3976 *GNU
* |
*'with BFD'*)
3977 test "$with_gnu_ld" != no
&& break
3980 test "$with_gnu_ld" != yes && break
3987 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
3992 if test -n "$LD"; then
3993 { $as_echo "$as_me:$LINENO: result: $LD" >&5
3994 $as_echo "$LD" >&6; }
3996 { $as_echo "$as_me:$LINENO: result: no" >&5
3997 $as_echo "no" >&6; }
3999 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4000 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4001 { (exit 1); exit 1; }; }
4002 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4003 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4004 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4005 $as_echo_n "(cached) " >&6
4007 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4008 case `$LD -v 2>&1 </dev/null` in
4009 *GNU
* |
*'with BFD'*)
4010 lt_cv_prog_gnu_ld
=yes
4013 lt_cv_prog_gnu_ld
=no
4017 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4018 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4019 with_gnu_ld
=$lt_cv_prog_gnu_ld
4022 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4023 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4024 if test "${lt_cv_ld_reload_flag+set}" = set; then
4025 $as_echo_n "(cached) " >&6
4027 lt_cv_ld_reload_flag
='-r'
4029 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4030 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4031 reload_flag
=$lt_cv_ld_reload_flag
4032 case $reload_flag in
4034 *) reload_flag
=" $reload_flag" ;;
4036 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
4039 if test "$GCC" = yes; then
4040 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4042 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
4047 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4048 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4049 if test "${lt_cv_path_NM+set}" = set; then
4050 $as_echo_n "(cached) " >&6
4052 if test -n "$NM"; then
4053 # Let the user override the test.
4056 lt_nm_to_check
="${ac_tool_prefix}nm"
4057 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4058 lt_nm_to_check
="$lt_nm_to_check nm"
4060 for lt_tmp_nm
in $lt_nm_to_check; do
4061 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4062 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4064 test -z "$ac_dir" && ac_dir
=.
4065 tmp_nm
="$ac_dir/$lt_tmp_nm"
4066 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4067 # Check to see if the nm accepts a BSD-compat flag.
4068 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4069 # nm: unknown option "B" ignored
4070 # Tru64's nm complains that /dev/null is an invalid object file
4071 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4072 */dev
/null
* |
*'Invalid file or object type'*)
4073 lt_cv_path_NM
="$tmp_nm -B"
4077 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4079 lt_cv_path_NM
="$tmp_nm -p"
4083 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4084 continue # so that we can try to find one that supports BSD flags
4093 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
4096 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4097 $as_echo "$lt_cv_path_NM" >&6; }
4100 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4101 $as_echo_n "checking whether ln -s works... " >&6; }
4103 if test "$LN_S" = "ln -s"; then
4104 { $as_echo "$as_me:$LINENO: result: yes" >&5
4105 $as_echo "yes" >&6; }
4107 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4108 $as_echo "no, using $LN_S" >&6; }
4111 { $as_echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4112 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
4113 if test "${lt_cv_deplibs_check_method+set}" = set; then
4114 $as_echo_n "(cached) " >&6
4116 lt_cv_file_magic_cmd
='$MAGIC_CMD'
4117 lt_cv_file_magic_test_file
=
4118 lt_cv_deplibs_check_method
='unknown'
4119 # Need to set the preceding variable on all platforms that support
4120 # interlibrary dependencies.
4121 # 'none' -- dependencies not supported.
4122 # `unknown' -- same as none, but documents that we really don't know.
4123 # 'pass_all' -- all dependencies passed with no checks.
4124 # 'test_compile' -- check by making test program.
4125 # 'file_magic [[regex]]' -- check by looking for files in library path
4126 # which responds to the $file_magic_cmd with a given extended regex.
4127 # If you have `file' or equivalent on your system and you're not sure
4128 # whether `pass_all' will *always* work, you probably want this one.
4132 lt_cv_deplibs_check_method
=pass_all
4136 lt_cv_deplibs_check_method
=pass_all
4140 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4141 lt_cv_file_magic_cmd
='/usr/bin/file -L'
4142 lt_cv_file_magic_test_file
=/shlib
/libc.so
4146 # func_win32_libid is a shell function defined in ltmain.sh
4147 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
4148 lt_cv_file_magic_cmd
='func_win32_libid'
4152 # Base MSYS/MinGW do not provide the 'file' command needed by
4153 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4154 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
4155 lt_cv_file_magic_cmd
='$OBJDUMP -f'
4158 darwin
* | rhapsody
*)
4159 lt_cv_deplibs_check_method
=pass_all
4162 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
4163 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4166 # Not sure whether the presence of OpenBSD here was a mistake.
4167 # Let's accept both of them until this is cleared up.
4168 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4169 lt_cv_file_magic_cmd
=/usr
/bin
/file
4170 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
4174 lt_cv_deplibs_check_method
=pass_all
4179 lt_cv_deplibs_check_method
=pass_all
4182 hpux10.20
* | hpux11
*)
4183 lt_cv_file_magic_cmd
=/usr
/bin
/file
4186 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4187 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
4190 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]'
4191 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
4194 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4195 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
4201 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4202 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
4205 irix5
* | irix6
* | nonstopux
*)
4207 *-32|
*"-32 ") libmagic
=32-bit;;
4208 *-n32|
*"-n32 ") libmagic
=N32
;;
4209 *-64|
*"-64 ") libmagic
=64-bit;;
4210 *) libmagic
=never-match
;;
4212 lt_cv_deplibs_check_method
=pass_all
4215 # This must be Linux ELF.
4217 lt_cv_deplibs_check_method
=pass_all
4221 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4222 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4224 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4229 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4230 lt_cv_file_magic_cmd
=/usr
/bin
/file
4231 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
4235 lt_cv_deplibs_check_method
=unknown
4239 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4240 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4242 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4246 osf3
* | osf4
* | osf5
*)
4247 lt_cv_deplibs_check_method
=pass_all
4251 lt_cv_deplibs_check_method
=pass_all
4255 case $host_vendor in
4257 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]'
4258 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
4261 lt_cv_deplibs_check_method
=pass_all
4264 lt_cv_file_magic_cmd
='/bin/file'
4265 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4268 lt_cv_file_magic_cmd
='/bin/file'
4269 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4270 lt_cv_file_magic_test_file
=/lib
/libc.so
4273 lt_cv_deplibs_check_method
=pass_all
4276 lt_cv_deplibs_check_method
=pass_all
4281 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
4282 lt_cv_deplibs_check_method
=pass_all
4287 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4288 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4289 file_magic_cmd
=$lt_cv_file_magic_cmd
4290 deplibs_check_method
=$lt_cv_deplibs_check_method
4291 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
4296 # If no C compiler was specified, use CC.
4299 # If no C compiler flags were specified, use CFLAGS.
4300 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
4302 # Allow CC to be a program name with arguments.
4306 # Check whether --enable-libtool-lock was given.
4307 if test "${enable_libtool_lock+set}" = set; then
4308 enableval
=$enable_libtool_lock;
4311 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
4313 # Some flags need to be propagated to the compiler or linker for good
4317 # Find out which ABI we are using.
4318 echo 'int i;' > conftest.
$ac_ext
4319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4320 (eval $ac_compile) 2>&5
4322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; then
4324 case `/usr/bin/file conftest.$ac_objext` in
4336 # Find out which ABI we are using.
4337 echo '#line 4337 "configure"' > conftest.
$ac_ext
4338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4339 (eval $ac_compile) 2>&5
4341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; then
4343 if test "$lt_cv_prog_gnu_ld" = yes; then
4344 case `/usr/bin/file conftest.$ac_objext` in
4346 LD
="${LD-ld} -melf32bsmip"
4349 LD
="${LD-ld} -melf32bmipn32"
4352 LD
="${LD-ld} -melf64bmip"
4356 case `/usr/bin/file conftest.$ac_objext` in
4372 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
4373 # Find out which ABI we are using.
4374 echo 'int i;' > conftest.
$ac_ext
4375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376 (eval $ac_compile) 2>&5
4378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; then
4380 case `/usr/bin/file conftest.o` in
4384 LD
="${LD-ld} -m elf_i386"
4386 ppc64-
*linux
*|powerpc64-
*linux
*)
4387 LD
="${LD-ld} -m elf32ppclinux"
4390 LD
="${LD-ld} -m elf_s390"
4393 LD
="${LD-ld} -m elf32_sparc"
4400 LD
="${LD-ld} -m elf_x86_64"
4402 ppc
*-*linux
*|powerpc
*-*linux
*)
4403 LD
="${LD-ld} -m elf64ppc"
4406 LD
="${LD-ld} -m elf64_s390"
4409 LD
="${LD-ld} -m elf64_sparc"
4419 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4420 SAVE_CFLAGS
="$CFLAGS"
4421 CFLAGS
="$CFLAGS -belf"
4422 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4423 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4424 if test "${lt_cv_cc_needs_belf+set}" = set; then
4425 $as_echo_n "(cached) " >&6
4428 ac_cpp
='$CPP $CPPFLAGS'
4429 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4430 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4431 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4433 cat >conftest.
$ac_ext <<_ACEOF
4436 cat confdefs.h
>>conftest.
$ac_ext
4437 cat >>conftest.
$ac_ext <<_ACEOF
4438 /* end confdefs.h. */
4448 rm -f conftest.
$ac_objext conftest
$ac_exeext
4449 if { (ac_try
="$ac_link"
4451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4455 $as_echo "$ac_try_echo") >&5
4456 (eval "$ac_link") 2>conftest.er1
4458 grep -v '^ *+' conftest.er1 >conftest.err
4460 cat conftest.err >&5
4461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); } && {
4463 test -z "$ac_c_werror_flag" ||
4464 test ! -s conftest.err
4465 } && test -s conftest$ac_exeext && {
4466 test "$cross_compiling" = yes ||
4467 $as_test_x conftest$ac_exeext
4469 lt_cv_cc_needs_belf=yes
4471 $as_echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4474 lt_cv_cc_needs_belf=no
4477 rm -rf conftest.dSYM
4478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4479 conftest$ac_exeext conftest.$ac_ext
4481 ac_cpp='$CPP $CPPFLAGS'
4482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4487 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4488 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4489 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4490 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4491 CFLAGS="$SAVE_CFLAGS"
4495 # Find out which ABI we are using.
4496 echo 'int i;' > conftest.$ac_ext
4497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4498 (eval $ac_compile) 2>&5
4500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; then
4502 case `/usr
/bin
/file conftest.o
` in
4504 case $lt_cv_prog_gnu_ld in
4505 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4506 *) LD="${LD-ld} -64" ;;
4517 need_locks="$enable_libtool_lock"
4521 ac_cpp='$CPP $CPPFLAGS'
4522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4525 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4526 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4527 # On Suns, sometimes $CPP names a directory.
4528 if test -n "$CPP" && test -d "$CPP"; then
4531 if test -z "$CPP"; then
4532 if test "${ac_cv_prog_CPP+set}" = set; then
4533 $as_echo_n "(cached) " >&6
4535 # Double quotes because CPP needs to be expanded
4536 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4539 for ac_c_preproc_warn_flag in '' yes
4541 # Use a header file that comes with gcc, so configuring glibc
4542 # with a fresh cross-compiler works.
4543 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4544 # <limits.h> exists even on freestanding compilers.
4545 # On the NeXT, cc -E runs the code through the compiler's parser,
4546 # not just through cpp. "Syntax error" is here to catch this case.
4547 cat >conftest.$ac_ext <<_ACEOF
4550 cat confdefs.h >>conftest.$ac_ext
4551 cat >>conftest.$ac_ext <<_ACEOF
4552 /* end confdefs.h. */
4554 # include <limits.h>
4556 # include <assert.h>
4560 if { (ac_try="$ac_cpp conftest.$ac_ext"
4562 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4563 *) ac_try_echo
=$ac_try;;
4565 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4566 $as_echo "$ac_try_echo") >&5
4567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4569 grep -v '^ *+' conftest.er1
>conftest.err
4571 cat conftest.err
>&5
4572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); } >/dev
/null
&& {
4574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4575 test ! -s conftest.err
4579 $as_echo "$as_me: failed program was:" >&5
4580 sed 's/^/| /' conftest.
$ac_ext >&5
4582 # Broken: fails on valid input.
4586 rm -f conftest.err conftest.
$ac_ext
4588 # OK, works on sane cases. Now check whether nonexistent headers
4589 # can be detected and how.
4590 cat >conftest.
$ac_ext <<_ACEOF
4593 cat confdefs.h
>>conftest.
$ac_ext
4594 cat >>conftest.
$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4596 #include <ac_nonexistent.h>
4598 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4600 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4604 $as_echo "$ac_try_echo") >&5
4605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4607 grep -v '^ *+' conftest.er1 >conftest.err
4609 cat conftest.err >&5
4610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); } >/dev/null && {
4612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4613 test ! -s conftest.err
4615 # Broken: success on invalid input.
4618 $as_echo "$as_me: failed program was:" >&5
4619 sed 's/^/| /' conftest.$ac_ext >&5
4621 # Passes both tests.
4626 rm -f conftest.err conftest.$ac_ext
4629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4630 rm -f conftest.err conftest.
$ac_ext
4631 if $ac_preproc_ok; then
4643 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4644 $as_echo "$CPP" >&6; }
4646 for ac_c_preproc_warn_flag
in '' yes
4648 # Use a header file that comes with gcc, so configuring glibc
4649 # with a fresh cross-compiler works.
4650 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4651 # <limits.h> exists even on freestanding compilers.
4652 # On the NeXT, cc -E runs the code through the compiler's parser,
4653 # not just through cpp. "Syntax error" is here to catch this case.
4654 cat >conftest.
$ac_ext <<_ACEOF
4657 cat confdefs.h
>>conftest.
$ac_ext
4658 cat >>conftest.
$ac_ext <<_ACEOF
4659 /* end confdefs.h. */
4661 # include <limits.h>
4663 # include <assert.h>
4667 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4669 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4670 *) ac_try_echo=$ac_try;;
4672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4673 $as_echo "$ac_try_echo") >&5
4674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4676 grep -v '^ *+' conftest.er1 >conftest.err
4678 cat conftest.err >&5
4679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); } >/dev/null && {
4681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4682 test ! -s conftest.err
4686 $as_echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4689 # Broken: fails on valid input.
4693 rm -f conftest.err conftest.$ac_ext
4695 # OK, works on sane cases. Now check whether nonexistent headers
4696 # can be detected and how.
4697 cat >conftest.$ac_ext <<_ACEOF
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h. */
4703 #include <ac_nonexistent.h>
4705 if { (ac_try="$ac_cpp conftest.$ac_ext"
4707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4708 *) ac_try_echo
=$ac_try;;
4710 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4711 $as_echo "$ac_try_echo") >&5
4712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4714 grep -v '^ *+' conftest.er1
>conftest.err
4716 cat conftest.err
>&5
4717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } >/dev
/null
&& {
4719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4720 test ! -s conftest.err
4722 # Broken: success on invalid input.
4725 $as_echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.
$ac_ext >&5
4728 # Passes both tests.
4733 rm -f conftest.err conftest.
$ac_ext
4736 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4737 rm -f conftest.err conftest.
$ac_ext
4738 if $ac_preproc_ok; then
4741 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4743 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4744 See \`config.log' for more details." >&5
4745 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4746 See \`config.log' for more details." >&2;}
4747 { (exit 1); exit 1; }; }; }
4751 ac_cpp
='$CPP $CPPFLAGS'
4752 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4753 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4754 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4757 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4758 $as_echo_n "checking for ANSI C header files... " >&6; }
4759 if test "${ac_cv_header_stdc+set}" = set; then
4760 $as_echo_n "(cached) " >&6
4762 cat >conftest.
$ac_ext <<_ACEOF
4765 cat confdefs.h
>>conftest.
$ac_ext
4766 cat >>conftest.
$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4781 rm -f conftest.
$ac_objext
4782 if { (ac_try
="$ac_compile"
4784 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4785 *) ac_try_echo=$ac_try;;
4787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4788 $as_echo "$ac_try_echo") >&5
4789 (eval "$ac_compile") 2>conftest.er1
4791 grep -v '^ *+' conftest.er1 >conftest.err
4793 cat conftest.err >&5
4794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } && {
4796 test -z "$ac_c_werror_flag" ||
4797 test ! -s conftest.err
4798 } && test -s conftest.$ac_objext; then
4799 ac_cv_header_stdc=yes
4801 $as_echo "$as_me: failed program was:" >&5
4802 sed 's/^/| /' conftest.$ac_ext >&5
4804 ac_cv_header_stdc=no
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809 if test $ac_cv_header_stdc = yes; then
4810 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4811 cat >conftest.$ac_ext <<_ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h. */
4820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4821 $EGREP "memchr" >/dev/null 2>&1; then
4824 ac_cv_header_stdc=no
4830 if test $ac_cv_header_stdc = yes; then
4831 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4832 cat >conftest.$ac_ext <<_ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4842 $EGREP "free" >/dev/null 2>&1; then
4845 ac_cv_header_stdc=no
4851 if test $ac_cv_header_stdc = yes; then
4852 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4853 if test "$cross_compiling" = yes; then
4856 cat >conftest.$ac_ext <<_ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h. */
4864 #if ((' ' & 0x0FF) == 0x020)
4865 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4866 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4868 # define ISLOWER(c) \
4869 (('a' <= (c) && (c) <= 'i') \
4870 || ('j' <= (c) && (c) <= 'r') \
4871 || ('s' <= (c) && (c) <= 'z'))
4872 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4875 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4880 for (i = 0; i < 256; i++)
4881 if (XOR (islower (i), ISLOWER (i))
4882 || toupper (i) != TOUPPER (i))
4887 rm -f conftest$ac_exeext
4888 if { (ac_try="$ac_link"
4890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4891 *) ac_try_echo
=$ac_try;;
4893 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4894 $as_echo "$ac_try_echo") >&5
4895 (eval "$ac_link") 2>&5
4897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4899 { (case "(($ac_try" in
4900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4901 *) ac_try_echo=$ac_try;;
4903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4904 $as_echo "$ac_try_echo") >&5
4905 (eval "$ac_try") 2>&5
4907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }; }; then
4911 $as_echo "$as_me: program exited with status $ac_status" >&5
4912 $as_echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4916 ac_cv_header_stdc=no
4918 rm -rf conftest.dSYM
4919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4925 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4926 $as_echo "$ac_cv_header_stdc" >&6; }
4927 if test $ac_cv_header_stdc = yes; then
4929 cat >>confdefs.h <<\_ACEOF
4930 #define STDC_HEADERS 1
4935 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4945 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4946 inttypes.h stdint.h unistd.h
4948 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4949 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4950 $as_echo_n "checking for $ac_header... " >&6; }
4951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4952 $as_echo_n "(cached) " >&6
4954 cat >conftest.$ac_ext <<_ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h. */
4960 $ac_includes_default
4962 #include <$ac_header>
4964 rm -f conftest.$ac_objext
4965 if { (ac_try="$ac_compile"
4967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4968 *) ac_try_echo
=$ac_try;;
4970 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4971 $as_echo "$ac_try_echo") >&5
4972 (eval "$ac_compile") 2>conftest.er1
4974 grep -v '^ *+' conftest.er1
>conftest.err
4976 cat conftest.err
>&5
4977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } && {
4979 test -z "$ac_c_werror_flag" ||
4980 test ! -s conftest.err
4981 } && test -s conftest.
$ac_objext; then
4982 eval "$as_ac_Header=yes"
4984 $as_echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.
$ac_ext >&5
4987 eval "$as_ac_Header=no"
4990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4992 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4993 $as_echo "$as_val"'`
4994 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4995 $as_echo "$ac_res" >&6; }
4996 as_val
=`eval 'as_val=${'$as_ac_Header'}
4997 $as_echo "$as_val"'`
4998 if test "x$as_val" = x
""yes; then
4999 cat >>confdefs.h
<<_ACEOF
5000 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5009 for ac_header
in dlfcn.h
5011 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5012 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5013 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5014 $as_echo_n "checking for $ac_header... " >&6; }
5015 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5016 $as_echo_n "(cached) " >&6
5018 ac_res
=`eval 'as_val=${'$as_ac_Header'}
5019 $as_echo "$as_val"'`
5020 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5021 $as_echo "$ac_res" >&6; }
5023 # Is the header compilable?
5024 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5025 $as_echo_n "checking $ac_header usability... " >&6; }
5026 cat >conftest.
$ac_ext <<_ACEOF
5029 cat confdefs.h
>>conftest.
$ac_ext
5030 cat >>conftest.
$ac_ext <<_ACEOF
5031 /* end confdefs.h. */
5032 $ac_includes_default
5033 #include <$ac_header>
5035 rm -f conftest.
$ac_objext
5036 if { (ac_try
="$ac_compile"
5038 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5039 *) ac_try_echo=$ac_try;;
5041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5042 $as_echo "$ac_try_echo") >&5
5043 (eval "$ac_compile") 2>conftest.er1
5045 grep -v '^ *+' conftest.er1 >conftest.err
5047 cat conftest.err >&5
5048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } && {
5050 test -z "$ac_c_werror_flag" ||
5051 test ! -s conftest.err
5052 } && test -s conftest.$ac_objext; then
5053 ac_header_compiler=yes
5055 $as_echo "$as_me: failed program was:" >&5
5056 sed 's/^/| /' conftest.$ac_ext >&5
5058 ac_header_compiler=no
5061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5062 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5063 $as_echo "$ac_header_compiler" >&6; }
5065 # Is the header present?
5066 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5067 $as_echo_n "checking $ac_header presence... " >&6; }
5068 cat >conftest.$ac_ext <<_ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h. */
5074 #include <$ac_header>
5076 if { (ac_try="$ac_cpp conftest.$ac_ext"
5078 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5079 *) ac_try_echo
=$ac_try;;
5081 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5082 $as_echo "$ac_try_echo") >&5
5083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5085 grep -v '^ *+' conftest.er1
>conftest.err
5087 cat conftest.err
>&5
5088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } >/dev
/null
&& {
5090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5091 test ! -s conftest.err
5093 ac_header_preproc
=yes
5095 $as_echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.
$ac_ext >&5
5098 ac_header_preproc
=no
5101 rm -f conftest.err conftest.
$ac_ext
5102 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5103 $as_echo "$ac_header_preproc" >&6; }
5105 # So? What about this header?
5106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5109 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5111 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5112 ac_header_preproc
=yes
5115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5116 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5118 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5120 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5122 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5124 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5126 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5128 ## ------------------------------------- ##
5129 ## Report this to jimi@temporal-wave.com ##
5130 ## ------------------------------------- ##
5132 ) |
sed "s/^/$as_me: WARNING: /" >&2
5135 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5136 $as_echo_n "checking for $ac_header... " >&6; }
5137 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5138 $as_echo_n "(cached) " >&6
5140 eval "$as_ac_Header=\$ac_header_preproc"
5142 ac_res
=`eval 'as_val=${'$as_ac_Header'}
5143 $as_echo "$as_val"'`
5144 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5145 $as_echo "$ac_res" >&6; }
5148 as_val
=`eval 'as_val=${'$as_ac_Header'}
5149 $as_echo "$as_val"'`
5150 if test "x$as_val" = x
""yes; then
5151 cat >>confdefs.h
<<_ACEOF
5152 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5160 ac_cpp
='$CXXCPP $CPPFLAGS'
5161 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5162 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5163 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5164 if test -z "$CXX"; then
5165 if test -n "$CCC"; then
5168 if test -n "$ac_tool_prefix"; then
5169 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
5171 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5172 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5173 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5174 $as_echo_n "checking for $ac_word... " >&6; }
5175 if test "${ac_cv_prog_CXX+set}" = set; then
5176 $as_echo_n "(cached) " >&6
5178 if test -n "$CXX"; then
5179 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
5181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5185 test -z "$as_dir" && as_dir
=.
5186 for ac_exec_ext
in '' $ac_executable_extensions; do
5187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5188 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
5189 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 if test -n "$CXX"; then
5200 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5201 $as_echo "$CXX" >&6; }
5203 { $as_echo "$as_me:$LINENO: result: no" >&5
5204 $as_echo "no" >&6; }
5208 test -n "$CXX" && break
5211 if test -z "$CXX"; then
5213 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
5215 # Extract the first word of "$ac_prog", so it can be a program name with args.
5216 set dummy
$ac_prog; ac_word
=$2
5217 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5218 $as_echo_n "checking for $ac_word... " >&6; }
5219 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5220 $as_echo_n "(cached) " >&6
5222 if test -n "$ac_ct_CXX"; then
5223 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
5225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5229 test -z "$as_dir" && as_dir
=.
5230 for ac_exec_ext
in '' $ac_executable_extensions; do
5231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5232 ac_cv_prog_ac_ct_CXX
="$ac_prog"
5233 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
5243 if test -n "$ac_ct_CXX"; then
5244 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5245 $as_echo "$ac_ct_CXX" >&6; }
5247 { $as_echo "$as_me:$LINENO: result: no" >&5
5248 $as_echo "no" >&6; }
5252 test -n "$ac_ct_CXX" && break
5255 if test "x$ac_ct_CXX" = x
; then
5258 case $cross_compiling:$ac_tool_warned in
5260 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5262 ac_tool_warned
=yes ;;
5270 # Provide some information about the compiler.
5271 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5274 { (ac_try
="$ac_compiler --version >&5"
5276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5277 *) ac_try_echo=$ac_try;;
5279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5280 $as_echo "$ac_try_echo") >&5
5281 (eval "$ac_compiler --version >&5") 2>&5
5283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }
5285 { (ac_try="$ac_compiler -v >&5"
5287 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5288 *) ac_try_echo
=$ac_try;;
5290 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5291 $as_echo "$ac_try_echo") >&5
5292 (eval "$ac_compiler -v >&5") 2>&5
5294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }
5296 { (ac_try
="$ac_compiler -V >&5"
5298 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5299 *) ac_try_echo=$ac_try;;
5301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5302 $as_echo "$ac_try_echo") >&5
5303 (eval "$ac_compiler -V >&5") 2>&5
5305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }
5308 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5309 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5310 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5311 $as_echo_n "(cached) " >&6
5313 cat >conftest.$ac_ext <<_ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5331 rm -f conftest.$ac_objext
5332 if { (ac_try="$ac_compile"
5334 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5335 *) ac_try_echo
=$ac_try;;
5337 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5338 $as_echo "$ac_try_echo") >&5
5339 (eval "$ac_compile") 2>conftest.er1
5341 grep -v '^ *+' conftest.er1
>conftest.err
5343 cat conftest.err
>&5
5344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } && {
5346 test -z "$ac_cxx_werror_flag" ||
5347 test ! -s conftest.err
5348 } && test -s conftest.
$ac_objext; then
5351 $as_echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.
$ac_ext >&5
5357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5358 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5361 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5362 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5363 if test $ac_compiler_gnu = yes; then
5368 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5369 ac_save_CXXFLAGS
=$CXXFLAGS
5370 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5371 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5372 if test "${ac_cv_prog_cxx_g+set}" = set; then
5373 $as_echo_n "(cached) " >&6
5375 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5376 ac_cxx_werror_flag
=yes
5379 cat >conftest.
$ac_ext <<_ACEOF
5382 cat confdefs.h
>>conftest.
$ac_ext
5383 cat >>conftest.
$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5394 rm -f conftest.
$ac_objext
5395 if { (ac_try
="$ac_compile"
5397 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5398 *) ac_try_echo=$ac_try;;
5400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5401 $as_echo "$ac_try_echo") >&5
5402 (eval "$ac_compile") 2>conftest.er1
5404 grep -v '^ *+' conftest.er1 >conftest.err
5406 cat conftest.err >&5
5407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } && {
5409 test -z "$ac_cxx_werror_flag" ||
5410 test ! -s conftest.err
5411 } && test -s conftest.$ac_objext; then
5412 ac_cv_prog_cxx_g=yes
5414 $as_echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5418 cat >conftest.$ac_ext <<_ACEOF
5421 cat confdefs.h >>conftest.$ac_ext
5422 cat >>conftest.$ac_ext <<_ACEOF
5423 /* end confdefs.h. */
5433 rm -f conftest.$ac_objext
5434 if { (ac_try="$ac_compile"
5436 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5437 *) ac_try_echo
=$ac_try;;
5439 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5440 $as_echo "$ac_try_echo") >&5
5441 (eval "$ac_compile") 2>conftest.er1
5443 grep -v '^ *+' conftest.er1
>conftest.err
5445 cat conftest.err
>&5
5446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } && {
5448 test -z "$ac_cxx_werror_flag" ||
5449 test ! -s conftest.err
5450 } && test -s conftest.
$ac_objext; then
5453 $as_echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.
$ac_ext >&5
5456 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5458 cat >conftest.
$ac_ext <<_ACEOF
5461 cat confdefs.h
>>conftest.
$ac_ext
5462 cat >>conftest.
$ac_ext <<_ACEOF
5463 /* end confdefs.h. */
5473 rm -f conftest.
$ac_objext
5474 if { (ac_try
="$ac_compile"
5476 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5477 *) ac_try_echo=$ac_try;;
5479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5480 $as_echo "$ac_try_echo") >&5
5481 (eval "$ac_compile") 2>conftest.er1
5483 grep -v '^ *+' conftest.er1 >conftest.err
5485 cat conftest.err >&5
5486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } && {
5488 test -z "$ac_cxx_werror_flag" ||
5489 test ! -s conftest.err
5490 } && test -s conftest.$ac_objext; then
5491 ac_cv_prog_cxx_g=yes
5493 $as_echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5508 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5509 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5510 if test "$ac_test_CXXFLAGS" = set; then
5511 CXXFLAGS=$ac_save_CXXFLAGS
5512 elif test $ac_cv_prog_cxx_g = yes; then
5513 if test "$GXX" = yes; then
5519 if test "$GXX" = yes; then
5526 ac_cpp='$CXXCPP $CPPFLAGS'
5527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5531 depcc="$CXX" am_compiler_list=
5533 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5534 $as_echo_n "checking dependency style of $depcc... " >&6; }
5535 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5536 $as_echo_n "(cached) " >&6
5538 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5539 # We make a subdir and do the tests there. Otherwise we can end up
5540 # making bogus files that we don't know about and never remove. For
5541 # instance it was reported that on HP-UX the gcc test will end up
5542 # making a dummy file named `D
' -- because `-MD' means
`put the output
5545 # Copy depcomp to subdir because otherwise we won't find it if we're
5546 # using a relative directory.
5547 cp "$am_depcomp" conftest.dir
5549 # We will build objects and dependencies in a subdirectory because
5550 # it helps to detect inapplicable dependency modes. For instance
5551 # both Tru64's cc and ICC support -MD to output dependencies as a
5552 # side effect of compilation, but ICC will put the dependencies in
5553 # the current directory while Tru64 will put them in the object
5557 am_cv_CXX_dependencies_compiler_type=none
5558 if test "$am_compiler_list" = ""; then
5559 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
5561 for depmode in $am_compiler_list; do
5562 # Setup a source with many dependencies, because some compilers
5563 # like to wrap large dependency lists on column 80 (with \), and
5564 # we should not choose a depcomp mode which is confused by this.
5566 # We need to recreate these files for each test, as the compiler may
5567 # overwrite some of them when testing with obscure command lines.
5568 # This happens at least with the AIX C compiler.
5570 for i in 1 2 3 4 5 6; do
5571 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5572 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
5573 # Solaris 8's
{/usr
,}/bin
/sh.
5574 touch sub
/conftst
$i.h
5576 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5580 # after this tag, mechanisms are not by side-effect, so they'll
5581 # only be used when explicitly requested
5582 if test "x$enable_dependency_tracking" = xyes
; then
5590 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5591 # mode. It turns out that the SunPro C++ compiler does not properly
5592 # handle `-M -o', and we need to detect this.
5593 if depmode
=$depmode \
5594 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
5595 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5596 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
5597 >/dev
/null
2>conftest.err
&&
5598 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5599 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
5600 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5601 # icc doesn't choke on unknown options, it will just issue warnings
5602 # or remarks (even with -Werror). So we grep stderr for any message
5603 # that says an option was ignored or not supported.
5604 # When given -MP, icc 7.0 and 7.1 complain thusly:
5605 # icc: Command line warning: ignoring option '-M'; no argument required
5606 # The diagnosis changed in icc 8.0:
5607 # icc: Command line remark: option '-MP' not supported
5608 if (grep 'ignoring option' conftest.err ||
5609 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5610 am_cv_CXX_dependencies_compiler_type
=$depmode
5619 am_cv_CXX_dependencies_compiler_type
=none
5623 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5624 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5625 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
5630 test "x$enable_dependency_tracking" != xno \
5631 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
5632 am__fastdepCXX_TRUE
=
5633 am__fastdepCXX_FALSE
='#'
5635 am__fastdepCXX_TRUE
='#'
5636 am__fastdepCXX_FALSE
=
5642 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5643 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5644 (test "X$CXX" != "Xg++"))) ; then
5646 ac_cpp
='$CXXCPP $CPPFLAGS'
5647 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5648 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5649 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5650 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5651 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5652 if test -z "$CXXCPP"; then
5653 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5654 $as_echo_n "(cached) " >&6
5656 # Double quotes because CXXCPP needs to be expanded
5657 for CXXCPP
in "$CXX -E" "/lib/cpp"
5660 for ac_cxx_preproc_warn_flag
in '' yes
5662 # Use a header file that comes with gcc, so configuring glibc
5663 # with a fresh cross-compiler works.
5664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5665 # <limits.h> exists even on freestanding compilers.
5666 # On the NeXT, cc -E runs the code through the compiler's parser,
5667 # not just through cpp. "Syntax error" is here to catch this case.
5668 cat >conftest.
$ac_ext <<_ACEOF
5671 cat confdefs.h
>>conftest.
$ac_ext
5672 cat >>conftest.
$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5675 # include <limits.h>
5677 # include <assert.h>
5681 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5687 $as_echo "$ac_try_echo") >&5
5688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5690 grep -v '^ *+' conftest.er1 >conftest.err
5692 cat conftest.err >&5
5693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } >/dev/null && {
5695 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5696 test ! -s conftest.err
5700 $as_echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5703 # Broken: fails on valid input.
5707 rm -f conftest.err conftest.$ac_ext
5709 # OK, works on sane cases. Now check whether nonexistent headers
5710 # can be detected and how.
5711 cat >conftest.$ac_ext <<_ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717 #include <ac_nonexistent.h>
5719 if { (ac_try="$ac_cpp conftest.$ac_ext"
5721 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5722 *) ac_try_echo
=$ac_try;;
5724 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5725 $as_echo "$ac_try_echo") >&5
5726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5728 grep -v '^ *+' conftest.er1
>conftest.err
5730 cat conftest.err
>&5
5731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } >/dev
/null
&& {
5733 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5734 test ! -s conftest.err
5736 # Broken: success on invalid input.
5739 $as_echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.
$ac_ext >&5
5742 # Passes both tests.
5747 rm -f conftest.err conftest.
$ac_ext
5750 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5751 rm -f conftest.err conftest.
$ac_ext
5752 if $ac_preproc_ok; then
5757 ac_cv_prog_CXXCPP
=$CXXCPP
5760 CXXCPP
=$ac_cv_prog_CXXCPP
5762 ac_cv_prog_CXXCPP
=$CXXCPP
5764 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5765 $as_echo "$CXXCPP" >&6; }
5767 for ac_cxx_preproc_warn_flag
in '' yes
5769 # Use a header file that comes with gcc, so configuring glibc
5770 # with a fresh cross-compiler works.
5771 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5772 # <limits.h> exists even on freestanding compilers.
5773 # On the NeXT, cc -E runs the code through the compiler's parser,
5774 # not just through cpp. "Syntax error" is here to catch this case.
5775 cat >conftest.
$ac_ext <<_ACEOF
5778 cat confdefs.h
>>conftest.
$ac_ext
5779 cat >>conftest.
$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5782 # include <limits.h>
5784 # include <assert.h>
5788 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5791 *) ac_try_echo=$ac_try;;
5793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5794 $as_echo "$ac_try_echo") >&5
5795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5797 grep -v '^ *+' conftest.er1 >conftest.err
5799 cat conftest.err >&5
5800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } >/dev/null && {
5802 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5803 test ! -s conftest.err
5807 $as_echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.$ac_ext >&5
5810 # Broken: fails on valid input.
5814 rm -f conftest.err conftest.$ac_ext
5816 # OK, works on sane cases. Now check whether nonexistent headers
5817 # can be detected and how.
5818 cat >conftest.$ac_ext <<_ACEOF
5821 cat confdefs.h >>conftest.$ac_ext
5822 cat >>conftest.$ac_ext <<_ACEOF
5823 /* end confdefs.h. */
5824 #include <ac_nonexistent.h>
5826 if { (ac_try="$ac_cpp conftest.$ac_ext"
5828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5829 *) ac_try_echo
=$ac_try;;
5831 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5832 $as_echo "$ac_try_echo") >&5
5833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5835 grep -v '^ *+' conftest.er1
>conftest.err
5837 cat conftest.err
>&5
5838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } >/dev
/null
&& {
5840 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5841 test ! -s conftest.err
5843 # Broken: success on invalid input.
5846 $as_echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.
$ac_ext >&5
5849 # Passes both tests.
5854 rm -f conftest.err conftest.
$ac_ext
5857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5858 rm -f conftest.err conftest.
$ac_ext
5859 if $ac_preproc_ok; then
5862 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5864 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5865 See \`config.log' for more details." >&5
5866 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5867 See \`config.log' for more details." >&2;}
5868 { (exit 1); exit 1; }; }; }
5872 ac_cpp
='$CXXCPP $CPPFLAGS'
5873 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5874 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5875 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5881 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5882 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5883 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
5884 if test -n "$ac_tool_prefix"; then
5885 for ac_prog
in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5888 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5889 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if test "${ac_cv_prog_F77+set}" = set; then
5892 $as_echo_n "(cached) " >&6
5894 if test -n "$F77"; then
5895 ac_cv_prog_F77
="$F77" # Let the user override the test.
5897 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5901 test -z "$as_dir" && as_dir
=.
5902 for ac_exec_ext
in '' $ac_executable_extensions; do
5903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5904 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
5905 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5915 if test -n "$F77"; then
5916 { $as_echo "$as_me:$LINENO: result: $F77" >&5
5917 $as_echo "$F77" >&6; }
5919 { $as_echo "$as_me:$LINENO: result: no" >&5
5920 $as_echo "no" >&6; }
5924 test -n "$F77" && break
5927 if test -z "$F77"; then
5929 for ac_prog
in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5931 # Extract the first word of "$ac_prog", so it can be a program name with args.
5932 set dummy
$ac_prog; ac_word
=$2
5933 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5934 $as_echo_n "checking for $ac_word... " >&6; }
5935 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5936 $as_echo_n "(cached) " >&6
5938 if test -n "$ac_ct_F77"; then
5939 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
5941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5945 test -z "$as_dir" && as_dir
=.
5946 for ac_exec_ext
in '' $ac_executable_extensions; do
5947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5948 ac_cv_prog_ac_ct_F77
="$ac_prog"
5949 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
5959 if test -n "$ac_ct_F77"; then
5960 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5961 $as_echo "$ac_ct_F77" >&6; }
5963 { $as_echo "$as_me:$LINENO: result: no" >&5
5964 $as_echo "no" >&6; }
5968 test -n "$ac_ct_F77" && break
5971 if test "x$ac_ct_F77" = x
; then
5974 case $cross_compiling:$ac_tool_warned in
5976 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5978 ac_tool_warned
=yes ;;
5985 # Provide some information about the compiler.
5986 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5989 { (ac_try
="$ac_compiler --version >&5"
5991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5995 $as_echo "$ac_try_echo") >&5
5996 (eval "$ac_compiler --version >&5") 2>&5
5998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }
6000 { (ac_try="$ac_compiler -v >&5"
6002 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6003 *) ac_try_echo
=$ac_try;;
6005 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6006 $as_echo "$ac_try_echo") >&5
6007 (eval "$ac_compiler -v >&5") 2>&5
6009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }
6011 { (ac_try
="$ac_compiler -V >&5"
6013 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6014 *) ac_try_echo=$ac_try;;
6016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6017 $as_echo "$ac_try_echo") >&5
6018 (eval "$ac_compiler -V >&5") 2>&5
6020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }
6024 # If we don't use `.F
' as extension, the preprocessor is not run on the
6025 # input file. (Note that this only needs to work for GNU compilers.)
6028 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6029 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6030 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6031 $as_echo_n "(cached) " >&6
6033 cat >conftest.$ac_ext <<_ACEOF
6041 rm -f conftest.$ac_objext
6042 if { (ac_try="$ac_compile"
6044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045 *) ac_try_echo=$ac_try;;
6047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6048 $as_echo "$ac_try_echo") >&5
6049 (eval "$ac_compile") 2>conftest.er1
6051 grep -v '^
*+' conftest.er1 >conftest.err
6053 cat conftest.err >&5
6054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } && {
6056 test -z "$ac_f77_werror_flag" ||
6057 test ! -s conftest.err
6058 } && test -s conftest.$ac_objext; then
6061 $as_echo "$as_me: failed program was:" >&5
6062 sed 's
/^
/|
/' conftest.$ac_ext >&5
6067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6068 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6071 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6072 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6074 ac_test_FFLAGS=${FFLAGS+set}
6075 ac_save_FFLAGS=$FFLAGS
6077 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6078 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6079 if test "${ac_cv_prog_f77_g+set}" = set; then
6080 $as_echo_n "(cached) " >&6
6083 cat >conftest.$ac_ext <<_ACEOF
6088 rm -f conftest.$ac_objext
6089 if { (ac_try="$ac_compile"
6091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6092 *) ac_try_echo=$ac_try;;
6094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6095 $as_echo "$ac_try_echo") >&5
6096 (eval "$ac_compile") 2>conftest.er1
6098 grep -v '^
*+' conftest.er1 >conftest.err
6100 cat conftest.err >&5
6101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } && {
6103 test -z "$ac_f77_werror_flag" ||
6104 test ! -s conftest.err
6105 } && test -s conftest.$ac_objext; then
6106 ac_cv_prog_f77_g=yes
6108 $as_echo "$as_me: failed program was:" >&5
6109 sed 's
/^
/|
/' conftest.$ac_ext >&5
6114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6117 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6118 $as_echo "$ac_cv_prog_f77_g" >&6; }
6119 if test "$ac_test_FFLAGS" = set; then
6120 FFLAGS=$ac_save_FFLAGS
6121 elif test $ac_cv_prog_f77_g = yes; then
6122 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6128 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6135 if test $ac_compiler_gnu = yes; then
6141 ac_cpp='$CPP $CPPFLAGS'
6142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
6143 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
6144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6148 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works
for C compilers
!
6150 # find the maximum length of command line arguments
6151 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6152 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6153 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6154 $as_echo_n "(cached) " >&6
6161 # On DJGPP, this test can blow up pretty badly due to problems in libc
6162 # (any single argument exceeding 2000 bytes causes a buffer overrun
6163 # during glob expansion). Even if it were fixed, the result of this
6164 # check would be larger than it should be.
6165 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6169 # Under GNU Hurd, this test is not required because there is
6170 # no limit to the length of command line arguments.
6171 # Libtool will interpret -1 as no limit whatsoever
6172 lt_cv_sys_max_cmd_len
=-1;
6176 # On Win9x/ME, this test blows up -- it succeeds, but takes
6177 # about 5 minutes as the teststring grows exponentially.
6178 # Worse, since 9x/ME are not pre-emptively multitasking,
6179 # you end up with a "frozen" computer, even though with patience
6180 # the test eventually succeeds (with a max line length of 256k).
6181 # Instead, let's just punt: use the minimum linelength reported by
6182 # all of the supported platforms: 8192 (on NT/2K/XP).
6183 lt_cv_sys_max_cmd_len
=8192;
6187 # On AmigaOS with pdksh, this test takes hours, literally.
6188 # So we just punt and use a minimum line length of 8192.
6189 lt_cv_sys_max_cmd_len
=8192;
6192 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6193 # This has been around since 386BSD, at least. Likely further.
6194 if test -x /sbin
/sysctl
; then
6195 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6196 elif test -x /usr
/sbin
/sysctl
; then
6197 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6199 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6201 # And add a safety zone
6202 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6203 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6207 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6208 lt_cv_sys_max_cmd_len
=196608
6212 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6213 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6214 # nice to cause kernel panics so lets avoid the loop below.
6215 # First set a reasonable default.
6216 lt_cv_sys_max_cmd_len
=16384
6218 if test -x /sbin
/sysconfig
; then
6219 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6220 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6225 lt_cv_sys_max_cmd_len
=102400
6227 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6228 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6229 if test -n "$kargmax"; then
6230 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6232 lt_cv_sys_max_cmd_len
=32768
6236 # If test is not a shell built-in, we'll probably end up computing a
6237 # maximum length that is only half of the actual maximum length, but
6239 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6240 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6241 = "XX$teststring") >/dev
/null
2>&1 &&
6242 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
6243 lt_cv_sys_max_cmd_len
=$new_result &&
6244 test $i != 17 # 1/2 MB should be enough
6247 teststring
=$teststring$teststring
6250 # Add a significant safety factor because C++ compilers can tack on massive
6251 # amounts of additional arguments before passing them to the linker.
6252 # It appears as though 1/2 is a usable value.
6253 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6259 if test -n $lt_cv_sys_max_cmd_len ; then
6260 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6261 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6263 { $as_echo "$as_me:$LINENO: result: none" >&5
6264 $as_echo "none" >&6; }
6270 # Check for command to grab the raw symbol name followed by C symbol from nm.
6271 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6272 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6273 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6274 $as_echo_n "(cached) " >&6
6277 # These are sane defaults that work on at least a few old systems.
6278 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6280 # Character class describing NM global symbol codes.
6281 symcode
='[BCDEGRST]'
6283 # Regexp to match symbols that can be accessed directly from C.
6284 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6286 # Transform an extracted symbol line into a proper C declaration
6287 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6289 # Transform an extracted symbol line into symbol name and symbol address
6290 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'"
6292 # Define system-specific variables.
6297 cygwin
* | mingw
* | pw32
*)
6298 symcode
='[ABCDGISTW]'
6300 hpux
*) # Its linker distinguishes data from code symbols
6301 if test "$host_cpu" = ia64
; then
6302 symcode
='[ABCDEGRST]'
6304 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6305 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'"
6308 if test "$host_cpu" = ia64
; then
6309 symcode
='[ABCDGIRSTW]'
6310 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6311 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'"
6315 symcode
='[BCDEGRST]'
6318 symcode
='[BCDEGQRST]'
6329 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6337 # Handle CRLF in mingw tool chain
6341 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6345 # If we're using GNU nm, then use its standard symbol codes.
6346 case `$NM -V 2>&1` in
6347 *GNU
* |
*'with BFD'*)
6348 symcode
='[ABCDGIRSTW]' ;;
6351 # Try without a prefix undercore, then with it.
6352 for ac_symprfx
in "" "_"; do
6354 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6355 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6357 # Write the raw and C identifiers.
6358 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6360 # Check to see that the pipe works correctly.
6364 cat > conftest.
$ac_ext <<EOF
6369 void nm_test_func(){}
6373 int main(){nm_test_var='a';nm_test_func();return(0);}
6376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6377 (eval $ac_compile) 2>&5
6379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; then
6381 # Now try to grab the symbols.
6383 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6384 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
6386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } && test -s "$nlist"; then
6388 # Try sorting and uniquifying the output.
6389 if sort "$nlist" |
uniq > "$nlist"T
; then
6390 mv -f "$nlist"T
"$nlist"
6395 # Make sure that we snagged all the symbols we need.
6396 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
6397 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
6398 cat <<EOF > conftest.$ac_ext
6404 # Now generate the symbol file.
6405 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6407 cat <<EOF >> conftest.$ac_ext
6408 #if defined (__STDC__) && __STDC__
6409 # define lt_ptr_t void *
6411 # define lt_ptr_t char *
6415 /* The mapping between symbol names and symbols. */
6420 lt_preloaded_symbols[] =
6423 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
6424 cat <<\EOF
>> conftest.
$ac_ext
6432 # Now try linking the two files.
6433 mv conftest.
$ac_objext conftstm.
$ac_objext
6434 lt_save_LIBS
="$LIBS"
6435 lt_save_CFLAGS
="$CFLAGS"
6436 LIBS
="conftstm.$ac_objext"
6437 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6439 (eval $ac_link) 2>&5
6441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
6445 LIBS
="$lt_save_LIBS"
6446 CFLAGS
="$lt_save_CFLAGS"
6448 echo "cannot find nm_test_func in $nlist" >&5
6451 echo "cannot find nm_test_var in $nlist" >&5
6454 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6457 echo "$progname: failed program was:" >&5
6458 cat conftest.
$ac_ext >&5
6460 rm -f conftest
* conftst
*
6462 # Do not use the global_symbol_pipe unless it works.
6463 if test "$pipe_works" = yes; then
6466 lt_cv_sys_global_symbol_pipe
=
6472 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6473 lt_cv_sys_global_symbol_to_cdecl
=
6475 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6476 { $as_echo "$as_me:$LINENO: result: failed" >&5
6477 $as_echo "failed" >&6; }
6479 { $as_echo "$as_me:$LINENO: result: ok" >&5
6480 $as_echo "ok" >&6; }
6483 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6484 $as_echo_n "checking for objdir... " >&6; }
6485 if test "${lt_cv_objdir+set}" = set; then
6486 $as_echo_n "(cached) " >&6
6488 rm -f .libs
2>/dev
/null
6489 mkdir .libs
2>/dev
/null
6490 if test -d .libs
; then
6493 # MS-DOS does not allow filenames that begin with a dot.
6496 rmdir .libs
2>/dev
/null
6498 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6499 $as_echo "$lt_cv_objdir" >&6; }
6500 objdir
=$lt_cv_objdir
6508 # AIX sometimes has problems with the GCC collect2 program. For some
6509 # reason, if we set the COLLECT_NAMES environment variable, the problems
6510 # vanish in a puff of smoke.
6511 if test "X${COLLECT_NAMES+set}" != Xset
; then
6513 export COLLECT_NAMES
6518 # Sed substitution that helps us do robust quoting. It backslashifies
6519 # metacharacters that are still active within double-quoted strings.
6520 Xsed
='sed -e 1s/^X//'
6521 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
6523 # Same as above, but do not quote variable references.
6524 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
6526 # Sed substitution to delay expansion of an escaped shell variable in a
6527 # double_quote_subst'ed string.
6528 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
6530 # Sed substitution to avoid accidental globbing in evaled expressions
6531 no_glob_subst
='s/\*/\\\*/g'
6537 default_ofile
=libtool
6538 can_build_shared
=yes
6540 # All known linkers require a `.a' archive for static linking (except MSVC,
6541 # which needs '.lib').
6543 ltmain
="$ac_aux_dir/ltmain.sh"
6544 ofile
="$default_ofile"
6545 with_gnu_ld
="$lt_cv_prog_gnu_ld"
6547 if test -n "$ac_tool_prefix"; then
6548 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6549 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6550 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6551 $as_echo_n "checking for $ac_word... " >&6; }
6552 if test "${ac_cv_prog_AR+set}" = set; then
6553 $as_echo_n "(cached) " >&6
6555 if test -n "$AR"; then
6556 ac_cv_prog_AR
="$AR" # Let the user override the test.
6558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6562 test -z "$as_dir" && as_dir
=.
6563 for ac_exec_ext
in '' $ac_executable_extensions; do
6564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6565 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6566 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6576 if test -n "$AR"; then
6577 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6578 $as_echo "$AR" >&6; }
6580 { $as_echo "$as_me:$LINENO: result: no" >&5
6581 $as_echo "no" >&6; }
6586 if test -z "$ac_cv_prog_AR"; then
6588 # Extract the first word of "ar", so it can be a program name with args.
6589 set dummy
ar; ac_word
=$2
6590 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6591 $as_echo_n "checking for $ac_word... " >&6; }
6592 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6593 $as_echo_n "(cached) " >&6
6595 if test -n "$ac_ct_AR"; then
6596 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6598 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6602 test -z "$as_dir" && as_dir
=.
6603 for ac_exec_ext
in '' $ac_executable_extensions; do
6604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6605 ac_cv_prog_ac_ct_AR
="ar"
6606 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6615 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6616 if test -n "$ac_ct_AR"; then
6617 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6618 $as_echo "$ac_ct_AR" >&6; }
6620 { $as_echo "$as_me:$LINENO: result: no" >&5
6621 $as_echo "no" >&6; }
6624 if test "x$ac_ct_AR" = x
; then
6627 case $cross_compiling:$ac_tool_warned in
6629 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6631 ac_tool_warned
=yes ;;
6639 if test -n "$ac_tool_prefix"; then
6640 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6641 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6643 $as_echo_n "checking for $ac_word... " >&6; }
6644 if test "${ac_cv_prog_RANLIB+set}" = set; then
6645 $as_echo_n "(cached) " >&6
6647 if test -n "$RANLIB"; then
6648 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6650 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6654 test -z "$as_dir" && as_dir
=.
6655 for ac_exec_ext
in '' $ac_executable_extensions; do
6656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6657 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6667 RANLIB
=$ac_cv_prog_RANLIB
6668 if test -n "$RANLIB"; then
6669 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6670 $as_echo "$RANLIB" >&6; }
6672 { $as_echo "$as_me:$LINENO: result: no" >&5
6673 $as_echo "no" >&6; }
6678 if test -z "$ac_cv_prog_RANLIB"; then
6679 ac_ct_RANLIB
=$RANLIB
6680 # Extract the first word of "ranlib", so it can be a program name with args.
6681 set dummy ranlib
; ac_word
=$2
6682 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6683 $as_echo_n "checking for $ac_word... " >&6; }
6684 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6685 $as_echo_n "(cached) " >&6
6687 if test -n "$ac_ct_RANLIB"; then
6688 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6694 test -z "$as_dir" && as_dir
=.
6695 for ac_exec_ext
in '' $ac_executable_extensions; do
6696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6698 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6708 if test -n "$ac_ct_RANLIB"; then
6709 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6710 $as_echo "$ac_ct_RANLIB" >&6; }
6712 { $as_echo "$as_me:$LINENO: result: no" >&5
6713 $as_echo "no" >&6; }
6716 if test "x$ac_ct_RANLIB" = x
; then
6719 case $cross_compiling:$ac_tool_warned in
6721 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6723 ac_tool_warned
=yes ;;
6725 RANLIB
=$ac_ct_RANLIB
6728 RANLIB
="$ac_cv_prog_RANLIB"
6731 if test -n "$ac_tool_prefix"; then
6732 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6733 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6734 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6735 $as_echo_n "checking for $ac_word... " >&6; }
6736 if test "${ac_cv_prog_STRIP+set}" = set; then
6737 $as_echo_n "(cached) " >&6
6739 if test -n "$STRIP"; then
6740 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6742 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6746 test -z "$as_dir" && as_dir
=.
6747 for ac_exec_ext
in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6750 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 STRIP
=$ac_cv_prog_STRIP
6760 if test -n "$STRIP"; then
6761 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6762 $as_echo "$STRIP" >&6; }
6764 { $as_echo "$as_me:$LINENO: result: no" >&5
6765 $as_echo "no" >&6; }
6770 if test -z "$ac_cv_prog_STRIP"; then
6772 # Extract the first word of "strip", so it can be a program name with args.
6773 set dummy strip
; ac_word
=$2
6774 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6775 $as_echo_n "checking for $ac_word... " >&6; }
6776 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6777 $as_echo_n "(cached) " >&6
6779 if test -n "$ac_ct_STRIP"; then
6780 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6786 test -z "$as_dir" && as_dir
=.
6787 for ac_exec_ext
in '' $ac_executable_extensions; do
6788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789 ac_cv_prog_ac_ct_STRIP
="strip"
6790 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6800 if test -n "$ac_ct_STRIP"; then
6801 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6802 $as_echo "$ac_ct_STRIP" >&6; }
6804 { $as_echo "$as_me:$LINENO: result: no" >&5
6805 $as_echo "no" >&6; }
6808 if test "x$ac_ct_STRIP" = x
; then
6811 case $cross_compiling:$ac_tool_warned in
6813 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6815 ac_tool_warned
=yes ;;
6820 STRIP
="$ac_cv_prog_STRIP"
6825 old_CFLAGS
="$CFLAGS"
6827 # Set sane defaults for various variables
6828 test -z "$AR" && AR
=ar
6829 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6830 test -z "$AS" && AS
=as
6831 test -z "$CC" && CC
=cc
6832 test -z "$LTCC" && LTCC
=$CC
6833 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
6834 test -z "$DLLTOOL" && DLLTOOL
=dlltool
6835 test -z "$LD" && LD
=ld
6836 test -z "$LN_S" && LN_S
="ln -s"
6837 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
6838 test -z "$NM" && NM
=nm
6839 test -z "$SED" && SED
=sed
6840 test -z "$OBJDUMP" && OBJDUMP
=objdump
6841 test -z "$RANLIB" && RANLIB
=:
6842 test -z "$STRIP" && STRIP
=:
6843 test -z "$ac_objext" && ac_objext
=o
6845 # Determine commands to create old-style static archives.
6846 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6847 old_postinstall_cmds
='chmod 644 $oldlib'
6848 old_postuninstall_cmds
=
6850 if test -n "$RANLIB"; then
6853 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6856 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6859 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6862 for cc_temp
in $compiler""; do
6864 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
6865 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
6870 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6873 # Only perform the check for file, if the check method requires it
6874 case $deplibs_check_method in
6876 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6877 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6878 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6879 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6880 $as_echo_n "(cached) " >&6
6884 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6887 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6888 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6889 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6890 for ac_dir
in $ac_dummy; do
6892 test -z "$ac_dir" && ac_dir
=.
6893 if test -f $ac_dir/${ac_tool_prefix}file; then
6894 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
6895 if test -n "$file_magic_test_file"; then
6896 case $deplibs_check_method in
6898 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6899 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6900 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6901 $EGREP "$file_magic_regex" > /dev
/null
; then
6906 *** Warning: the command libtool uses to detect shared libraries,
6907 *** $file_magic_cmd, produces output that libtool cannot recognize.
6908 *** The result is that libtool may fail to recognize shared libraries
6909 *** as such. This will affect the creation of libtool libraries that
6910 *** depend on shared libraries, but programs linked with such libtool
6911 *** libraries will work regardless of this problem. Nevertheless, you
6912 *** may want to report the problem to your system manager and/or to
6913 *** bug-libtool@gnu.org
6923 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6928 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6929 if test -n "$MAGIC_CMD"; then
6930 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6931 $as_echo "$MAGIC_CMD" >&6; }
6933 { $as_echo "$as_me:$LINENO: result: no" >&5
6934 $as_echo "no" >&6; }
6937 if test -z "$lt_cv_path_MAGIC_CMD"; then
6938 if test -n "$ac_tool_prefix"; then
6939 { $as_echo "$as_me:$LINENO: checking for file" >&5
6940 $as_echo_n "checking for file... " >&6; }
6941 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6942 $as_echo_n "(cached) " >&6
6946 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6949 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6950 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6951 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6952 for ac_dir
in $ac_dummy; do
6954 test -z "$ac_dir" && ac_dir
=.
6955 if test -f $ac_dir/file; then
6956 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
6957 if test -n "$file_magic_test_file"; then
6958 case $deplibs_check_method in
6960 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6961 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6962 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6963 $EGREP "$file_magic_regex" > /dev
/null
; then
6968 *** Warning: the command libtool uses to detect shared libraries,
6969 *** $file_magic_cmd, produces output that libtool cannot recognize.
6970 *** The result is that libtool may fail to recognize shared libraries
6971 *** as such. This will affect the creation of libtool libraries that
6972 *** depend on shared libraries, but programs linked with such libtool
6973 *** libraries will work regardless of this problem. Nevertheless, you
6974 *** may want to report the problem to your system manager and/or to
6975 *** bug-libtool@gnu.org
6985 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6990 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6991 if test -n "$MAGIC_CMD"; then
6992 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6993 $as_echo "$MAGIC_CMD" >&6; }
6995 { $as_echo "$as_me:$LINENO: result: no" >&5
6996 $as_echo "no" >&6; }
7011 # Check whether --enable-libtool-lock was given.
7012 if test "${enable_libtool_lock+set}" = set; then
7013 enableval
=$enable_libtool_lock;
7016 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
7019 # Check whether --with-pic was given.
7020 if test "${with_pic+set}" = set; then
7021 withval
=$with_pic; pic_mode
="$withval"
7026 test -z "$pic_mode" && pic_mode
=default
7028 # Use C for the default configuration in the libtool script
7032 ac_cpp
='$CPP $CPPFLAGS'
7033 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7034 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7035 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7038 # Source file extension for C test sources.
7041 # Object file extension for compiled C test sources.
7045 # Code to be used in simple compile tests
7046 lt_simple_compile_test_code
="int some_variable = 0;\n"
7048 # Code to be used in simple link tests
7049 lt_simple_link_test_code
='int main(){return(0);}\n'
7052 # If no C compiler was specified, use CC.
7055 # If no C compiler flags were specified, use CFLAGS.
7056 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7058 # Allow CC to be a program name with arguments.
7062 # save warnings/boilerplate of simple test code
7063 ac_outfile
=conftest.
$ac_objext
7064 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
7065 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7066 _lt_compiler_boilerplate
=`cat conftest.err`
7069 ac_outfile
=conftest.
$ac_objext
7070 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
7071 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7072 _lt_linker_boilerplate
=`cat conftest.err`
7077 lt_prog_compiler_no_builtin_flag
=
7079 if test "$GCC" = yes; then
7080 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7083 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7084 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7085 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7086 $as_echo_n "(cached) " >&6
7088 lt_cv_prog_compiler_rtti_exceptions
=no
7089 ac_outfile
=conftest.
$ac_objext
7090 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7091 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7092 # Insert the option either (1) after the last *FLAGS variable, or
7093 # (2) before a word containing "conftest.", or (3) at the end.
7094 # Note that $ac_compile itself does not contain backslashes and begins
7095 # with a dollar sign (not a hyphen), so the echo should work correctly.
7096 # The option is referenced via a variable to avoid confusing sed.
7097 lt_compile
=`echo "$ac_compile" | $SED \
7098 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7099 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7100 -e 's:$: $lt_compiler_flag:'`
7101 (eval echo "\"\$as_me:7101: $lt_compile\"" >&5)
7102 (eval "$lt_compile" 2>conftest.err
)
7104 cat conftest.err
>&5
7105 echo "$as_me:7105: \$? = $ac_status" >&5
7106 if (exit $ac_status) && test -s "$ac_outfile"; then
7107 # The compiler can only warn and ignore the option if not recognized
7108 # So say no if there are warnings other than the usual output.
7109 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7110 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7111 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7112 lt_cv_prog_compiler_rtti_exceptions
=yes
7118 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7119 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7121 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7122 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7129 lt_prog_compiler_wl
=
7130 lt_prog_compiler_pic
=
7131 lt_prog_compiler_static
=
7133 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7134 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7136 if test "$GCC" = yes; then
7137 lt_prog_compiler_wl
='-Wl,'
7138 lt_prog_compiler_static
='-static'
7142 # All AIX code is PIC.
7143 if test "$host_cpu" = ia64
; then
7144 # AIX 5 now supports IA64 processor
7145 lt_prog_compiler_static
='-Bstatic'
7150 # FIXME: we need at least 68020 code to build shared libraries, but
7151 # adding the `-m68020' flag to GCC prevents building anything better,
7153 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7156 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7157 # PIC is the default for these OSes.
7160 mingw
* | pw32
* | os2
*)
7161 # This hack is so that the source file can tell whether it is being
7162 # built for inclusion in a dll (and should export symbols for example).
7163 lt_prog_compiler_pic
='-DDLL_EXPORT'
7166 darwin
* | rhapsody
*)
7167 # PIC is the default on this platform
7168 # Common symbols not allowed in MH_DYLIB files
7169 lt_prog_compiler_pic
='-fno-common'
7173 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7174 # Instead, we relocate shared libraries at runtime.
7178 # Just because we use GCC doesn't mean we suddenly get shared libraries
7179 # on systems that don't support them.
7180 lt_prog_compiler_can_build_shared
=no
7185 if test -d /usr
/nec
; then
7186 lt_prog_compiler_pic
=-Kconform_pic
7191 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7198 lt_prog_compiler_pic
='-fPIC'
7204 lt_prog_compiler_pic
='-fPIC'
7208 # PORTME Check for flag to pass linker flags through the system compiler.
7211 lt_prog_compiler_wl
='-Wl,'
7212 if test "$host_cpu" = ia64
; then
7213 # AIX 5 now supports IA64 processor
7214 lt_prog_compiler_static
='-Bstatic'
7216 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
7220 # PIC is the default on this platform
7221 # Common symbols not allowed in MH_DYLIB files
7222 case $cc_basename in
7224 lt_prog_compiler_pic
='-qnocommon'
7225 lt_prog_compiler_wl
='-Wl,'
7230 mingw
* | pw32
* | os2
*)
7231 # This hack is so that the source file can tell whether it is being
7232 # built for inclusion in a dll (and should export symbols for example).
7233 lt_prog_compiler_pic
='-DDLL_EXPORT'
7236 hpux9
* | hpux10
* | hpux11
*)
7237 lt_prog_compiler_wl
='-Wl,'
7238 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7245 lt_prog_compiler_pic
='+Z'
7248 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7249 lt_prog_compiler_static
='${wl}-a ${wl}archive'
7252 irix5
* | irix6
* | nonstopux
*)
7253 lt_prog_compiler_wl
='-Wl,'
7254 # PIC (with -KPIC) is the default.
7255 lt_prog_compiler_static
='-non_shared'
7259 lt_prog_compiler_pic
='-KPIC'
7260 lt_prog_compiler_static
='-Bstatic'
7264 case $cc_basename in
7266 lt_prog_compiler_wl
='-Wl,'
7267 lt_prog_compiler_pic
='-KPIC'
7268 lt_prog_compiler_static
='-static'
7270 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
7271 # Portland Group compilers (*not* the Pentium gcc compiler,
7272 # which looks to be a dead project)
7273 lt_prog_compiler_wl
='-Wl,'
7274 lt_prog_compiler_pic
='-fpic'
7275 lt_prog_compiler_static
='-Bstatic'
7278 lt_prog_compiler_wl
='-Wl,'
7279 # All Alpha code is PIC.
7280 lt_prog_compiler_static
='-non_shared'
7285 osf3
* | osf4
* | osf5
*)
7286 lt_prog_compiler_wl
='-Wl,'
7287 # All OSF/1 code is PIC.
7288 lt_prog_compiler_static
='-non_shared'
7292 lt_prog_compiler_pic
='-KPIC'
7293 lt_prog_compiler_static
='-Bstatic'
7294 case $cc_basename in
7296 lt_prog_compiler_wl
='-Qoption ld ';;
7298 lt_prog_compiler_wl
='-Wl,';;
7303 lt_prog_compiler_wl
='-Qoption ld '
7304 lt_prog_compiler_pic
='-PIC'
7305 lt_prog_compiler_static
='-Bstatic'
7308 sysv4 | sysv4.2uw2
* | sysv4.3
*)
7309 lt_prog_compiler_wl
='-Wl,'
7310 lt_prog_compiler_pic
='-KPIC'
7311 lt_prog_compiler_static
='-Bstatic'
7315 if test -d /usr
/nec
;then
7316 lt_prog_compiler_pic
='-Kconform_pic'
7317 lt_prog_compiler_static
='-Bstatic'
7321 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
7322 lt_prog_compiler_wl
='-Wl,'
7323 lt_prog_compiler_pic
='-KPIC'
7324 lt_prog_compiler_static
='-Bstatic'
7328 lt_prog_compiler_wl
='-Wl,'
7329 lt_prog_compiler_can_build_shared
=no
7333 lt_prog_compiler_pic
='-pic'
7334 lt_prog_compiler_static
='-Bstatic'
7338 lt_prog_compiler_can_build_shared
=no
7343 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7344 $as_echo "$lt_prog_compiler_pic" >&6; }
7347 # Check to make sure the PIC flag actually works.
7349 if test -n "$lt_prog_compiler_pic"; then
7351 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7352 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7353 if test "${lt_prog_compiler_pic_works+set}" = set; then
7354 $as_echo_n "(cached) " >&6
7356 lt_prog_compiler_pic_works
=no
7357 ac_outfile
=conftest.
$ac_objext
7358 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7359 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
7360 # Insert the option either (1) after the last *FLAGS variable, or
7361 # (2) before a word containing "conftest.", or (3) at the end.
7362 # Note that $ac_compile itself does not contain backslashes and begins
7363 # with a dollar sign (not a hyphen), so the echo should work correctly.
7364 # The option is referenced via a variable to avoid confusing sed.
7365 lt_compile
=`echo "$ac_compile" | $SED \
7366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7368 -e 's:$: $lt_compiler_flag:'`
7369 (eval echo "\"\$as_me:7369: $lt_compile\"" >&5)
7370 (eval "$lt_compile" 2>conftest.err
)
7372 cat conftest.err
>&5
7373 echo "$as_me:7373: \$? = $ac_status" >&5
7374 if (exit $ac_status) && test -s "$ac_outfile"; then
7375 # The compiler can only warn and ignore the option if not recognized
7376 # So say no if there are warnings other than the usual output.
7377 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7378 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7379 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7380 lt_prog_compiler_pic_works
=yes
7386 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7387 $as_echo "$lt_prog_compiler_pic_works" >&6; }
7389 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
7390 case $lt_prog_compiler_pic in
7392 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
7395 lt_prog_compiler_pic
=
7396 lt_prog_compiler_can_build_shared
=no
7401 # For platforms which do not support PIC, -DPIC is meaningless:
7403 lt_prog_compiler_pic
=
7406 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
7411 # Check to make sure the static flag actually works.
7413 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
7414 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7415 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7416 if test "${lt_prog_compiler_static_works+set}" = set; then
7417 $as_echo_n "(cached) " >&6
7419 lt_prog_compiler_static_works
=no
7420 save_LDFLAGS
="$LDFLAGS"
7421 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
7422 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
7423 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
7424 # The linker can only warn and ignore the option if not recognized
7425 # So say no if there are warnings
7426 if test -s conftest.err
; then
7427 # Append any errors to the config.log.
7428 cat conftest.err
1>&5
7429 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
7430 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7431 if diff conftest.exp conftest.er2
>/dev
/null
; then
7432 lt_prog_compiler_static_works
=yes
7435 lt_prog_compiler_static_works
=yes
7439 LDFLAGS
="$save_LDFLAGS"
7442 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7443 $as_echo "$lt_prog_compiler_static_works" >&6; }
7445 if test x
"$lt_prog_compiler_static_works" = xyes
; then
7448 lt_prog_compiler_static
=
7452 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7453 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7454 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7455 $as_echo_n "(cached) " >&6
7457 lt_cv_prog_compiler_c_o
=no
7458 $rm -r conftest
2>/dev
/null
7462 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7464 lt_compiler_flag
="-o out/conftest2.$ac_objext"
7465 # Insert the option either (1) after the last *FLAGS variable, or
7466 # (2) before a word containing "conftest.", or (3) at the end.
7467 # Note that $ac_compile itself does not contain backslashes and begins
7468 # with a dollar sign (not a hyphen), so the echo should work correctly.
7469 lt_compile
=`echo "$ac_compile" | $SED \
7470 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7471 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7472 -e 's:$: $lt_compiler_flag:'`
7473 (eval echo "\"\$as_me:7473: $lt_compile\"" >&5)
7474 (eval "$lt_compile" 2>out
/conftest.err
)
7476 cat out
/conftest.err
>&5
7477 echo "$as_me:7477: \$? = $ac_status" >&5
7478 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
7480 # The compiler can only warn and ignore the option if not recognized
7481 # So say no if there are warnings
7482 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
7483 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
7484 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
7485 lt_cv_prog_compiler_c_o
=yes
7490 # SGI C++ compiler will create directory out/ii_files/ for
7491 # template instantiation
7492 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
7493 $rm out
/* && rmdir out
7499 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7500 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7503 hard_links
="nottested"
7504 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
7505 # do not overwrite the value of need_locks provided by the user
7506 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7507 $as_echo_n "checking if we can lock with hard links... " >&6; }
7510 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7512 ln conftest.a conftest.b
2>&5 || hard_links
=no
7513 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7514 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7515 $as_echo "$hard_links" >&6; }
7516 if test "$hard_links" = no
; then
7517 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7518 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7525 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7526 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7529 allow_undefined_flag
=
7530 enable_shared_with_static_runtimes
=no
7532 archive_expsym_cmds
=
7533 old_archive_From_new_cmds
=
7534 old_archive_from_expsyms_cmds
=
7535 export_dynamic_flag_spec
=
7536 whole_archive_flag_spec
=
7537 thread_safe_flag_spec
=
7538 hardcode_libdir_flag_spec
=
7539 hardcode_libdir_flag_spec_ld
=
7540 hardcode_libdir_separator
=
7543 hardcode_shlibpath_var
=unsupported
7544 link_all_deplibs
=unknown
7545 hardcode_automatic
=no
7548 always_export_symbols
=no
7549 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7550 # include_expsyms should be a list of space-separated symbols to be *always*
7551 # included in the symbol list
7553 # exclude_expsyms can be an extended regexp of symbols to exclude
7554 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7555 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7556 # as well as any symbol that contains `d'.
7557 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
7558 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7559 # platforms (ab)use it in PIC code, but their linkers get confused if
7560 # the symbol is explicitly referenced. Since portable code cannot
7561 # rely on this symbol name, it's probably fine to never include it in
7562 # preloaded symbol tables.
7563 extract_expsyms_cmds
=
7564 # Just being paranoid about ensuring that cc_basename is set.
7565 for cc_temp
in $compiler""; do
7567 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7568 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7573 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7576 cygwin
* | mingw
* | pw32
*)
7577 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7578 # When not using gcc, we currently assume that we are using
7579 # Microsoft Visual C++.
7580 if test "$GCC" != yes; then
7585 # we just hope/assume this is gcc and not c89 (= MSVC++)
7594 if test "$with_gnu_ld" = yes; then
7595 # If archive_cmds runs LD, not CC, wlarc should be empty
7598 # Set some defaults for GNU ld with shared library support. These
7599 # are reset later if shared libraries are not supported. Putting them
7600 # here allows them to be overridden if necessary.
7601 runpath_var
=LD_RUN_PATH
7602 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
7603 export_dynamic_flag_spec
='${wl}--export-dynamic'
7604 # ancient GNU ld didn't support --whole-archive et. al.
7605 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
7606 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7608 whole_archive_flag_spec
=
7610 supports_anon_versioning
=no
7611 case `$LD -v 2>/dev/null` in
7612 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
7613 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
7614 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
7615 *\
2.11.
*) ;; # other 2.11 versions
7616 *) supports_anon_versioning
=yes ;;
7619 # See if GNU ld supports shared libraries.
7621 aix3
* | aix4
* | aix5
*)
7622 # On AIX/PPC, the GNU linker is very broken
7623 if test "$host_cpu" != ia64
; then
7627 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7628 *** to be unable to reliably create shared libraries on AIX.
7629 *** Therefore, libtool is disabling shared libraries support. If you
7630 *** really care for shared libraries, you may want to modify your PATH
7631 *** so that a non-GNU linker is found, and then restart.
7638 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)'
7639 hardcode_libdir_flag_spec
='-L$libdir'
7640 hardcode_minus_L
=yes
7642 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7643 # that the semantics of dynamic libraries on AmigaOS, at least up
7644 # to version 4, is to share data among multiple programs linked
7645 # with the same dynamic library. Since this doesn't match the
7646 # behavior of shared libraries on other platforms, we can't use
7652 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7653 allow_undefined_flag
=unsupported
7654 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7655 # support --undefined. This deserves some investigation. FIXME
7656 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7662 cygwin
* | mingw
* | pw32
*)
7663 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7664 # as there is no search path for DLLs.
7665 hardcode_libdir_flag_spec
='-L$libdir'
7666 allow_undefined_flag
=unsupported
7667 always_export_symbols
=no
7668 enable_shared_with_static_runtimes
=yes
7669 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7671 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
7672 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7673 # If the export-symbols file already is a .def file (1st line
7674 # is EXPORTS), use it as is; otherwise, prepend...
7675 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7676 cp $export_symbols $output_objdir/$soname.def;
7678 echo EXPORTS > $output_objdir/$soname.def;
7679 cat $export_symbols >> $output_objdir/$soname.def;
7681 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7689 hardcode_shlibpath_var
=no
7690 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7691 export_dynamic_flag_spec
='${wl}-E'
7692 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7693 # Instead, shared libraries are loaded at an image base (0x10000000 by
7694 # default) and relocated if they conflict, which is a slow very memory
7695 # consuming and fragmenting process. To avoid this, we pick a random,
7696 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7697 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7698 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7699 archive_expsym_cmds
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7703 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7705 case $cc_basename,$host_cpu in
7706 pgcc
*) # Portland Group C compiler
7707 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7708 tmp_addflag
=' $pic_flag'
7710 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
7711 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7712 tmp_addflag
=' $pic_flag -Mnomain' ;;
7713 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
7714 tmp_addflag
=' -i_dynamic' ;;
7715 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
7716 tmp_addflag
=' -i_dynamic -nofor_main' ;;
7717 ifc
* | ifort
*) # Intel Fortran compiler
7718 tmp_addflag
=' -nofor_main' ;;
7720 archive_cmds
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7722 if test $supports_anon_versioning = yes; then
7723 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
7724 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7725 $echo "local: *; };" >> $output_objdir/$libname.ver~
7726 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7734 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7735 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7738 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7739 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7744 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
7748 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7749 *** create shared libraries on Solaris systems. Therefore, libtool
7750 *** is disabling shared libraries support. We urge you to upgrade GNU
7751 *** binutils to release 2.9.1 or newer. Another option is to modify
7752 *** your PATH or compiler configuration so that the native linker is
7753 *** used, and then restart.
7756 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7757 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7758 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7764 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
7765 case `$LD -v 2>&1` in
7766 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
7770 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7771 *** reliably create shared libraries on SCO systems. Therefore, libtool
7772 *** is disabling shared libraries support. We urge you to upgrade GNU
7773 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7774 *** your PATH or compiler configuration so that the native linker is
7775 *** used, and then restart.
7780 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7781 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7782 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7783 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7792 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7795 hardcode_shlibpath_var
=no
7799 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7800 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7801 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7808 if test "$ld_shlibs" = no
; then
7810 hardcode_libdir_flag_spec
=
7811 export_dynamic_flag_spec
=
7812 whole_archive_flag_spec
=
7815 # PORTME fill in a description of your system's linker (not GNU ld)
7818 allow_undefined_flag
=unsupported
7819 always_export_symbols
=yes
7820 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'
7821 # Note: this linker hardcodes the directories in LIBPATH if there
7822 # are no directories specified by -L.
7823 hardcode_minus_L
=yes
7824 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7825 # Neither direct hardcoding nor static linking is supported with a
7827 hardcode_direct
=unsupported
7832 if test "$host_cpu" = ia64
; then
7833 # On IA64, the linker does run time linking by default, so we don't
7834 # have to do anything special.
7835 aix_use_runtimelinking
=no
7836 exp_sym_flag
='-Bexport'
7839 # If we're using GNU nm, then we don't want the "-C" option.
7840 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7841 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
7842 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'
7844 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'
7846 aix_use_runtimelinking
=no
7848 # Test if we are trying to use run time linking or normal
7849 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7850 # need to do runtime linking.
7851 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
7852 for ld_flag
in $LDFLAGS; do
7853 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
7854 aix_use_runtimelinking
=yes
7861 exp_sym_flag
='-bexport'
7862 no_entry_flag
='-bnoentry'
7865 # When large executables or shared objects are built, AIX ld can
7866 # have problems creating the table of contents. If linking a library
7867 # or program results in "error TOC overflow" add -mminimal-toc to
7868 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7869 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7873 hardcode_libdir_separator
=':'
7874 link_all_deplibs
=yes
7876 if test "$GCC" = yes; then
7877 case $host_os in aix4.
[012]|aix4.
[012].
*)
7878 # We only want to do this on AIX 4.2 and lower, the check
7879 # below for broken collect2 doesn't work under 4.3+
7880 collect2name
=`${CC} -print-prog-name=collect2`
7881 if test -f "$collect2name" && \
7882 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
7884 # We have reworked collect2
7887 # We have old collect2
7888 hardcode_direct
=unsupported
7889 # It fails to find uninstalled libraries when the uninstalled
7890 # path is not listed in the libpath. Setting hardcode_minus_L
7891 # to unsupported forces relinking
7892 hardcode_minus_L
=yes
7893 hardcode_libdir_flag_spec
='-L$libdir'
7894 hardcode_libdir_separator
=
7898 shared_flag
='-shared'
7899 if test "$aix_use_runtimelinking" = yes; then
7900 shared_flag
="$shared_flag "'${wl}-G'
7904 if test "$host_cpu" = ia64
; then
7905 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7906 # chokes on -Wl,-G. The following line is correct:
7909 if test "$aix_use_runtimelinking" = yes; then
7910 shared_flag
='${wl}-G'
7912 shared_flag
='${wl}-bM:SRE'
7917 # It seems that -bexpall does not export symbols beginning with
7918 # underscore (_), so it is better to generate a list of symbols to export.
7919 always_export_symbols
=yes
7920 if test "$aix_use_runtimelinking" = yes; then
7921 # Warning - without using the other runtime loading flags (-brtl),
7922 # -berok will link without error, but may produce a broken library.
7923 allow_undefined_flag
='-berok'
7924 # Determine the default libpath from the value encoded in an empty executable.
7925 cat >conftest.
$ac_ext <<_ACEOF
7928 cat confdefs.h
>>conftest.
$ac_ext
7929 cat >>conftest.
$ac_ext <<_ACEOF
7930 /* end confdefs.h. */
7940 rm -f conftest.
$ac_objext conftest
$ac_exeext
7941 if { (ac_try
="$ac_link"
7943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7944 *) ac_try_echo=$ac_try;;
7946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7947 $as_echo "$ac_try_echo") >&5
7948 (eval "$ac_link") 2>conftest.er1
7950 grep -v '^ *+' conftest.er1 >conftest.err
7952 cat conftest.err >&5
7953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } && {
7955 test -z "$ac_c_werror_flag" ||
7956 test ! -s conftest.err
7957 } && test -s conftest$ac_exeext && {
7958 test "$cross_compiling" = yes ||
7959 $as_test_x conftest$ac_exeext
7962 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7964 # Check for a 64-bit object if we didn't find anything.
7965 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; }
7968 $as_echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7974 rm -rf conftest.dSYM
7975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7976 conftest$ac_exeext conftest.$ac_ext
7977 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7979 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7980 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7982 if test "$host_cpu" = ia64; then
7983 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7984 allow_undefined_flag="-z nodefs"
7985 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7987 # Determine the default libpath from the value encoded in an empty executable.
7988 cat >conftest.$ac_ext <<_ACEOF
7991 cat confdefs.h >>conftest.$ac_ext
7992 cat >>conftest.$ac_ext <<_ACEOF
7993 /* end confdefs.h. */
8003 rm -f conftest.$ac_objext conftest$ac_exeext
8004 if { (ac_try="$ac_link"
8006 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8007 *) ac_try_echo
=$ac_try;;
8009 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8010 $as_echo "$ac_try_echo") >&5
8011 (eval "$ac_link") 2>conftest.er1
8013 grep -v '^ *+' conftest.er1
>conftest.err
8015 cat conftest.err
>&5
8016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } && {
8018 test -z "$ac_c_werror_flag" ||
8019 test ! -s conftest.err
8020 } && test -s conftest
$ac_exeext && {
8021 test "$cross_compiling" = yes ||
8022 $as_test_x conftest
$ac_exeext
8025 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8027 # Check for a 64-bit object if we didn't find anything.
8028 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; }
8031 $as_echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.
$ac_ext >&5
8037 rm -rf conftest.dSYM
8038 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8039 conftest
$ac_exeext conftest.
$ac_ext
8040 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8042 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8043 # Warning - without using the other run time loading flags,
8044 # -berok will link without error, but may produce a broken library.
8045 no_undefined_flag
=' ${wl}-bernotok'
8046 allow_undefined_flag
=' ${wl}-berok'
8047 # Exported symbols can be pulled into shared objects from archives
8048 whole_archive_flag_spec
='$convenience'
8049 archive_cmds_need_lc
=yes
8050 # This is similar to how AIX traditionally builds its shared libraries.
8051 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8057 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)'
8058 hardcode_libdir_flag_spec
='-L$libdir'
8059 hardcode_minus_L
=yes
8060 # see comment about different semantics on the GNU ld section
8065 export_dynamic_flag_spec
=-rdynamic
8068 cygwin
* | mingw
* | pw32
*)
8069 # When not using gcc, we currently assume that we are using
8070 # Microsoft Visual C++.
8071 # hardcode_libdir_flag_spec is actually meaningless, as there is
8072 # no search path for DLLs.
8073 hardcode_libdir_flag_spec
=' '
8074 allow_undefined_flag
=unsupported
8075 # Tell ltmain to make .lib files, not .a files.
8077 # Tell ltmain to make .dll files, not .so files.
8079 # FIXME: Setting linknames here is a bad hack.
8080 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8081 # The linker will automatically build a .lib file if we build a DLL.
8082 old_archive_From_new_cmds
='true'
8083 # FIXME: Should let the user specify the lib program.
8084 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
8085 fix_srcfile_path
='`cygpath -w "$srcfile"`'
8086 enable_shared_with_static_runtimes
=yes
8089 darwin
* | rhapsody
*)
8091 rhapsody
* | darwin1.
[012])
8092 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
8095 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8096 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8098 case ${MACOSX_DEPLOYMENT_TARGET} in
8100 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8103 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
8109 archive_cmds_need_lc
=no
8111 hardcode_automatic
=yes
8112 hardcode_shlibpath_var
=unsupported
8113 whole_archive_flag_spec
=''
8114 link_all_deplibs
=yes
8115 if test "$GCC" = yes ; then
8116 output_verbose_link_cmd
='echo'
8117 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8118 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8119 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8120 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}'
8121 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}'
8123 case $cc_basename in
8125 output_verbose_link_cmd
='echo'
8126 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8127 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8128 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8129 archive_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8130 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}'
8140 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8141 hardcode_libdir_flag_spec
='-L$libdir'
8142 hardcode_shlibpath_var
=no
8149 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8150 # support. Future versions do this automatically, but an explicit c++rt0.o
8151 # does not break anything, and helps significantly (at the cost of a little
8154 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8155 hardcode_libdir_flag_spec
='-R$libdir'
8157 hardcode_shlibpath_var
=no
8160 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8162 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8164 hardcode_minus_L
=yes
8165 hardcode_shlibpath_var
=no
8168 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8169 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
8170 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8171 hardcode_libdir_flag_spec
='-R$libdir'
8173 hardcode_shlibpath_var
=no
8177 if test "$GCC" = yes; then
8178 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'
8180 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'
8182 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8183 hardcode_libdir_separator
=:
8186 # hardcode_minus_L: Not really in the search PATH,
8187 # but as the default location of the library.
8188 hardcode_minus_L
=yes
8189 export_dynamic_flag_spec
='${wl}-E'
8193 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8194 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8196 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8198 if test "$with_gnu_ld" = no
; then
8199 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8200 hardcode_libdir_separator
=:
8203 export_dynamic_flag_spec
='${wl}-E'
8205 # hardcode_minus_L: Not really in the search PATH,
8206 # but as the default location of the library.
8207 hardcode_minus_L
=yes
8212 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8215 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8218 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8221 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8227 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8230 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8233 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8237 if test "$with_gnu_ld" = no
; then
8238 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8239 hardcode_libdir_separator
=:
8243 hardcode_libdir_flag_spec_ld
='+b $libdir'
8245 hardcode_shlibpath_var
=no
8249 export_dynamic_flag_spec
='${wl}-E'
8251 # hardcode_minus_L: Not really in the search PATH,
8252 # but as the default location of the library.
8253 hardcode_minus_L
=yes
8259 irix5
* | irix6
* | nonstopux
*)
8260 if test "$GCC" = yes; then
8261 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'
8263 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'
8264 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8266 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8267 hardcode_libdir_separator
=:
8268 link_all_deplibs
=yes
8272 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8273 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8275 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8277 hardcode_libdir_flag_spec
='-R$libdir'
8279 hardcode_shlibpath_var
=no
8283 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8285 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8286 hardcode_libdir_separator
=:
8287 hardcode_shlibpath_var
=no
8292 hardcode_shlibpath_var
=no
8293 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8294 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8295 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8296 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8297 export_dynamic_flag_spec
='${wl}-E'
8300 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
8301 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8302 hardcode_libdir_flag_spec
='-R$libdir'
8305 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8306 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8313 hardcode_libdir_flag_spec
='-L$libdir'
8314 hardcode_minus_L
=yes
8315 allow_undefined_flag
=unsupported
8316 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'
8317 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8321 if test "$GCC" = yes; then
8322 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8323 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'
8325 allow_undefined_flag
=' -expect_unresolved \*'
8326 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'
8328 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8329 hardcode_libdir_separator
=:
8332 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
8333 if test "$GCC" = yes; then
8334 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8335 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'
8336 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8338 allow_undefined_flag
=' -expect_unresolved \*'
8339 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'
8340 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8341 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8343 # Both c and cxx compiler support -rpath directly
8344 hardcode_libdir_flag_spec
='-rpath $libdir'
8346 hardcode_libdir_separator
=:
8350 no_undefined_flag
=' -z text'
8351 if test "$GCC" = yes; then
8353 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8354 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8355 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8358 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8359 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8360 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8362 hardcode_libdir_flag_spec
='-R$libdir'
8363 hardcode_shlibpath_var
=no
8365 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
8367 # The compiler driver will combine linker options so we
8368 # cannot just pass the convience library names through
8369 # without $wl, iff we do not link with $LD.
8370 # Luckily, gcc supports the same syntax we need for Sun Studio.
8371 # Supported since Solaris 2.6 (maybe 2.5.1?)
8374 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
8376 whole_archive_flag_spec
='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8379 link_all_deplibs
=yes
8383 if test "x$host_vendor" = xsequent
; then
8384 # Use $CC to link under sequent, because it throws in some extra .o
8385 # files that make .init and .fini sections work.
8386 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8388 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8390 hardcode_libdir_flag_spec
='-L$libdir'
8392 hardcode_minus_L
=yes
8393 hardcode_shlibpath_var
=no
8397 case $host_vendor in
8399 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8400 hardcode_direct
=yes # is this really true???
8403 ## LD is ld it makes a PLAMLIB
8404 ## CC just makes a GrossModule.
8405 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8406 reload_cmds
='$CC -r -o $output$reload_objs'
8410 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8411 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
8414 runpath_var
='LD_RUN_PATH'
8415 hardcode_shlibpath_var
=no
8419 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8420 hardcode_shlibpath_var
=no
8421 export_dynamic_flag_spec
='-Bexport'
8425 if test -d /usr
/nec
; then
8426 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8427 hardcode_shlibpath_var
=no
8428 runpath_var
=LD_RUN_PATH
8429 hardcode_runpath_var
=yes
8434 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
8435 no_undefined_flag
='${wl}-z,text'
8436 archive_cmds_need_lc
=no
8437 hardcode_shlibpath_var
=no
8438 runpath_var
='LD_RUN_PATH'
8440 if test "$GCC" = yes; then
8441 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8442 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8444 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8445 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8449 sysv5
* | sco3.2v5
* | sco5v6
*)
8450 # Note: We can NOT use -z defs as we might desire, because we do not
8451 # link with -lc, and that would cause any symbols used from libc to
8452 # always be unresolved, which means just about no library would
8453 # ever link correctly. If we're not using GNU ld we use -z text
8454 # though, which does catch some bad symbols but isn't as heavy-handed
8456 no_undefined_flag
='${wl}-z,text'
8457 allow_undefined_flag
='${wl}-z,nodefs'
8458 archive_cmds_need_lc
=no
8459 hardcode_shlibpath_var
=no
8460 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8461 hardcode_libdir_separator
=':'
8462 link_all_deplibs
=yes
8463 export_dynamic_flag_spec
='${wl}-Bexport'
8464 runpath_var
='LD_RUN_PATH'
8466 if test "$GCC" = yes; then
8467 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8468 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8470 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8471 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8476 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8477 hardcode_libdir_flag_spec
='-L$libdir'
8478 hardcode_shlibpath_var
=no
8487 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8488 $as_echo "$ld_shlibs" >&6; }
8489 test "$ld_shlibs" = no
&& can_build_shared
=no
8492 # Do we need to explicitly link libc?
8494 case "x$archive_cmds_need_lc" in
8496 # Assume -lc should be added
8497 archive_cmds_need_lc
=yes
8499 if test "$enable_shared" = yes && test "$GCC" = yes; then
8500 case $archive_cmds in
8502 # FIXME: we may have to deal with multi-command sequences.
8505 # Test whether the compiler implicitly links with -lc since on some
8506 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8507 # to ld, don't add -lc before -lgcc.
8508 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8509 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8511 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
8513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8514 (eval $ac_compile) 2>&5
8516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } 2>conftest.err
; then
8520 libobjs
=conftest.
$ac_objext
8522 wl
=$lt_prog_compiler_wl
8523 pic_flag
=$lt_prog_compiler_pic
8529 lt_save_allow_undefined_flag
=$allow_undefined_flag
8530 allow_undefined_flag
=
8531 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8532 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
8534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }
8537 archive_cmds_need_lc
=no
8539 archive_cmds_need_lc
=yes
8541 allow_undefined_flag
=$lt_save_allow_undefined_flag
8543 cat conftest.err
1>&5
8546 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8547 $as_echo "$archive_cmds_need_lc" >&6; }
8554 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8555 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8557 libname_spec
='lib$name'
8565 shlibpath_overrides_runpath
=unknown
8567 dynamic_linker
="$host_os ld.so"
8568 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
8569 if test "$GCC" = yes; then
8570 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8571 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
8572 # if the path contains ";" then we assume it to be the separator
8573 # otherwise default to the standard path separator (i.e. ":") - it is
8574 # assumed that no part of a normal pathname contains ";" but that should
8575 # okay in the real world where ";" in dirpaths is itself problematic.
8576 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8578 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8581 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
8583 need_lib_prefix
=unknown
8584 hardcode_into_libs
=no
8586 # when you set need_version to no, make sure it does not cause -set_version
8587 # flags to be left without arguments
8588 need_version
=unknown
8593 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
8594 shlibpath_var
=LIBPATH
8596 # AIX 3 has no versioning support, so we append a major version to the name.
8597 soname_spec
='${libname}${release}${shared_ext}$major'
8604 hardcode_into_libs
=yes
8605 if test "$host_cpu" = ia64
; then
8606 # AIX 5 supports IA64
8607 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8608 shlibpath_var
=LD_LIBRARY_PATH
8610 # With GCC up to 2.95.x, collect2 would create an import file
8611 # for dependence libraries. The import file would start with
8612 # the line `#! .'. This would cause the generated library to
8613 # depend on `.', always an invalid library. This was fixed in
8614 # development snapshots of GCC prior to 3.0.
8616 aix4 | aix4.
[01] | aix4.
[01].
*)
8617 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8619 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
8626 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8627 # soname into executable. Probably we can add versioning support to
8628 # collect2, so additional links can be useful in future.
8629 if test "$aix_use_runtimelinking" = yes; then
8630 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8631 # instead of lib<name>.a to let people know that these are not
8632 # typical AIX shared libraries.
8633 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8635 # We preserve .a as extension for shared libraries through AIX4.2
8636 # and later when we are not doing run time linking.
8637 library_names_spec
='${libname}${release}.a $libname.a'
8638 soname_spec
='${libname}${release}${shared_ext}$major'
8640 shlibpath_var
=LIBPATH
8645 library_names_spec
='$libname.ixlibrary $libname.a'
8646 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8647 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'
8651 library_names_spec
='${libname}${shared_ext}'
8652 dynamic_linker
="$host_os ld.so"
8653 shlibpath_var
=LIBRARY_PATH
8659 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8660 soname_spec
='${libname}${release}${shared_ext}$major'
8661 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
8662 shlibpath_var
=LD_LIBRARY_PATH
8663 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8664 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
8665 # the default ld.so.conf also contains /usr/contrib/lib and
8666 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8667 # libtool to hard-code these into programs
8670 cygwin
* | mingw
* | pw32
*)
8671 version_type
=windows
8676 case $GCC,$host_os in
8677 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
8678 library_names_spec
='$libname.dll.a'
8679 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8680 postinstall_cmds
='base_file=`basename \${file}`~
8681 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8682 dldir=$destdir/`dirname \$dlpath`~
8683 test -d \$dldir || mkdir -p \$dldir~
8684 $install_prog $dir/$dlname \$dldir/$dlname~
8685 chmod a+x \$dldir/$dlname'
8686 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8687 dlpath=$dir/\$dldll~
8689 shlibpath_overrides_runpath
=yes
8693 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8694 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8695 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
8698 # MinGW DLLs use traditional 'lib' prefix
8699 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8700 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8701 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
8702 # It is most probably a Windows format PATH printed by
8703 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8704 # path with ; separators, and with drive letters. We can handle the
8705 # drive letters (cygwin fileutils understands them), so leave them,
8706 # especially as we might pass files found there to a mingw objdump,
8707 # which wouldn't understand a cygwinified path. Ahh.
8708 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8710 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8714 # pw32 DLLs use 'pw' prefix rather than 'lib'
8715 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8721 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8724 dynamic_linker
='Win32 ld.exe'
8725 # FIXME: first we should search . and the directory the executable is in
8729 darwin
* | rhapsody
*)
8730 dynamic_linker
="$host_os dyld"
8734 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8735 soname_spec
='${libname}${release}${major}$shared_ext'
8736 shlibpath_overrides_runpath
=yes
8737 shlibpath_var
=DYLD_LIBRARY_PATH
8738 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
8739 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8740 if test "$GCC" = yes; then
8741 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"`
8743 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
8745 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
8752 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8753 soname_spec
='${libname}${release}${shared_ext}$major'
8754 shlibpath_var
=LD_LIBRARY_PATH
8765 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8766 soname_spec
='${libname}${release}${shared_ext}$major'
8767 shlibpath_var
=LD_LIBRARY_PATH
8768 shlibpath_overrides_runpath
=no
8769 hardcode_into_libs
=yes
8770 dynamic_linker
='GNU ld.so'
8773 freebsd
* | dragonfly
*)
8774 # DragonFly does not have aout. When/if they implement a new
8775 # versioning mechanism, adjust this.
8776 if test -x /usr
/bin
/objformat
; then
8777 objformat
=`/usr/bin/objformat`
8780 freebsd
[123]*) objformat
=aout
;;
8784 version_type
=freebsd-
$objformat
8785 case $version_type in
8787 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8792 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8796 shlibpath_var
=LD_LIBRARY_PATH
8799 shlibpath_overrides_runpath
=yes
8801 freebsd3.
[01]* | freebsdelf3.
[01]*)
8802 shlibpath_overrides_runpath
=yes
8803 hardcode_into_libs
=yes
8805 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
8806 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
8807 shlibpath_overrides_runpath
=no
8808 hardcode_into_libs
=yes
8810 freebsd
*) # from 4.6 on
8811 shlibpath_overrides_runpath
=yes
8812 hardcode_into_libs
=yes
8821 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8822 soname_spec
='${libname}${release}${shared_ext}$major'
8823 shlibpath_var
=LD_LIBRARY_PATH
8824 hardcode_into_libs
=yes
8827 hpux9
* | hpux10
* | hpux11
*)
8828 # Give a soname corresponding to the major version so that dld.sl refuses to
8829 # link against other versions.
8836 hardcode_into_libs
=yes
8837 dynamic_linker
="$host_os dld.so"
8838 shlibpath_var
=LD_LIBRARY_PATH
8839 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8840 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8841 soname_spec
='${libname}${release}${shared_ext}$major'
8842 if test "X$HPUX_IA64_MODE" = X32
; then
8843 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8845 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
8847 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8851 hardcode_into_libs
=yes
8852 dynamic_linker
="$host_os dld.sl"
8853 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
8854 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8855 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8856 soname_spec
='${libname}${release}${shared_ext}$major'
8857 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8858 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8862 dynamic_linker
="$host_os dld.sl"
8863 shlibpath_var
=SHLIB_PATH
8864 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
8865 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8866 soname_spec
='${libname}${release}${shared_ext}$major'
8869 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8870 postinstall_cmds
='chmod 555 $lib'
8877 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8878 soname_spec
='${libname}${release}${shared_ext}$major'
8879 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
8880 shlibpath_var
=LD_LIBRARY_PATH
8881 shlibpath_overrides_runpath
=no
8882 hardcode_into_libs
=yes
8885 irix5
* | irix6
* | nonstopux
*)
8887 nonstopux
*) version_type
=nonstopux
;;
8889 if test "$lt_cv_prog_gnu_ld" = yes; then
8897 soname_spec
='${libname}${release}${shared_ext}$major'
8898 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8900 irix5
* | nonstopux
*)
8904 case $LD in # libtool.m4 will add one of these switches to LD
8905 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
8906 libsuff
= shlibsuff
= libmagic
=32-bit;;
8907 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
8908 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
8909 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
8910 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
8911 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
8915 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
8916 shlibpath_overrides_runpath
=no
8917 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8918 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
8919 hardcode_into_libs
=yes
8922 # No shared lib support for Linux oldld, aout, or coff.
8923 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
8927 # This must be Linux ELF.
8932 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8933 soname_spec
='${libname}${release}${shared_ext}$major'
8934 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8935 shlibpath_var
=LD_LIBRARY_PATH
8936 shlibpath_overrides_runpath
=no
8937 # This implies no fast_install, which is unacceptable.
8938 # Some rework will be needed to allow for fast_install
8939 # before this can be enabled.
8940 hardcode_into_libs
=yes
8942 # find out which ABI we are using
8945 x86_64
*|s390x
*|powerpc64
*)
8946 echo '#line 8946 "configure"' > conftest.
$ac_ext
8947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8948 (eval $ac_compile) 2>&5
8950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; then
8952 case `/usr/bin/file conftest.$ac_objext` in
8955 sys_lib_search_path_spec
="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8963 # Append ld.so.conf contents to the search path
8964 if test -f /etc
/ld.so.conf
; then
8965 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8966 sys_lib_dlsearch_path_spec
="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8969 # We used to test for /lib/ld.so.1 and disable shared libraries on
8970 # powerpc, because MkLinux only supported shared libraries with the
8971 # GNU dynamic linker. Since this was broken with cross compilers,
8972 # most powerpc-linux boxes support dynamic linking these days and
8973 # people can always --disable-shared, the test was removed, and we
8974 # assume the GNU/Linux dynamic linker is in use.
8975 dynamic_linker
='GNU/Linux ld.so'
8982 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8983 soname_spec
='${libname}${release}${shared_ext}$major'
8984 shlibpath_var
=LD_LIBRARY_PATH
8985 shlibpath_overrides_runpath
=no
8986 hardcode_into_libs
=yes
8987 dynamic_linker
='GNU ld.so'
8994 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8995 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8996 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8997 dynamic_linker
='NetBSD (a.out) ld.so'
8999 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9000 soname_spec
='${libname}${release}${shared_ext}$major'
9001 dynamic_linker
='NetBSD ld.elf_so'
9003 shlibpath_var
=LD_LIBRARY_PATH
9004 shlibpath_overrides_runpath
=yes
9005 hardcode_into_libs
=yes
9010 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011 shlibpath_var
=LD_LIBRARY_PATH
9012 shlibpath_overrides_runpath
=yes
9019 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9020 soname_spec
='${libname}${release}${shared_ext}$major'
9021 shlibpath_var
=LD_LIBRARY_PATH
9022 shlibpath_overrides_runpath
=yes
9027 sys_lib_dlsearch_path_spec
="/usr/lib"
9029 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9031 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
9032 *) need_version
=no
;;
9034 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9035 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9036 shlibpath_var
=LD_LIBRARY_PATH
9037 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9039 openbsd2.
[89] | openbsd2.
[89].
*)
9040 shlibpath_overrides_runpath
=no
9043 shlibpath_overrides_runpath
=yes
9047 shlibpath_overrides_runpath
=yes
9052 libname_spec
='$name'
9055 library_names_spec
='$libname${shared_ext} $libname.a'
9056 dynamic_linker
='OS/2 ld.exe'
9057 shlibpath_var
=LIBPATH
9060 osf3
* | osf4
* | osf5
*)
9064 soname_spec
='${libname}${release}${shared_ext}$major'
9065 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9066 shlibpath_var
=LD_LIBRARY_PATH
9067 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9068 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
9075 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076 soname_spec
='${libname}${release}${shared_ext}$major'
9077 shlibpath_var
=LD_LIBRARY_PATH
9078 shlibpath_overrides_runpath
=yes
9079 hardcode_into_libs
=yes
9080 # ldd complains unless libraries are executable
9081 postinstall_cmds
='chmod +x $lib'
9086 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9087 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9088 shlibpath_var
=LD_LIBRARY_PATH
9089 shlibpath_overrides_runpath
=yes
9090 if test "$with_gnu_ld" = yes; then
9098 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9099 soname_spec
='${libname}${release}${shared_ext}$major'
9100 shlibpath_var
=LD_LIBRARY_PATH
9101 case $host_vendor in
9103 shlibpath_overrides_runpath
=no
9105 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9106 runpath_var
=LD_RUN_PATH
9114 shlibpath_overrides_runpath
=no
9115 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
9121 if test -d /usr
/nec
;then
9123 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9124 soname_spec
='$libname${shared_ext}.$major'
9125 shlibpath_var
=LD_LIBRARY_PATH
9129 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
9130 version_type
=freebsd-elf
9133 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9134 soname_spec
='${libname}${release}${shared_ext}$major'
9135 shlibpath_var
=LD_LIBRARY_PATH
9136 hardcode_into_libs
=yes
9137 if test "$with_gnu_ld" = yes; then
9138 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9139 shlibpath_overrides_runpath
=no
9141 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
9142 shlibpath_overrides_runpath
=yes
9145 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
9149 sys_lib_dlsearch_path_spec
='/usr/lib'
9154 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9155 soname_spec
='${libname}${release}${shared_ext}$major'
9156 shlibpath_var
=LD_LIBRARY_PATH
9163 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9164 $as_echo "$dynamic_linker" >&6; }
9165 test "$dynamic_linker" = no
&& can_build_shared
=no
9167 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
9168 if test "$GCC" = yes; then
9169 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9172 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9173 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9175 if test -n "$hardcode_libdir_flag_spec" || \
9176 test -n "$runpath_var" || \
9177 test "X$hardcode_automatic" = "Xyes" ; then
9179 # We can hardcode non-existant directories.
9180 if test "$hardcode_direct" != no
&&
9181 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9182 # have to relink, otherwise we might link with an installed library
9183 # when we should be linking with a yet-to-be-installed one
9184 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9185 test "$hardcode_minus_L" != no
; then
9186 # Linking always hardcodes the temporary library directory.
9187 hardcode_action
=relink
9189 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9190 hardcode_action
=immediate
9193 # We cannot hardcode anything, or else we can only hardcode existing
9195 hardcode_action
=unsupported
9197 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9198 $as_echo "$hardcode_action" >&6; }
9200 if test "$hardcode_action" = relink
; then
9201 # Fast installation is not supported
9202 enable_fast_install
=no
9203 elif test "$shlibpath_overrides_runpath" = yes ||
9204 test "$enable_shared" = no
; then
9205 # Fast installation is not necessary
9206 enable_fast_install
=needless
9211 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9212 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9213 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
9214 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
9215 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
9216 { $as_echo "$as_me:$LINENO: result: yes" >&5
9217 $as_echo "yes" >&6; }
9219 # FIXME - insert some real tests, host_os isn't really good enough
9222 if test -n "$STRIP" ; then
9223 striplib
="$STRIP -x"
9224 { $as_echo "$as_me:$LINENO: result: yes" >&5
9225 $as_echo "yes" >&6; }
9227 { $as_echo "$as_me:$LINENO: result: no" >&5
9228 $as_echo "no" >&6; }
9232 { $as_echo "$as_me:$LINENO: result: no" >&5
9233 $as_echo "no" >&6; }
9238 if test "x$enable_dlopen" != xyes
; then
9239 enable_dlopen
=unknown
9240 enable_dlopen_self
=unknown
9241 enable_dlopen_self_static
=unknown
9248 lt_cv_dlopen
="load_add_on"
9250 lt_cv_dlopen_self
=yes
9254 lt_cv_dlopen
="LoadLibrary"
9259 lt_cv_dlopen
="dlopen"
9264 # if libdl is installed we need to link against it
9265 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9266 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9267 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9268 $as_echo_n "(cached) " >&6
9270 ac_check_lib_save_LIBS
=$LIBS
9272 cat >conftest.
$ac_ext <<_ACEOF
9275 cat confdefs.h
>>conftest.
$ac_ext
9276 cat >>conftest.
$ac_ext <<_ACEOF
9277 /* end confdefs.h. */
9279 /* Override any GCC internal prototype to avoid an error.
9280 Use char because int might match the return type of a GCC
9281 builtin and then its argument prototype would still apply. */
9294 rm -f conftest.
$ac_objext conftest
$ac_exeext
9295 if { (ac_try
="$ac_link"
9297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9298 *) ac_try_echo=$ac_try;;
9300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9301 $as_echo "$ac_try_echo") >&5
9302 (eval "$ac_link") 2>conftest.er1
9304 grep -v '^ *+' conftest.er1 >conftest.err
9306 cat conftest.err >&5
9307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); } && {
9309 test -z "$ac_c_werror_flag" ||
9310 test ! -s conftest.err
9311 } && test -s conftest$ac_exeext && {
9312 test "$cross_compiling" = yes ||
9313 $as_test_x conftest$ac_exeext
9315 ac_cv_lib_dl_dlopen=yes
9317 $as_echo "$as_me: failed program was:" >&5
9318 sed 's/^/| /' conftest.$ac_ext >&5
9320 ac_cv_lib_dl_dlopen=no
9323 rm -rf conftest.dSYM
9324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9325 conftest$ac_exeext conftest.$ac_ext
9326 LIBS=$ac_check_lib_save_LIBS
9328 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9329 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9330 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9331 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9336 lt_cv_dlopen_self=yes
9343 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9344 $as_echo_n "checking for shl_load... " >&6; }
9345 if test "${ac_cv_func_shl_load+set}" = set; then
9346 $as_echo_n "(cached) " >&6
9348 cat >conftest.$ac_ext <<_ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h. */
9354 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9356 #define shl_load innocuous_shl_load
9358 /* System header to define __stub macros and hopefully few prototypes,
9359 which can conflict with char shl_load (); below.
9360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9361 <limits.h> exists even on freestanding compilers. */
9364 # include <limits.h>
9366 # include <assert.h>
9371 /* Override any GCC internal prototype to avoid an error.
9372 Use char because int might match the return type of a GCC
9373 builtin and then its argument prototype would still apply. */
9378 /* The GNU C library defines this for functions which it implements
9379 to always fail with ENOSYS. Some functions are actually named
9380 something starting with __ and the normal name is an alias. */
9381 #if defined __stub_shl_load || defined __stub___shl_load
9393 rm -f conftest.$ac_objext conftest$ac_exeext
9394 if { (ac_try="$ac_link"
9396 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9397 *) ac_try_echo
=$ac_try;;
9399 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9400 $as_echo "$ac_try_echo") >&5
9401 (eval "$ac_link") 2>conftest.er1
9403 grep -v '^ *+' conftest.er1
>conftest.err
9405 cat conftest.err
>&5
9406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } && {
9408 test -z "$ac_c_werror_flag" ||
9409 test ! -s conftest.err
9410 } && test -s conftest
$ac_exeext && {
9411 test "$cross_compiling" = yes ||
9412 $as_test_x conftest
$ac_exeext
9414 ac_cv_func_shl_load
=yes
9416 $as_echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.
$ac_ext >&5
9419 ac_cv_func_shl_load
=no
9422 rm -rf conftest.dSYM
9423 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9424 conftest
$ac_exeext conftest.
$ac_ext
9426 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9427 $as_echo "$ac_cv_func_shl_load" >&6; }
9428 if test "x$ac_cv_func_shl_load" = x
""yes; then
9429 lt_cv_dlopen
="shl_load"
9431 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9432 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9433 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9434 $as_echo_n "(cached) " >&6
9436 ac_check_lib_save_LIBS
=$LIBS
9438 cat >conftest.
$ac_ext <<_ACEOF
9441 cat confdefs.h
>>conftest.
$ac_ext
9442 cat >>conftest.
$ac_ext <<_ACEOF
9443 /* end confdefs.h. */
9445 /* Override any GCC internal prototype to avoid an error.
9446 Use char because int might match the return type of a GCC
9447 builtin and then its argument prototype would still apply. */
9460 rm -f conftest.
$ac_objext conftest
$ac_exeext
9461 if { (ac_try
="$ac_link"
9463 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9464 *) ac_try_echo=$ac_try;;
9466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9467 $as_echo "$ac_try_echo") >&5
9468 (eval "$ac_link") 2>conftest.er1
9470 grep -v '^ *+' conftest.er1 >conftest.err
9472 cat conftest.err >&5
9473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } && {
9475 test -z "$ac_c_werror_flag" ||
9476 test ! -s conftest.err
9477 } && test -s conftest$ac_exeext && {
9478 test "$cross_compiling" = yes ||
9479 $as_test_x conftest$ac_exeext
9481 ac_cv_lib_dld_shl_load=yes
9483 $as_echo "$as_me: failed program was:" >&5
9484 sed 's/^/| /' conftest.$ac_ext >&5
9486 ac_cv_lib_dld_shl_load=no
9489 rm -rf conftest.dSYM
9490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9491 conftest$ac_exeext conftest.$ac_ext
9492 LIBS=$ac_check_lib_save_LIBS
9494 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9495 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9496 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
9497 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9499 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9500 $as_echo_n "checking for dlopen... " >&6; }
9501 if test "${ac_cv_func_dlopen+set}" = set; then
9502 $as_echo_n "(cached) " >&6
9504 cat >conftest.$ac_ext <<_ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h. */
9510 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9512 #define dlopen innocuous_dlopen
9514 /* System header to define __stub macros and hopefully few prototypes,
9515 which can conflict with char dlopen (); below.
9516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9517 <limits.h> exists even on freestanding compilers. */
9520 # include <limits.h>
9522 # include <assert.h>
9527 /* Override any GCC internal prototype to avoid an error.
9528 Use char because int might match the return type of a GCC
9529 builtin and then its argument prototype would still apply. */
9534 /* The GNU C library defines this for functions which it implements
9535 to always fail with ENOSYS. Some functions are actually named
9536 something starting with __ and the normal name is an alias. */
9537 #if defined __stub_dlopen || defined __stub___dlopen
9549 rm -f conftest.$ac_objext conftest$ac_exeext
9550 if { (ac_try="$ac_link"
9552 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9553 *) ac_try_echo
=$ac_try;;
9555 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9556 $as_echo "$ac_try_echo") >&5
9557 (eval "$ac_link") 2>conftest.er1
9559 grep -v '^ *+' conftest.er1
>conftest.err
9561 cat conftest.err
>&5
9562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } && {
9564 test -z "$ac_c_werror_flag" ||
9565 test ! -s conftest.err
9566 } && test -s conftest
$ac_exeext && {
9567 test "$cross_compiling" = yes ||
9568 $as_test_x conftest
$ac_exeext
9570 ac_cv_func_dlopen
=yes
9572 $as_echo "$as_me: failed program was:" >&5
9573 sed 's/^/| /' conftest.
$ac_ext >&5
9575 ac_cv_func_dlopen
=no
9578 rm -rf conftest.dSYM
9579 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9580 conftest
$ac_exeext conftest.
$ac_ext
9582 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9583 $as_echo "$ac_cv_func_dlopen" >&6; }
9584 if test "x$ac_cv_func_dlopen" = x
""yes; then
9585 lt_cv_dlopen
="dlopen"
9587 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9588 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9589 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9590 $as_echo_n "(cached) " >&6
9592 ac_check_lib_save_LIBS
=$LIBS
9594 cat >conftest.
$ac_ext <<_ACEOF
9597 cat confdefs.h
>>conftest.
$ac_ext
9598 cat >>conftest.
$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9601 /* Override any GCC internal prototype to avoid an error.
9602 Use char because int might match the return type of a GCC
9603 builtin and then its argument prototype would still apply. */
9616 rm -f conftest.
$ac_objext conftest
$ac_exeext
9617 if { (ac_try
="$ac_link"
9619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9620 *) ac_try_echo=$ac_try;;
9622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9623 $as_echo "$ac_try_echo") >&5
9624 (eval "$ac_link") 2>conftest.er1
9626 grep -v '^ *+' conftest.er1 >conftest.err
9628 cat conftest.err >&5
9629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } && {
9631 test -z "$ac_c_werror_flag" ||
9632 test ! -s conftest.err
9633 } && test -s conftest$ac_exeext && {
9634 test "$cross_compiling" = yes ||
9635 $as_test_x conftest$ac_exeext
9637 ac_cv_lib_dl_dlopen=yes
9639 $as_echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.$ac_ext >&5
9642 ac_cv_lib_dl_dlopen=no
9645 rm -rf conftest.dSYM
9646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9647 conftest$ac_exeext conftest.$ac_ext
9648 LIBS=$ac_check_lib_save_LIBS
9650 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9651 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9652 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9653 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9655 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9656 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9657 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9658 $as_echo_n "(cached) " >&6
9660 ac_check_lib_save_LIBS=$LIBS
9662 cat >conftest.$ac_ext <<_ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9669 /* Override any GCC internal prototype to avoid an error.
9670 Use char because int might match the return type of a GCC
9671 builtin and then its argument prototype would still apply. */
9684 rm -f conftest.$ac_objext conftest$ac_exeext
9685 if { (ac_try="$ac_link"
9687 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9688 *) ac_try_echo
=$ac_try;;
9690 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9691 $as_echo "$ac_try_echo") >&5
9692 (eval "$ac_link") 2>conftest.er1
9694 grep -v '^ *+' conftest.er1
>conftest.err
9696 cat conftest.err
>&5
9697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } && {
9699 test -z "$ac_c_werror_flag" ||
9700 test ! -s conftest.err
9701 } && test -s conftest
$ac_exeext && {
9702 test "$cross_compiling" = yes ||
9703 $as_test_x conftest
$ac_exeext
9705 ac_cv_lib_svld_dlopen
=yes
9707 $as_echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.
$ac_ext >&5
9710 ac_cv_lib_svld_dlopen
=no
9713 rm -rf conftest.dSYM
9714 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9715 conftest
$ac_exeext conftest.
$ac_ext
9716 LIBS
=$ac_check_lib_save_LIBS
9718 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9719 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9720 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then
9721 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
9723 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9724 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9725 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9726 $as_echo_n "(cached) " >&6
9728 ac_check_lib_save_LIBS
=$LIBS
9730 cat >conftest.
$ac_ext <<_ACEOF
9733 cat confdefs.h
>>conftest.
$ac_ext
9734 cat >>conftest.
$ac_ext <<_ACEOF
9735 /* end confdefs.h. */
9737 /* Override any GCC internal prototype to avoid an error.
9738 Use char because int might match the return type of a GCC
9739 builtin and then its argument prototype would still apply. */
9752 rm -f conftest.
$ac_objext conftest
$ac_exeext
9753 if { (ac_try
="$ac_link"
9755 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9756 *) ac_try_echo=$ac_try;;
9758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9759 $as_echo "$ac_try_echo") >&5
9760 (eval "$ac_link") 2>conftest.er1
9762 grep -v '^ *+' conftest.er1 >conftest.err
9764 cat conftest.err >&5
9765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); } && {
9767 test -z "$ac_c_werror_flag" ||
9768 test ! -s conftest.err
9769 } && test -s conftest$ac_exeext && {
9770 test "$cross_compiling" = yes ||
9771 $as_test_x conftest$ac_exeext
9773 ac_cv_lib_dld_dld_link=yes
9775 $as_echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.$ac_ext >&5
9778 ac_cv_lib_dld_dld_link=no
9781 rm -rf conftest.dSYM
9782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9783 conftest$ac_exeext conftest.$ac_ext
9784 LIBS=$ac_check_lib_save_LIBS
9786 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9787 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9788 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
9789 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9810 if test "x$lt_cv_dlopen" != xno; then
9816 case $lt_cv_dlopen in
9818 save_CPPFLAGS="$CPPFLAGS"
9819 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9821 save_LDFLAGS="$LDFLAGS"
9822 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9825 LIBS="$lt_cv_dlopen_libs $LIBS"
9827 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9828 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9829 if test "${lt_cv_dlopen_self+set}" = set; then
9830 $as_echo_n "(cached) " >&6
9832 if test "$cross_compiling" = yes; then :
9833 lt_cv_dlopen_self=cross
9835 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9836 lt_status=$lt_dlunknown
9837 cat > conftest.$ac_ext <<EOF
9838 #line 9838 "configure"
9839 #include "confdefs.h"
9848 # define LT_DLGLOBAL RTLD_GLOBAL
9851 # define LT_DLGLOBAL DL_GLOBAL
9853 # define LT_DLGLOBAL 0
9857 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9858 find out it does not work in some platform. */
9859 #ifndef LT_DLLAZY_OR_NOW
9861 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9864 # define LT_DLLAZY_OR_NOW DL_LAZY
9867 # define LT_DLLAZY_OR_NOW RTLD_NOW
9870 # define LT_DLLAZY_OR_NOW DL_NOW
9872 # define LT_DLLAZY_OR_NOW 0
9880 extern "C" void exit (int);
9883 void fnord() { int i=42;}
9886 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9887 int status = $lt_dlunknown;
9891 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9892 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9893 /* dlclose (self); */
9901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9902 (eval $ac_link) 2>&5
9904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9906 (./conftest; exit; ) >&5 2>/dev/null
9909 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9910 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9911 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9914 # compilation failed
9915 lt_cv_dlopen_self=no
9922 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9923 $as_echo "$lt_cv_dlopen_self" >&6; }
9925 if test "x$lt_cv_dlopen_self" = xyes; then
9926 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9927 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9928 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9929 if test "${lt_cv_dlopen_self_static+set}" = set; then
9930 $as_echo_n "(cached) " >&6
9932 if test "$cross_compiling" = yes; then :
9933 lt_cv_dlopen_self_static=cross
9935 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9936 lt_status=$lt_dlunknown
9937 cat > conftest.$ac_ext <<EOF
9938 #line 9938 "configure"
9939 #include "confdefs.h"
9948 # define LT_DLGLOBAL RTLD_GLOBAL
9951 # define LT_DLGLOBAL DL_GLOBAL
9953 # define LT_DLGLOBAL 0
9957 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9958 find out it does not work in some platform. */
9959 #ifndef LT_DLLAZY_OR_NOW
9961 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9964 # define LT_DLLAZY_OR_NOW DL_LAZY
9967 # define LT_DLLAZY_OR_NOW RTLD_NOW
9970 # define LT_DLLAZY_OR_NOW DL_NOW
9972 # define LT_DLLAZY_OR_NOW 0
9980 extern "C" void exit (int);
9983 void fnord() { int i=42;}
9986 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9987 int status = $lt_dlunknown;
9991 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9992 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9993 /* dlclose (self); */
10001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10002 (eval $ac_link) 2>&5
10004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10006 (./conftest; exit; ) >&5 2>/dev/null
10008 case x$lt_status in
10009 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10010 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10011 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10014 # compilation failed
10015 lt_cv_dlopen_self_static=no
10022 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10023 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10026 CPPFLAGS="$save_CPPFLAGS"
10027 LDFLAGS="$save_LDFLAGS"
10032 case $lt_cv_dlopen_self in
10033 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10034 *) enable_dlopen_self=unknown ;;
10037 case $lt_cv_dlopen_self_static in
10038 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10039 *) enable_dlopen_self_static=unknown ;;
10044 # Report which library types will actually be built
10045 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10046 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10047 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10048 $as_echo "$can_build_shared" >&6; }
10050 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10051 $as_echo_n "checking whether to build shared libraries... " >&6; }
10052 test "$can_build_shared" = "no" && enable_shared=no
10054 # On AIX, shared libraries and static libraries use the same namespace, and
10055 # are all built from PIC.
10058 test "$enable_shared" = yes && enable_static=no
10059 if test -n "$RANLIB"; then
10060 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10061 postinstall_cmds='$RANLIB $lib'
10066 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10067 test "$enable_shared" = yes && enable_static=no
10071 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10072 $as_echo "$enable_shared" >&6; }
10074 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10075 $as_echo_n "checking whether to build static libraries... " >&6; }
10076 # Make sure either enable_shared or enable_static is yes.
10077 test "$enable_shared" = yes || enable_static=yes
10078 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10079 $as_echo "$enable_static" >&6; }
10081 # The else clause should only fire when bootstrapping the
10082 # libtool distribution, otherwise you forgot to ship ltmain.sh
10083 # with your package, and you will get complaints that there are
10084 # no rules to generate ltmain.sh.
10085 if test -f "$ltmain"; then
10086 # See if we are running on zsh, and set the options which allow our commands through
10087 # without removal of \ escapes.
10088 if test -n "${ZSH_VERSION+set}" ; then
10089 setopt NO_GLOB_SUBST
10091 # Now quote all the things that may contain metacharacters while being
10092 # careful not to overquote the AC_SUBSTed values. We take copies of the
10093 # variables and quote the copies for generation of the libtool script.
10094 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10096 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10097 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10098 deplibs_check_method reload_flag reload_cmds need_locks \
10099 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10100 lt_cv_sys_global_symbol_to_c_name_address \
10101 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10102 old_postinstall_cmds old_postuninstall_cmds \
10106 lt_prog_compiler_wl \
10107 lt_prog_compiler_pic \
10108 lt_prog_compiler_static \
10109 lt_prog_compiler_no_builtin_flag \
10110 export_dynamic_flag_spec \
10111 thread_safe_flag_spec \
10112 whole_archive_flag_spec \
10113 enable_shared_with_static_runtimes \
10115 old_archive_from_new_cmds \
10120 compiler_lib_search_path \
10122 archive_expsym_cmds \
10124 postuninstall_cmds \
10125 old_archive_from_expsyms_cmds \
10126 allow_undefined_flag \
10127 no_undefined_flag \
10128 export_symbols_cmds \
10129 hardcode_libdir_flag_spec \
10130 hardcode_libdir_flag_spec_ld \
10131 hardcode_libdir_separator \
10132 hardcode_automatic \
10134 module_expsym_cmds \
10135 lt_cv_prog_compiler_c_o \
10137 include_expsyms; do
10140 old_archive_cmds | \
10141 old_archive_from_new_cmds | \
10143 archive_expsym_cmds | \
10145 module_expsym_cmds | \
10146 old_archive_from_expsyms_cmds | \
10147 export_symbols_cmds | \
10148 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10149 postinstall_cmds | postuninstall_cmds | \
10150 old_postinstall_cmds | old_postuninstall_cmds | \
10151 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10152 # Double-quote double-evaled strings.
10153 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
10156 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
10162 *'\$0 --fallback-echo"')
10163 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10167 cfgfile="${ofile}T"
10168 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10170 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10171 $as_echo "$as_me: creating $ofile" >&6;}
10173 cat <<__EOF__ >> "$cfgfile"
10176 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
10177 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10178 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10180 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10181 # Free Software Foundation, Inc.
10183 # This file is part of GNU Libtool:
10184 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10186 # This program is free software; you can redistribute it and/or modify
10187 # it under the terms of the GNU General Public License as published by
10188 # the Free Software Foundation; either version 2 of the License, or
10189 # (at your option) any later version.
10191 # This program is distributed in the hope that it will be useful, but
10192 # WITHOUT ANY WARRANTY; without even the implied warranty of
10193 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10194 # General Public License for more details.
10196 # You should have received a copy of the GNU General Public License
10197 # along with this program; if not, write to the Free Software
10198 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10200 # As a special exception to the GNU General Public License, if you
10201 # distribute this file as part of a program that contains a
10202 # configuration script generated by Autoconf, you may include it under
10203 # the same distribution terms that you use for the rest of that program.
10205 # A sed program that does not truncate output.
10208 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10209 Xsed="$SED -e 1s/^X//"
10211 # The HP-UX ksh and POSIX shell print the target directory to stdout
10212 # if CDPATH is set.
10213 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10215 # The names of the tagged configurations supported by this script.
10218 # ### BEGIN LIBTOOL CONFIG
10220 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
10222 # Shell to use when invoking shell scripts.
10225 # Whether or not to build shared libraries.
10226 build_libtool_libs=$enable_shared
10228 # Whether or not to build static libraries.
10229 build_old_libs=$enable_static
10231 # Whether or not to add -lc for building shared libraries.
10232 build_libtool_need_lc=$archive_cmds_need_lc
10234 # Whether or not to disallow shared libs when runtime libs are static
10235 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10237 # Whether or not to optimize for fast installation.
10238 fast_install=$enable_fast_install
10241 host_alias=$host_alias
10245 # The build system.
10246 build_alias=$build_alias
10250 # An echo program that does not interpret backslashes.
10255 AR_FLAGS=$lt_AR_FLAGS
10260 # LTCC compiler flags.
10261 LTCFLAGS=$lt_LTCFLAGS
10263 # A language-specific compiler.
10266 # Is the compiler the GNU C compiler?
10269 gcc_dir=\`gcc
-print-file-name=. |
$SED 's,/\.$,,'\
`
10270 gcc_ver=\`gcc
-dumpversion\
`
10275 # The linker used to build libraries.
10278 # Whether we need hard or soft links.
10281 # A BSD-compatible nm program.
10284 # A symbol stripping program
10287 # Used to examine libraries when file_magic_cmd begins "file"
10288 MAGIC_CMD=$MAGIC_CMD
10290 # Used on cygwin: DLL creation program.
10293 # Used on cygwin: object dumper.
10296 # Used on cygwin: assembler.
10299 # The name of the directory that contains temporary libtool files.
10302 # How to create reloadable object files.
10303 reload_flag=$lt_reload_flag
10304 reload_cmds=$lt_reload_cmds
10306 # How to pass a linker flag through the compiler.
10307 wl=$lt_lt_prog_compiler_wl
10309 # Object file suffix (normally "o").
10310 objext="$ac_objext"
10312 # Old archive suffix (normally "a").
10315 # Shared library suffix (normally ".so").
10316 shrext_cmds='$shrext_cmds'
10318 # Executable file suffix (normally "").
10321 # Additional compiler flags for building library objects.
10322 pic_flag=$lt_lt_prog_compiler_pic
10325 # What is the maximum length of a command?
10326 max_cmd_len=$lt_cv_sys_max_cmd_len
10328 # Does compiler simultaneously support -c and -o options?
10329 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10331 # Must we lock files when doing compilation?
10332 need_locks=$lt_need_locks
10334 # Do we need the lib prefix for modules?
10335 need_lib_prefix=$need_lib_prefix
10337 # Do we need a version for libraries?
10338 need_version=$need_version
10340 # Whether dlopen is supported.
10341 dlopen_support=$enable_dlopen
10343 # Whether dlopen of programs is supported.
10344 dlopen_self=$enable_dlopen_self
10346 # Whether dlopen of statically linked programs is supported.
10347 dlopen_self_static=$enable_dlopen_self_static
10349 # Compiler flag to prevent dynamic linking.
10350 link_static_flag=$lt_lt_prog_compiler_static
10352 # Compiler flag to turn off builtin functions.
10353 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10355 # Compiler flag to allow reflexive dlopens.
10356 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10358 # Compiler flag to generate shared objects directly from archives.
10359 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10361 # Compiler flag to generate thread-safe objects.
10362 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10364 # Library versioning type.
10365 version_type=$version_type
10367 # Format of library name prefix.
10368 libname_spec=$lt_libname_spec
10370 # List of archive names. First name is the real one, the rest are links.
10371 # The last name is the one that the linker finds with -lNAME.
10372 library_names_spec=$lt_library_names_spec
10374 # The coded name of the library, if different from the real name.
10375 soname_spec=$lt_soname_spec
10377 # Commands used to build and install an old-style archive.
10379 old_archive_cmds=$lt_old_archive_cmds
10380 old_postinstall_cmds=$lt_old_postinstall_cmds
10381 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10383 # Create an old-style archive from a shared archive.
10384 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10386 # Create a temporary old-style archive to link instead of a shared archive.
10387 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10389 # Commands used to build and install a shared archive.
10390 archive_cmds=$lt_archive_cmds
10391 archive_expsym_cmds=$lt_archive_expsym_cmds
10392 postinstall_cmds=$lt_postinstall_cmds
10393 postuninstall_cmds=$lt_postuninstall_cmds
10395 # Commands used to build a loadable module (assumed same as above if empty)
10396 module_cmds=$lt_module_cmds
10397 module_expsym_cmds=$lt_module_expsym_cmds
10399 # Commands to strip libraries.
10400 old_striplib=$lt_old_striplib
10401 striplib=$lt_striplib
10403 # Dependencies to place before the objects being linked to create a
10405 predep_objects=\`echo $lt_predep_objects | \
$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\
`
10407 # Dependencies to place after the objects being linked to create a
10409 postdep_objects=\`echo $lt_postdep_objects | \
$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\
`
10411 # Dependencies to place before the objects being linked to create a
10413 predeps=$lt_predeps
10415 # Dependencies to place after the objects being linked to create a
10417 postdeps=$lt_postdeps
10419 # The library search path used internally by the compiler when linking
10420 # a shared library.
10421 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \
$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\
`
10423 # Method to check whether dependent libraries are shared objects.
10424 deplibs_check_method=$lt_deplibs_check_method
10426 # Command to use when deplibs_check_method == file_magic.
10427 file_magic_cmd=$lt_file_magic_cmd
10429 # Flag that allows shared libraries with undefined symbols to be built.
10430 allow_undefined_flag=$lt_allow_undefined_flag
10432 # Flag that forces no undefined symbols.
10433 no_undefined_flag=$lt_no_undefined_flag
10435 # Commands used to finish a libtool library installation in a directory.
10436 finish_cmds=$lt_finish_cmds
10438 # Same as above, but a single script fragment to be evaled but not shown.
10439 finish_eval=$lt_finish_eval
10441 # Take the output of nm and produce a listing of raw symbols and C names.
10442 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10444 # Transform the output of nm in a proper C declaration
10445 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10447 # Transform the output of nm in a C name address pair
10448 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10450 # This is the shared library runtime path variable.
10451 runpath_var=$runpath_var
10453 # This is the shared library path variable.
10454 shlibpath_var=$shlibpath_var
10456 # Is shlibpath searched before the hard-coded library search path?
10457 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10459 # How to hardcode a shared library path into an executable.
10460 hardcode_action=$hardcode_action
10462 # Whether we should hardcode library paths into libraries.
10463 hardcode_into_libs=$hardcode_into_libs
10465 # Flag to hardcode \$libdir into a binary during linking.
10466 # This must work even if \$libdir does not exist.
10467 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10469 # If ld is used when linking, flag to hardcode \$libdir into
10470 # a binary during linking. This must work even if \$libdir does
10472 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10474 # Whether we need a single -rpath flag with a separated argument.
10475 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10477 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10478 # resulting binary.
10479 hardcode_direct=$hardcode_direct
10481 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10482 # resulting binary.
10483 hardcode_minus_L=$hardcode_minus_L
10485 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10486 # the resulting binary.
10487 hardcode_shlibpath_var=$hardcode_shlibpath_var
10489 # Set to yes if building a shared library automatically hardcodes DIR into the library
10490 # and all subsequent libraries and executables linked against it.
10491 hardcode_automatic=$hardcode_automatic
10493 # Variables whose values should be saved in libtool wrapper scripts and
10494 # restored at relink time.
10495 variables_saved_for_relink="$variables_saved_for_relink"
10497 # Whether libtool must link a program against all its dependency libraries.
10498 link_all_deplibs=$link_all_deplibs
10500 # Compile-time system search path for libraries
10501 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \
$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\
`
10503 # Run-time system search path for libraries
10504 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10506 # Fix the shell variable \$srcfile for the compiler.
10507 fix_srcfile_path="$fix_srcfile_path"
10509 # Set to yes if exported symbols are required.
10510 always_export_symbols=$always_export_symbols
10512 # The commands to list exported symbols.
10513 export_symbols_cmds=$lt_export_symbols_cmds
10515 # The commands to extract the exported symbol list from a shared archive.
10516 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10518 # Symbols that should not be listed in the preloaded symbols.
10519 exclude_expsyms=$lt_exclude_expsyms
10521 # Symbols that must always be exported.
10522 include_expsyms=$lt_include_expsyms
10524 # ### END LIBTOOL CONFIG
10531 cat <<\EOF >> "$cfgfile"
10533 # AIX sometimes has problems with the GCC collect2 program. For some
10534 # reason, if we set the COLLECT_NAMES environment variable, the problems
10535 # vanish in a puff of smoke.
10536 if test "X${COLLECT_NAMES+set}" != Xset; then
10538 export COLLECT_NAMES
10544 # We use sed instead of cat because bash on DJGPP gets confused if
10545 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10546 # text mode, it properly converts lines to CR/LF. This bash problem
10547 # is reportedly fixed, but why not run on old versions too?
10548 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10550 mv -f "$cfgfile" "$ofile" || \
10551 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10555 # If there is no Makefile yet, we rely on a make rule to execute
10556 # `config.status
--recheck' to rerun these tests and create the
10557 # libtool script then.
10558 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
10559 if test -f "$ltmain_in"; then
10560 test -f Makefile && make "$ltmain"
10566 ac_cpp='$CPP $CPPFLAGS'
10567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
10568 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
10569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10574 # Check whether --with-tags was given.
10575 if test "${with_tags+set}" = set; then
10576 withval=$with_tags; tagnames="$withval"
10580 if test -f "$ltmain" && test -n "$tagnames"; then
10581 if test ! -f "${ofile}"; then
10582 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
10583 $as_echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
10586 if test -z "$LTCC"; then
10587 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
10588 if test -z "$LTCC"; then
10589 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10590 $as_echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
10592 { $as_echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
10593 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
10596 if test -z "$LTCFLAGS"; then
10597 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
10600 # Extract list of available tagged configurations in $ofile.
10601 # Note that this assumes the entire list is on one line.
10602 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10604 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10605 for tagname in $tagnames; do
10607 # Check whether tagname contains only valid characters
10608 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10610 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10611 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
10612 { (exit 1); exit 1; }; }
10616 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10618 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10619 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10620 { (exit 1); exit 1; }; }
10623 # Update the list of available tags.
10624 if test -n "$tagname"; then
10625 echo appending configuration tag \"$tagname\" to $ofile
10629 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10630 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
10631 (test "X$CXX" != "Xg++"))) ; then
10633 ac_cpp='$CXXCPP $CPPFLAGS'
10634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10641 archive_cmds_need_lc_CXX=no
10642 allow_undefined_flag_CXX=
10643 always_export_symbols_CXX=no
10644 archive_expsym_cmds_CXX=
10645 export_dynamic_flag_spec_CXX=
10646 hardcode_direct_CXX=no
10647 hardcode_libdir_flag_spec_CXX=
10648 hardcode_libdir_flag_spec_ld_CXX=
10649 hardcode_libdir_separator_CXX=
10650 hardcode_minus_L_CXX=no
10651 hardcode_shlibpath_var_CXX=unsupported
10652 hardcode_automatic_CXX=no
10654 module_expsym_cmds_CXX=
10655 link_all_deplibs_CXX=unknown
10656 old_archive_cmds_CXX=$old_archive_cmds
10657 no_undefined_flag_CXX=
10658 whole_archive_flag_spec_CXX=
10659 enable_shared_with_static_runtimes_CXX=no
10661 # Dependencies to place before and after the object being linked:
10662 predep_objects_CXX=
10663 postdep_objects_CXX=
10666 compiler_lib_search_path_CXX=
10668 # Source file extension for C++ test sources.
10671 # Object file extension for compiled C++ test sources.
10675 # Code to be used in simple compile tests
10676 lt_simple_compile_test_code="int some_variable = 0;\n"
10678 # Code to be used in simple link tests
10679 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10681 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10683 # If no C compiler was specified, use CC.
10686 # If no C compiler flags were specified, use CFLAGS.
10687 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10689 # Allow CC to be a program name with arguments.
10693 # save warnings/boilerplate of simple test code
10694 ac_outfile=conftest.$ac_objext
10695 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10696 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10697 _lt_compiler_boilerplate=`cat conftest.err
`
10700 ac_outfile=conftest.$ac_objext
10701 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10702 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10703 _lt_linker_boilerplate=`cat conftest.err
`
10707 # Allow CC to be a program name with arguments.
10712 lt_save_with_gnu_ld=$with_gnu_ld
10713 lt_save_path_LD=$lt_cv_path_LD
10714 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10715 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10717 $as_unset lt_cv_prog_gnu_ld
10719 if test -n "${lt_cv_path_LDCXX+set}"; then
10720 lt_cv_path_LD=$lt_cv_path_LDCXX
10722 $as_unset lt_cv_path_LD
10724 test -z "${LDCXX+set}" || LD=$LDCXX
10728 for cc_temp in $compiler""; do
10730 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10731 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10736 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10739 # We don't want -fno-exception wen compiling C++ code, so set the
10740 # no_builtin_flag separately
10741 if test "$GXX" = yes; then
10742 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10744 lt_prog_compiler_no_builtin_flag_CXX=
10747 if test "$GXX" = yes; then
10748 # Set up default GNU C++ configuration
10751 # Check whether --with-gnu-ld was given.
10752 if test "${with_gnu_ld+set}" = set; then
10753 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10759 if test "$GCC" = yes; then
10760 # Check if gcc -print-prog-name=ld gives a path.
10761 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10762 $as_echo_n "checking for ld used by $CC... " >&6; }
10765 # gcc leaves a trailing carriage return which upsets mingw
10766 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
10768 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
10771 # Accept absolute paths.
10773 re_direlt='/[^/][^/]*/\.\./'
10774 # Canonicalize the pathname of ld
10775 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
10776 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10777 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
10779 test -z "$LD" && LD="$ac_prog"
10782 # If it fails, then pretend we aren't using GCC.
10786 # If it is relative, then search for the first ld in PATH.
10787 with_gnu_ld=unknown
10790 elif test "$with_gnu_ld" = yes; then
10791 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
10792 $as_echo_n "checking for GNU ld... " >&6; }
10794 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10795 $as_echo_n "checking for non-GNU ld... " >&6; }
10797 if test "${lt_cv_path_LD+set}" = set; then
10798 $as_echo_n "(cached) " >&6
10800 if test -z "$LD"; then
10801 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10802 for ac_dir in $PATH; do
10804 test -z "$ac_dir" && ac_dir=.
10805 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10806 lt_cv_path_LD="$ac_dir/$ac_prog"
10807 # Check to see if the program is GNU ld. I'd rather use --version,
10808 # but apparently some variants of GNU ld only accept -v.
10809 # Break only if it was the GNU/non-GNU ld that we prefer.
10810 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
10811 *GNU* | *'with BFD'*)
10812 test "$with_gnu_ld" != no && break
10815 test "$with_gnu_ld" != yes && break
10822 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10826 LD="$lt_cv_path_LD"
10827 if test -n "$LD"; then
10828 { $as_echo "$as_me:$LINENO: result: $LD" >&5
10829 $as_echo "$LD" >&6; }
10831 { $as_echo "$as_me:$LINENO: result: no" >&5
10832 $as_echo "no" >&6; }
10834 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10835 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10836 { (exit 1); exit 1; }; }
10837 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10838 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10839 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10840 $as_echo_n "(cached) " >&6
10842 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10843 case `$LD -v 2>&1 </dev
/null
` in
10844 *GNU* | *'with BFD'*)
10845 lt_cv_prog_gnu_ld=yes
10848 lt_cv_prog_gnu_ld=no
10852 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10853 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10854 with_gnu_ld=$lt_cv_prog_gnu_ld
10858 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10859 # archiving commands below assume that GNU ld is being used.
10860 if test "$with_gnu_ld" = yes; then
10861 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10862 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'
10864 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10865 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10867 # If archive_cmds runs LD, not CC, wlarc should be empty
10868 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10869 # investigate it a little bit more. (MM)
10872 # ancient GNU ld didn't support --whole-archive et. al.
10873 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
10874 grep 'no-whole-archive' > /dev/null; then
10875 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10877 whole_archive_flag_spec_CXX=
10883 # A generic and very simple default shared library creation
10884 # command for GNU C++ for the case where it uses the native
10885 # linker, instead of GNU ld. If possible, this setting should
10886 # overridden to take advantage of the native linker features on
10887 # the platform it is being used on.
10888 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10891 # Commands to make compiler produce verbose output that lists
10892 # what "hidden" libraries, object files and flags are used when
10893 # linking a shared library.
10894 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10902 # PORTME: fill in a description of your system's C++ link characteristics
10903 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10904 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10908 # FIXME: insert proper C++ library support
10912 if test "$host_cpu" = ia64; then
10913 # On IA64, the linker does run time linking by default, so we don't
10914 # have to do anything special.
10915 aix_use_runtimelinking=no
10916 exp_sym_flag='-Bexport'
10919 aix_use_runtimelinking=no
10921 # Test if we are trying to use run time linking or normal
10922 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10923 # need to do runtime linking.
10924 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10925 for ld_flag in $LDFLAGS; do
10928 aix_use_runtimelinking=yes
10936 exp_sym_flag='-bexport'
10937 no_entry_flag='-bnoentry'
10940 # When large executables or shared objects are built, AIX ld can
10941 # have problems creating the table of contents. If linking a library
10942 # or program results in "error TOC overflow" add -mminimal-toc to
10943 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10944 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10946 archive_cmds_CXX=''
10947 hardcode_direct_CXX=yes
10948 hardcode_libdir_separator_CXX=':'
10949 link_all_deplibs_CXX=yes
10951 if test "$GXX" = yes; then
10952 case $host_os in aix4.[012]|aix4.[012].*)
10953 # We only want to do this on AIX 4.2 and lower, the check
10954 # below for broken collect2 doesn't work under 4.3+
10955 collect2name=`${CC} -print-prog-name=collect2
`
10956 if test -f "$collect2name" && \
10957 strings "$collect2name" | grep resolve_lib_name >/dev/null
10959 # We have reworked collect2
10960 hardcode_direct_CXX=yes
10962 # We have old collect2
10963 hardcode_direct_CXX=unsupported
10964 # It fails to find uninstalled libraries when the uninstalled
10965 # path is not listed in the libpath. Setting hardcode_minus_L
10966 # to unsupported forces relinking
10967 hardcode_minus_L_CXX=yes
10968 hardcode_libdir_flag_spec_CXX='-L$libdir'
10969 hardcode_libdir_separator_CXX=
10973 shared_flag='-shared'
10974 if test "$aix_use_runtimelinking" = yes; then
10975 shared_flag="$shared_flag "'${wl}-G'
10979 if test "$host_cpu" = ia64; then
10980 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10981 # chokes on -Wl,-G. The following line is correct:
10984 if test "$aix_use_runtimelinking" = yes; then
10985 shared_flag='${wl}-G'
10987 shared_flag='${wl}-bM:SRE'
10992 # It seems that -bexpall does not export symbols beginning with
10993 # underscore (_), so it is better to generate a list of symbols to export.
10994 always_export_symbols_CXX=yes
10995 if test "$aix_use_runtimelinking" = yes; then
10996 # Warning - without using the other runtime loading flags (-brtl),
10997 # -berok will link without error, but may produce a broken library.
10998 allow_undefined_flag_CXX='-berok'
10999 # Determine the default libpath from the value encoded in an empty executable.
11000 cat >conftest.$ac_ext <<_ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h. */
11015 rm -f conftest.$ac_objext conftest$ac_exeext
11016 if { (ac_try="$ac_link"
11017 case "(($ac_try" in
11018 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11019 *) ac_try_echo
=$ac_try;;
11021 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11022 $as_echo "$ac_try_echo") >&5
11023 (eval "$ac_link") 2>conftest.er1
11025 grep -v '^ *+' conftest.er1
>conftest.err
11027 cat conftest.err
>&5
11028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); } && {
11030 test -z "$ac_cxx_werror_flag" ||
11031 test ! -s conftest.err
11032 } && test -s conftest
$ac_exeext && {
11033 test "$cross_compiling" = yes ||
11034 $as_test_x conftest
$ac_exeext
11037 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11039 # Check for a 64-bit object if we didn't find anything.
11040 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; }
11043 $as_echo "$as_me: failed program was:" >&5
11044 sed 's/^/| /' conftest.
$ac_ext >&5
11049 rm -rf conftest.dSYM
11050 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11051 conftest
$ac_exeext conftest.
$ac_ext
11052 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
11054 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
11056 archive_expsym_cmds_CXX
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11058 if test "$host_cpu" = ia64
; then
11059 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
11060 allow_undefined_flag_CXX
="-z nodefs"
11061 archive_expsym_cmds_CXX
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11063 # Determine the default libpath from the value encoded in an empty executable.
11064 cat >conftest.
$ac_ext <<_ACEOF
11067 cat confdefs.h
>>conftest.
$ac_ext
11068 cat >>conftest.
$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11079 rm -f conftest.
$ac_objext conftest
$ac_exeext
11080 if { (ac_try
="$ac_link"
11081 case "(($ac_try" in
11082 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11083 *) ac_try_echo=$ac_try;;
11085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11086 $as_echo "$ac_try_echo") >&5
11087 (eval "$ac_link") 2>conftest.er1
11089 grep -v '^ *+' conftest.er1 >conftest.err
11091 cat conftest.err >&5
11092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } && {
11094 test -z "$ac_cxx_werror_flag" ||
11095 test ! -s conftest.err
11096 } && test -s conftest$ac_exeext && {
11097 test "$cross_compiling" = yes ||
11098 $as_test_x conftest$ac_exeext
11101 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11103 # Check for a 64-bit object if we didn't find anything.
11104 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; }
11107 $as_echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11113 rm -rf conftest.dSYM
11114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11115 conftest$ac_exeext conftest.$ac_ext
11116 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11118 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11119 # Warning - without using the other run time loading flags,
11120 # -berok will link without error, but may produce a broken library.
11121 no_undefined_flag_CXX=' ${wl}-bernotok'
11122 allow_undefined_flag_CXX=' ${wl}-berok'
11123 # Exported symbols can be pulled into shared objects from archives
11124 whole_archive_flag_spec_CXX='$convenience'
11125 archive_cmds_need_lc_CXX=yes
11126 # This is similar to how AIX traditionally builds its shared libraries.
11127 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11133 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11134 allow_undefined_flag_CXX=unsupported
11135 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11136 # support --undefined. This deserves some investigation. FIXME
11137 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11144 case $cc_basename in
11146 # FIXME: insert proper C++ library support
11152 cygwin* | mingw* | pw32*)
11153 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11154 # as there is no search path for DLLs.
11155 hardcode_libdir_flag_spec_CXX='-L$libdir'
11156 allow_undefined_flag_CXX=unsupported
11157 always_export_symbols_CXX=no
11158 enable_shared_with_static_runtimes_CXX=yes
11160 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11161 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11162 # If the export-symbols file already is a .def file (1st line
11163 # is EXPORTS), use it as is; otherwise, prepend...
11164 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
11165 cp $export_symbols $output_objdir/$soname.def;
11167 echo EXPORTS > $output_objdir/$soname.def;
11168 cat $export_symbols >> $output_objdir/$soname.def;
11170 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11175 darwin* | rhapsody*)
11177 rhapsody* | darwin1.[012])
11178 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11181 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11182 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11184 case ${MACOSX_DEPLOYMENT_TARGET} in
11186 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11189 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11195 archive_cmds_need_lc_CXX=no
11196 hardcode_direct_CXX=no
11197 hardcode_automatic_CXX=yes
11198 hardcode_shlibpath_var_CXX=unsupported
11199 whole_archive_flag_spec_CXX=''
11200 link_all_deplibs_CXX=yes
11202 if test "$GXX" = yes ; then
11203 lt_int_apple_cc_single_mod=no
11204 output_verbose_link_cmd='echo'
11205 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11206 lt_int_apple_cc_single_mod=yes
11208 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11209 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11211 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11213 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11214 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11215 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11216 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}'
11218 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11220 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}'
11222 case $cc_basename in
11224 output_verbose_link_cmd='echo'
11225 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11226 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11227 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11228 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11229 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}'
11239 case $cc_basename in
11241 # FIXME: insert proper C++ library support
11245 # Green Hills C++ Compiler
11246 # FIXME: insert proper C++ library support
11250 # FIXME: insert proper C++ library support
11256 # C++ shared libraries reported to be fairly broken before switch to ELF
11260 archive_cmds_need_lc_CXX=no
11262 freebsd* | kfreebsd*-gnu | dragonfly*)
11263 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11270 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11271 hardcode_libdir_separator_CXX=:
11272 export_dynamic_flag_spec_CXX='${wl}-E'
11273 hardcode_direct_CXX=yes
11274 hardcode_minus_L_CXX=yes # Not in the search PATH,
11275 # but as the default
11276 # location of the library.
11278 case $cc_basename in
11280 # FIXME: insert proper C++ library support
11284 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'
11285 # Commands to make compiler produce verbose output that lists
11286 # what "hidden" libraries, object files and flags are used when
11287 # linking a shared library.
11289 # There doesn't appear to be a way to prevent this compiler from
11290 # explicitly linking system object files so we need to strip them
11291 # from the output so that they don't get included in the library
11293 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'
11296 if test "$GXX" = yes; then
11297 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'
11299 # FIXME: insert proper C++ library support
11306 if test $with_gnu_ld = no; then
11307 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11308 hardcode_libdir_separator_CXX=:
11312 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11315 export_dynamic_flag_spec_CXX='${wl}-E'
11321 hardcode_direct_CXX=no
11322 hardcode_shlibpath_var_CXX=no
11325 hardcode_direct_CXX=yes
11326 hardcode_minus_L_CXX=yes # Not in the search PATH,
11327 # but as the default
11328 # location of the library.
11332 case $cc_basename in
11334 # FIXME: insert proper C++ library support
11340 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11343 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11346 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11349 # Commands to make compiler produce verbose output that lists
11350 # what "hidden" libraries, object files and flags are used when
11351 # linking a shared library.
11353 # There doesn't appear to be a way to prevent this compiler from
11354 # explicitly linking system object files so we need to strip them
11355 # from the output so that they don't get included in the library
11357 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'
11360 if test "$GXX" = yes; then
11361 if test $with_gnu_ld = no; then
11364 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11367 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11370 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'
11375 # FIXME: insert proper C++ library support
11382 hardcode_direct_CXX=no
11383 hardcode_shlibpath_var_CXX=no
11384 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11385 export_dynamic_flag_spec_CXX='${wl}-E'
11386 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11387 # Instead, shared libraries are loaded at an image base (0x10000000 by
11388 # default) and relocated if they conflict, which is a slow very memory
11389 # consuming and fragmenting process. To avoid this, we pick a random,
11390 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11391 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11392 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11393 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~
$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \
* 262144 + 1342177280` -o $lib'
11396 case $cc_basename in
11399 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11401 # Archives containing C++ object files must be created using
11402 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11403 # necessary to make sure instantiated templates are included
11405 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11408 if test "$GXX" = yes; then
11409 if test "$with_gnu_ld" = no; then
11410 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11412 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'
11415 link_all_deplibs_CXX=yes
11418 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11419 hardcode_libdir_separator_CXX=:
11422 case $cc_basename in
11424 # Kuck and Associates, Inc. (KAI) C++ Compiler
11426 # KCC will only create a shared library if the output file
11427 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11428 # to its proper name (with version) after linking.
11429 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'
11430 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'
11431 # Commands to make compiler produce verbose output that lists
11432 # what "hidden" libraries, object files and flags are used when
11433 # linking a shared library.
11435 # There doesn't appear to be a way to prevent this compiler from
11436 # explicitly linking system object files so we need to strip them
11437 # from the output so that they don't get included in the library
11439 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'
11441 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
11442 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11444 # Archives containing C++ object files must be created using
11445 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11446 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11451 # version 8.0 and above of icpc choke on multiply defined symbols
11452 # if we add $predep_objects and $postdep_objects, however 7.1 and
11453 # earlier do not add the objects themselves.
11454 case `$CC -V 2>&1` in
11456 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11457 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'
11459 *) # Version 8.0 or newer
11462 ia64
*) tmp_idyn
=' -i_dynamic';;
11464 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11465 archive_expsym_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11468 archive_cmds_need_lc_CXX
=no
11469 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11470 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11471 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11474 # Portland Group C++ compiler
11475 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11476 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11478 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
11479 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11480 whole_archive_flag_spec_CXX
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11484 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11485 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'
11487 runpath_var
=LD_RUN_PATH
11488 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11489 hardcode_libdir_separator_CXX
=:
11491 # Commands to make compiler produce verbose output that lists
11492 # what "hidden" libraries, object files and flags are used when
11493 # linking a shared library.
11495 # There doesn't appear to be a way to prevent this compiler from
11496 # explicitly linking system object files so we need to strip them
11497 # from the output so that they don't get included in the library
11499 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'
11504 # FIXME: insert proper C++ library support
11508 # FIXME: insert proper C++ library support
11512 case $cc_basename in
11514 # FIXME: insert proper C++ library support
11518 # FIXME: insert proper C++ library support
11524 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11525 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11527 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11528 hardcode_direct_CXX
=yes
11529 hardcode_shlibpath_var_CXX
=no
11531 # Workaround some broken pre-1.5 toolchains
11532 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11535 # C++ shared libraries are fairly broken
11539 hardcode_direct_CXX
=yes
11540 hardcode_shlibpath_var_CXX
=no
11541 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11542 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11543 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11544 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11545 export_dynamic_flag_spec_CXX
='${wl}-E'
11546 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11548 output_verbose_link_cmd
='echo'
11551 case $cc_basename in
11553 # Kuck and Associates, Inc. (KAI) C++ Compiler
11555 # KCC will only create a shared library if the output file
11556 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11557 # to its proper name (with version) after linking.
11558 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'
11560 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11561 hardcode_libdir_separator_CXX
=:
11563 # Archives containing C++ object files must be created using
11564 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11565 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11569 # Rational C++ 2.4.1
11570 # FIXME: insert proper C++ library support
11574 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11575 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11577 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11578 hardcode_libdir_separator_CXX
=:
11580 # Commands to make compiler produce verbose output that lists
11581 # what "hidden" libraries, object files and flags are used when
11582 # linking a shared library.
11584 # There doesn't appear to be a way to prevent this compiler from
11585 # explicitly linking system object files so we need to strip them
11586 # from the output so that they don't get included in the library
11588 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'
11591 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11592 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11593 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11595 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11596 hardcode_libdir_separator_CXX
=:
11598 # Commands to make compiler produce verbose output that lists
11599 # what "hidden" libraries, object files and flags are used when
11600 # linking a shared library.
11601 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11604 # FIXME: insert proper C++ library support
11611 case $cc_basename in
11613 # Kuck and Associates, Inc. (KAI) C++ Compiler
11615 # KCC will only create a shared library if the output file
11616 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11617 # to its proper name (with version) after linking.
11618 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'
11620 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11621 hardcode_libdir_separator_CXX
=:
11623 # Archives containing C++ object files must be created using
11624 # the KAI C++ compiler.
11625 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
11628 # Rational C++ 2.4.1
11629 # FIXME: insert proper C++ library support
11633 allow_undefined_flag_CXX
=' -expect_unresolved \*'
11634 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11635 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11636 echo "-hidden">> $lib.exp~
11637 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11640 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11641 hardcode_libdir_separator_CXX
=:
11643 # Commands to make compiler produce verbose output that lists
11644 # what "hidden" libraries, object files and flags are used when
11645 # linking a shared library.
11647 # There doesn't appear to be a way to prevent this compiler from
11648 # explicitly linking system object files so we need to strip them
11649 # from the output so that they don't get included in the library
11651 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'
11654 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11655 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11656 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11658 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11659 hardcode_libdir_separator_CXX
=:
11661 # Commands to make compiler produce verbose output that lists
11662 # what "hidden" libraries, object files and flags are used when
11663 # linking a shared library.
11664 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11667 # FIXME: insert proper C++ library support
11674 # FIXME: insert proper C++ library support
11678 case $cc_basename in
11681 # FIXME: insert proper C++ library support
11686 # FIXME: insert proper C++ library support
11690 # FIXME: insert proper C++ library support
11696 case $cc_basename in
11698 # Sun C++ 4.2, 5.x and Centerline C++
11699 archive_cmds_need_lc_CXX
=yes
11700 no_undefined_flag_CXX
=' -zdefs'
11701 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11702 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11703 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11705 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11706 hardcode_shlibpath_var_CXX
=no
11708 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11710 # The C++ compiler is used as linker so we must use $wl
11711 # flag to pass the commands to the underlying system
11712 # linker. We must also pass each convience library through
11713 # to the system linker between allextract/defaultextract.
11714 # The C++ compiler will combine linker options so we
11715 # cannot just pass the convience library names through
11717 # Supported since Solaris 2.6 (maybe 2.5.1?)
11718 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11721 link_all_deplibs_CXX
=yes
11723 output_verbose_link_cmd
='echo'
11725 # Archives containing C++ object files must be created using
11726 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11727 # necessary to make sure instantiated templates are included
11729 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
11732 # Green Hills C++ Compiler
11733 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11735 # The C++ compiler must be used to create the archive.
11736 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11739 # GNU C++ compiler with Solaris linker
11740 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11741 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
11742 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
11743 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11744 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11745 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11747 # Commands to make compiler produce verbose output that lists
11748 # what "hidden" libraries, object files and flags are used when
11749 # linking a shared library.
11750 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11752 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11754 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11755 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11756 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11758 # Commands to make compiler produce verbose output that lists
11759 # what "hidden" libraries, object files and flags are used when
11760 # linking a shared library.
11761 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11764 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
11769 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
11770 no_undefined_flag_CXX
='${wl}-z,text'
11771 archive_cmds_need_lc_CXX
=no
11772 hardcode_shlibpath_var_CXX
=no
11773 runpath_var
='LD_RUN_PATH'
11775 case $cc_basename in
11777 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11778 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11781 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11782 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11786 sysv5
* | sco3.2v5
* | sco5v6
*)
11787 # Note: We can NOT use -z defs as we might desire, because we do not
11788 # link with -lc, and that would cause any symbols used from libc to
11789 # always be unresolved, which means just about no library would
11790 # ever link correctly. If we're not using GNU ld we use -z text
11791 # though, which does catch some bad symbols but isn't as heavy-handed
11793 # For security reasons, it is highly recommended that you always
11794 # use absolute paths for naming shared libraries, and exclude the
11795 # DT_RUNPATH tag from executables and libraries. But doing so
11796 # requires that you compile everything twice, which is a pain.
11797 # So that behaviour is only enabled if SCOABSPATH is set to a
11798 # non-empty value in the environment. Most likely only useful for
11799 # creating official distributions of packages.
11800 # This is a hack until libtool officially supports absolute path
11801 # names for shared libraries.
11802 no_undefined_flag_CXX
='${wl}-z,text'
11803 allow_undefined_flag_CXX
='${wl}-z,nodefs'
11804 archive_cmds_need_lc_CXX
=no
11805 hardcode_shlibpath_var_CXX
=no
11806 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11807 hardcode_libdir_separator_CXX
=':'
11808 link_all_deplibs_CXX
=yes
11809 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
11810 runpath_var
='LD_RUN_PATH'
11812 case $cc_basename in
11814 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11815 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11818 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11819 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11824 case $cc_basename in
11826 # NonStop-UX NCC 3.20
11827 # FIXME: insert proper C++ library support
11831 # FIXME: insert proper C++ library support
11837 # FIXME: insert proper C++ library support
11841 # FIXME: insert proper C++ library support
11845 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11846 $as_echo "$ld_shlibs_CXX" >&6; }
11847 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
11853 cat > conftest.
$ac_ext <<EOF
11857 Foo (void) { a = 0; }
11863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11864 (eval $ac_compile) 2>&5
11866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; then
11868 # Parse the compiler output and extract the necessary
11869 # objects, libraries and library flags.
11871 # Sentinel used to keep track of whether or not we are before
11872 # the conftest object file.
11873 pre_test_object_deps_done
=no
11875 # The `*' in the case matches for architectures that use `case' in
11876 # $output_verbose_cmd can trigger glob expansion during the loop
11877 # eval without this substitution.
11878 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11880 for p
in `eval $output_verbose_link_cmd`; do
11884 # Some compilers place space between "-{L,R}" and the path.
11885 # Remove the space.
11886 if test $p = "-L" \
11887 ||
test $p = "-R"; then
11894 if test "$pre_test_object_deps_done" = no
; then
11897 # Internal compiler library paths should come after those
11898 # provided the user. The postdeps already come after the
11899 # user supplied libs so there is no need to process them.
11900 if test -z "$compiler_lib_search_path_CXX"; then
11901 compiler_lib_search_path_CXX
="${prev}${p}"
11903 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
11906 # The "-l" case would never come before the object being
11907 # linked, so don't bother handling this case.
11910 if test -z "$postdeps_CXX"; then
11911 postdeps_CXX
="${prev}${p}"
11913 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
11919 # This assumes that the test object file only shows up
11920 # once in the compiler output.
11921 if test "$p" = "conftest.$objext"; then
11922 pre_test_object_deps_done
=yes
11926 if test "$pre_test_object_deps_done" = no
; then
11927 if test -z "$predep_objects_CXX"; then
11928 predep_objects_CXX
="$p"
11930 predep_objects_CXX
="$predep_objects_CXX $p"
11933 if test -z "$postdep_objects_CXX"; then
11934 postdep_objects_CXX
="$p"
11936 postdep_objects_CXX
="$postdep_objects_CXX $p"
11941 *) ;; # Ignore the rest.
11949 echo "libtool.m4: error: problem compiling CXX test program"
11952 $rm -f confest.
$objext
11954 # PORTME: override above test on systems where it is broken
11957 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11958 # hack all around it, let's just trust "g++" to DTRT.
11959 predep_objects_CXX
=
11960 postdep_objects_CXX
=
11965 case $cc_basename in
11967 # Adding this requires a known-good setup of shared libraries for
11968 # Sun compiler versions before 5.6, else PIC objects from an old
11969 # archive will be linked into the output, leading to subtle bugs.
11970 postdeps_CXX
='-lCstd -lCrun'
11977 case " $postdeps_CXX " in
11978 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
11981 lt_prog_compiler_wl_CXX
=
11982 lt_prog_compiler_pic_CXX
=
11983 lt_prog_compiler_static_CXX
=
11985 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11986 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11988 # C++ specific cases for pic, static, wl, etc.
11989 if test "$GXX" = yes; then
11990 lt_prog_compiler_wl_CXX
='-Wl,'
11991 lt_prog_compiler_static_CXX
='-static'
11995 # All AIX code is PIC.
11996 if test "$host_cpu" = ia64
; then
11997 # AIX 5 now supports IA64 processor
11998 lt_prog_compiler_static_CXX
='-Bstatic'
12002 # FIXME: we need at least 68020 code to build shared libraries, but
12003 # adding the `-m68020' flag to GCC prevents building anything better,
12005 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
12007 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12008 # PIC is the default for these OSes.
12010 mingw
* | os2
* | pw32
*)
12011 # This hack is so that the source file can tell whether it is being
12012 # built for inclusion in a dll (and should export symbols for example).
12013 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
12015 darwin
* | rhapsody
*)
12016 # PIC is the default on this platform
12017 # Common symbols not allowed in MH_DYLIB files
12018 lt_prog_compiler_pic_CXX
='-fno-common'
12021 # DJGPP does not support shared libraries at all
12022 lt_prog_compiler_pic_CXX
=
12025 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12026 # Instead, we relocate shared libraries at runtime.
12029 if test -d /usr
/nec
; then
12030 lt_prog_compiler_pic_CXX
=-Kconform_pic
12034 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12035 # not for PA HP-UX.
12040 lt_prog_compiler_pic_CXX
='-fPIC'
12045 lt_prog_compiler_pic_CXX
='-fPIC'
12051 # All AIX code is PIC.
12052 if test "$host_cpu" = ia64
; then
12053 # AIX 5 now supports IA64 processor
12054 lt_prog_compiler_static_CXX
='-Bstatic'
12056 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
12060 case $cc_basename in
12062 # Green Hills C++ Compiler
12063 # _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"
12068 # PIC is the default on this platform
12069 # Common symbols not allowed in MH_DYLIB files
12070 case $cc_basename in
12072 lt_prog_compiler_pic_CXX
='-qnocommon'
12073 lt_prog_compiler_wl_CXX
='-Wl,'
12078 case $cc_basename in
12080 lt_prog_compiler_pic_CXX
='-KPIC'
12083 # Green Hills C++ Compiler
12084 lt_prog_compiler_pic_CXX
='-pic'
12090 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
12091 # FreeBSD uses GNU C++
12093 hpux9
* | hpux10
* | hpux11
*)
12094 case $cc_basename in
12096 lt_prog_compiler_wl_CXX
='-Wl,'
12097 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
12098 if test "$host_cpu" != ia64
; then
12099 lt_prog_compiler_pic_CXX
='+Z'
12103 lt_prog_compiler_wl_CXX
='-Wl,'
12104 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
12110 lt_prog_compiler_pic_CXX
='+Z'
12119 # This is c89, which is MS Visual C++ (no shared libs)
12120 # Anyone wants to do a port?
12122 irix5
* | irix6
* | nonstopux
*)
12123 case $cc_basename in
12125 lt_prog_compiler_wl_CXX
='-Wl,'
12126 lt_prog_compiler_static_CXX
='-non_shared'
12127 # CC pic flag -KPIC is the default.
12134 case $cc_basename in
12137 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12138 lt_prog_compiler_pic_CXX
='-fPIC'
12142 lt_prog_compiler_wl_CXX
='-Wl,'
12143 lt_prog_compiler_pic_CXX
='-KPIC'
12144 lt_prog_compiler_static_CXX
='-static'
12147 # Portland Group C++ compiler.
12148 lt_prog_compiler_wl_CXX
='-Wl,'
12149 lt_prog_compiler_pic_CXX
='-fpic'
12150 lt_prog_compiler_static_CXX
='-Bstatic'
12154 # Make sure the PIC flag is empty. It appears that all Alpha
12155 # Linux and Compaq Tru64 Unix objects are PIC.
12156 lt_prog_compiler_pic_CXX
=
12157 lt_prog_compiler_static_CXX
='-non_shared'
12168 case $cc_basename in
12170 lt_prog_compiler_pic_CXX
='-W c,exportall'
12178 osf3
* | osf4
* | osf5
*)
12179 case $cc_basename in
12181 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12184 # Rational C++ 2.4.1
12185 lt_prog_compiler_pic_CXX
='-pic'
12188 # Digital/Compaq C++
12189 lt_prog_compiler_wl_CXX
='-Wl,'
12190 # Make sure the PIC flag is empty. It appears that all Alpha
12191 # Linux and Compaq Tru64 Unix objects are PIC.
12192 lt_prog_compiler_pic_CXX
=
12193 lt_prog_compiler_static_CXX
='-non_shared'
12202 case $cc_basename in
12204 # Sun C++ 4.2, 5.x and Centerline C++
12205 lt_prog_compiler_pic_CXX
='-KPIC'
12206 lt_prog_compiler_static_CXX
='-Bstatic'
12207 lt_prog_compiler_wl_CXX
='-Qoption ld '
12210 # Green Hills C++ Compiler
12211 lt_prog_compiler_pic_CXX
='-PIC'
12218 case $cc_basename in
12221 lt_prog_compiler_pic_CXX
='-pic'
12222 lt_prog_compiler_static_CXX
='-Bstatic'
12226 lt_prog_compiler_pic_CXX
='-pic'
12233 case $cc_basename in
12235 # NonStop-UX NCC 3.20
12236 lt_prog_compiler_pic_CXX
='-KPIC'
12242 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12243 case $cc_basename in
12245 lt_prog_compiler_wl_CXX
='-Wl,'
12246 lt_prog_compiler_pic_CXX
='-KPIC'
12247 lt_prog_compiler_static_CXX
='-Bstatic'
12254 lt_prog_compiler_can_build_shared_CXX
=no
12259 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12260 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12263 # Check to make sure the PIC flag actually works.
12265 if test -n "$lt_prog_compiler_pic_CXX"; then
12267 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12268 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12269 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12270 $as_echo_n "(cached) " >&6
12272 lt_prog_compiler_pic_works_CXX
=no
12273 ac_outfile
=conftest.
$ac_objext
12274 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
12275 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
12276 # Insert the option either (1) after the last *FLAGS variable, or
12277 # (2) before a word containing "conftest.", or (3) at the end.
12278 # Note that $ac_compile itself does not contain backslashes and begins
12279 # with a dollar sign (not a hyphen), so the echo should work correctly.
12280 # The option is referenced via a variable to avoid confusing sed.
12281 lt_compile
=`echo "$ac_compile" | $SED \
12282 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12283 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12284 -e 's:$: $lt_compiler_flag:'`
12285 (eval echo "\"\$as_me:12285: $lt_compile\"" >&5)
12286 (eval "$lt_compile" 2>conftest.err
)
12288 cat conftest.err
>&5
12289 echo "$as_me:12289: \$? = $ac_status" >&5
12290 if (exit $ac_status) && test -s "$ac_outfile"; then
12291 # The compiler can only warn and ignore the option if not recognized
12292 # So say no if there are warnings other than the usual output.
12293 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
12294 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12295 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12296 lt_prog_compiler_pic_works_CXX
=yes
12302 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12303 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
12305 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
12306 case $lt_prog_compiler_pic_CXX in
12308 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
12311 lt_prog_compiler_pic_CXX
=
12312 lt_prog_compiler_can_build_shared_CXX
=no
12317 # For platforms which do not support PIC, -DPIC is meaningless:
12319 lt_prog_compiler_pic_CXX
=
12322 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
12327 # Check to make sure the static flag actually works.
12329 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
12330 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12331 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12332 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12333 $as_echo_n "(cached) " >&6
12335 lt_prog_compiler_static_works_CXX
=no
12336 save_LDFLAGS
="$LDFLAGS"
12337 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12338 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
12339 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12340 # The linker can only warn and ignore the option if not recognized
12341 # So say no if there are warnings
12342 if test -s conftest.err
; then
12343 # Append any errors to the config.log.
12344 cat conftest.err
1>&5
12345 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
12346 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12347 if diff conftest.exp conftest.er2
>/dev
/null
; then
12348 lt_prog_compiler_static_works_CXX
=yes
12351 lt_prog_compiler_static_works_CXX
=yes
12355 LDFLAGS
="$save_LDFLAGS"
12358 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12359 $as_echo "$lt_prog_compiler_static_works_CXX" >&6; }
12361 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
12364 lt_prog_compiler_static_CXX
=
12368 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12369 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12370 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12371 $as_echo_n "(cached) " >&6
12373 lt_cv_prog_compiler_c_o_CXX
=no
12374 $rm -r conftest
2>/dev
/null
12378 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
12380 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12381 # Insert the option either (1) after the last *FLAGS variable, or
12382 # (2) before a word containing "conftest.", or (3) at the end.
12383 # Note that $ac_compile itself does not contain backslashes and begins
12384 # with a dollar sign (not a hyphen), so the echo should work correctly.
12385 lt_compile
=`echo "$ac_compile" | $SED \
12386 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12388 -e 's:$: $lt_compiler_flag:'`
12389 (eval echo "\"\$as_me:12389: $lt_compile\"" >&5)
12390 (eval "$lt_compile" 2>out
/conftest.err
)
12392 cat out
/conftest.err
>&5
12393 echo "$as_me:12393: \$? = $ac_status" >&5
12394 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12396 # The compiler can only warn and ignore the option if not recognized
12397 # So say no if there are warnings
12398 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
12399 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12400 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12401 lt_cv_prog_compiler_c_o_CXX
=yes
12406 # SGI C++ compiler will create directory out/ii_files/ for
12407 # template instantiation
12408 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
12409 $rm out
/* && rmdir out
12415 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12416 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12419 hard_links
="nottested"
12420 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
12421 # do not overwrite the value of need_locks provided by the user
12422 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12423 $as_echo_n "checking if we can lock with hard links... " >&6; }
12426 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12428 ln conftest.a conftest.b
2>&5 || hard_links
=no
12429 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12430 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
12431 $as_echo "$hard_links" >&6; }
12432 if test "$hard_links" = no
; then
12433 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12434 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12441 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12442 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12444 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12447 # If we're using GNU nm, then we don't want the "-C" option.
12448 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12449 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
12450 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'
12452 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'
12456 export_symbols_cmds_CXX
="$ltdll_cmds"
12459 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12462 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12466 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12467 $as_echo "$ld_shlibs_CXX" >&6; }
12468 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
12471 # Do we need to explicitly link libc?
12473 case "x$archive_cmds_need_lc_CXX" in
12475 # Assume -lc should be added
12476 archive_cmds_need_lc_CXX
=yes
12478 if test "$enable_shared" = yes && test "$GCC" = yes; then
12479 case $archive_cmds_CXX in
12481 # FIXME: we may have to deal with multi-command sequences.
12484 # Test whether the compiler implicitly links with -lc since on some
12485 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12486 # to ld, don't add -lc before -lgcc.
12487 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12488 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12490 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
12492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12493 (eval $ac_compile) 2>&5
12495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } 2>conftest.err
; then
12499 libobjs
=conftest.
$ac_objext
12501 wl
=$lt_prog_compiler_wl_CXX
12502 pic_flag
=$lt_prog_compiler_pic_CXX
12508 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
12509 allow_undefined_flag_CXX
=
12510 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12511 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
12513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }
12516 archive_cmds_need_lc_CXX
=no
12518 archive_cmds_need_lc_CXX
=yes
12520 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
12522 cat conftest.err
1>&5
12525 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12526 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12533 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12534 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12535 library_names_spec
=
12536 libname_spec
='lib$name'
12540 postuninstall_cmds
=
12544 shlibpath_overrides_runpath
=unknown
12546 dynamic_linker
="$host_os ld.so"
12547 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
12548 if test "$GCC" = yes; then
12549 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12550 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
12551 # if the path contains ";" then we assume it to be the separator
12552 # otherwise default to the standard path separator (i.e. ":") - it is
12553 # assumed that no part of a normal pathname contains ";" but that should
12554 # okay in the real world where ";" in dirpaths is itself problematic.
12555 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12557 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12560 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
12562 need_lib_prefix
=unknown
12563 hardcode_into_libs
=no
12565 # when you set need_version to no, make sure it does not cause -set_version
12566 # flags to be left without arguments
12567 need_version
=unknown
12572 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
12573 shlibpath_var
=LIBPATH
12575 # AIX 3 has no versioning support, so we append a major version to the name.
12576 soname_spec
='${libname}${release}${shared_ext}$major'
12583 hardcode_into_libs
=yes
12584 if test "$host_cpu" = ia64
; then
12585 # AIX 5 supports IA64
12586 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12587 shlibpath_var
=LD_LIBRARY_PATH
12589 # With GCC up to 2.95.x, collect2 would create an import file
12590 # for dependence libraries. The import file would start with
12591 # the line `#! .'. This would cause the generated library to
12592 # depend on `.', always an invalid library. This was fixed in
12593 # development snapshots of GCC prior to 3.0.
12595 aix4 | aix4.
[01] | aix4.
[01].
*)
12596 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12598 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
12601 can_build_shared
=no
12605 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12606 # soname into executable. Probably we can add versioning support to
12607 # collect2, so additional links can be useful in future.
12608 if test "$aix_use_runtimelinking" = yes; then
12609 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12610 # instead of lib<name>.a to let people know that these are not
12611 # typical AIX shared libraries.
12612 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12614 # We preserve .a as extension for shared libraries through AIX4.2
12615 # and later when we are not doing run time linking.
12616 library_names_spec
='${libname}${release}.a $libname.a'
12617 soname_spec
='${libname}${release}${shared_ext}$major'
12619 shlibpath_var
=LIBPATH
12624 library_names_spec
='$libname.ixlibrary $libname.a'
12625 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12626 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'
12630 library_names_spec
='${libname}${shared_ext}'
12631 dynamic_linker
="$host_os ld.so"
12632 shlibpath_var
=LIBRARY_PATH
12638 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12639 soname_spec
='${libname}${release}${shared_ext}$major'
12640 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
12641 shlibpath_var
=LD_LIBRARY_PATH
12642 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12643 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
12644 # the default ld.so.conf also contains /usr/contrib/lib and
12645 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12646 # libtool to hard-code these into programs
12649 cygwin
* | mingw
* | pw32
*)
12650 version_type
=windows
12655 case $GCC,$host_os in
12656 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
12657 library_names_spec
='$libname.dll.a'
12658 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12659 postinstall_cmds
='base_file=`basename \${file}`~
12660 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12661 dldir=$destdir/`dirname \$dlpath`~
12662 test -d \$dldir || mkdir -p \$dldir~
12663 $install_prog $dir/$dlname \$dldir/$dlname~
12664 chmod a+x \$dldir/$dlname'
12665 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12666 dlpath=$dir/\$dldll~
12668 shlibpath_overrides_runpath
=yes
12672 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12673 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12674 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
12677 # MinGW DLLs use traditional 'lib' prefix
12678 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12679 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12680 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
12681 # It is most probably a Windows format PATH printed by
12682 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12683 # path with ; separators, and with drive letters. We can handle the
12684 # drive letters (cygwin fileutils understands them), so leave them,
12685 # especially as we might pass files found there to a mingw objdump,
12686 # which wouldn't understand a cygwinified path. Ahh.
12687 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12689 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12693 # pw32 DLLs use 'pw' prefix rather than 'lib'
12694 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12700 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12703 dynamic_linker
='Win32 ld.exe'
12704 # FIXME: first we should search . and the directory the executable is in
12708 darwin
* | rhapsody
*)
12709 dynamic_linker
="$host_os dyld"
12710 version_type
=darwin
12713 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12714 soname_spec
='${libname}${release}${major}$shared_ext'
12715 shlibpath_overrides_runpath
=yes
12716 shlibpath_var
=DYLD_LIBRARY_PATH
12717 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
12718 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12719 if test "$GCC" = yes; then
12720 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"`
12722 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
12724 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
12731 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12732 soname_spec
='${libname}${release}${shared_ext}$major'
12733 shlibpath_var
=LD_LIBRARY_PATH
12744 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12745 soname_spec
='${libname}${release}${shared_ext}$major'
12746 shlibpath_var
=LD_LIBRARY_PATH
12747 shlibpath_overrides_runpath
=no
12748 hardcode_into_libs
=yes
12749 dynamic_linker
='GNU ld.so'
12752 freebsd
* | dragonfly
*)
12753 # DragonFly does not have aout. When/if they implement a new
12754 # versioning mechanism, adjust this.
12755 if test -x /usr
/bin
/objformat
; then
12756 objformat
=`/usr/bin/objformat`
12759 freebsd
[123]*) objformat
=aout
;;
12760 *) objformat
=elf
;;
12763 version_type
=freebsd-
$objformat
12764 case $version_type in
12766 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12771 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12775 shlibpath_var
=LD_LIBRARY_PATH
12778 shlibpath_overrides_runpath
=yes
12780 freebsd3.
[01]* | freebsdelf3.
[01]*)
12781 shlibpath_overrides_runpath
=yes
12782 hardcode_into_libs
=yes
12784 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
12785 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
12786 shlibpath_overrides_runpath
=no
12787 hardcode_into_libs
=yes
12789 freebsd
*) # from 4.6 on
12790 shlibpath_overrides_runpath
=yes
12791 hardcode_into_libs
=yes
12800 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12801 soname_spec
='${libname}${release}${shared_ext}$major'
12802 shlibpath_var
=LD_LIBRARY_PATH
12803 hardcode_into_libs
=yes
12806 hpux9
* | hpux10
* | hpux11
*)
12807 # Give a soname corresponding to the major version so that dld.sl refuses to
12808 # link against other versions.
12815 hardcode_into_libs
=yes
12816 dynamic_linker
="$host_os dld.so"
12817 shlibpath_var
=LD_LIBRARY_PATH
12818 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12819 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12820 soname_spec
='${libname}${release}${shared_ext}$major'
12821 if test "X$HPUX_IA64_MODE" = X32
; then
12822 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12824 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
12826 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12830 hardcode_into_libs
=yes
12831 dynamic_linker
="$host_os dld.sl"
12832 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
12833 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12834 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12835 soname_spec
='${libname}${release}${shared_ext}$major'
12836 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12837 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12841 dynamic_linker
="$host_os dld.sl"
12842 shlibpath_var
=SHLIB_PATH
12843 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
12844 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12845 soname_spec
='${libname}${release}${shared_ext}$major'
12848 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12849 postinstall_cmds
='chmod 555 $lib'
12856 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12857 soname_spec
='${libname}${release}${shared_ext}$major'
12858 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
12859 shlibpath_var
=LD_LIBRARY_PATH
12860 shlibpath_overrides_runpath
=no
12861 hardcode_into_libs
=yes
12864 irix5
* | irix6
* | nonstopux
*)
12866 nonstopux
*) version_type
=nonstopux
;;
12868 if test "$lt_cv_prog_gnu_ld" = yes; then
12876 soname_spec
='${libname}${release}${shared_ext}$major'
12877 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12879 irix5
* | nonstopux
*)
12880 libsuff
= shlibsuff
=
12883 case $LD in # libtool.m4 will add one of these switches to LD
12884 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
12885 libsuff
= shlibsuff
= libmagic
=32-bit;;
12886 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
12887 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
12888 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
12889 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
12890 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
12894 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
12895 shlibpath_overrides_runpath
=no
12896 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12897 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
12898 hardcode_into_libs
=yes
12901 # No shared lib support for Linux oldld, aout, or coff.
12902 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
12906 # This must be Linux ELF.
12911 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12912 soname_spec
='${libname}${release}${shared_ext}$major'
12913 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12914 shlibpath_var
=LD_LIBRARY_PATH
12915 shlibpath_overrides_runpath
=no
12916 # This implies no fast_install, which is unacceptable.
12917 # Some rework will be needed to allow for fast_install
12918 # before this can be enabled.
12919 hardcode_into_libs
=yes
12921 # find out which ABI we are using
12923 case "$host_cpu" in
12924 x86_64
*|s390x
*|powerpc64
*)
12925 echo '#line 12925 "configure"' > conftest.
$ac_ext
12926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12927 (eval $ac_compile) 2>&5
12929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; then
12931 case `/usr/bin/file conftest.$ac_objext` in
12934 sys_lib_search_path_spec
="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12942 # Append ld.so.conf contents to the search path
12943 if test -f /etc
/ld.so.conf
; then
12944 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12945 sys_lib_dlsearch_path_spec
="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12948 # We used to test for /lib/ld.so.1 and disable shared libraries on
12949 # powerpc, because MkLinux only supported shared libraries with the
12950 # GNU dynamic linker. Since this was broken with cross compilers,
12951 # most powerpc-linux boxes support dynamic linking these days and
12952 # people can always --disable-shared, the test was removed, and we
12953 # assume the GNU/Linux dynamic linker is in use.
12954 dynamic_linker
='GNU/Linux ld.so'
12961 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12962 soname_spec
='${libname}${release}${shared_ext}$major'
12963 shlibpath_var
=LD_LIBRARY_PATH
12964 shlibpath_overrides_runpath
=no
12965 hardcode_into_libs
=yes
12966 dynamic_linker
='GNU ld.so'
12973 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
12974 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12975 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12976 dynamic_linker
='NetBSD (a.out) ld.so'
12978 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12979 soname_spec
='${libname}${release}${shared_ext}$major'
12980 dynamic_linker
='NetBSD ld.elf_so'
12982 shlibpath_var
=LD_LIBRARY_PATH
12983 shlibpath_overrides_runpath
=yes
12984 hardcode_into_libs
=yes
12989 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12990 shlibpath_var
=LD_LIBRARY_PATH
12991 shlibpath_overrides_runpath
=yes
12998 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12999 soname_spec
='${libname}${release}${shared_ext}$major'
13000 shlibpath_var
=LD_LIBRARY_PATH
13001 shlibpath_overrides_runpath
=yes
13006 sys_lib_dlsearch_path_spec
="/usr/lib"
13008 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13010 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
13011 *) need_version
=no
;;
13013 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13014 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13015 shlibpath_var
=LD_LIBRARY_PATH
13016 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13018 openbsd2.
[89] | openbsd2.
[89].
*)
13019 shlibpath_overrides_runpath
=no
13022 shlibpath_overrides_runpath
=yes
13026 shlibpath_overrides_runpath
=yes
13031 libname_spec
='$name'
13034 library_names_spec
='$libname${shared_ext} $libname.a'
13035 dynamic_linker
='OS/2 ld.exe'
13036 shlibpath_var
=LIBPATH
13039 osf3
* | osf4
* | osf5
*)
13043 soname_spec
='${libname}${release}${shared_ext}$major'
13044 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13045 shlibpath_var
=LD_LIBRARY_PATH
13046 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13047 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
13054 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13055 soname_spec
='${libname}${release}${shared_ext}$major'
13056 shlibpath_var
=LD_LIBRARY_PATH
13057 shlibpath_overrides_runpath
=yes
13058 hardcode_into_libs
=yes
13059 # ldd complains unless libraries are executable
13060 postinstall_cmds
='chmod +x $lib'
13065 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13066 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13067 shlibpath_var
=LD_LIBRARY_PATH
13068 shlibpath_overrides_runpath
=yes
13069 if test "$with_gnu_ld" = yes; then
13077 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13078 soname_spec
='${libname}${release}${shared_ext}$major'
13079 shlibpath_var
=LD_LIBRARY_PATH
13080 case $host_vendor in
13082 shlibpath_overrides_runpath
=no
13084 export_dynamic_flag_spec
='${wl}-Blargedynsym'
13085 runpath_var
=LD_RUN_PATH
13093 shlibpath_overrides_runpath
=no
13094 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
13100 if test -d /usr
/nec
;then
13102 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13103 soname_spec
='$libname${shared_ext}.$major'
13104 shlibpath_var
=LD_LIBRARY_PATH
13108 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
13109 version_type
=freebsd-elf
13112 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13113 soname_spec
='${libname}${release}${shared_ext}$major'
13114 shlibpath_var
=LD_LIBRARY_PATH
13115 hardcode_into_libs
=yes
13116 if test "$with_gnu_ld" = yes; then
13117 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13118 shlibpath_overrides_runpath
=no
13120 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
13121 shlibpath_overrides_runpath
=yes
13124 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
13128 sys_lib_dlsearch_path_spec
='/usr/lib'
13133 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13134 soname_spec
='${libname}${release}${shared_ext}$major'
13135 shlibpath_var
=LD_LIBRARY_PATH
13142 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13143 $as_echo "$dynamic_linker" >&6; }
13144 test "$dynamic_linker" = no
&& can_build_shared
=no
13146 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
13147 if test "$GCC" = yes; then
13148 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13151 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13152 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13153 hardcode_action_CXX
=
13154 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13155 test -n "$runpath_var_CXX" || \
13156 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13158 # We can hardcode non-existant directories.
13159 if test "$hardcode_direct_CXX" != no
&&
13160 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13161 # have to relink, otherwise we might link with an installed library
13162 # when we should be linking with a yet-to-be-installed one
13163 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13164 test "$hardcode_minus_L_CXX" != no
; then
13165 # Linking always hardcodes the temporary library directory.
13166 hardcode_action_CXX
=relink
13168 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13169 hardcode_action_CXX
=immediate
13172 # We cannot hardcode anything, or else we can only hardcode existing
13174 hardcode_action_CXX
=unsupported
13176 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13177 $as_echo "$hardcode_action_CXX" >&6; }
13179 if test "$hardcode_action_CXX" = relink
; then
13180 # Fast installation is not supported
13181 enable_fast_install
=no
13182 elif test "$shlibpath_overrides_runpath" = yes ||
13183 test "$enable_shared" = no
; then
13184 # Fast installation is not necessary
13185 enable_fast_install
=needless
13189 # The else clause should only fire when bootstrapping the
13190 # libtool distribution, otherwise you forgot to ship ltmain.sh
13191 # with your package, and you will get complaints that there are
13192 # no rules to generate ltmain.sh.
13193 if test -f "$ltmain"; then
13194 # See if we are running on zsh, and set the options which allow our commands through
13195 # without removal of \ escapes.
13196 if test -n "${ZSH_VERSION+set}" ; then
13197 setopt NO_GLOB_SUBST
13199 # Now quote all the things that may contain metacharacters while being
13200 # careful not to overquote the AC_SUBSTed values. We take copies of the
13201 # variables and quote the copies for generation of the libtool script.
13202 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13204 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13205 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13206 deplibs_check_method reload_flag reload_cmds need_locks \
13207 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13208 lt_cv_sys_global_symbol_to_c_name_address \
13209 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13210 old_postinstall_cmds old_postuninstall_cmds \
13214 lt_prog_compiler_wl_CXX \
13215 lt_prog_compiler_pic_CXX \
13216 lt_prog_compiler_static_CXX \
13217 lt_prog_compiler_no_builtin_flag_CXX \
13218 export_dynamic_flag_spec_CXX \
13219 thread_safe_flag_spec_CXX \
13220 whole_archive_flag_spec_CXX \
13221 enable_shared_with_static_runtimes_CXX \
13222 old_archive_cmds_CXX \
13223 old_archive_from_new_cmds_CXX \
13224 predep_objects_CXX \
13225 postdep_objects_CXX \
13228 compiler_lib_search_path_CXX \
13230 archive_expsym_cmds_CXX \
13231 postinstall_cmds_CXX \
13232 postuninstall_cmds_CXX \
13233 old_archive_from_expsyms_cmds_CXX \
13234 allow_undefined_flag_CXX \
13235 no_undefined_flag_CXX \
13236 export_symbols_cmds_CXX \
13237 hardcode_libdir_flag_spec_CXX \
13238 hardcode_libdir_flag_spec_ld_CXX \
13239 hardcode_libdir_separator_CXX \
13240 hardcode_automatic_CXX \
13242 module_expsym_cmds_CXX \
13243 lt_cv_prog_compiler_c_o_CXX \
13244 exclude_expsyms_CXX \
13245 include_expsyms_CXX
; do
13248 old_archive_cmds_CXX | \
13249 old_archive_from_new_cmds_CXX | \
13250 archive_cmds_CXX | \
13251 archive_expsym_cmds_CXX | \
13252 module_cmds_CXX | \
13253 module_expsym_cmds_CXX | \
13254 old_archive_from_expsyms_cmds_CXX | \
13255 export_symbols_cmds_CXX | \
13256 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13257 postinstall_cmds | postuninstall_cmds | \
13258 old_postinstall_cmds | old_postuninstall_cmds | \
13259 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
13260 # Double-quote double-evaled strings.
13261 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13264 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13270 *'\$0 --fallback-echo"')
13271 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13277 cat <<__EOF__ >> "$cfgfile"
13278 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13280 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13282 # Shell to use when invoking shell scripts.
13285 # Whether or not to build shared libraries.
13286 build_libtool_libs=$enable_shared
13288 # Whether or not to build static libraries.
13289 build_old_libs=$enable_static
13291 # Whether or not to add -lc for building shared libraries.
13292 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13294 # Whether or not to disallow shared libs when runtime libs are static
13295 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13297 # Whether or not to optimize for fast installation.
13298 fast_install=$enable_fast_install
13301 host_alias=$host_alias
13305 # The build system.
13306 build_alias=$build_alias
13310 # An echo program that does not interpret backslashes.
13315 AR_FLAGS=$lt_AR_FLAGS
13320 # LTCC compiler flags.
13321 LTCFLAGS=$lt_LTCFLAGS
13323 # A language-specific compiler.
13324 CC=$lt_compiler_CXX
13326 # Is the compiler the GNU C compiler?
13329 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
13330 gcc_ver=\`gcc -dumpversion\`
13335 # The linker used to build libraries.
13338 # Whether we need hard or soft links.
13341 # A BSD-compatible nm program.
13344 # A symbol stripping program
13347 # Used to examine libraries when file_magic_cmd begins "file"
13348 MAGIC_CMD=$MAGIC_CMD
13350 # Used on cygwin: DLL creation program.
13353 # Used on cygwin: object dumper.
13356 # Used on cygwin: assembler.
13359 # The name of the directory that contains temporary libtool files.
13362 # How to create reloadable object files.
13363 reload_flag=$lt_reload_flag
13364 reload_cmds=$lt_reload_cmds
13366 # How to pass a linker flag through the compiler.
13367 wl=$lt_lt_prog_compiler_wl_CXX
13369 # Object file suffix (normally "o").
13370 objext="$ac_objext"
13372 # Old archive suffix (normally "a").
13375 # Shared library suffix (normally ".so").
13376 shrext_cmds='$shrext_cmds'
13378 # Executable file suffix (normally "").
13381 # Additional compiler flags for building library objects.
13382 pic_flag=$lt_lt_prog_compiler_pic_CXX
13385 # What is the maximum length of a command?
13386 max_cmd_len=$lt_cv_sys_max_cmd_len
13388 # Does compiler simultaneously support -c and -o options?
13389 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13391 # Must we lock files when doing compilation?
13392 need_locks=$lt_need_locks
13394 # Do we need the lib prefix for modules?
13395 need_lib_prefix=$need_lib_prefix
13397 # Do we need a version for libraries?
13398 need_version=$need_version
13400 # Whether dlopen is supported.
13401 dlopen_support=$enable_dlopen
13403 # Whether dlopen of programs is supported.
13404 dlopen_self=$enable_dlopen_self
13406 # Whether dlopen of statically linked programs is supported.
13407 dlopen_self_static=$enable_dlopen_self_static
13409 # Compiler flag to prevent dynamic linking.
13410 link_static_flag=$lt_lt_prog_compiler_static_CXX
13412 # Compiler flag to turn off builtin functions.
13413 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13415 # Compiler flag to allow reflexive dlopens.
13416 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13418 # Compiler flag to generate shared objects directly from archives.
13419 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13421 # Compiler flag to generate thread-safe objects.
13422 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13424 # Library versioning type.
13425 version_type=$version_type
13427 # Format of library name prefix.
13428 libname_spec=$lt_libname_spec
13430 # List of archive names. First name is the real one, the rest are links.
13431 # The last name is the one that the linker finds with -lNAME.
13432 library_names_spec=$lt_library_names_spec
13434 # The coded name of the library, if different from the real name.
13435 soname_spec=$lt_soname_spec
13437 # Commands used to build and install an old-style archive.
13439 old_archive_cmds=$lt_old_archive_cmds_CXX
13440 old_postinstall_cmds=$lt_old_postinstall_cmds
13441 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13443 # Create an old-style archive from a shared archive.
13444 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13446 # Create a temporary old-style archive to link instead of a shared archive.
13447 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13449 # Commands used to build and install a shared archive.
13450 archive_cmds=$lt_archive_cmds_CXX
13451 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13452 postinstall_cmds=$lt_postinstall_cmds
13453 postuninstall_cmds=$lt_postuninstall_cmds
13455 # Commands used to build a loadable module (assumed same as above if empty)
13456 module_cmds=$lt_module_cmds_CXX
13457 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13459 # Commands to strip libraries.
13460 old_striplib=$lt_old_striplib
13461 striplib=$lt_striplib
13463 # Dependencies to place before the objects being linked to create a
13465 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13467 # Dependencies to place after the objects being linked to create a
13469 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13471 # Dependencies to place before the objects being linked to create a
13473 predeps=$lt_predeps_CXX
13475 # Dependencies to place after the objects being linked to create a
13477 postdeps=$lt_postdeps_CXX
13479 # The library search path used internally by the compiler when linking
13480 # a shared library.
13481 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13483 # Method to check whether dependent libraries are shared objects.
13484 deplibs_check_method=$lt_deplibs_check_method
13486 # Command to use when deplibs_check_method == file_magic.
13487 file_magic_cmd=$lt_file_magic_cmd
13489 # Flag that allows shared libraries with undefined symbols to be built.
13490 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13492 # Flag that forces no undefined symbols.
13493 no_undefined_flag=$lt_no_undefined_flag_CXX
13495 # Commands used to finish a libtool library installation in a directory.
13496 finish_cmds=$lt_finish_cmds
13498 # Same as above, but a single script fragment to be evaled but not shown.
13499 finish_eval=$lt_finish_eval
13501 # Take the output of nm and produce a listing of raw symbols and C names.
13502 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13504 # Transform the output of nm in a proper C declaration
13505 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13507 # Transform the output of nm in a C name address pair
13508 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13510 # This is the shared library runtime path variable.
13511 runpath_var=$runpath_var
13513 # This is the shared library path variable.
13514 shlibpath_var=$shlibpath_var
13516 # Is shlibpath searched before the hard-coded library search path?
13517 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13519 # How to hardcode a shared library path into an executable.
13520 hardcode_action=$hardcode_action_CXX
13522 # Whether we should hardcode library paths into libraries.
13523 hardcode_into_libs=$hardcode_into_libs
13525 # Flag to hardcode \$libdir into a binary during linking.
13526 # This must work even if \$libdir does not exist.
13527 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13529 # If ld is used when linking, flag to hardcode \$libdir into
13530 # a binary during linking. This must work even if \$libdir does
13532 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13534 # Whether we need a single -rpath flag with a separated argument.
13535 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13537 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13538 # resulting binary.
13539 hardcode_direct=$hardcode_direct_CXX
13541 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13542 # resulting binary.
13543 hardcode_minus_L=$hardcode_minus_L_CXX
13545 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13546 # the resulting binary.
13547 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13549 # Set to yes if building a shared library automatically hardcodes DIR into the library
13550 # and all subsequent libraries and executables linked against it.
13551 hardcode_automatic=$hardcode_automatic_CXX
13553 # Variables whose values should be saved in libtool wrapper scripts and
13554 # restored at relink time.
13555 variables_saved_for_relink="$variables_saved_for_relink"
13557 # Whether libtool must link a program against all its dependency libraries.
13558 link_all_deplibs=$link_all_deplibs_CXX
13560 # Compile-time system search path for libraries
13561 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13563 # Run-time system search path for libraries
13564 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13566 # Fix the shell variable \$srcfile for the compiler.
13567 fix_srcfile_path="$fix_srcfile_path_CXX"
13569 # Set to yes if exported symbols are required.
13570 always_export_symbols=$always_export_symbols_CXX
13572 # The commands to list exported symbols.
13573 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13575 # The commands to extract the exported symbol list from a shared archive.
13576 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13578 # Symbols that should not be listed in the preloaded symbols.
13579 exclude_expsyms=$lt_exclude_expsyms_CXX
13581 # Symbols that must always be exported.
13582 include_expsyms=$lt_include_expsyms_CXX
13584 # ### END LIBTOOL TAG CONFIG: $tagname
13590 # If there is no Makefile yet, we rely on a make rule to execute
13591 # `config.status --recheck' to rerun these tests and create the
13592 # libtool script then.
13593 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13594 if test -f "$ltmain_in"; then
13595 test -f Makefile
&& make "$ltmain"
13601 ac_cpp
='$CPP $CPPFLAGS'
13602 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13603 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13604 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13610 with_gnu_ldcxx
=$with_gnu_ld
13611 with_gnu_ld
=$lt_save_with_gnu_ld
13612 lt_cv_path_LDCXX
=$lt_cv_path_LD
13613 lt_cv_path_LD
=$lt_save_path_LD
13614 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
13615 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
13623 if test -n "$F77" && test "X$F77" != "Xno"; then
13626 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13627 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13628 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
13631 archive_cmds_need_lc_F77
=no
13632 allow_undefined_flag_F77
=
13633 always_export_symbols_F77
=no
13634 archive_expsym_cmds_F77
=
13635 export_dynamic_flag_spec_F77
=
13636 hardcode_direct_F77
=no
13637 hardcode_libdir_flag_spec_F77
=
13638 hardcode_libdir_flag_spec_ld_F77
=
13639 hardcode_libdir_separator_F77
=
13640 hardcode_minus_L_F77
=no
13641 hardcode_automatic_F77
=no
13643 module_expsym_cmds_F77
=
13644 link_all_deplibs_F77
=unknown
13645 old_archive_cmds_F77
=$old_archive_cmds
13646 no_undefined_flag_F77
=
13647 whole_archive_flag_spec_F77
=
13648 enable_shared_with_static_runtimes_F77
=no
13650 # Source file extension for f77 test sources.
13653 # Object file extension for compiled f77 test sources.
13657 # Code to be used in simple compile tests
13658 lt_simple_compile_test_code
=" subroutine t\n return\n end\n"
13660 # Code to be used in simple link tests
13661 lt_simple_link_test_code
=" program t\n end\n"
13663 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13665 # If no C compiler was specified, use CC.
13668 # If no C compiler flags were specified, use CFLAGS.
13669 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
13671 # Allow CC to be a program name with arguments.
13675 # save warnings/boilerplate of simple test code
13676 ac_outfile
=conftest.
$ac_objext
13677 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
13678 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13679 _lt_compiler_boilerplate
=`cat conftest.err`
13682 ac_outfile
=conftest.
$ac_objext
13683 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
13684 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13685 _lt_linker_boilerplate
=`cat conftest.err`
13689 # Allow CC to be a program name with arguments.
13694 for cc_temp
in $compiler""; do
13696 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
13697 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
13702 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13705 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13706 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13707 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13708 $as_echo "$can_build_shared" >&6; }
13710 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13711 $as_echo_n "checking whether to build shared libraries... " >&6; }
13712 test "$can_build_shared" = "no" && enable_shared
=no
13714 # On AIX, shared libraries and static libraries use the same namespace, and
13715 # are all built from PIC.
13718 test "$enable_shared" = yes && enable_static
=no
13719 if test -n "$RANLIB"; then
13720 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
13721 postinstall_cmds
='$RANLIB $lib'
13725 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
13726 test "$enable_shared" = yes && enable_static
=no
13730 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13731 $as_echo "$enable_shared" >&6; }
13733 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13734 $as_echo_n "checking whether to build static libraries... " >&6; }
13735 # Make sure either enable_shared or enable_static is yes.
13736 test "$enable_shared" = yes || enable_static
=yes
13737 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13738 $as_echo "$enable_static" >&6; }
13743 lt_prog_compiler_wl_F77
=
13744 lt_prog_compiler_pic_F77
=
13745 lt_prog_compiler_static_F77
=
13747 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13748 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13750 if test "$GCC" = yes; then
13751 lt_prog_compiler_wl_F77
='-Wl,'
13752 lt_prog_compiler_static_F77
='-static'
13756 # All AIX code is PIC.
13757 if test "$host_cpu" = ia64
; then
13758 # AIX 5 now supports IA64 processor
13759 lt_prog_compiler_static_F77
='-Bstatic'
13764 # FIXME: we need at least 68020 code to build shared libraries, but
13765 # adding the `-m68020' flag to GCC prevents building anything better,
13767 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
13770 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13771 # PIC is the default for these OSes.
13774 mingw
* | pw32
* | os2
*)
13775 # This hack is so that the source file can tell whether it is being
13776 # built for inclusion in a dll (and should export symbols for example).
13777 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13780 darwin
* | rhapsody
*)
13781 # PIC is the default on this platform
13782 # Common symbols not allowed in MH_DYLIB files
13783 lt_prog_compiler_pic_F77
='-fno-common'
13787 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13788 # Instead, we relocate shared libraries at runtime.
13792 # Just because we use GCC doesn't mean we suddenly get shared libraries
13793 # on systems that don't support them.
13794 lt_prog_compiler_can_build_shared_F77
=no
13799 if test -d /usr
/nec
; then
13800 lt_prog_compiler_pic_F77
=-Kconform_pic
13805 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13806 # not for PA HP-UX.
13812 lt_prog_compiler_pic_F77
='-fPIC'
13818 lt_prog_compiler_pic_F77
='-fPIC'
13822 # PORTME Check for flag to pass linker flags through the system compiler.
13825 lt_prog_compiler_wl_F77
='-Wl,'
13826 if test "$host_cpu" = ia64
; then
13827 # AIX 5 now supports IA64 processor
13828 lt_prog_compiler_static_F77
='-Bstatic'
13830 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
13834 # PIC is the default on this platform
13835 # Common symbols not allowed in MH_DYLIB files
13836 case $cc_basename in
13838 lt_prog_compiler_pic_F77
='-qnocommon'
13839 lt_prog_compiler_wl_F77
='-Wl,'
13844 mingw
* | pw32
* | os2
*)
13845 # This hack is so that the source file can tell whether it is being
13846 # built for inclusion in a dll (and should export symbols for example).
13847 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13850 hpux9
* | hpux10
* | hpux11
*)
13851 lt_prog_compiler_wl_F77
='-Wl,'
13852 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13853 # not for PA HP-UX.
13859 lt_prog_compiler_pic_F77
='+Z'
13862 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13863 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
13866 irix5
* | irix6
* | nonstopux
*)
13867 lt_prog_compiler_wl_F77
='-Wl,'
13868 # PIC (with -KPIC) is the default.
13869 lt_prog_compiler_static_F77
='-non_shared'
13873 lt_prog_compiler_pic_F77
='-KPIC'
13874 lt_prog_compiler_static_F77
='-Bstatic'
13878 case $cc_basename in
13880 lt_prog_compiler_wl_F77
='-Wl,'
13881 lt_prog_compiler_pic_F77
='-KPIC'
13882 lt_prog_compiler_static_F77
='-static'
13884 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
13885 # Portland Group compilers (*not* the Pentium gcc compiler,
13886 # which looks to be a dead project)
13887 lt_prog_compiler_wl_F77
='-Wl,'
13888 lt_prog_compiler_pic_F77
='-fpic'
13889 lt_prog_compiler_static_F77
='-Bstatic'
13892 lt_prog_compiler_wl_F77
='-Wl,'
13893 # All Alpha code is PIC.
13894 lt_prog_compiler_static_F77
='-non_shared'
13899 osf3
* | osf4
* | osf5
*)
13900 lt_prog_compiler_wl_F77
='-Wl,'
13901 # All OSF/1 code is PIC.
13902 lt_prog_compiler_static_F77
='-non_shared'
13906 lt_prog_compiler_pic_F77
='-KPIC'
13907 lt_prog_compiler_static_F77
='-Bstatic'
13908 case $cc_basename in
13909 f77
* | f90
* | f95
*)
13910 lt_prog_compiler_wl_F77
='-Qoption ld ';;
13912 lt_prog_compiler_wl_F77
='-Wl,';;
13917 lt_prog_compiler_wl_F77
='-Qoption ld '
13918 lt_prog_compiler_pic_F77
='-PIC'
13919 lt_prog_compiler_static_F77
='-Bstatic'
13922 sysv4 | sysv4.2uw2
* | sysv4.3
*)
13923 lt_prog_compiler_wl_F77
='-Wl,'
13924 lt_prog_compiler_pic_F77
='-KPIC'
13925 lt_prog_compiler_static_F77
='-Bstatic'
13929 if test -d /usr
/nec
;then
13930 lt_prog_compiler_pic_F77
='-Kconform_pic'
13931 lt_prog_compiler_static_F77
='-Bstatic'
13935 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
13936 lt_prog_compiler_wl_F77
='-Wl,'
13937 lt_prog_compiler_pic_F77
='-KPIC'
13938 lt_prog_compiler_static_F77
='-Bstatic'
13942 lt_prog_compiler_wl_F77
='-Wl,'
13943 lt_prog_compiler_can_build_shared_F77
=no
13947 lt_prog_compiler_pic_F77
='-pic'
13948 lt_prog_compiler_static_F77
='-Bstatic'
13952 lt_prog_compiler_can_build_shared_F77
=no
13957 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13958 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
13961 # Check to make sure the PIC flag actually works.
13963 if test -n "$lt_prog_compiler_pic_F77"; then
13965 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13966 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13967 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13968 $as_echo_n "(cached) " >&6
13970 lt_prog_compiler_pic_works_F77
=no
13971 ac_outfile
=conftest.
$ac_objext
13972 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13973 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
13974 # Insert the option either (1) after the last *FLAGS variable, or
13975 # (2) before a word containing "conftest.", or (3) at the end.
13976 # Note that $ac_compile itself does not contain backslashes and begins
13977 # with a dollar sign (not a hyphen), so the echo should work correctly.
13978 # The option is referenced via a variable to avoid confusing sed.
13979 lt_compile
=`echo "$ac_compile" | $SED \
13980 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13982 -e 's:$: $lt_compiler_flag:'`
13983 (eval echo "\"\$as_me:13983: $lt_compile\"" >&5)
13984 (eval "$lt_compile" 2>conftest.err
)
13986 cat conftest.err
>&5
13987 echo "$as_me:13987: \$? = $ac_status" >&5
13988 if (exit $ac_status) && test -s "$ac_outfile"; then
13989 # The compiler can only warn and ignore the option if not recognized
13990 # So say no if there are warnings other than the usual output.
13991 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
13992 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13993 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
13994 lt_prog_compiler_pic_works_F77
=yes
14000 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14001 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
14003 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
14004 case $lt_prog_compiler_pic_F77 in
14006 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
14009 lt_prog_compiler_pic_F77
=
14010 lt_prog_compiler_can_build_shared_F77
=no
14015 # For platforms which do not support PIC, -DPIC is meaningless:
14017 lt_prog_compiler_pic_F77
=
14020 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
14025 # Check to make sure the static flag actually works.
14027 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
14028 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14029 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14030 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14031 $as_echo_n "(cached) " >&6
14033 lt_prog_compiler_static_works_F77
=no
14034 save_LDFLAGS
="$LDFLAGS"
14035 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
14036 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
14037 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
14038 # The linker can only warn and ignore the option if not recognized
14039 # So say no if there are warnings
14040 if test -s conftest.err
; then
14041 # Append any errors to the config.log.
14042 cat conftest.err
1>&5
14043 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
14044 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14045 if diff conftest.exp conftest.er2
>/dev
/null
; then
14046 lt_prog_compiler_static_works_F77
=yes
14049 lt_prog_compiler_static_works_F77
=yes
14053 LDFLAGS
="$save_LDFLAGS"
14056 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14057 $as_echo "$lt_prog_compiler_static_works_F77" >&6; }
14059 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
14062 lt_prog_compiler_static_F77
=
14066 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14067 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14068 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14069 $as_echo_n "(cached) " >&6
14071 lt_cv_prog_compiler_c_o_F77
=no
14072 $rm -r conftest
2>/dev
/null
14076 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
14078 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14079 # Insert the option either (1) after the last *FLAGS variable, or
14080 # (2) before a word containing "conftest.", or (3) at the end.
14081 # Note that $ac_compile itself does not contain backslashes and begins
14082 # with a dollar sign (not a hyphen), so the echo should work correctly.
14083 lt_compile
=`echo "$ac_compile" | $SED \
14084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14085 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14086 -e 's:$: $lt_compiler_flag:'`
14087 (eval echo "\"\$as_me:14087: $lt_compile\"" >&5)
14088 (eval "$lt_compile" 2>out
/conftest.err
)
14090 cat out
/conftest.err
>&5
14091 echo "$as_me:14091: \$? = $ac_status" >&5
14092 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14094 # The compiler can only warn and ignore the option if not recognized
14095 # So say no if there are warnings
14096 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
14097 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14098 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14099 lt_cv_prog_compiler_c_o_F77
=yes
14104 # SGI C++ compiler will create directory out/ii_files/ for
14105 # template instantiation
14106 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
14107 $rm out
/* && rmdir out
14113 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14114 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14117 hard_links
="nottested"
14118 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
14119 # do not overwrite the value of need_locks provided by the user
14120 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14121 $as_echo_n "checking if we can lock with hard links... " >&6; }
14124 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14126 ln conftest.a conftest.b
2>&5 || hard_links
=no
14127 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14128 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14129 $as_echo "$hard_links" >&6; }
14130 if test "$hard_links" = no
; then
14131 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14132 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14139 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14140 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14143 allow_undefined_flag_F77
=
14144 enable_shared_with_static_runtimes_F77
=no
14146 archive_expsym_cmds_F77
=
14147 old_archive_From_new_cmds_F77
=
14148 old_archive_from_expsyms_cmds_F77
=
14149 export_dynamic_flag_spec_F77
=
14150 whole_archive_flag_spec_F77
=
14151 thread_safe_flag_spec_F77
=
14152 hardcode_libdir_flag_spec_F77
=
14153 hardcode_libdir_flag_spec_ld_F77
=
14154 hardcode_libdir_separator_F77
=
14155 hardcode_direct_F77
=no
14156 hardcode_minus_L_F77
=no
14157 hardcode_shlibpath_var_F77
=unsupported
14158 link_all_deplibs_F77
=unknown
14159 hardcode_automatic_F77
=no
14161 module_expsym_cmds_F77
=
14162 always_export_symbols_F77
=no
14163 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14164 # include_expsyms should be a list of space-separated symbols to be *always*
14165 # included in the symbol list
14166 include_expsyms_F77
=
14167 # exclude_expsyms can be an extended regexp of symbols to exclude
14168 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14169 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14170 # as well as any symbol that contains `d'.
14171 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
14172 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14173 # platforms (ab)use it in PIC code, but their linkers get confused if
14174 # the symbol is explicitly referenced. Since portable code cannot
14175 # rely on this symbol name, it's probably fine to never include it in
14176 # preloaded symbol tables.
14177 extract_expsyms_cmds
=
14178 # Just being paranoid about ensuring that cc_basename is set.
14179 for cc_temp
in $compiler""; do
14181 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
14182 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
14187 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14190 cygwin
* | mingw
* | pw32
*)
14191 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14192 # When not using gcc, we currently assume that we are using
14193 # Microsoft Visual C++.
14194 if test "$GCC" != yes; then
14199 # we just hope/assume this is gcc and not c89 (= MSVC++)
14208 if test "$with_gnu_ld" = yes; then
14209 # If archive_cmds runs LD, not CC, wlarc should be empty
14212 # Set some defaults for GNU ld with shared library support. These
14213 # are reset later if shared libraries are not supported. Putting them
14214 # here allows them to be overridden if necessary.
14215 runpath_var
=LD_RUN_PATH
14216 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
14217 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
14218 # ancient GNU ld didn't support --whole-archive et. al.
14219 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
14220 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14222 whole_archive_flag_spec_F77
=
14224 supports_anon_versioning
=no
14225 case `$LD -v 2>/dev/null` in
14226 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
14227 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
14228 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
14229 *\
2.11.
*) ;; # other 2.11 versions
14230 *) supports_anon_versioning
=yes ;;
14233 # See if GNU ld supports shared libraries.
14235 aix3
* | aix4
* | aix5
*)
14236 # On AIX/PPC, the GNU linker is very broken
14237 if test "$host_cpu" != ia64
; then
14241 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14242 *** to be unable to reliably create shared libraries on AIX.
14243 *** Therefore, libtool is disabling shared libraries support. If you
14244 *** really care for shared libraries, you may want to modify your PATH
14245 *** so that a non-GNU linker is found, and then restart.
14252 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)'
14253 hardcode_libdir_flag_spec_F77
='-L$libdir'
14254 hardcode_minus_L_F77
=yes
14256 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14257 # that the semantics of dynamic libraries on AmigaOS, at least up
14258 # to version 4, is to share data among multiple programs linked
14259 # with the same dynamic library. Since this doesn't match the
14260 # behavior of shared libraries on other platforms, we can't use
14266 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14267 allow_undefined_flag_F77
=unsupported
14268 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14269 # support --undefined. This deserves some investigation. FIXME
14270 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14276 cygwin
* | mingw
* | pw32
*)
14277 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14278 # as there is no search path for DLLs.
14279 hardcode_libdir_flag_spec_F77
='-L$libdir'
14280 allow_undefined_flag_F77
=unsupported
14281 always_export_symbols_F77
=no
14282 enable_shared_with_static_runtimes_F77
=yes
14283 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14285 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
14286 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14287 # If the export-symbols file already is a .def file (1st line
14288 # is EXPORTS), use it as is; otherwise, prepend...
14289 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14290 cp $export_symbols $output_objdir/$soname.def;
14292 echo EXPORTS > $output_objdir/$soname.def;
14293 cat $export_symbols >> $output_objdir/$soname.def;
14295 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14302 hardcode_direct_F77
=no
14303 hardcode_shlibpath_var_F77
=no
14304 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14305 export_dynamic_flag_spec_F77
='${wl}-E'
14306 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14307 # Instead, shared libraries are loaded at an image base (0x10000000 by
14308 # default) and relocated if they conflict, which is a slow very memory
14309 # consuming and fragmenting process. To avoid this, we pick a random,
14310 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14311 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14312 archive_cmds_F77
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14313 archive_expsym_cmds_F77
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14317 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14319 case $cc_basename,$host_cpu in
14320 pgcc
*) # Portland Group C compiler
14321 whole_archive_flag_spec_F77
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14322 tmp_addflag
=' $pic_flag'
14324 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
14325 whole_archive_flag_spec_F77
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14326 tmp_addflag
=' $pic_flag -Mnomain' ;;
14327 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14328 tmp_addflag
=' -i_dynamic' ;;
14329 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14330 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14331 ifc
* | ifort
*) # Intel Fortran compiler
14332 tmp_addflag
=' -nofor_main' ;;
14334 archive_cmds_F77
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14336 if test $supports_anon_versioning = yes; then
14337 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
14338 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14339 $echo "local: *; };" >> $output_objdir/$libname.ver~
14340 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14348 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14349 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14352 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14353 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14358 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
14362 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14363 *** create shared libraries on Solaris systems. Therefore, libtool
14364 *** is disabling shared libraries support. We urge you to upgrade GNU
14365 *** binutils to release 2.9.1 or newer. Another option is to modify
14366 *** your PATH or compiler configuration so that the native linker is
14367 *** used, and then restart.
14370 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14371 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14372 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14378 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
14379 case `$LD -v 2>&1` in
14380 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
14384 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14385 *** reliably create shared libraries on SCO systems. Therefore, libtool
14386 *** is disabling shared libraries support. We urge you to upgrade GNU
14387 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14388 *** your PATH or compiler configuration so that the native linker is
14389 *** used, and then restart.
14394 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14395 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14396 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14397 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14406 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14408 hardcode_direct_F77
=yes
14409 hardcode_shlibpath_var_F77
=no
14413 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14414 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14415 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14422 if test "$ld_shlibs_F77" = no
; then
14424 hardcode_libdir_flag_spec_F77
=
14425 export_dynamic_flag_spec_F77
=
14426 whole_archive_flag_spec_F77
=
14429 # PORTME fill in a description of your system's linker (not GNU ld)
14432 allow_undefined_flag_F77
=unsupported
14433 always_export_symbols_F77
=yes
14434 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'
14435 # Note: this linker hardcodes the directories in LIBPATH if there
14436 # are no directories specified by -L.
14437 hardcode_minus_L_F77
=yes
14438 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14439 # Neither direct hardcoding nor static linking is supported with a
14441 hardcode_direct_F77
=unsupported
14446 if test "$host_cpu" = ia64
; then
14447 # On IA64, the linker does run time linking by default, so we don't
14448 # have to do anything special.
14449 aix_use_runtimelinking
=no
14450 exp_sym_flag
='-Bexport'
14453 # If we're using GNU nm, then we don't want the "-C" option.
14454 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14455 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
14456 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'
14458 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'
14460 aix_use_runtimelinking
=no
14462 # Test if we are trying to use run time linking or normal
14463 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14464 # need to do runtime linking.
14465 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
14466 for ld_flag
in $LDFLAGS; do
14467 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
14468 aix_use_runtimelinking
=yes
14475 exp_sym_flag
='-bexport'
14476 no_entry_flag
='-bnoentry'
14479 # When large executables or shared objects are built, AIX ld can
14480 # have problems creating the table of contents. If linking a library
14481 # or program results in "error TOC overflow" add -mminimal-toc to
14482 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14483 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14485 archive_cmds_F77
=''
14486 hardcode_direct_F77
=yes
14487 hardcode_libdir_separator_F77
=':'
14488 link_all_deplibs_F77
=yes
14490 if test "$GCC" = yes; then
14491 case $host_os in aix4.
[012]|aix4.
[012].
*)
14492 # We only want to do this on AIX 4.2 and lower, the check
14493 # below for broken collect2 doesn't work under 4.3+
14494 collect2name
=`${CC} -print-prog-name=collect2`
14495 if test -f "$collect2name" && \
14496 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
14498 # We have reworked collect2
14499 hardcode_direct_F77
=yes
14501 # We have old collect2
14502 hardcode_direct_F77
=unsupported
14503 # It fails to find uninstalled libraries when the uninstalled
14504 # path is not listed in the libpath. Setting hardcode_minus_L
14505 # to unsupported forces relinking
14506 hardcode_minus_L_F77
=yes
14507 hardcode_libdir_flag_spec_F77
='-L$libdir'
14508 hardcode_libdir_separator_F77
=
14512 shared_flag
='-shared'
14513 if test "$aix_use_runtimelinking" = yes; then
14514 shared_flag
="$shared_flag "'${wl}-G'
14518 if test "$host_cpu" = ia64
; then
14519 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14520 # chokes on -Wl,-G. The following line is correct:
14523 if test "$aix_use_runtimelinking" = yes; then
14524 shared_flag
='${wl}-G'
14526 shared_flag
='${wl}-bM:SRE'
14531 # It seems that -bexpall does not export symbols beginning with
14532 # underscore (_), so it is better to generate a list of symbols to export.
14533 always_export_symbols_F77
=yes
14534 if test "$aix_use_runtimelinking" = yes; then
14535 # Warning - without using the other runtime loading flags (-brtl),
14536 # -berok will link without error, but may produce a broken library.
14537 allow_undefined_flag_F77
='-berok'
14538 # Determine the default libpath from the value encoded in an empty executable.
14539 cat >conftest.
$ac_ext <<_ACEOF
14544 rm -f conftest.
$ac_objext conftest
$ac_exeext
14545 if { (ac_try
="$ac_link"
14546 case "(($ac_try" in
14547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14548 *) ac_try_echo=$ac_try;;
14550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14551 $as_echo "$ac_try_echo") >&5
14552 (eval "$ac_link") 2>conftest.er1
14554 grep -v '^ *+' conftest.er1 >conftest.err
14556 cat conftest.err >&5
14557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); } && {
14559 test -z "$ac_f77_werror_flag" ||
14560 test ! -s conftest.err
14561 } && test -s conftest$ac_exeext && {
14562 test "$cross_compiling" = yes ||
14563 $as_test_x conftest$ac_exeext
14566 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14568 # Check for a 64-bit object if we didn't find anything.
14569 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; }
14572 $as_echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14578 rm -rf conftest.dSYM
14579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14580 conftest$ac_exeext conftest.$ac_ext
14581 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14583 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14584 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14586 if test "$host_cpu" = ia64; then
14587 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14588 allow_undefined_flag_F77="-z nodefs"
14589 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14591 # Determine the default libpath from the value encoded in an empty executable.
14592 cat >conftest.$ac_ext <<_ACEOF
14597 rm -f conftest.$ac_objext conftest$ac_exeext
14598 if { (ac_try="$ac_link"
14599 case "(($ac_try" in
14600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14601 *) ac_try_echo
=$ac_try;;
14603 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14604 $as_echo "$ac_try_echo") >&5
14605 (eval "$ac_link") 2>conftest.er1
14607 grep -v '^ *+' conftest.er1
>conftest.err
14609 cat conftest.err
>&5
14610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); } && {
14612 test -z "$ac_f77_werror_flag" ||
14613 test ! -s conftest.err
14614 } && test -s conftest
$ac_exeext && {
14615 test "$cross_compiling" = yes ||
14616 $as_test_x conftest
$ac_exeext
14619 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14621 # Check for a 64-bit object if we didn't find anything.
14622 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; }
14625 $as_echo "$as_me: failed program was:" >&5
14626 sed 's/^/| /' conftest.
$ac_ext >&5
14631 rm -rf conftest.dSYM
14632 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14633 conftest
$ac_exeext conftest.
$ac_ext
14634 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
14636 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
14637 # Warning - without using the other run time loading flags,
14638 # -berok will link without error, but may produce a broken library.
14639 no_undefined_flag_F77
=' ${wl}-bernotok'
14640 allow_undefined_flag_F77
=' ${wl}-berok'
14641 # Exported symbols can be pulled into shared objects from archives
14642 whole_archive_flag_spec_F77
='$convenience'
14643 archive_cmds_need_lc_F77
=yes
14644 # This is similar to how AIX traditionally builds its shared libraries.
14645 archive_expsym_cmds_F77
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14651 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)'
14652 hardcode_libdir_flag_spec_F77
='-L$libdir'
14653 hardcode_minus_L_F77
=yes
14654 # see comment about different semantics on the GNU ld section
14659 export_dynamic_flag_spec_F77
=-rdynamic
14662 cygwin
* | mingw
* | pw32
*)
14663 # When not using gcc, we currently assume that we are using
14664 # Microsoft Visual C++.
14665 # hardcode_libdir_flag_spec is actually meaningless, as there is
14666 # no search path for DLLs.
14667 hardcode_libdir_flag_spec_F77
=' '
14668 allow_undefined_flag_F77
=unsupported
14669 # Tell ltmain to make .lib files, not .a files.
14671 # Tell ltmain to make .dll files, not .so files.
14673 # FIXME: Setting linknames here is a bad hack.
14674 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14675 # The linker will automatically build a .lib file if we build a DLL.
14676 old_archive_From_new_cmds_F77
='true'
14677 # FIXME: Should let the user specify the lib program.
14678 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
14679 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
14680 enable_shared_with_static_runtimes_F77
=yes
14683 darwin
* | rhapsody
*)
14685 rhapsody
* | darwin1.
[012])
14686 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
14689 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14690 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14692 case ${MACOSX_DEPLOYMENT_TARGET} in
14694 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14697 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
14703 archive_cmds_need_lc_F77
=no
14704 hardcode_direct_F77
=no
14705 hardcode_automatic_F77
=yes
14706 hardcode_shlibpath_var_F77
=unsupported
14707 whole_archive_flag_spec_F77
=''
14708 link_all_deplibs_F77
=yes
14709 if test "$GCC" = yes ; then
14710 output_verbose_link_cmd
='echo'
14711 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14712 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14713 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14714 archive_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14715 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}'
14717 case $cc_basename in
14719 output_verbose_link_cmd
='echo'
14720 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14721 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14722 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14723 archive_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14724 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}'
14734 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14735 hardcode_libdir_flag_spec_F77
='-L$libdir'
14736 hardcode_shlibpath_var_F77
=no
14743 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14744 # support. Future versions do this automatically, but an explicit c++rt0.o
14745 # does not break anything, and helps significantly (at the cost of a little
14748 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14749 hardcode_libdir_flag_spec_F77
='-R$libdir'
14750 hardcode_direct_F77
=yes
14751 hardcode_shlibpath_var_F77
=no
14754 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14756 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14757 hardcode_direct_F77
=yes
14758 hardcode_minus_L_F77
=yes
14759 hardcode_shlibpath_var_F77
=no
14762 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14763 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
14764 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14765 hardcode_libdir_flag_spec_F77
='-R$libdir'
14766 hardcode_direct_F77
=yes
14767 hardcode_shlibpath_var_F77
=no
14771 if test "$GCC" = yes; then
14772 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'
14774 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'
14776 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14777 hardcode_libdir_separator_F77
=:
14778 hardcode_direct_F77
=yes
14780 # hardcode_minus_L: Not really in the search PATH,
14781 # but as the default location of the library.
14782 hardcode_minus_L_F77
=yes
14783 export_dynamic_flag_spec_F77
='${wl}-E'
14787 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14788 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14790 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14792 if test "$with_gnu_ld" = no
; then
14793 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14794 hardcode_libdir_separator_F77
=:
14796 hardcode_direct_F77
=yes
14797 export_dynamic_flag_spec_F77
='${wl}-E'
14799 # hardcode_minus_L: Not really in the search PATH,
14800 # but as the default location of the library.
14801 hardcode_minus_L_F77
=yes
14806 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14809 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14812 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14815 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14821 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14824 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14827 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14831 if test "$with_gnu_ld" = no
; then
14832 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14833 hardcode_libdir_separator_F77
=:
14837 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
14838 hardcode_direct_F77
=no
14839 hardcode_shlibpath_var_F77
=no
14842 hardcode_direct_F77
=yes
14843 export_dynamic_flag_spec_F77
='${wl}-E'
14845 # hardcode_minus_L: Not really in the search PATH,
14846 # but as the default location of the library.
14847 hardcode_minus_L_F77
=yes
14853 irix5
* | irix6
* | nonstopux
*)
14854 if test "$GCC" = yes; then
14855 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'
14857 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'
14858 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
14860 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14861 hardcode_libdir_separator_F77
=:
14862 link_all_deplibs_F77
=yes
14866 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14867 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14869 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14871 hardcode_libdir_flag_spec_F77
='-R$libdir'
14872 hardcode_direct_F77
=yes
14873 hardcode_shlibpath_var_F77
=no
14877 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14878 hardcode_direct_F77
=yes
14879 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14880 hardcode_libdir_separator_F77
=:
14881 hardcode_shlibpath_var_F77
=no
14885 hardcode_direct_F77
=yes
14886 hardcode_shlibpath_var_F77
=no
14887 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14888 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14889 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14890 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14891 export_dynamic_flag_spec_F77
='${wl}-E'
14894 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
14895 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14896 hardcode_libdir_flag_spec_F77
='-R$libdir'
14899 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14900 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14907 hardcode_libdir_flag_spec_F77
='-L$libdir'
14908 hardcode_minus_L_F77
=yes
14909 allow_undefined_flag_F77
=unsupported
14910 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'
14911 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14915 if test "$GCC" = yes; then
14916 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14917 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'
14919 allow_undefined_flag_F77
=' -expect_unresolved \*'
14920 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'
14922 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14923 hardcode_libdir_separator_F77
=:
14926 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
14927 if test "$GCC" = yes; then
14928 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14929 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'
14930 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14932 allow_undefined_flag_F77
=' -expect_unresolved \*'
14933 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'
14934 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~
14935 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14937 # Both c and cxx compiler support -rpath directly
14938 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
14940 hardcode_libdir_separator_F77
=:
14944 no_undefined_flag_F77
=' -z text'
14945 if test "$GCC" = yes; then
14947 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14948 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14949 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14952 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14953 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14954 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14956 hardcode_libdir_flag_spec_F77
='-R$libdir'
14957 hardcode_shlibpath_var_F77
=no
14959 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
14961 # The compiler driver will combine linker options so we
14962 # cannot just pass the convience library names through
14963 # without $wl, iff we do not link with $LD.
14964 # Luckily, gcc supports the same syntax we need for Sun Studio.
14965 # Supported since Solaris 2.6 (maybe 2.5.1?)
14968 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract' ;;
14970 whole_archive_flag_spec_F77
='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14973 link_all_deplibs_F77
=yes
14977 if test "x$host_vendor" = xsequent
; then
14978 # Use $CC to link under sequent, because it throws in some extra .o
14979 # files that make .init and .fini sections work.
14980 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14982 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14984 hardcode_libdir_flag_spec_F77
='-L$libdir'
14985 hardcode_direct_F77
=yes
14986 hardcode_minus_L_F77
=yes
14987 hardcode_shlibpath_var_F77
=no
14991 case $host_vendor in
14993 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14994 hardcode_direct_F77
=yes # is this really true???
14997 ## LD is ld it makes a PLAMLIB
14998 ## CC just makes a GrossModule.
14999 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15000 reload_cmds_F77
='$CC -r -o $output$reload_objs'
15001 hardcode_direct_F77
=no
15004 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15005 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
15008 runpath_var
='LD_RUN_PATH'
15009 hardcode_shlibpath_var_F77
=no
15013 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15014 hardcode_shlibpath_var_F77
=no
15015 export_dynamic_flag_spec_F77
='-Bexport'
15019 if test -d /usr
/nec
; then
15020 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15021 hardcode_shlibpath_var_F77
=no
15022 runpath_var
=LD_RUN_PATH
15023 hardcode_runpath_var
=yes
15028 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
15029 no_undefined_flag_F77
='${wl}-z,text'
15030 archive_cmds_need_lc_F77
=no
15031 hardcode_shlibpath_var_F77
=no
15032 runpath_var
='LD_RUN_PATH'
15034 if test "$GCC" = yes; then
15035 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15036 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15038 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15039 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15043 sysv5
* | sco3.2v5
* | sco5v6
*)
15044 # Note: We can NOT use -z defs as we might desire, because we do not
15045 # link with -lc, and that would cause any symbols used from libc to
15046 # always be unresolved, which means just about no library would
15047 # ever link correctly. If we're not using GNU ld we use -z text
15048 # though, which does catch some bad symbols but isn't as heavy-handed
15050 no_undefined_flag_F77
='${wl}-z,text'
15051 allow_undefined_flag_F77
='${wl}-z,nodefs'
15052 archive_cmds_need_lc_F77
=no
15053 hardcode_shlibpath_var_F77
=no
15054 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15055 hardcode_libdir_separator_F77
=':'
15056 link_all_deplibs_F77
=yes
15057 export_dynamic_flag_spec_F77
='${wl}-Bexport'
15058 runpath_var
='LD_RUN_PATH'
15060 if test "$GCC" = yes; then
15061 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15062 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15064 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15065 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15070 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15071 hardcode_libdir_flag_spec_F77
='-L$libdir'
15072 hardcode_shlibpath_var_F77
=no
15081 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15082 $as_echo "$ld_shlibs_F77" >&6; }
15083 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
15086 # Do we need to explicitly link libc?
15088 case "x$archive_cmds_need_lc_F77" in
15090 # Assume -lc should be added
15091 archive_cmds_need_lc_F77
=yes
15093 if test "$enable_shared" = yes && test "$GCC" = yes; then
15094 case $archive_cmds_F77 in
15096 # FIXME: we may have to deal with multi-command sequences.
15099 # Test whether the compiler implicitly links with -lc since on some
15100 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15101 # to ld, don't add -lc before -lgcc.
15102 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15103 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15105 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15108 (eval $ac_compile) 2>&5
15110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } 2>conftest.err
; then
15114 libobjs
=conftest.
$ac_objext
15116 wl
=$lt_prog_compiler_wl_F77
15117 pic_flag
=$lt_prog_compiler_pic_F77
15123 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
15124 allow_undefined_flag_F77
=
15125 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15126 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }
15131 archive_cmds_need_lc_F77
=no
15133 archive_cmds_need_lc_F77
=yes
15135 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
15137 cat conftest.err
1>&5
15140 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15141 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15148 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15149 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15150 library_names_spec
=
15151 libname_spec
='lib$name'
15155 postuninstall_cmds
=
15159 shlibpath_overrides_runpath
=unknown
15161 dynamic_linker
="$host_os ld.so"
15162 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
15163 if test "$GCC" = yes; then
15164 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15165 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
15166 # if the path contains ";" then we assume it to be the separator
15167 # otherwise default to the standard path separator (i.e. ":") - it is
15168 # assumed that no part of a normal pathname contains ";" but that should
15169 # okay in the real world where ";" in dirpaths is itself problematic.
15170 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15172 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15175 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
15177 need_lib_prefix
=unknown
15178 hardcode_into_libs
=no
15180 # when you set need_version to no, make sure it does not cause -set_version
15181 # flags to be left without arguments
15182 need_version
=unknown
15187 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
15188 shlibpath_var
=LIBPATH
15190 # AIX 3 has no versioning support, so we append a major version to the name.
15191 soname_spec
='${libname}${release}${shared_ext}$major'
15198 hardcode_into_libs
=yes
15199 if test "$host_cpu" = ia64
; then
15200 # AIX 5 supports IA64
15201 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15202 shlibpath_var
=LD_LIBRARY_PATH
15204 # With GCC up to 2.95.x, collect2 would create an import file
15205 # for dependence libraries. The import file would start with
15206 # the line `#! .'. This would cause the generated library to
15207 # depend on `.', always an invalid library. This was fixed in
15208 # development snapshots of GCC prior to 3.0.
15210 aix4 | aix4.
[01] | aix4.
[01].
*)
15211 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15213 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
15216 can_build_shared
=no
15220 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15221 # soname into executable. Probably we can add versioning support to
15222 # collect2, so additional links can be useful in future.
15223 if test "$aix_use_runtimelinking" = yes; then
15224 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15225 # instead of lib<name>.a to let people know that these are not
15226 # typical AIX shared libraries.
15227 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15229 # We preserve .a as extension for shared libraries through AIX4.2
15230 # and later when we are not doing run time linking.
15231 library_names_spec
='${libname}${release}.a $libname.a'
15232 soname_spec
='${libname}${release}${shared_ext}$major'
15234 shlibpath_var
=LIBPATH
15239 library_names_spec
='$libname.ixlibrary $libname.a'
15240 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15241 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'
15245 library_names_spec
='${libname}${shared_ext}'
15246 dynamic_linker
="$host_os ld.so"
15247 shlibpath_var
=LIBRARY_PATH
15253 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15254 soname_spec
='${libname}${release}${shared_ext}$major'
15255 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
15256 shlibpath_var
=LD_LIBRARY_PATH
15257 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15258 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
15259 # the default ld.so.conf also contains /usr/contrib/lib and
15260 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15261 # libtool to hard-code these into programs
15264 cygwin
* | mingw
* | pw32
*)
15265 version_type
=windows
15270 case $GCC,$host_os in
15271 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
15272 library_names_spec
='$libname.dll.a'
15273 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15274 postinstall_cmds
='base_file=`basename \${file}`~
15275 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15276 dldir=$destdir/`dirname \$dlpath`~
15277 test -d \$dldir || mkdir -p \$dldir~
15278 $install_prog $dir/$dlname \$dldir/$dlname~
15279 chmod a+x \$dldir/$dlname'
15280 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15281 dlpath=$dir/\$dldll~
15283 shlibpath_overrides_runpath
=yes
15287 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15288 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15289 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
15292 # MinGW DLLs use traditional 'lib' prefix
15293 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15294 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15295 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
15296 # It is most probably a Windows format PATH printed by
15297 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15298 # path with ; separators, and with drive letters. We can handle the
15299 # drive letters (cygwin fileutils understands them), so leave them,
15300 # especially as we might pass files found there to a mingw objdump,
15301 # which wouldn't understand a cygwinified path. Ahh.
15302 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15304 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15308 # pw32 DLLs use 'pw' prefix rather than 'lib'
15309 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15315 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15318 dynamic_linker
='Win32 ld.exe'
15319 # FIXME: first we should search . and the directory the executable is in
15323 darwin
* | rhapsody
*)
15324 dynamic_linker
="$host_os dyld"
15325 version_type
=darwin
15328 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15329 soname_spec
='${libname}${release}${major}$shared_ext'
15330 shlibpath_overrides_runpath
=yes
15331 shlibpath_var
=DYLD_LIBRARY_PATH
15332 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
15333 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15334 if test "$GCC" = yes; then
15335 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"`
15337 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
15339 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
15346 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15347 soname_spec
='${libname}${release}${shared_ext}$major'
15348 shlibpath_var
=LD_LIBRARY_PATH
15359 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15360 soname_spec
='${libname}${release}${shared_ext}$major'
15361 shlibpath_var
=LD_LIBRARY_PATH
15362 shlibpath_overrides_runpath
=no
15363 hardcode_into_libs
=yes
15364 dynamic_linker
='GNU ld.so'
15367 freebsd
* | dragonfly
*)
15368 # DragonFly does not have aout. When/if they implement a new
15369 # versioning mechanism, adjust this.
15370 if test -x /usr
/bin
/objformat
; then
15371 objformat
=`/usr/bin/objformat`
15374 freebsd
[123]*) objformat
=aout
;;
15375 *) objformat
=elf
;;
15378 version_type
=freebsd-
$objformat
15379 case $version_type in
15381 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15386 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15390 shlibpath_var
=LD_LIBRARY_PATH
15393 shlibpath_overrides_runpath
=yes
15395 freebsd3.
[01]* | freebsdelf3.
[01]*)
15396 shlibpath_overrides_runpath
=yes
15397 hardcode_into_libs
=yes
15399 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
15400 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
15401 shlibpath_overrides_runpath
=no
15402 hardcode_into_libs
=yes
15404 freebsd
*) # from 4.6 on
15405 shlibpath_overrides_runpath
=yes
15406 hardcode_into_libs
=yes
15415 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15416 soname_spec
='${libname}${release}${shared_ext}$major'
15417 shlibpath_var
=LD_LIBRARY_PATH
15418 hardcode_into_libs
=yes
15421 hpux9
* | hpux10
* | hpux11
*)
15422 # Give a soname corresponding to the major version so that dld.sl refuses to
15423 # link against other versions.
15430 hardcode_into_libs
=yes
15431 dynamic_linker
="$host_os dld.so"
15432 shlibpath_var
=LD_LIBRARY_PATH
15433 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15434 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15435 soname_spec
='${libname}${release}${shared_ext}$major'
15436 if test "X$HPUX_IA64_MODE" = X32
; then
15437 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15439 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15441 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15445 hardcode_into_libs
=yes
15446 dynamic_linker
="$host_os dld.sl"
15447 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
15448 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15449 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15450 soname_spec
='${libname}${release}${shared_ext}$major'
15451 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15452 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15456 dynamic_linker
="$host_os dld.sl"
15457 shlibpath_var
=SHLIB_PATH
15458 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
15459 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15460 soname_spec
='${libname}${release}${shared_ext}$major'
15463 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15464 postinstall_cmds
='chmod 555 $lib'
15471 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15472 soname_spec
='${libname}${release}${shared_ext}$major'
15473 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
15474 shlibpath_var
=LD_LIBRARY_PATH
15475 shlibpath_overrides_runpath
=no
15476 hardcode_into_libs
=yes
15479 irix5
* | irix6
* | nonstopux
*)
15481 nonstopux
*) version_type
=nonstopux
;;
15483 if test "$lt_cv_prog_gnu_ld" = yes; then
15491 soname_spec
='${libname}${release}${shared_ext}$major'
15492 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15494 irix5
* | nonstopux
*)
15495 libsuff
= shlibsuff
=
15498 case $LD in # libtool.m4 will add one of these switches to LD
15499 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
15500 libsuff
= shlibsuff
= libmagic
=32-bit;;
15501 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
15502 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
15503 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
15504 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
15505 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
15509 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
15510 shlibpath_overrides_runpath
=no
15511 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15512 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
15513 hardcode_into_libs
=yes
15516 # No shared lib support for Linux oldld, aout, or coff.
15517 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
15521 # This must be Linux ELF.
15526 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15527 soname_spec
='${libname}${release}${shared_ext}$major'
15528 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15529 shlibpath_var
=LD_LIBRARY_PATH
15530 shlibpath_overrides_runpath
=no
15531 # This implies no fast_install, which is unacceptable.
15532 # Some rework will be needed to allow for fast_install
15533 # before this can be enabled.
15534 hardcode_into_libs
=yes
15536 # find out which ABI we are using
15538 case "$host_cpu" in
15539 x86_64
*|s390x
*|powerpc64
*)
15540 echo '#line 15540 "configure"' > conftest.
$ac_ext
15541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15542 (eval $ac_compile) 2>&5
15544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; then
15546 case `/usr/bin/file conftest.$ac_objext` in
15549 sys_lib_search_path_spec
="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15557 # Append ld.so.conf contents to the search path
15558 if test -f /etc
/ld.so.conf
; then
15559 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15560 sys_lib_dlsearch_path_spec
="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15563 # We used to test for /lib/ld.so.1 and disable shared libraries on
15564 # powerpc, because MkLinux only supported shared libraries with the
15565 # GNU dynamic linker. Since this was broken with cross compilers,
15566 # most powerpc-linux boxes support dynamic linking these days and
15567 # people can always --disable-shared, the test was removed, and we
15568 # assume the GNU/Linux dynamic linker is in use.
15569 dynamic_linker
='GNU/Linux ld.so'
15576 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15577 soname_spec
='${libname}${release}${shared_ext}$major'
15578 shlibpath_var
=LD_LIBRARY_PATH
15579 shlibpath_overrides_runpath
=no
15580 hardcode_into_libs
=yes
15581 dynamic_linker
='GNU ld.so'
15588 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15589 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15590 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15591 dynamic_linker
='NetBSD (a.out) ld.so'
15593 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15594 soname_spec
='${libname}${release}${shared_ext}$major'
15595 dynamic_linker
='NetBSD ld.elf_so'
15597 shlibpath_var
=LD_LIBRARY_PATH
15598 shlibpath_overrides_runpath
=yes
15599 hardcode_into_libs
=yes
15604 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15605 shlibpath_var
=LD_LIBRARY_PATH
15606 shlibpath_overrides_runpath
=yes
15613 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15614 soname_spec
='${libname}${release}${shared_ext}$major'
15615 shlibpath_var
=LD_LIBRARY_PATH
15616 shlibpath_overrides_runpath
=yes
15621 sys_lib_dlsearch_path_spec
="/usr/lib"
15623 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15625 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
15626 *) need_version
=no
;;
15628 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15629 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15630 shlibpath_var
=LD_LIBRARY_PATH
15631 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15633 openbsd2.
[89] | openbsd2.
[89].
*)
15634 shlibpath_overrides_runpath
=no
15637 shlibpath_overrides_runpath
=yes
15641 shlibpath_overrides_runpath
=yes
15646 libname_spec
='$name'
15649 library_names_spec
='$libname${shared_ext} $libname.a'
15650 dynamic_linker
='OS/2 ld.exe'
15651 shlibpath_var
=LIBPATH
15654 osf3
* | osf4
* | osf5
*)
15658 soname_spec
='${libname}${release}${shared_ext}$major'
15659 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15660 shlibpath_var
=LD_LIBRARY_PATH
15661 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15662 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15669 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15670 soname_spec
='${libname}${release}${shared_ext}$major'
15671 shlibpath_var
=LD_LIBRARY_PATH
15672 shlibpath_overrides_runpath
=yes
15673 hardcode_into_libs
=yes
15674 # ldd complains unless libraries are executable
15675 postinstall_cmds
='chmod +x $lib'
15680 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15681 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15682 shlibpath_var
=LD_LIBRARY_PATH
15683 shlibpath_overrides_runpath
=yes
15684 if test "$with_gnu_ld" = yes; then
15692 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15693 soname_spec
='${libname}${release}${shared_ext}$major'
15694 shlibpath_var
=LD_LIBRARY_PATH
15695 case $host_vendor in
15697 shlibpath_overrides_runpath
=no
15699 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15700 runpath_var
=LD_RUN_PATH
15708 shlibpath_overrides_runpath
=no
15709 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15715 if test -d /usr
/nec
;then
15717 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15718 soname_spec
='$libname${shared_ext}.$major'
15719 shlibpath_var
=LD_LIBRARY_PATH
15723 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
15724 version_type
=freebsd-elf
15727 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15728 soname_spec
='${libname}${release}${shared_ext}$major'
15729 shlibpath_var
=LD_LIBRARY_PATH
15730 hardcode_into_libs
=yes
15731 if test "$with_gnu_ld" = yes; then
15732 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15733 shlibpath_overrides_runpath
=no
15735 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
15736 shlibpath_overrides_runpath
=yes
15739 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
15743 sys_lib_dlsearch_path_spec
='/usr/lib'
15748 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15749 soname_spec
='${libname}${release}${shared_ext}$major'
15750 shlibpath_var
=LD_LIBRARY_PATH
15757 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15758 $as_echo "$dynamic_linker" >&6; }
15759 test "$dynamic_linker" = no
&& can_build_shared
=no
15761 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
15762 if test "$GCC" = yes; then
15763 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15766 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15767 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15768 hardcode_action_F77
=
15769 if test -n "$hardcode_libdir_flag_spec_F77" || \
15770 test -n "$runpath_var_F77" || \
15771 test "X$hardcode_automatic_F77" = "Xyes" ; then
15773 # We can hardcode non-existant directories.
15774 if test "$hardcode_direct_F77" != no
&&
15775 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15776 # have to relink, otherwise we might link with an installed library
15777 # when we should be linking with a yet-to-be-installed one
15778 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15779 test "$hardcode_minus_L_F77" != no
; then
15780 # Linking always hardcodes the temporary library directory.
15781 hardcode_action_F77
=relink
15783 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15784 hardcode_action_F77
=immediate
15787 # We cannot hardcode anything, or else we can only hardcode existing
15789 hardcode_action_F77
=unsupported
15791 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15792 $as_echo "$hardcode_action_F77" >&6; }
15794 if test "$hardcode_action_F77" = relink
; then
15795 # Fast installation is not supported
15796 enable_fast_install
=no
15797 elif test "$shlibpath_overrides_runpath" = yes ||
15798 test "$enable_shared" = no
; then
15799 # Fast installation is not necessary
15800 enable_fast_install
=needless
15804 # The else clause should only fire when bootstrapping the
15805 # libtool distribution, otherwise you forgot to ship ltmain.sh
15806 # with your package, and you will get complaints that there are
15807 # no rules to generate ltmain.sh.
15808 if test -f "$ltmain"; then
15809 # See if we are running on zsh, and set the options which allow our commands through
15810 # without removal of \ escapes.
15811 if test -n "${ZSH_VERSION+set}" ; then
15812 setopt NO_GLOB_SUBST
15814 # Now quote all the things that may contain metacharacters while being
15815 # careful not to overquote the AC_SUBSTed values. We take copies of the
15816 # variables and quote the copies for generation of the libtool script.
15817 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15819 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15820 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15821 deplibs_check_method reload_flag reload_cmds need_locks \
15822 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15823 lt_cv_sys_global_symbol_to_c_name_address \
15824 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15825 old_postinstall_cmds old_postuninstall_cmds \
15829 lt_prog_compiler_wl_F77 \
15830 lt_prog_compiler_pic_F77 \
15831 lt_prog_compiler_static_F77 \
15832 lt_prog_compiler_no_builtin_flag_F77 \
15833 export_dynamic_flag_spec_F77 \
15834 thread_safe_flag_spec_F77 \
15835 whole_archive_flag_spec_F77 \
15836 enable_shared_with_static_runtimes_F77 \
15837 old_archive_cmds_F77 \
15838 old_archive_from_new_cmds_F77 \
15839 predep_objects_F77 \
15840 postdep_objects_F77 \
15843 compiler_lib_search_path_F77 \
15845 archive_expsym_cmds_F77 \
15846 postinstall_cmds_F77 \
15847 postuninstall_cmds_F77 \
15848 old_archive_from_expsyms_cmds_F77 \
15849 allow_undefined_flag_F77 \
15850 no_undefined_flag_F77 \
15851 export_symbols_cmds_F77 \
15852 hardcode_libdir_flag_spec_F77 \
15853 hardcode_libdir_flag_spec_ld_F77 \
15854 hardcode_libdir_separator_F77 \
15855 hardcode_automatic_F77 \
15857 module_expsym_cmds_F77 \
15858 lt_cv_prog_compiler_c_o_F77 \
15859 exclude_expsyms_F77 \
15860 include_expsyms_F77
; do
15863 old_archive_cmds_F77 | \
15864 old_archive_from_new_cmds_F77 | \
15865 archive_cmds_F77 | \
15866 archive_expsym_cmds_F77 | \
15867 module_cmds_F77 | \
15868 module_expsym_cmds_F77 | \
15869 old_archive_from_expsyms_cmds_F77 | \
15870 export_symbols_cmds_F77 | \
15871 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15872 postinstall_cmds | postuninstall_cmds | \
15873 old_postinstall_cmds | old_postuninstall_cmds | \
15874 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
15875 # Double-quote double-evaled strings.
15876 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15879 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15885 *'\$0 --fallback-echo"')
15886 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15892 cat <<__EOF__ >> "$cfgfile"
15893 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15895 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15897 # Shell to use when invoking shell scripts.
15900 # Whether or not to build shared libraries.
15901 build_libtool_libs=$enable_shared
15903 # Whether or not to build static libraries.
15904 build_old_libs=$enable_static
15906 # Whether or not to add -lc for building shared libraries.
15907 build_libtool_need_lc=$archive_cmds_need_lc_F77
15909 # Whether or not to disallow shared libs when runtime libs are static
15910 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15912 # Whether or not to optimize for fast installation.
15913 fast_install=$enable_fast_install
15916 host_alias=$host_alias
15920 # The build system.
15921 build_alias=$build_alias
15925 # An echo program that does not interpret backslashes.
15930 AR_FLAGS=$lt_AR_FLAGS
15935 # LTCC compiler flags.
15936 LTCFLAGS=$lt_LTCFLAGS
15938 # A language-specific compiler.
15939 CC=$lt_compiler_F77
15941 # Is the compiler the GNU C compiler?
15944 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15945 gcc_ver=\`gcc -dumpversion\`
15950 # The linker used to build libraries.
15953 # Whether we need hard or soft links.
15956 # A BSD-compatible nm program.
15959 # A symbol stripping program
15962 # Used to examine libraries when file_magic_cmd begins "file"
15963 MAGIC_CMD=$MAGIC_CMD
15965 # Used on cygwin: DLL creation program.
15968 # Used on cygwin: object dumper.
15971 # Used on cygwin: assembler.
15974 # The name of the directory that contains temporary libtool files.
15977 # How to create reloadable object files.
15978 reload_flag=$lt_reload_flag
15979 reload_cmds=$lt_reload_cmds
15981 # How to pass a linker flag through the compiler.
15982 wl=$lt_lt_prog_compiler_wl_F77
15984 # Object file suffix (normally "o").
15985 objext="$ac_objext"
15987 # Old archive suffix (normally "a").
15990 # Shared library suffix (normally ".so").
15991 shrext_cmds='$shrext_cmds'
15993 # Executable file suffix (normally "").
15996 # Additional compiler flags for building library objects.
15997 pic_flag=$lt_lt_prog_compiler_pic_F77
16000 # What is the maximum length of a command?
16001 max_cmd_len=$lt_cv_sys_max_cmd_len
16003 # Does compiler simultaneously support -c and -o options?
16004 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16006 # Must we lock files when doing compilation?
16007 need_locks=$lt_need_locks
16009 # Do we need the lib prefix for modules?
16010 need_lib_prefix=$need_lib_prefix
16012 # Do we need a version for libraries?
16013 need_version=$need_version
16015 # Whether dlopen is supported.
16016 dlopen_support=$enable_dlopen
16018 # Whether dlopen of programs is supported.
16019 dlopen_self=$enable_dlopen_self
16021 # Whether dlopen of statically linked programs is supported.
16022 dlopen_self_static=$enable_dlopen_self_static
16024 # Compiler flag to prevent dynamic linking.
16025 link_static_flag=$lt_lt_prog_compiler_static_F77
16027 # Compiler flag to turn off builtin functions.
16028 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16030 # Compiler flag to allow reflexive dlopens.
16031 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16033 # Compiler flag to generate shared objects directly from archives.
16034 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16036 # Compiler flag to generate thread-safe objects.
16037 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16039 # Library versioning type.
16040 version_type=$version_type
16042 # Format of library name prefix.
16043 libname_spec=$lt_libname_spec
16045 # List of archive names. First name is the real one, the rest are links.
16046 # The last name is the one that the linker finds with -lNAME.
16047 library_names_spec=$lt_library_names_spec
16049 # The coded name of the library, if different from the real name.
16050 soname_spec=$lt_soname_spec
16052 # Commands used to build and install an old-style archive.
16054 old_archive_cmds=$lt_old_archive_cmds_F77
16055 old_postinstall_cmds=$lt_old_postinstall_cmds
16056 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16058 # Create an old-style archive from a shared archive.
16059 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16061 # Create a temporary old-style archive to link instead of a shared archive.
16062 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16064 # Commands used to build and install a shared archive.
16065 archive_cmds=$lt_archive_cmds_F77
16066 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16067 postinstall_cmds=$lt_postinstall_cmds
16068 postuninstall_cmds=$lt_postuninstall_cmds
16070 # Commands used to build a loadable module (assumed same as above if empty)
16071 module_cmds=$lt_module_cmds_F77
16072 module_expsym_cmds=$lt_module_expsym_cmds_F77
16074 # Commands to strip libraries.
16075 old_striplib=$lt_old_striplib
16076 striplib=$lt_striplib
16078 # Dependencies to place before the objects being linked to create a
16080 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16082 # Dependencies to place after the objects being linked to create a
16084 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16086 # Dependencies to place before the objects being linked to create a
16088 predeps=$lt_predeps_F77
16090 # Dependencies to place after the objects being linked to create a
16092 postdeps=$lt_postdeps_F77
16094 # The library search path used internally by the compiler when linking
16095 # a shared library.
16096 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16098 # Method to check whether dependent libraries are shared objects.
16099 deplibs_check_method=$lt_deplibs_check_method
16101 # Command to use when deplibs_check_method == file_magic.
16102 file_magic_cmd=$lt_file_magic_cmd
16104 # Flag that allows shared libraries with undefined symbols to be built.
16105 allow_undefined_flag=$lt_allow_undefined_flag_F77
16107 # Flag that forces no undefined symbols.
16108 no_undefined_flag=$lt_no_undefined_flag_F77
16110 # Commands used to finish a libtool library installation in a directory.
16111 finish_cmds=$lt_finish_cmds
16113 # Same as above, but a single script fragment to be evaled but not shown.
16114 finish_eval=$lt_finish_eval
16116 # Take the output of nm and produce a listing of raw symbols and C names.
16117 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16119 # Transform the output of nm in a proper C declaration
16120 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16122 # Transform the output of nm in a C name address pair
16123 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16125 # This is the shared library runtime path variable.
16126 runpath_var=$runpath_var
16128 # This is the shared library path variable.
16129 shlibpath_var=$shlibpath_var
16131 # Is shlibpath searched before the hard-coded library search path?
16132 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16134 # How to hardcode a shared library path into an executable.
16135 hardcode_action=$hardcode_action_F77
16137 # Whether we should hardcode library paths into libraries.
16138 hardcode_into_libs=$hardcode_into_libs
16140 # Flag to hardcode \$libdir into a binary during linking.
16141 # This must work even if \$libdir does not exist.
16142 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16144 # If ld is used when linking, flag to hardcode \$libdir into
16145 # a binary during linking. This must work even if \$libdir does
16147 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16149 # Whether we need a single -rpath flag with a separated argument.
16150 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16152 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16153 # resulting binary.
16154 hardcode_direct=$hardcode_direct_F77
16156 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16157 # resulting binary.
16158 hardcode_minus_L=$hardcode_minus_L_F77
16160 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16161 # the resulting binary.
16162 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16164 # Set to yes if building a shared library automatically hardcodes DIR into the library
16165 # and all subsequent libraries and executables linked against it.
16166 hardcode_automatic=$hardcode_automatic_F77
16168 # Variables whose values should be saved in libtool wrapper scripts and
16169 # restored at relink time.
16170 variables_saved_for_relink="$variables_saved_for_relink"
16172 # Whether libtool must link a program against all its dependency libraries.
16173 link_all_deplibs=$link_all_deplibs_F77
16175 # Compile-time system search path for libraries
16176 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16178 # Run-time system search path for libraries
16179 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16181 # Fix the shell variable \$srcfile for the compiler.
16182 fix_srcfile_path="$fix_srcfile_path_F77"
16184 # Set to yes if exported symbols are required.
16185 always_export_symbols=$always_export_symbols_F77
16187 # The commands to list exported symbols.
16188 export_symbols_cmds=$lt_export_symbols_cmds_F77
16190 # The commands to extract the exported symbol list from a shared archive.
16191 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16193 # Symbols that should not be listed in the preloaded symbols.
16194 exclude_expsyms=$lt_exclude_expsyms_F77
16196 # Symbols that must always be exported.
16197 include_expsyms=$lt_include_expsyms_F77
16199 # ### END LIBTOOL TAG CONFIG: $tagname
16205 # If there is no Makefile yet, we rely on a make rule to execute
16206 # `config.status --recheck' to rerun these tests and create the
16207 # libtool script then.
16208 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16209 if test -f "$ltmain_in"; then
16210 test -f Makefile
&& make "$ltmain"
16216 ac_cpp
='$CPP $CPPFLAGS'
16217 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16218 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16219 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16229 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16232 # Source file extension for Java test sources.
16235 # Object file extension for compiled Java test sources.
16239 # Code to be used in simple compile tests
16240 lt_simple_compile_test_code
="class foo {}\n"
16242 # Code to be used in simple link tests
16243 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }\n'
16245 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16247 # If no C compiler was specified, use CC.
16250 # If no C compiler flags were specified, use CFLAGS.
16251 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
16253 # Allow CC to be a program name with arguments.
16257 # save warnings/boilerplate of simple test code
16258 ac_outfile
=conftest.
$ac_objext
16259 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
16260 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16261 _lt_compiler_boilerplate
=`cat conftest.err`
16264 ac_outfile
=conftest.
$ac_objext
16265 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
16266 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16267 _lt_linker_boilerplate
=`cat conftest.err`
16271 # Allow CC to be a program name with arguments.
16276 for cc_temp
in $compiler""; do
16278 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16279 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16284 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16287 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16288 archive_cmds_need_lc_GCJ
=no
16290 old_archive_cmds_GCJ
=$old_archive_cmds
16293 lt_prog_compiler_no_builtin_flag_GCJ
=
16295 if test "$GCC" = yes; then
16296 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
16299 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16300 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16301 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16302 $as_echo_n "(cached) " >&6
16304 lt_cv_prog_compiler_rtti_exceptions
=no
16305 ac_outfile
=conftest.
$ac_objext
16306 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16307 lt_compiler_flag
="-fno-rtti -fno-exceptions"
16308 # Insert the option either (1) after the last *FLAGS variable, or
16309 # (2) before a word containing "conftest.", or (3) at the end.
16310 # Note that $ac_compile itself does not contain backslashes and begins
16311 # with a dollar sign (not a hyphen), so the echo should work correctly.
16312 # The option is referenced via a variable to avoid confusing sed.
16313 lt_compile
=`echo "$ac_compile" | $SED \
16314 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16315 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16316 -e 's:$: $lt_compiler_flag:'`
16317 (eval echo "\"\$as_me:16317: $lt_compile\"" >&5)
16318 (eval "$lt_compile" 2>conftest.err
)
16320 cat conftest.err
>&5
16321 echo "$as_me:16321: \$? = $ac_status" >&5
16322 if (exit $ac_status) && test -s "$ac_outfile"; then
16323 # The compiler can only warn and ignore the option if not recognized
16324 # So say no if there are warnings other than the usual output.
16325 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16326 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16327 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16328 lt_cv_prog_compiler_rtti_exceptions
=yes
16334 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16335 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16337 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
16338 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16345 lt_prog_compiler_wl_GCJ
=
16346 lt_prog_compiler_pic_GCJ
=
16347 lt_prog_compiler_static_GCJ
=
16349 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16350 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16352 if test "$GCC" = yes; then
16353 lt_prog_compiler_wl_GCJ
='-Wl,'
16354 lt_prog_compiler_static_GCJ
='-static'
16358 # All AIX code is PIC.
16359 if test "$host_cpu" = ia64
; then
16360 # AIX 5 now supports IA64 processor
16361 lt_prog_compiler_static_GCJ
='-Bstatic'
16366 # FIXME: we need at least 68020 code to build shared libraries, but
16367 # adding the `-m68020' flag to GCC prevents building anything better,
16369 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
16372 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
16373 # PIC is the default for these OSes.
16376 mingw
* | pw32
* | os2
*)
16377 # This hack is so that the source file can tell whether it is being
16378 # built for inclusion in a dll (and should export symbols for example).
16379 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16382 darwin
* | rhapsody
*)
16383 # PIC is the default on this platform
16384 # Common symbols not allowed in MH_DYLIB files
16385 lt_prog_compiler_pic_GCJ
='-fno-common'
16389 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16390 # Instead, we relocate shared libraries at runtime.
16394 # Just because we use GCC doesn't mean we suddenly get shared libraries
16395 # on systems that don't support them.
16396 lt_prog_compiler_can_build_shared_GCJ
=no
16401 if test -d /usr
/nec
; then
16402 lt_prog_compiler_pic_GCJ
=-Kconform_pic
16407 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16408 # not for PA HP-UX.
16414 lt_prog_compiler_pic_GCJ
='-fPIC'
16420 lt_prog_compiler_pic_GCJ
='-fPIC'
16424 # PORTME Check for flag to pass linker flags through the system compiler.
16427 lt_prog_compiler_wl_GCJ
='-Wl,'
16428 if test "$host_cpu" = ia64
; then
16429 # AIX 5 now supports IA64 processor
16430 lt_prog_compiler_static_GCJ
='-Bstatic'
16432 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
16436 # PIC is the default on this platform
16437 # Common symbols not allowed in MH_DYLIB files
16438 case $cc_basename in
16440 lt_prog_compiler_pic_GCJ
='-qnocommon'
16441 lt_prog_compiler_wl_GCJ
='-Wl,'
16446 mingw
* | pw32
* | os2
*)
16447 # This hack is so that the source file can tell whether it is being
16448 # built for inclusion in a dll (and should export symbols for example).
16449 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16452 hpux9
* | hpux10
* | hpux11
*)
16453 lt_prog_compiler_wl_GCJ
='-Wl,'
16454 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16455 # not for PA HP-UX.
16461 lt_prog_compiler_pic_GCJ
='+Z'
16464 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16465 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
16468 irix5
* | irix6
* | nonstopux
*)
16469 lt_prog_compiler_wl_GCJ
='-Wl,'
16470 # PIC (with -KPIC) is the default.
16471 lt_prog_compiler_static_GCJ
='-non_shared'
16475 lt_prog_compiler_pic_GCJ
='-KPIC'
16476 lt_prog_compiler_static_GCJ
='-Bstatic'
16480 case $cc_basename in
16482 lt_prog_compiler_wl_GCJ
='-Wl,'
16483 lt_prog_compiler_pic_GCJ
='-KPIC'
16484 lt_prog_compiler_static_GCJ
='-static'
16486 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
16487 # Portland Group compilers (*not* the Pentium gcc compiler,
16488 # which looks to be a dead project)
16489 lt_prog_compiler_wl_GCJ
='-Wl,'
16490 lt_prog_compiler_pic_GCJ
='-fpic'
16491 lt_prog_compiler_static_GCJ
='-Bstatic'
16494 lt_prog_compiler_wl_GCJ
='-Wl,'
16495 # All Alpha code is PIC.
16496 lt_prog_compiler_static_GCJ
='-non_shared'
16501 osf3
* | osf4
* | osf5
*)
16502 lt_prog_compiler_wl_GCJ
='-Wl,'
16503 # All OSF/1 code is PIC.
16504 lt_prog_compiler_static_GCJ
='-non_shared'
16508 lt_prog_compiler_pic_GCJ
='-KPIC'
16509 lt_prog_compiler_static_GCJ
='-Bstatic'
16510 case $cc_basename in
16511 f77
* | f90
* | f95
*)
16512 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
16514 lt_prog_compiler_wl_GCJ
='-Wl,';;
16519 lt_prog_compiler_wl_GCJ
='-Qoption ld '
16520 lt_prog_compiler_pic_GCJ
='-PIC'
16521 lt_prog_compiler_static_GCJ
='-Bstatic'
16524 sysv4 | sysv4.2uw2
* | sysv4.3
*)
16525 lt_prog_compiler_wl_GCJ
='-Wl,'
16526 lt_prog_compiler_pic_GCJ
='-KPIC'
16527 lt_prog_compiler_static_GCJ
='-Bstatic'
16531 if test -d /usr
/nec
;then
16532 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
16533 lt_prog_compiler_static_GCJ
='-Bstatic'
16537 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
16538 lt_prog_compiler_wl_GCJ
='-Wl,'
16539 lt_prog_compiler_pic_GCJ
='-KPIC'
16540 lt_prog_compiler_static_GCJ
='-Bstatic'
16544 lt_prog_compiler_wl_GCJ
='-Wl,'
16545 lt_prog_compiler_can_build_shared_GCJ
=no
16549 lt_prog_compiler_pic_GCJ
='-pic'
16550 lt_prog_compiler_static_GCJ
='-Bstatic'
16554 lt_prog_compiler_can_build_shared_GCJ
=no
16559 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16560 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16563 # Check to make sure the PIC flag actually works.
16565 if test -n "$lt_prog_compiler_pic_GCJ"; then
16567 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16568 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16569 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16570 $as_echo_n "(cached) " >&6
16572 lt_prog_compiler_pic_works_GCJ
=no
16573 ac_outfile
=conftest.
$ac_objext
16574 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16575 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
16576 # Insert the option either (1) after the last *FLAGS variable, or
16577 # (2) before a word containing "conftest.", or (3) at the end.
16578 # Note that $ac_compile itself does not contain backslashes and begins
16579 # with a dollar sign (not a hyphen), so the echo should work correctly.
16580 # The option is referenced via a variable to avoid confusing sed.
16581 lt_compile
=`echo "$ac_compile" | $SED \
16582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16584 -e 's:$: $lt_compiler_flag:'`
16585 (eval echo "\"\$as_me:16585: $lt_compile\"" >&5)
16586 (eval "$lt_compile" 2>conftest.err
)
16588 cat conftest.err
>&5
16589 echo "$as_me:16589: \$? = $ac_status" >&5
16590 if (exit $ac_status) && test -s "$ac_outfile"; then
16591 # The compiler can only warn and ignore the option if not recognized
16592 # So say no if there are warnings other than the usual output.
16593 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16594 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16595 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16596 lt_prog_compiler_pic_works_GCJ
=yes
16602 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16603 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
16605 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
16606 case $lt_prog_compiler_pic_GCJ in
16608 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
16611 lt_prog_compiler_pic_GCJ
=
16612 lt_prog_compiler_can_build_shared_GCJ
=no
16617 # For platforms which do not support PIC, -DPIC is meaningless:
16619 lt_prog_compiler_pic_GCJ
=
16622 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
16627 # Check to make sure the static flag actually works.
16629 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
16630 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16631 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16632 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16633 $as_echo_n "(cached) " >&6
16635 lt_prog_compiler_static_works_GCJ
=no
16636 save_LDFLAGS
="$LDFLAGS"
16637 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
16638 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
16639 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16640 # The linker can only warn and ignore the option if not recognized
16641 # So say no if there are warnings
16642 if test -s conftest.err
; then
16643 # Append any errors to the config.log.
16644 cat conftest.err
1>&5
16645 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
16646 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16647 if diff conftest.exp conftest.er2
>/dev
/null
; then
16648 lt_prog_compiler_static_works_GCJ
=yes
16651 lt_prog_compiler_static_works_GCJ
=yes
16655 LDFLAGS
="$save_LDFLAGS"
16658 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16659 $as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
16661 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
16664 lt_prog_compiler_static_GCJ
=
16668 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16669 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16670 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16671 $as_echo_n "(cached) " >&6
16673 lt_cv_prog_compiler_c_o_GCJ
=no
16674 $rm -r conftest
2>/dev
/null
16678 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16680 lt_compiler_flag
="-o out/conftest2.$ac_objext"
16681 # Insert the option either (1) after the last *FLAGS variable, or
16682 # (2) before a word containing "conftest.", or (3) at the end.
16683 # Note that $ac_compile itself does not contain backslashes and begins
16684 # with a dollar sign (not a hyphen), so the echo should work correctly.
16685 lt_compile
=`echo "$ac_compile" | $SED \
16686 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16687 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16688 -e 's:$: $lt_compiler_flag:'`
16689 (eval echo "\"\$as_me:16689: $lt_compile\"" >&5)
16690 (eval "$lt_compile" 2>out
/conftest.err
)
16692 cat out
/conftest.err
>&5
16693 echo "$as_me:16693: \$? = $ac_status" >&5
16694 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
16696 # The compiler can only warn and ignore the option if not recognized
16697 # So say no if there are warnings
16698 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
16699 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
16700 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
16701 lt_cv_prog_compiler_c_o_GCJ
=yes
16706 # SGI C++ compiler will create directory out/ii_files/ for
16707 # template instantiation
16708 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
16709 $rm out
/* && rmdir out
16715 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16716 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16719 hard_links
="nottested"
16720 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
16721 # do not overwrite the value of need_locks provided by the user
16722 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16723 $as_echo_n "checking if we can lock with hard links... " >&6; }
16726 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16728 ln conftest.a conftest.b
2>&5 || hard_links
=no
16729 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16730 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16731 $as_echo "$hard_links" >&6; }
16732 if test "$hard_links" = no
; then
16733 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16734 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16741 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16742 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16745 allow_undefined_flag_GCJ
=
16746 enable_shared_with_static_runtimes_GCJ
=no
16748 archive_expsym_cmds_GCJ
=
16749 old_archive_From_new_cmds_GCJ
=
16750 old_archive_from_expsyms_cmds_GCJ
=
16751 export_dynamic_flag_spec_GCJ
=
16752 whole_archive_flag_spec_GCJ
=
16753 thread_safe_flag_spec_GCJ
=
16754 hardcode_libdir_flag_spec_GCJ
=
16755 hardcode_libdir_flag_spec_ld_GCJ
=
16756 hardcode_libdir_separator_GCJ
=
16757 hardcode_direct_GCJ
=no
16758 hardcode_minus_L_GCJ
=no
16759 hardcode_shlibpath_var_GCJ
=unsupported
16760 link_all_deplibs_GCJ
=unknown
16761 hardcode_automatic_GCJ
=no
16763 module_expsym_cmds_GCJ
=
16764 always_export_symbols_GCJ
=no
16765 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16766 # include_expsyms should be a list of space-separated symbols to be *always*
16767 # included in the symbol list
16768 include_expsyms_GCJ
=
16769 # exclude_expsyms can be an extended regexp of symbols to exclude
16770 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16771 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16772 # as well as any symbol that contains `d'.
16773 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
16774 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16775 # platforms (ab)use it in PIC code, but their linkers get confused if
16776 # the symbol is explicitly referenced. Since portable code cannot
16777 # rely on this symbol name, it's probably fine to never include it in
16778 # preloaded symbol tables.
16779 extract_expsyms_cmds
=
16780 # Just being paranoid about ensuring that cc_basename is set.
16781 for cc_temp
in $compiler""; do
16783 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16784 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16789 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16792 cygwin
* | mingw
* | pw32
*)
16793 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16794 # When not using gcc, we currently assume that we are using
16795 # Microsoft Visual C++.
16796 if test "$GCC" != yes; then
16801 # we just hope/assume this is gcc and not c89 (= MSVC++)
16810 if test "$with_gnu_ld" = yes; then
16811 # If archive_cmds runs LD, not CC, wlarc should be empty
16814 # Set some defaults for GNU ld with shared library support. These
16815 # are reset later if shared libraries are not supported. Putting them
16816 # here allows them to be overridden if necessary.
16817 runpath_var
=LD_RUN_PATH
16818 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
16819 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
16820 # ancient GNU ld didn't support --whole-archive et. al.
16821 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
16822 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16824 whole_archive_flag_spec_GCJ
=
16826 supports_anon_versioning
=no
16827 case `$LD -v 2>/dev/null` in
16828 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
16829 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
16830 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
16831 *\
2.11.
*) ;; # other 2.11 versions
16832 *) supports_anon_versioning
=yes ;;
16835 # See if GNU ld supports shared libraries.
16837 aix3
* | aix4
* | aix5
*)
16838 # On AIX/PPC, the GNU linker is very broken
16839 if test "$host_cpu" != ia64
; then
16843 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16844 *** to be unable to reliably create shared libraries on AIX.
16845 *** Therefore, libtool is disabling shared libraries support. If you
16846 *** really care for shared libraries, you may want to modify your PATH
16847 *** so that a non-GNU linker is found, and then restart.
16854 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)'
16855 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16856 hardcode_minus_L_GCJ
=yes
16858 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16859 # that the semantics of dynamic libraries on AmigaOS, at least up
16860 # to version 4, is to share data among multiple programs linked
16861 # with the same dynamic library. Since this doesn't match the
16862 # behavior of shared libraries on other platforms, we can't use
16868 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16869 allow_undefined_flag_GCJ
=unsupported
16870 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16871 # support --undefined. This deserves some investigation. FIXME
16872 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16878 cygwin
* | mingw
* | pw32
*)
16879 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16880 # as there is no search path for DLLs.
16881 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16882 allow_undefined_flag_GCJ
=unsupported
16883 always_export_symbols_GCJ
=no
16884 enable_shared_with_static_runtimes_GCJ
=yes
16885 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16887 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
16888 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16889 # If the export-symbols file already is a .def file (1st line
16890 # is EXPORTS), use it as is; otherwise, prepend...
16891 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16892 cp $export_symbols $output_objdir/$soname.def;
16894 echo EXPORTS > $output_objdir/$soname.def;
16895 cat $export_symbols >> $output_objdir/$soname.def;
16897 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16904 hardcode_direct_GCJ
=no
16905 hardcode_shlibpath_var_GCJ
=no
16906 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
16907 export_dynamic_flag_spec_GCJ
='${wl}-E'
16908 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16909 # Instead, shared libraries are loaded at an image base (0x10000000 by
16910 # default) and relocated if they conflict, which is a slow very memory
16911 # consuming and fragmenting process. To avoid this, we pick a random,
16912 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16913 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16914 archive_cmds_GCJ
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16915 archive_expsym_cmds_GCJ
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16919 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16921 case $cc_basename,$host_cpu in
16922 pgcc
*) # Portland Group C compiler
16923 whole_archive_flag_spec_GCJ
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16924 tmp_addflag
=' $pic_flag'
16926 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
16927 whole_archive_flag_spec_GCJ
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16928 tmp_addflag
=' $pic_flag -Mnomain' ;;
16929 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16930 tmp_addflag
=' -i_dynamic' ;;
16931 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16932 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16933 ifc
* | ifort
*) # Intel Fortran compiler
16934 tmp_addflag
=' -nofor_main' ;;
16936 archive_cmds_GCJ
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16938 if test $supports_anon_versioning = yes; then
16939 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
16940 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16941 $echo "local: *; };" >> $output_objdir/$libname.ver~
16942 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16950 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16951 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16954 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16955 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16960 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
16964 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16965 *** create shared libraries on Solaris systems. Therefore, libtool
16966 *** is disabling shared libraries support. We urge you to upgrade GNU
16967 *** binutils to release 2.9.1 or newer. Another option is to modify
16968 *** your PATH or compiler configuration so that the native linker is
16969 *** used, and then restart.
16972 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16973 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16974 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16980 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16981 case `$LD -v 2>&1` in
16982 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16986 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16987 *** reliably create shared libraries on SCO systems. Therefore, libtool
16988 *** is disabling shared libraries support. We urge you to upgrade GNU
16989 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16990 *** your PATH or compiler configuration so that the native linker is
16991 *** used, and then restart.
16996 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16997 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16998 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16999 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17008 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17010 hardcode_direct_GCJ
=yes
17011 hardcode_shlibpath_var_GCJ
=no
17015 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17016 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17017 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17024 if test "$ld_shlibs_GCJ" = no
; then
17026 hardcode_libdir_flag_spec_GCJ
=
17027 export_dynamic_flag_spec_GCJ
=
17028 whole_archive_flag_spec_GCJ
=
17031 # PORTME fill in a description of your system's linker (not GNU ld)
17034 allow_undefined_flag_GCJ
=unsupported
17035 always_export_symbols_GCJ
=yes
17036 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'
17037 # Note: this linker hardcodes the directories in LIBPATH if there
17038 # are no directories specified by -L.
17039 hardcode_minus_L_GCJ
=yes
17040 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17041 # Neither direct hardcoding nor static linking is supported with a
17043 hardcode_direct_GCJ
=unsupported
17048 if test "$host_cpu" = ia64
; then
17049 # On IA64, the linker does run time linking by default, so we don't
17050 # have to do anything special.
17051 aix_use_runtimelinking
=no
17052 exp_sym_flag
='-Bexport'
17055 # If we're using GNU nm, then we don't want the "-C" option.
17056 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17057 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
17058 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'
17060 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'
17062 aix_use_runtimelinking
=no
17064 # Test if we are trying to use run time linking or normal
17065 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17066 # need to do runtime linking.
17067 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
17068 for ld_flag
in $LDFLAGS; do
17069 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17070 aix_use_runtimelinking
=yes
17077 exp_sym_flag
='-bexport'
17078 no_entry_flag
='-bnoentry'
17081 # When large executables or shared objects are built, AIX ld can
17082 # have problems creating the table of contents. If linking a library
17083 # or program results in "error TOC overflow" add -mminimal-toc to
17084 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17085 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17087 archive_cmds_GCJ
=''
17088 hardcode_direct_GCJ
=yes
17089 hardcode_libdir_separator_GCJ
=':'
17090 link_all_deplibs_GCJ
=yes
17092 if test "$GCC" = yes; then
17093 case $host_os in aix4.
[012]|aix4.
[012].
*)
17094 # We only want to do this on AIX 4.2 and lower, the check
17095 # below for broken collect2 doesn't work under 4.3+
17096 collect2name
=`${CC} -print-prog-name=collect2`
17097 if test -f "$collect2name" && \
17098 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
17100 # We have reworked collect2
17101 hardcode_direct_GCJ
=yes
17103 # We have old collect2
17104 hardcode_direct_GCJ
=unsupported
17105 # It fails to find uninstalled libraries when the uninstalled
17106 # path is not listed in the libpath. Setting hardcode_minus_L
17107 # to unsupported forces relinking
17108 hardcode_minus_L_GCJ
=yes
17109 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17110 hardcode_libdir_separator_GCJ
=
17114 shared_flag
='-shared'
17115 if test "$aix_use_runtimelinking" = yes; then
17116 shared_flag
="$shared_flag "'${wl}-G'
17120 if test "$host_cpu" = ia64
; then
17121 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17122 # chokes on -Wl,-G. The following line is correct:
17125 if test "$aix_use_runtimelinking" = yes; then
17126 shared_flag
='${wl}-G'
17128 shared_flag
='${wl}-bM:SRE'
17133 # It seems that -bexpall does not export symbols beginning with
17134 # underscore (_), so it is better to generate a list of symbols to export.
17135 always_export_symbols_GCJ
=yes
17136 if test "$aix_use_runtimelinking" = yes; then
17137 # Warning - without using the other runtime loading flags (-brtl),
17138 # -berok will link without error, but may produce a broken library.
17139 allow_undefined_flag_GCJ
='-berok'
17140 # Determine the default libpath from the value encoded in an empty executable.
17141 cat >conftest.
$ac_ext <<_ACEOF
17144 cat confdefs.h
>>conftest.
$ac_ext
17145 cat >>conftest.
$ac_ext <<_ACEOF
17146 /* end confdefs.h. */
17156 rm -f conftest.
$ac_objext conftest
$ac_exeext
17157 if { (ac_try
="$ac_link"
17158 case "(($ac_try" in
17159 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17160 *) ac_try_echo=$ac_try;;
17162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17163 $as_echo "$ac_try_echo") >&5
17164 (eval "$ac_link") 2>conftest.er1
17166 grep -v '^ *+' conftest.er1 >conftest.err
17168 cat conftest.err >&5
17169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); } && {
17171 test -z "$ac_c_werror_flag" ||
17172 test ! -s conftest.err
17173 } && test -s conftest$ac_exeext && {
17174 test "$cross_compiling" = yes ||
17175 $as_test_x conftest$ac_exeext
17178 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17180 # Check for a 64-bit object if we didn't find anything.
17181 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; }
17184 $as_echo "$as_me: failed program was:" >&5
17185 sed 's/^/| /' conftest.$ac_ext >&5
17190 rm -rf conftest.dSYM
17191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17192 conftest$ac_exeext conftest.$ac_ext
17193 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17195 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17196 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17198 if test "$host_cpu" = ia64; then
17199 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17200 allow_undefined_flag_GCJ="-z nodefs"
17201 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17203 # Determine the default libpath from the value encoded in an empty executable.
17204 cat >conftest.$ac_ext <<_ACEOF
17207 cat confdefs.h >>conftest.$ac_ext
17208 cat >>conftest.$ac_ext <<_ACEOF
17209 /* end confdefs.h. */
17219 rm -f conftest.$ac_objext conftest$ac_exeext
17220 if { (ac_try="$ac_link"
17221 case "(($ac_try" in
17222 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17223 *) ac_try_echo
=$ac_try;;
17225 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17226 $as_echo "$ac_try_echo") >&5
17227 (eval "$ac_link") 2>conftest.er1
17229 grep -v '^ *+' conftest.er1
>conftest.err
17231 cat conftest.err
>&5
17232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); } && {
17234 test -z "$ac_c_werror_flag" ||
17235 test ! -s conftest.err
17236 } && test -s conftest
$ac_exeext && {
17237 test "$cross_compiling" = yes ||
17238 $as_test_x conftest
$ac_exeext
17241 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17243 # Check for a 64-bit object if we didn't find anything.
17244 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; }
17247 $as_echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.
$ac_ext >&5
17253 rm -rf conftest.dSYM
17254 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17255 conftest
$ac_exeext conftest.
$ac_ext
17256 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17258 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
17259 # Warning - without using the other run time loading flags,
17260 # -berok will link without error, but may produce a broken library.
17261 no_undefined_flag_GCJ
=' ${wl}-bernotok'
17262 allow_undefined_flag_GCJ
=' ${wl}-berok'
17263 # Exported symbols can be pulled into shared objects from archives
17264 whole_archive_flag_spec_GCJ
='$convenience'
17265 archive_cmds_need_lc_GCJ
=yes
17266 # This is similar to how AIX traditionally builds its shared libraries.
17267 archive_expsym_cmds_GCJ
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17273 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)'
17274 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17275 hardcode_minus_L_GCJ
=yes
17276 # see comment about different semantics on the GNU ld section
17281 export_dynamic_flag_spec_GCJ
=-rdynamic
17284 cygwin
* | mingw
* | pw32
*)
17285 # When not using gcc, we currently assume that we are using
17286 # Microsoft Visual C++.
17287 # hardcode_libdir_flag_spec is actually meaningless, as there is
17288 # no search path for DLLs.
17289 hardcode_libdir_flag_spec_GCJ
=' '
17290 allow_undefined_flag_GCJ
=unsupported
17291 # Tell ltmain to make .lib files, not .a files.
17293 # Tell ltmain to make .dll files, not .so files.
17295 # FIXME: Setting linknames here is a bad hack.
17296 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17297 # The linker will automatically build a .lib file if we build a DLL.
17298 old_archive_From_new_cmds_GCJ
='true'
17299 # FIXME: Should let the user specify the lib program.
17300 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
17301 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
17302 enable_shared_with_static_runtimes_GCJ
=yes
17305 darwin
* | rhapsody
*)
17307 rhapsody
* | darwin1.
[012])
17308 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
17311 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17312 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17314 case ${MACOSX_DEPLOYMENT_TARGET} in
17316 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17319 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
17325 archive_cmds_need_lc_GCJ
=no
17326 hardcode_direct_GCJ
=no
17327 hardcode_automatic_GCJ
=yes
17328 hardcode_shlibpath_var_GCJ
=unsupported
17329 whole_archive_flag_spec_GCJ
=''
17330 link_all_deplibs_GCJ
=yes
17331 if test "$GCC" = yes ; then
17332 output_verbose_link_cmd
='echo'
17333 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17334 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17335 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17336 archive_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17337 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}'
17339 case $cc_basename in
17341 output_verbose_link_cmd
='echo'
17342 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17343 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17344 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17345 archive_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17346 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}'
17356 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17357 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17358 hardcode_shlibpath_var_GCJ
=no
17365 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17366 # support. Future versions do this automatically, but an explicit c++rt0.o
17367 # does not break anything, and helps significantly (at the cost of a little
17370 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17371 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17372 hardcode_direct_GCJ
=yes
17373 hardcode_shlibpath_var_GCJ
=no
17376 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17378 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17379 hardcode_direct_GCJ
=yes
17380 hardcode_minus_L_GCJ
=yes
17381 hardcode_shlibpath_var_GCJ
=no
17384 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17385 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
17386 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17387 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17388 hardcode_direct_GCJ
=yes
17389 hardcode_shlibpath_var_GCJ
=no
17393 if test "$GCC" = yes; then
17394 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'
17396 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'
17398 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17399 hardcode_libdir_separator_GCJ
=:
17400 hardcode_direct_GCJ
=yes
17402 # hardcode_minus_L: Not really in the search PATH,
17403 # but as the default location of the library.
17404 hardcode_minus_L_GCJ
=yes
17405 export_dynamic_flag_spec_GCJ
='${wl}-E'
17409 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17410 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17412 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17414 if test "$with_gnu_ld" = no
; then
17415 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17416 hardcode_libdir_separator_GCJ
=:
17418 hardcode_direct_GCJ
=yes
17419 export_dynamic_flag_spec_GCJ
='${wl}-E'
17421 # hardcode_minus_L: Not really in the search PATH,
17422 # but as the default location of the library.
17423 hardcode_minus_L_GCJ
=yes
17428 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17431 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17434 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17437 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17443 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17446 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17449 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17453 if test "$with_gnu_ld" = no
; then
17454 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17455 hardcode_libdir_separator_GCJ
=:
17459 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
17460 hardcode_direct_GCJ
=no
17461 hardcode_shlibpath_var_GCJ
=no
17464 hardcode_direct_GCJ
=yes
17465 export_dynamic_flag_spec_GCJ
='${wl}-E'
17467 # hardcode_minus_L: Not really in the search PATH,
17468 # but as the default location of the library.
17469 hardcode_minus_L_GCJ
=yes
17475 irix5
* | irix6
* | nonstopux
*)
17476 if test "$GCC" = yes; then
17477 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'
17479 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'
17480 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
17482 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17483 hardcode_libdir_separator_GCJ
=:
17484 link_all_deplibs_GCJ
=yes
17488 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17489 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17491 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17493 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17494 hardcode_direct_GCJ
=yes
17495 hardcode_shlibpath_var_GCJ
=no
17499 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17500 hardcode_direct_GCJ
=yes
17501 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17502 hardcode_libdir_separator_GCJ
=:
17503 hardcode_shlibpath_var_GCJ
=no
17507 hardcode_direct_GCJ
=yes
17508 hardcode_shlibpath_var_GCJ
=no
17509 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17510 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17511 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17512 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17513 export_dynamic_flag_spec_GCJ
='${wl}-E'
17516 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17517 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17518 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17521 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17522 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17529 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17530 hardcode_minus_L_GCJ
=yes
17531 allow_undefined_flag_GCJ
=unsupported
17532 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'
17533 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17537 if test "$GCC" = yes; then
17538 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17539 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'
17541 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17542 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'
17544 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17545 hardcode_libdir_separator_GCJ
=:
17548 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17549 if test "$GCC" = yes; then
17550 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17551 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'
17552 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17554 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17555 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'
17556 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~
17557 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17559 # Both c and cxx compiler support -rpath directly
17560 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
17562 hardcode_libdir_separator_GCJ
=:
17566 no_undefined_flag_GCJ
=' -z text'
17567 if test "$GCC" = yes; then
17569 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17570 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17571 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17574 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17575 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17576 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17578 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17579 hardcode_shlibpath_var_GCJ
=no
17581 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17583 # The compiler driver will combine linker options so we
17584 # cannot just pass the convience library names through
17585 # without $wl, iff we do not link with $LD.
17586 # Luckily, gcc supports the same syntax we need for Sun Studio.
17587 # Supported since Solaris 2.6 (maybe 2.5.1?)
17590 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract' ;;
17592 whole_archive_flag_spec_GCJ
='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17595 link_all_deplibs_GCJ
=yes
17599 if test "x$host_vendor" = xsequent
; then
17600 # Use $CC to link under sequent, because it throws in some extra .o
17601 # files that make .init and .fini sections work.
17602 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17604 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17606 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17607 hardcode_direct_GCJ
=yes
17608 hardcode_minus_L_GCJ
=yes
17609 hardcode_shlibpath_var_GCJ
=no
17613 case $host_vendor in
17615 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17616 hardcode_direct_GCJ
=yes # is this really true???
17619 ## LD is ld it makes a PLAMLIB
17620 ## CC just makes a GrossModule.
17621 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17622 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
17623 hardcode_direct_GCJ
=no
17626 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17627 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
17630 runpath_var
='LD_RUN_PATH'
17631 hardcode_shlibpath_var_GCJ
=no
17635 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17636 hardcode_shlibpath_var_GCJ
=no
17637 export_dynamic_flag_spec_GCJ
='-Bexport'
17641 if test -d /usr
/nec
; then
17642 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17643 hardcode_shlibpath_var_GCJ
=no
17644 runpath_var
=LD_RUN_PATH
17645 hardcode_runpath_var
=yes
17650 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
*)
17651 no_undefined_flag_GCJ
='${wl}-z,text'
17652 archive_cmds_need_lc_GCJ
=no
17653 hardcode_shlibpath_var_GCJ
=no
17654 runpath_var
='LD_RUN_PATH'
17656 if test "$GCC" = yes; then
17657 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17658 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17660 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17661 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17665 sysv5
* | sco3.2v5
* | sco5v6
*)
17666 # Note: We can NOT use -z defs as we might desire, because we do not
17667 # link with -lc, and that would cause any symbols used from libc to
17668 # always be unresolved, which means just about no library would
17669 # ever link correctly. If we're not using GNU ld we use -z text
17670 # though, which does catch some bad symbols but isn't as heavy-handed
17672 no_undefined_flag_GCJ
='${wl}-z,text'
17673 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
17674 archive_cmds_need_lc_GCJ
=no
17675 hardcode_shlibpath_var_GCJ
=no
17676 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17677 hardcode_libdir_separator_GCJ
=':'
17678 link_all_deplibs_GCJ
=yes
17679 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
17680 runpath_var
='LD_RUN_PATH'
17682 if test "$GCC" = yes; then
17683 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17684 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17686 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17687 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17692 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17693 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17694 hardcode_shlibpath_var_GCJ
=no
17703 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17704 $as_echo "$ld_shlibs_GCJ" >&6; }
17705 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
17708 # Do we need to explicitly link libc?
17710 case "x$archive_cmds_need_lc_GCJ" in
17712 # Assume -lc should be added
17713 archive_cmds_need_lc_GCJ
=yes
17715 if test "$enable_shared" = yes && test "$GCC" = yes; then
17716 case $archive_cmds_GCJ in
17718 # FIXME: we may have to deal with multi-command sequences.
17721 # Test whether the compiler implicitly links with -lc since on some
17722 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17723 # to ld, don't add -lc before -lgcc.
17724 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17725 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17727 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
17729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17730 (eval $ac_compile) 2>&5
17732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); } 2>conftest.err
; then
17736 libobjs
=conftest.
$ac_objext
17738 wl
=$lt_prog_compiler_wl_GCJ
17739 pic_flag
=$lt_prog_compiler_pic_GCJ
17745 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
17746 allow_undefined_flag_GCJ
=
17747 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17748 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }
17753 archive_cmds_need_lc_GCJ
=no
17755 archive_cmds_need_lc_GCJ
=yes
17757 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
17759 cat conftest.err
1>&5
17762 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17763 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17770 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17771 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17772 library_names_spec
=
17773 libname_spec
='lib$name'
17777 postuninstall_cmds
=
17781 shlibpath_overrides_runpath
=unknown
17783 dynamic_linker
="$host_os ld.so"
17784 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17785 if test "$GCC" = yes; then
17786 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17787 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
17788 # if the path contains ";" then we assume it to be the separator
17789 # otherwise default to the standard path separator (i.e. ":") - it is
17790 # assumed that no part of a normal pathname contains ";" but that should
17791 # okay in the real world where ";" in dirpaths is itself problematic.
17792 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17794 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17797 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17799 need_lib_prefix
=unknown
17800 hardcode_into_libs
=no
17802 # when you set need_version to no, make sure it does not cause -set_version
17803 # flags to be left without arguments
17804 need_version
=unknown
17809 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17810 shlibpath_var
=LIBPATH
17812 # AIX 3 has no versioning support, so we append a major version to the name.
17813 soname_spec
='${libname}${release}${shared_ext}$major'
17820 hardcode_into_libs
=yes
17821 if test "$host_cpu" = ia64
; then
17822 # AIX 5 supports IA64
17823 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17824 shlibpath_var
=LD_LIBRARY_PATH
17826 # With GCC up to 2.95.x, collect2 would create an import file
17827 # for dependence libraries. The import file would start with
17828 # the line `#! .'. This would cause the generated library to
17829 # depend on `.', always an invalid library. This was fixed in
17830 # development snapshots of GCC prior to 3.0.
17832 aix4 | aix4.
[01] | aix4.
[01].
*)
17833 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17835 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
17838 can_build_shared
=no
17842 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17843 # soname into executable. Probably we can add versioning support to
17844 # collect2, so additional links can be useful in future.
17845 if test "$aix_use_runtimelinking" = yes; then
17846 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17847 # instead of lib<name>.a to let people know that these are not
17848 # typical AIX shared libraries.
17849 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17851 # We preserve .a as extension for shared libraries through AIX4.2
17852 # and later when we are not doing run time linking.
17853 library_names_spec
='${libname}${release}.a $libname.a'
17854 soname_spec
='${libname}${release}${shared_ext}$major'
17856 shlibpath_var
=LIBPATH
17861 library_names_spec
='$libname.ixlibrary $libname.a'
17862 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17863 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'
17867 library_names_spec
='${libname}${shared_ext}'
17868 dynamic_linker
="$host_os ld.so"
17869 shlibpath_var
=LIBRARY_PATH
17875 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17876 soname_spec
='${libname}${release}${shared_ext}$major'
17877 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17878 shlibpath_var
=LD_LIBRARY_PATH
17879 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17880 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17881 # the default ld.so.conf also contains /usr/contrib/lib and
17882 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17883 # libtool to hard-code these into programs
17886 cygwin
* | mingw
* | pw32
*)
17887 version_type
=windows
17892 case $GCC,$host_os in
17893 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
17894 library_names_spec
='$libname.dll.a'
17895 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17896 postinstall_cmds
='base_file=`basename \${file}`~
17897 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17898 dldir=$destdir/`dirname \$dlpath`~
17899 test -d \$dldir || mkdir -p \$dldir~
17900 $install_prog $dir/$dlname \$dldir/$dlname~
17901 chmod a+x \$dldir/$dlname'
17902 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17903 dlpath=$dir/\$dldll~
17905 shlibpath_overrides_runpath
=yes
17909 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17910 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17911 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
17914 # MinGW DLLs use traditional 'lib' prefix
17915 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17916 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17917 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
17918 # It is most probably a Windows format PATH printed by
17919 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17920 # path with ; separators, and with drive letters. We can handle the
17921 # drive letters (cygwin fileutils understands them), so leave them,
17922 # especially as we might pass files found there to a mingw objdump,
17923 # which wouldn't understand a cygwinified path. Ahh.
17924 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17926 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17930 # pw32 DLLs use 'pw' prefix rather than 'lib'
17931 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17937 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17940 dynamic_linker
='Win32 ld.exe'
17941 # FIXME: first we should search . and the directory the executable is in
17945 darwin
* | rhapsody
*)
17946 dynamic_linker
="$host_os dyld"
17947 version_type
=darwin
17950 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17951 soname_spec
='${libname}${release}${major}$shared_ext'
17952 shlibpath_overrides_runpath
=yes
17953 shlibpath_var
=DYLD_LIBRARY_PATH
17954 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17955 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17956 if test "$GCC" = yes; then
17957 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"`
17959 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
17961 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17968 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17969 soname_spec
='${libname}${release}${shared_ext}$major'
17970 shlibpath_var
=LD_LIBRARY_PATH
17981 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17982 soname_spec
='${libname}${release}${shared_ext}$major'
17983 shlibpath_var
=LD_LIBRARY_PATH
17984 shlibpath_overrides_runpath
=no
17985 hardcode_into_libs
=yes
17986 dynamic_linker
='GNU ld.so'
17989 freebsd
* | dragonfly
*)
17990 # DragonFly does not have aout. When/if they implement a new
17991 # versioning mechanism, adjust this.
17992 if test -x /usr
/bin
/objformat
; then
17993 objformat
=`/usr/bin/objformat`
17996 freebsd
[123]*) objformat
=aout
;;
17997 *) objformat
=elf
;;
18000 version_type
=freebsd-
$objformat
18001 case $version_type in
18003 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18008 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18012 shlibpath_var
=LD_LIBRARY_PATH
18015 shlibpath_overrides_runpath
=yes
18017 freebsd3.
[01]* | freebsdelf3.
[01]*)
18018 shlibpath_overrides_runpath
=yes
18019 hardcode_into_libs
=yes
18021 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18022 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18023 shlibpath_overrides_runpath
=no
18024 hardcode_into_libs
=yes
18026 freebsd
*) # from 4.6 on
18027 shlibpath_overrides_runpath
=yes
18028 hardcode_into_libs
=yes
18037 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18038 soname_spec
='${libname}${release}${shared_ext}$major'
18039 shlibpath_var
=LD_LIBRARY_PATH
18040 hardcode_into_libs
=yes
18043 hpux9
* | hpux10
* | hpux11
*)
18044 # Give a soname corresponding to the major version so that dld.sl refuses to
18045 # link against other versions.
18052 hardcode_into_libs
=yes
18053 dynamic_linker
="$host_os dld.so"
18054 shlibpath_var
=LD_LIBRARY_PATH
18055 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18056 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18057 soname_spec
='${libname}${release}${shared_ext}$major'
18058 if test "X$HPUX_IA64_MODE" = X32
; then
18059 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18061 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18063 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18067 hardcode_into_libs
=yes
18068 dynamic_linker
="$host_os dld.sl"
18069 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18070 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18071 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18072 soname_spec
='${libname}${release}${shared_ext}$major'
18073 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18074 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18078 dynamic_linker
="$host_os dld.sl"
18079 shlibpath_var
=SHLIB_PATH
18080 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18081 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18082 soname_spec
='${libname}${release}${shared_ext}$major'
18085 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18086 postinstall_cmds
='chmod 555 $lib'
18093 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18094 soname_spec
='${libname}${release}${shared_ext}$major'
18095 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18096 shlibpath_var
=LD_LIBRARY_PATH
18097 shlibpath_overrides_runpath
=no
18098 hardcode_into_libs
=yes
18101 irix5
* | irix6
* | nonstopux
*)
18103 nonstopux
*) version_type
=nonstopux
;;
18105 if test "$lt_cv_prog_gnu_ld" = yes; then
18113 soname_spec
='${libname}${release}${shared_ext}$major'
18114 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18116 irix5
* | nonstopux
*)
18117 libsuff
= shlibsuff
=
18120 case $LD in # libtool.m4 will add one of these switches to LD
18121 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18122 libsuff
= shlibsuff
= libmagic
=32-bit;;
18123 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18124 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18125 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18126 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18127 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18131 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18132 shlibpath_overrides_runpath
=no
18133 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18134 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18135 hardcode_into_libs
=yes
18138 # No shared lib support for Linux oldld, aout, or coff.
18139 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18143 # This must be Linux ELF.
18148 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18149 soname_spec
='${libname}${release}${shared_ext}$major'
18150 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18151 shlibpath_var
=LD_LIBRARY_PATH
18152 shlibpath_overrides_runpath
=no
18153 # This implies no fast_install, which is unacceptable.
18154 # Some rework will be needed to allow for fast_install
18155 # before this can be enabled.
18156 hardcode_into_libs
=yes
18158 # find out which ABI we are using
18160 case "$host_cpu" in
18161 x86_64
*|s390x
*|powerpc64
*)
18162 echo '#line 18162 "configure"' > conftest.
$ac_ext
18163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18164 (eval $ac_compile) 2>&5
18166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; then
18168 case `/usr/bin/file conftest.$ac_objext` in
18171 sys_lib_search_path_spec
="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18179 # Append ld.so.conf contents to the search path
18180 if test -f /etc
/ld.so.conf
; then
18181 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18182 sys_lib_dlsearch_path_spec
="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18185 # We used to test for /lib/ld.so.1 and disable shared libraries on
18186 # powerpc, because MkLinux only supported shared libraries with the
18187 # GNU dynamic linker. Since this was broken with cross compilers,
18188 # most powerpc-linux boxes support dynamic linking these days and
18189 # people can always --disable-shared, the test was removed, and we
18190 # assume the GNU/Linux dynamic linker is in use.
18191 dynamic_linker
='GNU/Linux ld.so'
18198 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18199 soname_spec
='${libname}${release}${shared_ext}$major'
18200 shlibpath_var
=LD_LIBRARY_PATH
18201 shlibpath_overrides_runpath
=no
18202 hardcode_into_libs
=yes
18203 dynamic_linker
='GNU ld.so'
18210 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
18211 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18212 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18213 dynamic_linker
='NetBSD (a.out) ld.so'
18215 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18216 soname_spec
='${libname}${release}${shared_ext}$major'
18217 dynamic_linker
='NetBSD ld.elf_so'
18219 shlibpath_var
=LD_LIBRARY_PATH
18220 shlibpath_overrides_runpath
=yes
18221 hardcode_into_libs
=yes
18226 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18227 shlibpath_var
=LD_LIBRARY_PATH
18228 shlibpath_overrides_runpath
=yes
18235 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18236 soname_spec
='${libname}${release}${shared_ext}$major'
18237 shlibpath_var
=LD_LIBRARY_PATH
18238 shlibpath_overrides_runpath
=yes
18243 sys_lib_dlsearch_path_spec
="/usr/lib"
18245 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18247 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18248 *) need_version
=no
;;
18250 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18251 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18252 shlibpath_var
=LD_LIBRARY_PATH
18253 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18255 openbsd2.
[89] | openbsd2.
[89].
*)
18256 shlibpath_overrides_runpath
=no
18259 shlibpath_overrides_runpath
=yes
18263 shlibpath_overrides_runpath
=yes
18268 libname_spec
='$name'
18271 library_names_spec
='$libname${shared_ext} $libname.a'
18272 dynamic_linker
='OS/2 ld.exe'
18273 shlibpath_var
=LIBPATH
18276 osf3
* | osf4
* | osf5
*)
18280 soname_spec
='${libname}${release}${shared_ext}$major'
18281 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18282 shlibpath_var
=LD_LIBRARY_PATH
18283 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18284 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18291 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18292 soname_spec
='${libname}${release}${shared_ext}$major'
18293 shlibpath_var
=LD_LIBRARY_PATH
18294 shlibpath_overrides_runpath
=yes
18295 hardcode_into_libs
=yes
18296 # ldd complains unless libraries are executable
18297 postinstall_cmds
='chmod +x $lib'
18302 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18303 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18304 shlibpath_var
=LD_LIBRARY_PATH
18305 shlibpath_overrides_runpath
=yes
18306 if test "$with_gnu_ld" = yes; then
18314 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18315 soname_spec
='${libname}${release}${shared_ext}$major'
18316 shlibpath_var
=LD_LIBRARY_PATH
18317 case $host_vendor in
18319 shlibpath_overrides_runpath
=no
18321 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18322 runpath_var
=LD_RUN_PATH
18330 shlibpath_overrides_runpath
=no
18331 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18337 if test -d /usr
/nec
;then
18339 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18340 soname_spec
='$libname${shared_ext}.$major'
18341 shlibpath_var
=LD_LIBRARY_PATH
18345 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18346 version_type
=freebsd-elf
18349 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18350 soname_spec
='${libname}${release}${shared_ext}$major'
18351 shlibpath_var
=LD_LIBRARY_PATH
18352 hardcode_into_libs
=yes
18353 if test "$with_gnu_ld" = yes; then
18354 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18355 shlibpath_overrides_runpath
=no
18357 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18358 shlibpath_overrides_runpath
=yes
18361 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18365 sys_lib_dlsearch_path_spec
='/usr/lib'
18370 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18371 soname_spec
='${libname}${release}${shared_ext}$major'
18372 shlibpath_var
=LD_LIBRARY_PATH
18379 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18380 $as_echo "$dynamic_linker" >&6; }
18381 test "$dynamic_linker" = no
&& can_build_shared
=no
18383 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18384 if test "$GCC" = yes; then
18385 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18388 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18389 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18390 hardcode_action_GCJ
=
18391 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18392 test -n "$runpath_var_GCJ" || \
18393 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18395 # We can hardcode non-existant directories.
18396 if test "$hardcode_direct_GCJ" != no
&&
18397 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18398 # have to relink, otherwise we might link with an installed library
18399 # when we should be linking with a yet-to-be-installed one
18400 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18401 test "$hardcode_minus_L_GCJ" != no
; then
18402 # Linking always hardcodes the temporary library directory.
18403 hardcode_action_GCJ
=relink
18405 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18406 hardcode_action_GCJ
=immediate
18409 # We cannot hardcode anything, or else we can only hardcode existing
18411 hardcode_action_GCJ
=unsupported
18413 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18414 $as_echo "$hardcode_action_GCJ" >&6; }
18416 if test "$hardcode_action_GCJ" = relink
; then
18417 # Fast installation is not supported
18418 enable_fast_install
=no
18419 elif test "$shlibpath_overrides_runpath" = yes ||
18420 test "$enable_shared" = no
; then
18421 # Fast installation is not necessary
18422 enable_fast_install
=needless
18426 # The else clause should only fire when bootstrapping the
18427 # libtool distribution, otherwise you forgot to ship ltmain.sh
18428 # with your package, and you will get complaints that there are
18429 # no rules to generate ltmain.sh.
18430 if test -f "$ltmain"; then
18431 # See if we are running on zsh, and set the options which allow our commands through
18432 # without removal of \ escapes.
18433 if test -n "${ZSH_VERSION+set}" ; then
18434 setopt NO_GLOB_SUBST
18436 # Now quote all the things that may contain metacharacters while being
18437 # careful not to overquote the AC_SUBSTed values. We take copies of the
18438 # variables and quote the copies for generation of the libtool script.
18439 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18441 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18442 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18443 deplibs_check_method reload_flag reload_cmds need_locks \
18444 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18445 lt_cv_sys_global_symbol_to_c_name_address \
18446 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18447 old_postinstall_cmds old_postuninstall_cmds \
18451 lt_prog_compiler_wl_GCJ \
18452 lt_prog_compiler_pic_GCJ \
18453 lt_prog_compiler_static_GCJ \
18454 lt_prog_compiler_no_builtin_flag_GCJ \
18455 export_dynamic_flag_spec_GCJ \
18456 thread_safe_flag_spec_GCJ \
18457 whole_archive_flag_spec_GCJ \
18458 enable_shared_with_static_runtimes_GCJ \
18459 old_archive_cmds_GCJ \
18460 old_archive_from_new_cmds_GCJ \
18461 predep_objects_GCJ \
18462 postdep_objects_GCJ \
18465 compiler_lib_search_path_GCJ \
18467 archive_expsym_cmds_GCJ \
18468 postinstall_cmds_GCJ \
18469 postuninstall_cmds_GCJ \
18470 old_archive_from_expsyms_cmds_GCJ \
18471 allow_undefined_flag_GCJ \
18472 no_undefined_flag_GCJ \
18473 export_symbols_cmds_GCJ \
18474 hardcode_libdir_flag_spec_GCJ \
18475 hardcode_libdir_flag_spec_ld_GCJ \
18476 hardcode_libdir_separator_GCJ \
18477 hardcode_automatic_GCJ \
18479 module_expsym_cmds_GCJ \
18480 lt_cv_prog_compiler_c_o_GCJ \
18481 exclude_expsyms_GCJ \
18482 include_expsyms_GCJ
; do
18485 old_archive_cmds_GCJ | \
18486 old_archive_from_new_cmds_GCJ | \
18487 archive_cmds_GCJ | \
18488 archive_expsym_cmds_GCJ | \
18489 module_cmds_GCJ | \
18490 module_expsym_cmds_GCJ | \
18491 old_archive_from_expsyms_cmds_GCJ | \
18492 export_symbols_cmds_GCJ | \
18493 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18494 postinstall_cmds | postuninstall_cmds | \
18495 old_postinstall_cmds | old_postuninstall_cmds | \
18496 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18497 # Double-quote double-evaled strings.
18498 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18501 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18507 *'\$0 --fallback-echo"')
18508 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18514 cat <<__EOF__ >> "$cfgfile"
18515 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18517 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18519 # Shell to use when invoking shell scripts.
18522 # Whether or not to build shared libraries.
18523 build_libtool_libs=$enable_shared
18525 # Whether or not to build static libraries.
18526 build_old_libs=$enable_static
18528 # Whether or not to add -lc for building shared libraries.
18529 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18531 # Whether or not to disallow shared libs when runtime libs are static
18532 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18534 # Whether or not to optimize for fast installation.
18535 fast_install=$enable_fast_install
18538 host_alias=$host_alias
18542 # The build system.
18543 build_alias=$build_alias
18547 # An echo program that does not interpret backslashes.
18552 AR_FLAGS=$lt_AR_FLAGS
18557 # LTCC compiler flags.
18558 LTCFLAGS=$lt_LTCFLAGS
18560 # A language-specific compiler.
18561 CC=$lt_compiler_GCJ
18563 # Is the compiler the GNU C compiler?
18566 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18567 gcc_ver=\`gcc -dumpversion\`
18572 # The linker used to build libraries.
18575 # Whether we need hard or soft links.
18578 # A BSD-compatible nm program.
18581 # A symbol stripping program
18584 # Used to examine libraries when file_magic_cmd begins "file"
18585 MAGIC_CMD=$MAGIC_CMD
18587 # Used on cygwin: DLL creation program.
18590 # Used on cygwin: object dumper.
18593 # Used on cygwin: assembler.
18596 # The name of the directory that contains temporary libtool files.
18599 # How to create reloadable object files.
18600 reload_flag=$lt_reload_flag
18601 reload_cmds=$lt_reload_cmds
18603 # How to pass a linker flag through the compiler.
18604 wl=$lt_lt_prog_compiler_wl_GCJ
18606 # Object file suffix (normally "o").
18607 objext="$ac_objext"
18609 # Old archive suffix (normally "a").
18612 # Shared library suffix (normally ".so").
18613 shrext_cmds='$shrext_cmds'
18615 # Executable file suffix (normally "").
18618 # Additional compiler flags for building library objects.
18619 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18622 # What is the maximum length of a command?
18623 max_cmd_len=$lt_cv_sys_max_cmd_len
18625 # Does compiler simultaneously support -c and -o options?
18626 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18628 # Must we lock files when doing compilation?
18629 need_locks=$lt_need_locks
18631 # Do we need the lib prefix for modules?
18632 need_lib_prefix=$need_lib_prefix
18634 # Do we need a version for libraries?
18635 need_version=$need_version
18637 # Whether dlopen is supported.
18638 dlopen_support=$enable_dlopen
18640 # Whether dlopen of programs is supported.
18641 dlopen_self=$enable_dlopen_self
18643 # Whether dlopen of statically linked programs is supported.
18644 dlopen_self_static=$enable_dlopen_self_static
18646 # Compiler flag to prevent dynamic linking.
18647 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18649 # Compiler flag to turn off builtin functions.
18650 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18652 # Compiler flag to allow reflexive dlopens.
18653 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18655 # Compiler flag to generate shared objects directly from archives.
18656 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18658 # Compiler flag to generate thread-safe objects.
18659 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18661 # Library versioning type.
18662 version_type=$version_type
18664 # Format of library name prefix.
18665 libname_spec=$lt_libname_spec
18667 # List of archive names. First name is the real one, the rest are links.
18668 # The last name is the one that the linker finds with -lNAME.
18669 library_names_spec=$lt_library_names_spec
18671 # The coded name of the library, if different from the real name.
18672 soname_spec=$lt_soname_spec
18674 # Commands used to build and install an old-style archive.
18676 old_archive_cmds=$lt_old_archive_cmds_GCJ
18677 old_postinstall_cmds=$lt_old_postinstall_cmds
18678 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18680 # Create an old-style archive from a shared archive.
18681 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18683 # Create a temporary old-style archive to link instead of a shared archive.
18684 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18686 # Commands used to build and install a shared archive.
18687 archive_cmds=$lt_archive_cmds_GCJ
18688 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18689 postinstall_cmds=$lt_postinstall_cmds
18690 postuninstall_cmds=$lt_postuninstall_cmds
18692 # Commands used to build a loadable module (assumed same as above if empty)
18693 module_cmds=$lt_module_cmds_GCJ
18694 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18696 # Commands to strip libraries.
18697 old_striplib=$lt_old_striplib
18698 striplib=$lt_striplib
18700 # Dependencies to place before the objects being linked to create a
18702 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18704 # Dependencies to place after the objects being linked to create a
18706 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18708 # Dependencies to place before the objects being linked to create a
18710 predeps=$lt_predeps_GCJ
18712 # Dependencies to place after the objects being linked to create a
18714 postdeps=$lt_postdeps_GCJ
18716 # The library search path used internally by the compiler when linking
18717 # a shared library.
18718 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18720 # Method to check whether dependent libraries are shared objects.
18721 deplibs_check_method=$lt_deplibs_check_method
18723 # Command to use when deplibs_check_method == file_magic.
18724 file_magic_cmd=$lt_file_magic_cmd
18726 # Flag that allows shared libraries with undefined symbols to be built.
18727 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18729 # Flag that forces no undefined symbols.
18730 no_undefined_flag=$lt_no_undefined_flag_GCJ
18732 # Commands used to finish a libtool library installation in a directory.
18733 finish_cmds=$lt_finish_cmds
18735 # Same as above, but a single script fragment to be evaled but not shown.
18736 finish_eval=$lt_finish_eval
18738 # Take the output of nm and produce a listing of raw symbols and C names.
18739 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18741 # Transform the output of nm in a proper C declaration
18742 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18744 # Transform the output of nm in a C name address pair
18745 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18747 # This is the shared library runtime path variable.
18748 runpath_var=$runpath_var
18750 # This is the shared library path variable.
18751 shlibpath_var=$shlibpath_var
18753 # Is shlibpath searched before the hard-coded library search path?
18754 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18756 # How to hardcode a shared library path into an executable.
18757 hardcode_action=$hardcode_action_GCJ
18759 # Whether we should hardcode library paths into libraries.
18760 hardcode_into_libs=$hardcode_into_libs
18762 # Flag to hardcode \$libdir into a binary during linking.
18763 # This must work even if \$libdir does not exist.
18764 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18766 # If ld is used when linking, flag to hardcode \$libdir into
18767 # a binary during linking. This must work even if \$libdir does
18769 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18771 # Whether we need a single -rpath flag with a separated argument.
18772 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18774 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18775 # resulting binary.
18776 hardcode_direct=$hardcode_direct_GCJ
18778 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18779 # resulting binary.
18780 hardcode_minus_L=$hardcode_minus_L_GCJ
18782 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18783 # the resulting binary.
18784 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18786 # Set to yes if building a shared library automatically hardcodes DIR into the library
18787 # and all subsequent libraries and executables linked against it.
18788 hardcode_automatic=$hardcode_automatic_GCJ
18790 # Variables whose values should be saved in libtool wrapper scripts and
18791 # restored at relink time.
18792 variables_saved_for_relink="$variables_saved_for_relink"
18794 # Whether libtool must link a program against all its dependency libraries.
18795 link_all_deplibs=$link_all_deplibs_GCJ
18797 # Compile-time system search path for libraries
18798 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18800 # Run-time system search path for libraries
18801 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18803 # Fix the shell variable \$srcfile for the compiler.
18804 fix_srcfile_path="$fix_srcfile_path_GCJ"
18806 # Set to yes if exported symbols are required.
18807 always_export_symbols=$always_export_symbols_GCJ
18809 # The commands to list exported symbols.
18810 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18812 # The commands to extract the exported symbol list from a shared archive.
18813 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18815 # Symbols that should not be listed in the preloaded symbols.
18816 exclude_expsyms=$lt_exclude_expsyms_GCJ
18818 # Symbols that must always be exported.
18819 include_expsyms=$lt_include_expsyms_GCJ
18821 # ### END LIBTOOL TAG CONFIG: $tagname
18827 # If there is no Makefile yet, we rely on a make rule to execute
18828 # `config.status --recheck' to rerun these tests and create the
18829 # libtool script then.
18830 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18831 if test -f "$ltmain_in"; then
18832 test -f Makefile
&& make "$ltmain"
18838 ac_cpp
='$CPP $CPPFLAGS'
18839 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18840 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18841 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18853 # Source file extension for RC test sources.
18856 # Object file extension for compiled RC test sources.
18860 # Code to be used in simple compile tests
18861 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18863 # Code to be used in simple link tests
18864 lt_simple_link_test_code
="$lt_simple_compile_test_code"
18866 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18868 # If no C compiler was specified, use CC.
18871 # If no C compiler flags were specified, use CFLAGS.
18872 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18874 # Allow CC to be a program name with arguments.
18878 # save warnings/boilerplate of simple test code
18879 ac_outfile
=conftest.
$ac_objext
18880 printf "$lt_simple_compile_test_code" >conftest.
$ac_ext
18881 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18882 _lt_compiler_boilerplate
=`cat conftest.err`
18885 ac_outfile
=conftest.
$ac_objext
18886 printf "$lt_simple_link_test_code" >conftest.
$ac_ext
18887 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18888 _lt_linker_boilerplate
=`cat conftest.err`
18892 # Allow CC to be a program name with arguments.
18897 for cc_temp
in $compiler""; do
18899 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18900 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18905 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18907 lt_cv_prog_compiler_c_o_RC
=yes
18909 # The else clause should only fire when bootstrapping the
18910 # libtool distribution, otherwise you forgot to ship ltmain.sh
18911 # with your package, and you will get complaints that there are
18912 # no rules to generate ltmain.sh.
18913 if test -f "$ltmain"; then
18914 # See if we are running on zsh, and set the options which allow our commands through
18915 # without removal of \ escapes.
18916 if test -n "${ZSH_VERSION+set}" ; then
18917 setopt NO_GLOB_SUBST
18919 # Now quote all the things that may contain metacharacters while being
18920 # careful not to overquote the AC_SUBSTed values. We take copies of the
18921 # variables and quote the copies for generation of the libtool script.
18922 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18924 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18925 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18926 deplibs_check_method reload_flag reload_cmds need_locks \
18927 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18928 lt_cv_sys_global_symbol_to_c_name_address \
18929 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18930 old_postinstall_cmds old_postuninstall_cmds \
18934 lt_prog_compiler_wl_RC \
18935 lt_prog_compiler_pic_RC \
18936 lt_prog_compiler_static_RC \
18937 lt_prog_compiler_no_builtin_flag_RC \
18938 export_dynamic_flag_spec_RC \
18939 thread_safe_flag_spec_RC \
18940 whole_archive_flag_spec_RC \
18941 enable_shared_with_static_runtimes_RC \
18942 old_archive_cmds_RC \
18943 old_archive_from_new_cmds_RC \
18944 predep_objects_RC \
18945 postdep_objects_RC \
18948 compiler_lib_search_path_RC \
18950 archive_expsym_cmds_RC \
18951 postinstall_cmds_RC \
18952 postuninstall_cmds_RC \
18953 old_archive_from_expsyms_cmds_RC \
18954 allow_undefined_flag_RC \
18955 no_undefined_flag_RC \
18956 export_symbols_cmds_RC \
18957 hardcode_libdir_flag_spec_RC \
18958 hardcode_libdir_flag_spec_ld_RC \
18959 hardcode_libdir_separator_RC \
18960 hardcode_automatic_RC \
18962 module_expsym_cmds_RC \
18963 lt_cv_prog_compiler_c_o_RC \
18964 exclude_expsyms_RC \
18965 include_expsyms_RC
; do
18968 old_archive_cmds_RC | \
18969 old_archive_from_new_cmds_RC | \
18970 archive_cmds_RC | \
18971 archive_expsym_cmds_RC | \
18973 module_expsym_cmds_RC | \
18974 old_archive_from_expsyms_cmds_RC | \
18975 export_symbols_cmds_RC | \
18976 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18977 postinstall_cmds | postuninstall_cmds | \
18978 old_postinstall_cmds | old_postuninstall_cmds | \
18979 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18980 # Double-quote double-evaled strings.
18981 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18984 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18990 *'\$0 --fallback-echo"')
18991 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18997 cat <<__EOF__ >> "$cfgfile"
18998 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19000 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19002 # Shell to use when invoking shell scripts.
19005 # Whether or not to build shared libraries.
19006 build_libtool_libs=$enable_shared
19008 # Whether or not to build static libraries.
19009 build_old_libs=$enable_static
19011 # Whether or not to add -lc for building shared libraries.
19012 build_libtool_need_lc=$archive_cmds_need_lc_RC
19014 # Whether or not to disallow shared libs when runtime libs are static
19015 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19017 # Whether or not to optimize for fast installation.
19018 fast_install=$enable_fast_install
19021 host_alias=$host_alias
19025 # The build system.
19026 build_alias=$build_alias
19030 # An echo program that does not interpret backslashes.
19035 AR_FLAGS=$lt_AR_FLAGS
19040 # LTCC compiler flags.
19041 LTCFLAGS=$lt_LTCFLAGS
19043 # A language-specific compiler.
19046 # Is the compiler the GNU C compiler?
19049 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
19050 gcc_ver=\`gcc -dumpversion\`
19055 # The linker used to build libraries.
19058 # Whether we need hard or soft links.
19061 # A BSD-compatible nm program.
19064 # A symbol stripping program
19067 # Used to examine libraries when file_magic_cmd begins "file"
19068 MAGIC_CMD=$MAGIC_CMD
19070 # Used on cygwin: DLL creation program.
19073 # Used on cygwin: object dumper.
19076 # Used on cygwin: assembler.
19079 # The name of the directory that contains temporary libtool files.
19082 # How to create reloadable object files.
19083 reload_flag=$lt_reload_flag
19084 reload_cmds=$lt_reload_cmds
19086 # How to pass a linker flag through the compiler.
19087 wl=$lt_lt_prog_compiler_wl_RC
19089 # Object file suffix (normally "o").
19090 objext="$ac_objext"
19092 # Old archive suffix (normally "a").
19095 # Shared library suffix (normally ".so").
19096 shrext_cmds='$shrext_cmds'
19098 # Executable file suffix (normally "").
19101 # Additional compiler flags for building library objects.
19102 pic_flag=$lt_lt_prog_compiler_pic_RC
19105 # What is the maximum length of a command?
19106 max_cmd_len=$lt_cv_sys_max_cmd_len
19108 # Does compiler simultaneously support -c and -o options?
19109 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19111 # Must we lock files when doing compilation?
19112 need_locks=$lt_need_locks
19114 # Do we need the lib prefix for modules?
19115 need_lib_prefix=$need_lib_prefix
19117 # Do we need a version for libraries?
19118 need_version=$need_version
19120 # Whether dlopen is supported.
19121 dlopen_support=$enable_dlopen
19123 # Whether dlopen of programs is supported.
19124 dlopen_self=$enable_dlopen_self
19126 # Whether dlopen of statically linked programs is supported.
19127 dlopen_self_static=$enable_dlopen_self_static
19129 # Compiler flag to prevent dynamic linking.
19130 link_static_flag=$lt_lt_prog_compiler_static_RC
19132 # Compiler flag to turn off builtin functions.
19133 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19135 # Compiler flag to allow reflexive dlopens.
19136 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19138 # Compiler flag to generate shared objects directly from archives.
19139 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19141 # Compiler flag to generate thread-safe objects.
19142 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19144 # Library versioning type.
19145 version_type=$version_type
19147 # Format of library name prefix.
19148 libname_spec=$lt_libname_spec
19150 # List of archive names. First name is the real one, the rest are links.
19151 # The last name is the one that the linker finds with -lNAME.
19152 library_names_spec=$lt_library_names_spec
19154 # The coded name of the library, if different from the real name.
19155 soname_spec=$lt_soname_spec
19157 # Commands used to build and install an old-style archive.
19159 old_archive_cmds=$lt_old_archive_cmds_RC
19160 old_postinstall_cmds=$lt_old_postinstall_cmds
19161 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19163 # Create an old-style archive from a shared archive.
19164 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19166 # Create a temporary old-style archive to link instead of a shared archive.
19167 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19169 # Commands used to build and install a shared archive.
19170 archive_cmds=$lt_archive_cmds_RC
19171 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19172 postinstall_cmds=$lt_postinstall_cmds
19173 postuninstall_cmds=$lt_postuninstall_cmds
19175 # Commands used to build a loadable module (assumed same as above if empty)
19176 module_cmds=$lt_module_cmds_RC
19177 module_expsym_cmds=$lt_module_expsym_cmds_RC
19179 # Commands to strip libraries.
19180 old_striplib=$lt_old_striplib
19181 striplib=$lt_striplib
19183 # Dependencies to place before the objects being linked to create a
19185 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19187 # Dependencies to place after the objects being linked to create a
19189 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19191 # Dependencies to place before the objects being linked to create a
19193 predeps=$lt_predeps_RC
19195 # Dependencies to place after the objects being linked to create a
19197 postdeps=$lt_postdeps_RC
19199 # The library search path used internally by the compiler when linking
19200 # a shared library.
19201 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19203 # Method to check whether dependent libraries are shared objects.
19204 deplibs_check_method=$lt_deplibs_check_method
19206 # Command to use when deplibs_check_method == file_magic.
19207 file_magic_cmd=$lt_file_magic_cmd
19209 # Flag that allows shared libraries with undefined symbols to be built.
19210 allow_undefined_flag=$lt_allow_undefined_flag_RC
19212 # Flag that forces no undefined symbols.
19213 no_undefined_flag=$lt_no_undefined_flag_RC
19215 # Commands used to finish a libtool library installation in a directory.
19216 finish_cmds=$lt_finish_cmds
19218 # Same as above, but a single script fragment to be evaled but not shown.
19219 finish_eval=$lt_finish_eval
19221 # Take the output of nm and produce a listing of raw symbols and C names.
19222 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19224 # Transform the output of nm in a proper C declaration
19225 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19227 # Transform the output of nm in a C name address pair
19228 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19230 # This is the shared library runtime path variable.
19231 runpath_var=$runpath_var
19233 # This is the shared library path variable.
19234 shlibpath_var=$shlibpath_var
19236 # Is shlibpath searched before the hard-coded library search path?
19237 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19239 # How to hardcode a shared library path into an executable.
19240 hardcode_action=$hardcode_action_RC
19242 # Whether we should hardcode library paths into libraries.
19243 hardcode_into_libs=$hardcode_into_libs
19245 # Flag to hardcode \$libdir into a binary during linking.
19246 # This must work even if \$libdir does not exist.
19247 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19249 # If ld is used when linking, flag to hardcode \$libdir into
19250 # a binary during linking. This must work even if \$libdir does
19252 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19254 # Whether we need a single -rpath flag with a separated argument.
19255 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19257 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19258 # resulting binary.
19259 hardcode_direct=$hardcode_direct_RC
19261 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19262 # resulting binary.
19263 hardcode_minus_L=$hardcode_minus_L_RC
19265 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19266 # the resulting binary.
19267 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19269 # Set to yes if building a shared library automatically hardcodes DIR into the library
19270 # and all subsequent libraries and executables linked against it.
19271 hardcode_automatic=$hardcode_automatic_RC
19273 # Variables whose values should be saved in libtool wrapper scripts and
19274 # restored at relink time.
19275 variables_saved_for_relink="$variables_saved_for_relink"
19277 # Whether libtool must link a program against all its dependency libraries.
19278 link_all_deplibs=$link_all_deplibs_RC
19280 # Compile-time system search path for libraries
19281 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19283 # Run-time system search path for libraries
19284 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19286 # Fix the shell variable \$srcfile for the compiler.
19287 fix_srcfile_path="$fix_srcfile_path_RC"
19289 # Set to yes if exported symbols are required.
19290 always_export_symbols=$always_export_symbols_RC
19292 # The commands to list exported symbols.
19293 export_symbols_cmds=$lt_export_symbols_cmds_RC
19295 # The commands to extract the exported symbol list from a shared archive.
19296 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19298 # Symbols that should not be listed in the preloaded symbols.
19299 exclude_expsyms=$lt_exclude_expsyms_RC
19301 # Symbols that must always be exported.
19302 include_expsyms=$lt_include_expsyms_RC
19304 # ### END LIBTOOL TAG CONFIG: $tagname
19310 # If there is no Makefile yet, we rely on a make rule to execute
19311 # `config.status --recheck' to rerun these tests and create the
19312 # libtool script then.
19313 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19314 if test -f "$ltmain_in"; then
19315 test -f Makefile
&& make "$ltmain"
19321 ac_cpp
='$CPP $CPPFLAGS'
19322 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19323 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19324 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19331 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19332 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19333 { (exit 1); exit 1; }; }
19337 # Append the new tag name to the list of available tags.
19338 if test -n "$tagname" ; then
19339 available_tags
="$available_tags $tagname"
19345 # Now substitute the updated list of available tags.
19346 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19347 mv "${ofile}T" "$ofile"
19351 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19352 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19353 { (exit 1); exit 1; }; }
19359 # This can be used to rebuild libtool when needed
19360 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
19362 # Always use our own libtool.
19363 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
19365 # Prevent multiple expansion
19387 # Make sure we can run config.sub.
19388 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
19389 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
19390 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
19391 { (exit 1); exit 1; }; }
19393 { $as_echo "$as_me:$LINENO: checking build system type" >&5
19394 $as_echo_n "checking build system type... " >&6; }
19395 if test "${ac_cv_build+set}" = set; then
19396 $as_echo_n "(cached) " >&6
19398 ac_build_alias
=$build_alias
19399 test "x$ac_build_alias" = x
&&
19400 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
19401 test "x$ac_build_alias" = x
&&
19402 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
19403 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
19404 { (exit 1); exit 1; }; }
19405 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
19406 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
19407 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
19408 { (exit 1); exit 1; }; }
19411 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
19412 $as_echo "$ac_cv_build" >&6; }
19413 case $ac_cv_build in
19415 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
19416 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
19417 { (exit 1); exit 1; }; };;
19420 ac_save_IFS
=$IFS; IFS
='-'
19426 # Remember, the first character of IFS is used to create $*,
19427 # except with old shells:
19430 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
19433 { $as_echo "$as_me:$LINENO: checking host system type" >&5
19434 $as_echo_n "checking host system type... " >&6; }
19435 if test "${ac_cv_host+set}" = set; then
19436 $as_echo_n "(cached) " >&6
19438 if test "x$host_alias" = x
; then
19439 ac_cv_host
=$ac_cv_build
19441 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
19442 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
19443 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
19444 { (exit 1); exit 1; }; }
19448 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
19449 $as_echo "$ac_cv_host" >&6; }
19450 case $ac_cv_host in
19452 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
19453 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
19454 { (exit 1); exit 1; }; };;
19457 ac_save_IFS
=$IFS; IFS
='-'
19463 # Remember, the first character of IFS is used to create $*,
19464 # except with old shells:
19467 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
19472 # Checks for programs.
19473 { $as_echo "$as_me:$LINENO: checking compiler flags required for compiling ANTLR with $CC C compiler on host $host" >&5
19474 $as_echo_n "checking compiler flags required for compiling ANTLR with $CC C compiler on host $host... " >&6; }
19478 CPPCMNTFLAGS
="-qcpluscmt"
19479 if test x
"$enable_64bit" = xyes
; then
19480 CCFLAGS64
="-q64 -Wl,-b64"
19486 if test x
"$enable_debuginfo" = xyes
; then
19493 if test x
"$enable_64bit" = xyes
; then
19497 if test $DEBUGINF = 1; then
19504 if test x
"$enable_64bit" = xyes
; then
19509 if test x
"$enable_abiflags" = xyes
; then
19510 CCFLAGS64
=$GCCABIFLAGS
19513 if test x
"$enable_debuginfo" = xyes
; then
19524 if test x
"$enable_64bit" = xyes
; then
19525 CCFLAGS64
="-fast -xtarget=ultra4 -m64 -xarch=sparcvis"
19528 if test x
"$enable_debuginfo" = xyes
; then
19537 if test x
"$enable_debuginfo" = xyes
; then
19546 CFLAGS
="$CCFLAGS64 $CPPCMNTFLAGS $OPTIMFLAGS $DEBUGFLAGS $WARNFLAGS"
19547 { $as_echo "$as_me:$LINENO: result: $CFLAGS" >&5
19548 $as_echo "$CFLAGS" >&6; }
19551 if test "x$enable_antlrdebug" = xno
; then
19553 cat >>confdefs.h
<<\_ACEOF
19554 #define ANTLR3_NODEBUGGER 1
19559 if test x
"$enable_64bit" = xyes
; then
19561 cat >>confdefs.h
<<\_ACEOF
19562 #define ANTLR3_USE_64BIT 1
19568 # Find a good install program. We prefer a C program (faster),
19569 # so one script is as good as another. But avoid the broken or
19570 # incompatible versions:
19571 # SysV /etc/install, /usr/sbin/install
19572 # SunOS /usr/etc/install
19573 # IRIX /sbin/install
19575 # AmigaOS /C/install, which installs bootblocks on floppy discs
19576 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19579 # OS/2's system install, which has a completely different semantic
19580 # ./install, which can be erroneously created by make from ./install.sh.
19581 # Reject install programs that cannot install multiple files.
19582 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19583 $as_echo_n "checking for a BSD-compatible install... " >&6; }
19584 if test -z "$INSTALL"; then
19585 if test "${ac_cv_path_install+set}" = set; then
19586 $as_echo_n "(cached) " >&6
19588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19589 for as_dir
in $PATH
19592 test -z "$as_dir" && as_dir
=.
19593 # Account for people who put trailing slashes in PATH elements.
19595 .
/ | .
// |
/cC
/* | \
19596 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
19597 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
19600 # OSF1 and SCO ODT 3.0 have their own names for install.
19601 # Don't use installbsd from OSF since it installs stuff as root
19603 for ac_prog
in ginstall scoinst
install; do
19604 for ac_exec_ext
in '' $ac_executable_extensions; do
19605 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19606 if test $ac_prog = install &&
19607 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
19608 # AIX install. It has an incompatible calling convention.
19610 elif test $ac_prog = install &&
19611 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
19612 # program-specific install script used by HP pwplus--don't use.
19615 rm -rf conftest.one conftest.two conftest.dir
19616 echo one
> conftest.one
19617 echo two
> conftest.two
19619 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
19620 test -s conftest.one
&& test -s conftest.two
&&
19621 test -s conftest.dir
/conftest.one
&&
19622 test -s conftest.dir
/conftest.two
19624 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
19637 rm -rf conftest.one conftest.two conftest.dir
19640 if test "${ac_cv_path_install+set}" = set; then
19641 INSTALL
=$ac_cv_path_install
19643 # As a last resort, use the slow shell script. Don't cache a
19644 # value for INSTALL within a source directory, because that will
19645 # break other packages using the cache if that directory is
19646 # removed, or if the value is a relative name.
19647 INSTALL
=$ac_install_sh
19650 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
19651 $as_echo "$INSTALL" >&6; }
19653 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19654 # It thinks the first close brace ends the variable substitution.
19655 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
19657 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
19659 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
19661 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
19662 $as_echo_n "checking whether ln -s works... " >&6; }
19664 if test "$LN_S" = "ln -s"; then
19665 { $as_echo "$as_me:$LINENO: result: yes" >&5
19666 $as_echo "yes" >&6; }
19668 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
19669 $as_echo "no, using $LN_S" >&6; }
19672 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19673 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
19675 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
19676 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
19677 $as_echo_n "(cached) " >&6
19679 cat >conftest.
make <<\_ACEOF
19682 @
echo '@@@%%%=$(MAKE)=@@@%%%'
19684 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19685 case `${MAKE-make} -f conftest.make 2>/dev/null` in
19686 *@@@
%%%=?
*=@@@
%%%*)
19687 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
19689 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
19691 rm -f conftest.
make
19693 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
19694 { $as_echo "$as_me:$LINENO: result: yes" >&5
19695 $as_echo "yes" >&6; }
19698 { $as_echo "$as_me:$LINENO: result: no" >&5
19699 $as_echo "no" >&6; }
19700 SET_MAKE
="MAKE=${MAKE-make}"
19704 # Checks for libraries.
19706 # Checks for header files.
19707 $ac_includes_default
19713 for ac_header
in sys
/types.h netinet
/in.h arpa
/nameser.h netdb.h resolv.h
19715 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19716 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19717 $as_echo_n "checking for $ac_header... " >&6; }
19718 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19719 $as_echo_n "(cached) " >&6
19721 cat >conftest.
$ac_ext <<_ACEOF
19724 cat confdefs.h
>>conftest.
$ac_ext
19725 cat >>conftest.
$ac_ext <<_ACEOF
19726 /* end confdefs.h. */
19727 #ifdef HAVE_SYS_TYPES_H
19728 # include <sys/types.h>
19730 #ifdef HAVE_NETINET_IN_H
19731 # include <netinet/in.h> /* inet_ functions / structs */
19733 #ifdef HAVE_ARPA_NAMESER_H
19734 # include <arpa/nameser.h> /* DNS HEADER struct */
19736 #ifdef HAVE_NETDB_H
19737 # include <netdb.h>
19740 #include <$ac_header>
19742 rm -f conftest.
$ac_objext
19743 if { (ac_try
="$ac_compile"
19744 case "(($ac_try" in
19745 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19746 *) ac_try_echo=$ac_try;;
19748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19749 $as_echo "$ac_try_echo") >&5
19750 (eval "$ac_compile") 2>conftest.er1
19752 grep -v '^ *+' conftest.er1 >conftest.err
19754 cat conftest.err >&5
19755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); } && {
19757 test -z "$ac_c_werror_flag" ||
19758 test ! -s conftest.err
19759 } && test -s conftest.$ac_objext; then
19760 eval "$as_ac_Header=yes"
19762 $as_echo "$as_me: failed program was:" >&5
19763 sed 's/^/| /' conftest.$ac_ext >&5
19765 eval "$as_ac_Header=no"
19768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19770 ac_res=`eval 'as_val=${'$as_ac_Header'}
19771 $as_echo "$as_val"'`
19772 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19773 $as_echo "$ac_res" >&6; }
19774 as_val=`eval 'as_val=${'$as_ac_Header'}
19775 $as_echo "$as_val"'`
19776 if test "x$as_val" = x""yes; then
19777 cat >>confdefs.h <<_ACEOF
19778 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19788 for ac_header in sys/malloc.h malloc.h
19790 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19791 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19792 $as_echo_n "checking for $ac_header... " >&6; }
19793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19794 $as_echo_n "(cached) " >&6
19796 cat >conftest.$ac_ext <<_ACEOF
19799 cat confdefs.h >>conftest.$ac_ext
19800 cat >>conftest.$ac_ext <<_ACEOF
19801 /* end confdefs.h. */
19802 #ifdef HAVE_SYS_MALLOC_H
19803 #include <sys/malloc.h>
19805 #ifdef HAVE_MALLOC_H
19806 #include <malloc.h>
19810 #include <$ac_header>
19812 rm -f conftest.$ac_objext
19813 if { (ac_try="$ac_compile"
19814 case "(($ac_try" in
19815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19816 *) ac_try_echo
=$ac_try;;
19818 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19819 $as_echo "$ac_try_echo") >&5
19820 (eval "$ac_compile") 2>conftest.er1
19822 grep -v '^ *+' conftest.er1
>conftest.err
19824 cat conftest.err
>&5
19825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); } && {
19827 test -z "$ac_c_werror_flag" ||
19828 test ! -s conftest.err
19829 } && test -s conftest.
$ac_objext; then
19830 eval "$as_ac_Header=yes"
19832 $as_echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.
$ac_ext >&5
19835 eval "$as_ac_Header=no"
19838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19840 ac_res
=`eval 'as_val=${'$as_ac_Header'}
19841 $as_echo "$as_val"'`
19842 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19843 $as_echo "$ac_res" >&6; }
19844 as_val
=`eval 'as_val=${'$as_ac_Header'}
19845 $as_echo "$as_val"'`
19846 if test "x$as_val" = x
""yes; then
19847 cat >>confdefs.h
<<_ACEOF
19848 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19856 for ac_header
in stdarg.h
19858 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19859 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19860 $as_echo_n "checking for $ac_header... " >&6; }
19861 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19862 $as_echo_n "(cached) " >&6
19864 cat >conftest.
$ac_ext <<_ACEOF
19867 cat confdefs.h
>>conftest.
$ac_ext
19868 cat >>conftest.
$ac_ext <<_ACEOF
19869 /* end confdefs.h. */
19870 #ifdef HAVE_STDARG_H
19871 #include <stdarg.h>
19875 #include <$ac_header>
19877 rm -f conftest.
$ac_objext
19878 if { (ac_try
="$ac_compile"
19879 case "(($ac_try" in
19880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19881 *) ac_try_echo=$ac_try;;
19883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19884 $as_echo "$ac_try_echo") >&5
19885 (eval "$ac_compile") 2>conftest.er1
19887 grep -v '^ *+' conftest.er1 >conftest.err
19889 cat conftest.err >&5
19890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); } && {
19892 test -z "$ac_c_werror_flag" ||
19893 test ! -s conftest.err
19894 } && test -s conftest.$ac_objext; then
19895 eval "$as_ac_Header=yes"
19897 $as_echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.$ac_ext >&5
19900 eval "$as_ac_Header=no"
19903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19905 ac_res=`eval 'as_val=${'$as_ac_Header'}
19906 $as_echo "$as_val"'`
19907 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19908 $as_echo "$ac_res" >&6; }
19909 as_val=`eval 'as_val=${'$as_ac_Header'}
19910 $as_echo "$as_val"'`
19911 if test "x$as_val" = x""yes; then
19912 cat >>confdefs.h <<_ACEOF
19913 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19922 for ac_header in sys/stat.h
19924 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19925 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19926 $as_echo_n "checking for $ac_header... " >&6; }
19927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19928 $as_echo_n "(cached) " >&6
19930 cat >conftest.$ac_ext <<_ACEOF
19933 cat confdefs.h >>conftest.$ac_ext
19934 cat >>conftest.$ac_ext <<_ACEOF
19935 /* end confdefs.h. */
19936 #ifdef HAVE_SYS_STAT_H
19937 #include <sys/stat.h>
19941 #include <$ac_header>
19943 rm -f conftest.$ac_objext
19944 if { (ac_try="$ac_compile"
19945 case "(($ac_try" in
19946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19947 *) ac_try_echo
=$ac_try;;
19949 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19950 $as_echo "$ac_try_echo") >&5
19951 (eval "$ac_compile") 2>conftest.er1
19953 grep -v '^ *+' conftest.er1
>conftest.err
19955 cat conftest.err
>&5
19956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); } && {
19958 test -z "$ac_c_werror_flag" ||
19959 test ! -s conftest.err
19960 } && test -s conftest.
$ac_objext; then
19961 eval "$as_ac_Header=yes"
19963 $as_echo "$as_me: failed program was:" >&5
19964 sed 's/^/| /' conftest.
$ac_ext >&5
19966 eval "$as_ac_Header=no"
19969 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19971 ac_res
=`eval 'as_val=${'$as_ac_Header'}
19972 $as_echo "$as_val"'`
19973 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19974 $as_echo "$ac_res" >&6; }
19975 as_val
=`eval 'as_val=${'$as_ac_Header'}
19976 $as_echo "$as_val"'`
19977 if test "x$as_val" = x
""yes; then
19978 cat >>confdefs.h
<<_ACEOF
19979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19988 for ac_header
in ctype.h
19990 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19991 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19992 $as_echo_n "checking for $ac_header... " >&6; }
19993 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19994 $as_echo_n "(cached) " >&6
19996 cat >conftest.
$ac_ext <<_ACEOF
19999 cat confdefs.h
>>conftest.
$ac_ext
20000 cat >>conftest.
$ac_ext <<_ACEOF
20001 /* end confdefs.h. */
20002 #ifdef HAVE_CTYPE_H
20007 #include <$ac_header>
20009 rm -f conftest.
$ac_objext
20010 if { (ac_try
="$ac_compile"
20011 case "(($ac_try" in
20012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20013 *) ac_try_echo=$ac_try;;
20015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20016 $as_echo "$ac_try_echo") >&5
20017 (eval "$ac_compile") 2>conftest.er1
20019 grep -v '^ *+' conftest.er1 >conftest.err
20021 cat conftest.err >&5
20022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); } && {
20024 test -z "$ac_c_werror_flag" ||
20025 test ! -s conftest.err
20026 } && test -s conftest.$ac_objext; then
20027 eval "$as_ac_Header=yes"
20029 $as_echo "$as_me: failed program was:" >&5
20030 sed 's/^/| /' conftest.$ac_ext >&5
20032 eval "$as_ac_Header=no"
20035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20037 ac_res=`eval 'as_val=${'$as_ac_Header'}
20038 $as_echo "$as_val"'`
20039 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20040 $as_echo "$ac_res" >&6; }
20041 as_val=`eval 'as_val=${'$as_ac_Header'}
20042 $as_echo "$as_val"'`
20043 if test "x$as_val" = x""yes; then
20044 cat >>confdefs.h <<_ACEOF
20045 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
20054 for ac_header in netinet/tcp.h
20056 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
20057 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20058 $as_echo_n "checking for $ac_header... " >&6; }
20059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20060 $as_echo_n "(cached) " >&6
20062 cat >conftest.$ac_ext <<_ACEOF
20065 cat confdefs.h >>conftest.$ac_ext
20066 cat >>conftest.$ac_ext <<_ACEOF
20067 /* end confdefs.h. */
20068 #ifdef HAVE_NETINET_TCP_H
20069 #include <netinet/tcp.h>
20073 #include <$ac_header>
20075 rm -f conftest.$ac_objext
20076 if { (ac_try="$ac_compile"
20077 case "(($ac_try" in
20078 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20079 *) ac_try_echo
=$ac_try;;
20081 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20082 $as_echo "$ac_try_echo") >&5
20083 (eval "$ac_compile") 2>conftest.er1
20085 grep -v '^ *+' conftest.er1
>conftest.err
20087 cat conftest.err
>&5
20088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); } && {
20090 test -z "$ac_c_werror_flag" ||
20091 test ! -s conftest.err
20092 } && test -s conftest.
$ac_objext; then
20093 eval "$as_ac_Header=yes"
20095 $as_echo "$as_me: failed program was:" >&5
20096 sed 's/^/| /' conftest.
$ac_ext >&5
20098 eval "$as_ac_Header=no"
20101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20103 ac_res
=`eval 'as_val=${'$as_ac_Header'}
20104 $as_echo "$as_val"'`
20105 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20106 $as_echo "$ac_res" >&6; }
20107 as_val
=`eval 'as_val=${'$as_ac_Header'}
20108 $as_echo "$as_val"'`
20109 if test "x$as_val" = x
""yes; then
20110 cat >>confdefs.h
<<_ACEOF
20111 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20121 for ac_header
in sys
/socket.h socket.h
20123 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20124 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20125 $as_echo_n "checking for $ac_header... " >&6; }
20126 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20127 $as_echo_n "(cached) " >&6
20129 cat >conftest.
$ac_ext <<_ACEOF
20132 cat confdefs.h
>>conftest.
$ac_ext
20133 cat >>conftest.
$ac_ext <<_ACEOF
20134 /* end confdefs.h. */
20135 #ifdef HAVE_SYS_SOCKET_H
20136 #include <sys/socket.h>
20138 #ifdef HAVE_SOCKET_H
20139 #include <socket.h>
20143 #include <$ac_header>
20145 rm -f conftest.
$ac_objext
20146 if { (ac_try
="$ac_compile"
20147 case "(($ac_try" in
20148 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20149 *) ac_try_echo=$ac_try;;
20151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20152 $as_echo "$ac_try_echo") >&5
20153 (eval "$ac_compile") 2>conftest.er1
20155 grep -v '^ *+' conftest.er1 >conftest.err
20157 cat conftest.err >&5
20158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); } && {
20160 test -z "$ac_c_werror_flag" ||
20161 test ! -s conftest.err
20162 } && test -s conftest.$ac_objext; then
20163 eval "$as_ac_Header=yes"
20165 $as_echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20168 eval "$as_ac_Header=no"
20171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20173 ac_res=`eval 'as_val=${'$as_ac_Header'}
20174 $as_echo "$as_val"'`
20175 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20176 $as_echo "$ac_res" >&6; }
20177 as_val=`eval 'as_val=${'$as_ac_Header'}
20178 $as_echo "$as_val"'`
20179 if test "x$as_val" = x""yes; then
20180 cat >>confdefs.h <<_ACEOF
20181 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
20189 # Checks for typedefs, structures, and compiler characteristics.
20190 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20191 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20192 if test "${ac_cv_c_const+set}" = set; then
20193 $as_echo_n "(cached) " >&6
20195 cat >conftest.$ac_ext <<_ACEOF
20198 cat confdefs.h >>conftest.$ac_ext
20199 cat >>conftest.$ac_ext <<_ACEOF
20200 /* end confdefs.h. */
20205 /* FIXME: Include the comments suggested by Paul. */
20206 #ifndef __cplusplus
20207 /* Ultrix mips cc rejects this. */
20208 typedef int charset[2];
20210 /* SunOS 4.1.1 cc rejects this. */
20211 char const *const *pcpcc;
20213 /* NEC SVR4.0.2 mips cc rejects this. */
20214 struct point {int x, y;};
20215 static struct point const zero = {0,0};
20216 /* AIX XL C 1.02.0.0 rejects this.
20217 It does not let you subtract one const X* pointer from another in
20218 an arm of an if-expression whose if-part is not a constant
20220 const char *g = "string";
20221 pcpcc = &g + (g ? g-g : 0);
20222 /* HPUX 7.0 cc rejects these. */
20224 ppc = (char**) pcpcc;
20225 pcpcc = (char const *const *) ppc;
20226 { /* SCO 3.2v4 cc rejects this. */
20228 char const *s = 0 ? (char *) 0 : (char const *) 0;
20233 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20234 int x[] = {25, 17};
20235 const int *foo = &x[0];
20238 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20239 typedef const int *iptr;
20243 { /* AIX XL C 1.02.0.0 rejects this saying
20244 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20245 struct s { int j; const int *ap[3]; };
20246 struct s *b; b->j = 5;
20248 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20249 const int foo = 10;
20250 if (!foo) return 0;
20252 return !cs[0] && !zero.x;
20259 rm -f conftest.$ac_objext
20260 if { (ac_try="$ac_compile"
20261 case "(($ac_try" in
20262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20263 *) ac_try_echo
=$ac_try;;
20265 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20266 $as_echo "$ac_try_echo") >&5
20267 (eval "$ac_compile") 2>conftest.er1
20269 grep -v '^ *+' conftest.er1
>conftest.err
20271 cat conftest.err
>&5
20272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } && {
20274 test -z "$ac_c_werror_flag" ||
20275 test ! -s conftest.err
20276 } && test -s conftest.
$ac_objext; then
20279 $as_echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.
$ac_ext >&5
20285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20287 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20288 $as_echo "$ac_cv_c_const" >&6; }
20289 if test $ac_cv_c_const = no
; then
20291 cat >>confdefs.h
<<\_ACEOF
20297 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
20298 $as_echo_n "checking for size_t... " >&6; }
20299 if test "${ac_cv_type_size_t+set}" = set; then
20300 $as_echo_n "(cached) " >&6
20302 ac_cv_type_size_t
=no
20303 cat >conftest.
$ac_ext <<_ACEOF
20306 cat confdefs.h
>>conftest.
$ac_ext
20307 cat >>conftest.
$ac_ext <<_ACEOF
20308 /* end confdefs.h. */
20309 $ac_includes_default
20313 if (sizeof (size_t))
20319 rm -f conftest.
$ac_objext
20320 if { (ac_try
="$ac_compile"
20321 case "(($ac_try" in
20322 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20323 *) ac_try_echo=$ac_try;;
20325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20326 $as_echo "$ac_try_echo") >&5
20327 (eval "$ac_compile") 2>conftest.er1
20329 grep -v '^ *+' conftest.er1 >conftest.err
20331 cat conftest.err >&5
20332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); } && {
20334 test -z "$ac_c_werror_flag" ||
20335 test ! -s conftest.err
20336 } && test -s conftest.$ac_objext; then
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
20347 if (sizeof ((size_t)))
20353 rm -f conftest.$ac_objext
20354 if { (ac_try="$ac_compile"
20355 case "(($ac_try" in
20356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20357 *) ac_try_echo
=$ac_try;;
20359 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20360 $as_echo "$ac_try_echo") >&5
20361 (eval "$ac_compile") 2>conftest.er1
20363 grep -v '^ *+' conftest.er1
>conftest.err
20365 cat conftest.err
>&5
20366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); } && {
20368 test -z "$ac_c_werror_flag" ||
20369 test ! -s conftest.err
20370 } && test -s conftest.
$ac_objext; then
20373 $as_echo "$as_me: failed program was:" >&5
20374 sed 's/^/| /' conftest.
$ac_ext >&5
20376 ac_cv_type_size_t
=yes
20379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20381 $as_echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.
$ac_ext >&5
20387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20389 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20390 $as_echo "$ac_cv_type_size_t" >&6; }
20391 if test "x$ac_cv_type_size_t" = x
""yes; then
20395 cat >>confdefs.h
<<_ACEOF
20396 #define size_t unsigned int
20402 { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
20403 $as_echo_n "checking for int8_t... " >&6; }
20404 if test "${ac_cv_c_int8_t+set}" = set; then
20405 $as_echo_n "(cached) " >&6
20408 for ac_type
in 'int8_t' 'int' 'long int' \
20409 'long long int' 'short int' 'signed char'; do
20410 cat >conftest.
$ac_ext <<_ACEOF
20413 cat confdefs.h
>>conftest.
$ac_ext
20414 cat >>conftest.
$ac_ext <<_ACEOF
20415 /* end confdefs.h. */
20416 $ac_includes_default
20420 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
20427 rm -f conftest.
$ac_objext
20428 if { (ac_try
="$ac_compile"
20429 case "(($ac_try" in
20430 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20431 *) ac_try_echo=$ac_try;;
20433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20434 $as_echo "$ac_try_echo") >&5
20435 (eval "$ac_compile") 2>conftest.er1
20437 grep -v '^ *+' conftest.er1 >conftest.err
20439 cat conftest.err >&5
20440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); } && {
20442 test -z "$ac_c_werror_flag" ||
20443 test ! -s conftest.err
20444 } && test -s conftest.$ac_objext; then
20445 cat >conftest.$ac_ext <<_ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h. */
20451 $ac_includes_default
20455 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
20456 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
20463 rm -f conftest.$ac_objext
20464 if { (ac_try="$ac_compile"
20465 case "(($ac_try" in
20466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20467 *) ac_try_echo
=$ac_try;;
20469 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20470 $as_echo "$ac_try_echo") >&5
20471 (eval "$ac_compile") 2>conftest.er1
20473 grep -v '^ *+' conftest.er1
>conftest.err
20475 cat conftest.err
>&5
20476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); } && {
20478 test -z "$ac_c_werror_flag" ||
20479 test ! -s conftest.err
20480 } && test -s conftest.
$ac_objext; then
20483 $as_echo "$as_me: failed program was:" >&5
20484 sed 's/^/| /' conftest.
$ac_ext >&5
20487 int8_t
) ac_cv_c_int8_t
=yes ;;
20488 *) ac_cv_c_int8_t
=$ac_type ;;
20493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20495 $as_echo "$as_me: failed program was:" >&5
20496 sed 's/^/| /' conftest.
$ac_ext >&5
20501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20502 test "$ac_cv_c_int8_t" != no
&& break
20505 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
20506 $as_echo "$ac_cv_c_int8_t" >&6; }
20507 case $ac_cv_c_int8_t in #(
20511 cat >>confdefs.h
<<_ACEOF
20512 #define int8_t $ac_cv_c_int8_t
20518 { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
20519 $as_echo_n "checking for int16_t... " >&6; }
20520 if test "${ac_cv_c_int16_t+set}" = set; then
20521 $as_echo_n "(cached) " >&6
20524 for ac_type
in 'int16_t' 'int' 'long int' \
20525 'long long int' 'short int' 'signed char'; do
20526 cat >conftest.
$ac_ext <<_ACEOF
20529 cat confdefs.h
>>conftest.
$ac_ext
20530 cat >>conftest.
$ac_ext <<_ACEOF
20531 /* end confdefs.h. */
20532 $ac_includes_default
20536 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
20543 rm -f conftest.
$ac_objext
20544 if { (ac_try
="$ac_compile"
20545 case "(($ac_try" in
20546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20547 *) ac_try_echo=$ac_try;;
20549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20550 $as_echo "$ac_try_echo") >&5
20551 (eval "$ac_compile") 2>conftest.er1
20553 grep -v '^ *+' conftest.er1 >conftest.err
20555 cat conftest.err >&5
20556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); } && {
20558 test -z "$ac_c_werror_flag" ||
20559 test ! -s conftest.err
20560 } && test -s conftest.$ac_objext; then
20561 cat >conftest.$ac_ext <<_ACEOF
20564 cat confdefs.h >>conftest.$ac_ext
20565 cat >>conftest.$ac_ext <<_ACEOF
20566 /* end confdefs.h. */
20567 $ac_includes_default
20571 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
20572 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
20579 rm -f conftest.$ac_objext
20580 if { (ac_try="$ac_compile"
20581 case "(($ac_try" in
20582 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20583 *) ac_try_echo
=$ac_try;;
20585 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20586 $as_echo "$ac_try_echo") >&5
20587 (eval "$ac_compile") 2>conftest.er1
20589 grep -v '^ *+' conftest.er1
>conftest.err
20591 cat conftest.err
>&5
20592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); } && {
20594 test -z "$ac_c_werror_flag" ||
20595 test ! -s conftest.err
20596 } && test -s conftest.
$ac_objext; then
20599 $as_echo "$as_me: failed program was:" >&5
20600 sed 's/^/| /' conftest.
$ac_ext >&5
20603 int16_t
) ac_cv_c_int16_t
=yes ;;
20604 *) ac_cv_c_int16_t
=$ac_type ;;
20609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20611 $as_echo "$as_me: failed program was:" >&5
20612 sed 's/^/| /' conftest.
$ac_ext >&5
20617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20618 test "$ac_cv_c_int16_t" != no
&& break
20621 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
20622 $as_echo "$ac_cv_c_int16_t" >&6; }
20623 case $ac_cv_c_int16_t in #(
20627 cat >>confdefs.h
<<_ACEOF
20628 #define int16_t $ac_cv_c_int16_t
20634 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
20635 $as_echo_n "checking for int32_t... " >&6; }
20636 if test "${ac_cv_c_int32_t+set}" = set; then
20637 $as_echo_n "(cached) " >&6
20640 for ac_type
in 'int32_t' 'int' 'long int' \
20641 'long long int' 'short int' 'signed char'; do
20642 cat >conftest.
$ac_ext <<_ACEOF
20645 cat confdefs.h
>>conftest.
$ac_ext
20646 cat >>conftest.
$ac_ext <<_ACEOF
20647 /* end confdefs.h. */
20648 $ac_includes_default
20652 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
20659 rm -f conftest.
$ac_objext
20660 if { (ac_try
="$ac_compile"
20661 case "(($ac_try" in
20662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20663 *) ac_try_echo=$ac_try;;
20665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20666 $as_echo "$ac_try_echo") >&5
20667 (eval "$ac_compile") 2>conftest.er1
20669 grep -v '^ *+' conftest.er1 >conftest.err
20671 cat conftest.err >&5
20672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); } && {
20674 test -z "$ac_c_werror_flag" ||
20675 test ! -s conftest.err
20676 } && test -s conftest.$ac_objext; then
20677 cat >conftest.$ac_ext <<_ACEOF
20680 cat confdefs.h >>conftest.$ac_ext
20681 cat >>conftest.$ac_ext <<_ACEOF
20682 /* end confdefs.h. */
20683 $ac_includes_default
20687 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
20688 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
20695 rm -f conftest.$ac_objext
20696 if { (ac_try="$ac_compile"
20697 case "(($ac_try" in
20698 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20699 *) ac_try_echo
=$ac_try;;
20701 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20702 $as_echo "$ac_try_echo") >&5
20703 (eval "$ac_compile") 2>conftest.er1
20705 grep -v '^ *+' conftest.er1
>conftest.err
20707 cat conftest.err
>&5
20708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); } && {
20710 test -z "$ac_c_werror_flag" ||
20711 test ! -s conftest.err
20712 } && test -s conftest.
$ac_objext; then
20715 $as_echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.
$ac_ext >&5
20719 int32_t
) ac_cv_c_int32_t
=yes ;;
20720 *) ac_cv_c_int32_t
=$ac_type ;;
20725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20727 $as_echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.
$ac_ext >&5
20733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20734 test "$ac_cv_c_int32_t" != no
&& break
20737 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
20738 $as_echo "$ac_cv_c_int32_t" >&6; }
20739 case $ac_cv_c_int32_t in #(
20743 cat >>confdefs.h
<<_ACEOF
20744 #define int32_t $ac_cv_c_int32_t
20750 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
20751 $as_echo_n "checking for int64_t... " >&6; }
20752 if test "${ac_cv_c_int64_t+set}" = set; then
20753 $as_echo_n "(cached) " >&6
20756 for ac_type
in 'int64_t' 'int' 'long int' \
20757 'long long int' 'short int' 'signed char'; do
20758 cat >conftest.
$ac_ext <<_ACEOF
20761 cat confdefs.h
>>conftest.
$ac_ext
20762 cat >>conftest.
$ac_ext <<_ACEOF
20763 /* end confdefs.h. */
20764 $ac_includes_default
20768 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
20775 rm -f conftest.
$ac_objext
20776 if { (ac_try
="$ac_compile"
20777 case "(($ac_try" in
20778 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20779 *) ac_try_echo=$ac_try;;
20781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20782 $as_echo "$ac_try_echo") >&5
20783 (eval "$ac_compile") 2>conftest.er1
20785 grep -v '^ *+' conftest.er1 >conftest.err
20787 cat conftest.err >&5
20788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 (exit $ac_status); } && {
20790 test -z "$ac_c_werror_flag" ||
20791 test ! -s conftest.err
20792 } && test -s conftest.$ac_objext; then
20793 cat >conftest.$ac_ext <<_ACEOF
20796 cat confdefs.h >>conftest.$ac_ext
20797 cat >>conftest.$ac_ext <<_ACEOF
20798 /* end confdefs.h. */
20799 $ac_includes_default
20803 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
20804 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
20811 rm -f conftest.$ac_objext
20812 if { (ac_try="$ac_compile"
20813 case "(($ac_try" in
20814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20815 *) ac_try_echo
=$ac_try;;
20817 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20818 $as_echo "$ac_try_echo") >&5
20819 (eval "$ac_compile") 2>conftest.er1
20821 grep -v '^ *+' conftest.er1
>conftest.err
20823 cat conftest.err
>&5
20824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); } && {
20826 test -z "$ac_c_werror_flag" ||
20827 test ! -s conftest.err
20828 } && test -s conftest.
$ac_objext; then
20831 $as_echo "$as_me: failed program was:" >&5
20832 sed 's/^/| /' conftest.
$ac_ext >&5
20835 int64_t
) ac_cv_c_int64_t
=yes ;;
20836 *) ac_cv_c_int64_t
=$ac_type ;;
20841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20843 $as_echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.
$ac_ext >&5
20849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20850 test "$ac_cv_c_int64_t" != no
&& break
20853 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
20854 $as_echo "$ac_cv_c_int64_t" >&6; }
20855 case $ac_cv_c_int64_t in #(
20859 cat >>confdefs.h
<<_ACEOF
20860 #define int64_t $ac_cv_c_int64_t
20866 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
20867 $as_echo_n "checking for intptr_t... " >&6; }
20868 if test "${ac_cv_type_intptr_t+set}" = set; then
20869 $as_echo_n "(cached) " >&6
20871 ac_cv_type_intptr_t
=no
20872 cat >conftest.
$ac_ext <<_ACEOF
20875 cat confdefs.h
>>conftest.
$ac_ext
20876 cat >>conftest.
$ac_ext <<_ACEOF
20877 /* end confdefs.h. */
20878 $ac_includes_default
20882 if (sizeof (intptr_t))
20888 rm -f conftest.
$ac_objext
20889 if { (ac_try
="$ac_compile"
20890 case "(($ac_try" in
20891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20892 *) ac_try_echo=$ac_try;;
20894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20895 $as_echo "$ac_try_echo") >&5
20896 (eval "$ac_compile") 2>conftest.er1
20898 grep -v '^ *+' conftest.er1 >conftest.err
20900 cat conftest.err >&5
20901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); } && {
20903 test -z "$ac_c_werror_flag" ||
20904 test ! -s conftest.err
20905 } && test -s conftest.$ac_objext; then
20906 cat >conftest.$ac_ext <<_ACEOF
20909 cat confdefs.h >>conftest.$ac_ext
20910 cat >>conftest.$ac_ext <<_ACEOF
20911 /* end confdefs.h. */
20912 $ac_includes_default
20916 if (sizeof ((intptr_t)))
20922 rm -f conftest.$ac_objext
20923 if { (ac_try="$ac_compile"
20924 case "(($ac_try" in
20925 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20926 *) ac_try_echo
=$ac_try;;
20928 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20929 $as_echo "$ac_try_echo") >&5
20930 (eval "$ac_compile") 2>conftest.er1
20932 grep -v '^ *+' conftest.er1
>conftest.err
20934 cat conftest.err
>&5
20935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } && {
20937 test -z "$ac_c_werror_flag" ||
20938 test ! -s conftest.err
20939 } && test -s conftest.
$ac_objext; then
20942 $as_echo "$as_me: failed program was:" >&5
20943 sed 's/^/| /' conftest.
$ac_ext >&5
20945 ac_cv_type_intptr_t
=yes
20948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20950 $as_echo "$as_me: failed program was:" >&5
20951 sed 's/^/| /' conftest.
$ac_ext >&5
20956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20958 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
20959 $as_echo "$ac_cv_type_intptr_t" >&6; }
20960 if test "x$ac_cv_type_intptr_t" = x
""yes; then
20962 cat >>confdefs.h
<<\_ACEOF
20963 #define HAVE_INTPTR_T 1
20967 for ac_type
in 'int' 'long int' 'long long int'; do
20968 cat >conftest.
$ac_ext <<_ACEOF
20971 cat confdefs.h
>>conftest.
$ac_ext
20972 cat >>conftest.
$ac_ext <<_ACEOF
20973 /* end confdefs.h. */
20974 $ac_includes_default
20978 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
20985 rm -f conftest.
$ac_objext
20986 if { (ac_try
="$ac_compile"
20987 case "(($ac_try" in
20988 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20989 *) ac_try_echo=$ac_try;;
20991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20992 $as_echo "$ac_try_echo") >&5
20993 (eval "$ac_compile") 2>conftest.er1
20995 grep -v '^ *+' conftest.er1 >conftest.err
20997 cat conftest.err >&5
20998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } && {
21000 test -z "$ac_c_werror_flag" ||
21001 test ! -s conftest.err
21002 } && test -s conftest.$ac_objext; then
21004 cat >>confdefs.h <<_ACEOF
21005 #define intptr_t $ac_type
21010 $as_echo "$as_me: failed program was:" >&5
21011 sed 's/^/| /' conftest.$ac_ext >&5
21016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21017 test -z "$ac_type" && break
21023 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
21024 $as_echo_n "checking for uint8_t... " >&6; }
21025 if test "${ac_cv_c_uint8_t+set}" = set; then
21026 $as_echo_n "(cached) " >&6
21029 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
21030 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21031 cat >conftest.$ac_ext <<_ACEOF
21034 cat confdefs.h >>conftest.$ac_ext
21035 cat >>conftest.$ac_ext <<_ACEOF
21036 /* end confdefs.h. */
21037 $ac_includes_default
21041 static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
21048 rm -f conftest.$ac_objext
21049 if { (ac_try="$ac_compile"
21050 case "(($ac_try" in
21051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21052 *) ac_try_echo
=$ac_try;;
21054 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21055 $as_echo "$ac_try_echo") >&5
21056 (eval "$ac_compile") 2>conftest.er1
21058 grep -v '^ *+' conftest.er1
>conftest.err
21060 cat conftest.err
>&5
21061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); } && {
21063 test -z "$ac_c_werror_flag" ||
21064 test ! -s conftest.err
21065 } && test -s conftest.
$ac_objext; then
21067 uint8_t
) ac_cv_c_uint8_t
=yes ;;
21068 *) ac_cv_c_uint8_t
=$ac_type ;;
21072 $as_echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.
$ac_ext >&5
21078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21079 test "$ac_cv_c_uint8_t" != no
&& break
21082 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
21083 $as_echo "$ac_cv_c_uint8_t" >&6; }
21084 case $ac_cv_c_uint8_t in #(
21088 cat >>confdefs.h
<<\_ACEOF
21093 cat >>confdefs.h
<<_ACEOF
21094 #define uint8_t $ac_cv_c_uint8_t
21100 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
21101 $as_echo_n "checking for uint16_t... " >&6; }
21102 if test "${ac_cv_c_uint16_t+set}" = set; then
21103 $as_echo_n "(cached) " >&6
21105 ac_cv_c_uint16_t
=no
21106 for ac_type
in 'uint16_t' 'unsigned int' 'unsigned long int' \
21107 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21108 cat >conftest.
$ac_ext <<_ACEOF
21111 cat confdefs.h
>>conftest.
$ac_ext
21112 cat >>conftest.
$ac_ext <<_ACEOF
21113 /* end confdefs.h. */
21114 $ac_includes_default
21118 static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
21125 rm -f conftest.
$ac_objext
21126 if { (ac_try
="$ac_compile"
21127 case "(($ac_try" in
21128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21129 *) ac_try_echo=$ac_try;;
21131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21132 $as_echo "$ac_try_echo") >&5
21133 (eval "$ac_compile") 2>conftest.er1
21135 grep -v '^ *+' conftest.er1 >conftest.err
21137 cat conftest.err >&5
21138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } && {
21140 test -z "$ac_c_werror_flag" ||
21141 test ! -s conftest.err
21142 } && test -s conftest.$ac_objext; then
21144 uint16_t) ac_cv_c_uint16_t=yes ;;
21145 *) ac_cv_c_uint16_t=$ac_type ;;
21149 $as_echo "$as_me: failed program was:" >&5
21150 sed 's/^/| /' conftest.$ac_ext >&5
21155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21156 test "$ac_cv_c_uint16_t" != no && break
21159 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
21160 $as_echo "$ac_cv_c_uint16_t" >&6; }
21161 case $ac_cv_c_uint16_t in #(
21166 cat >>confdefs.h <<_ACEOF
21167 #define uint16_t $ac_cv_c_uint16_t
21173 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
21174 $as_echo_n "checking for uint32_t... " >&6; }
21175 if test "${ac_cv_c_uint32_t+set}" = set; then
21176 $as_echo_n "(cached) " >&6
21178 ac_cv_c_uint32_t=no
21179 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
21180 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21181 cat >conftest.$ac_ext <<_ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h. */
21187 $ac_includes_default
21191 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
21198 rm -f conftest.$ac_objext
21199 if { (ac_try="$ac_compile"
21200 case "(($ac_try" in
21201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21202 *) ac_try_echo
=$ac_try;;
21204 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21205 $as_echo "$ac_try_echo") >&5
21206 (eval "$ac_compile") 2>conftest.er1
21208 grep -v '^ *+' conftest.er1
>conftest.err
21210 cat conftest.err
>&5
21211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); } && {
21213 test -z "$ac_c_werror_flag" ||
21214 test ! -s conftest.err
21215 } && test -s conftest.
$ac_objext; then
21217 uint32_t
) ac_cv_c_uint32_t
=yes ;;
21218 *) ac_cv_c_uint32_t
=$ac_type ;;
21222 $as_echo "$as_me: failed program was:" >&5
21223 sed 's/^/| /' conftest.
$ac_ext >&5
21228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21229 test "$ac_cv_c_uint32_t" != no
&& break
21232 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
21233 $as_echo "$ac_cv_c_uint32_t" >&6; }
21234 case $ac_cv_c_uint32_t in #(
21238 cat >>confdefs.h
<<\_ACEOF
21239 #define _UINT32_T 1
21243 cat >>confdefs.h
<<_ACEOF
21244 #define uint32_t $ac_cv_c_uint32_t
21250 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
21251 $as_echo_n "checking for uint64_t... " >&6; }
21252 if test "${ac_cv_c_uint64_t+set}" = set; then
21253 $as_echo_n "(cached) " >&6
21255 ac_cv_c_uint64_t
=no
21256 for ac_type
in 'uint64_t' 'unsigned int' 'unsigned long int' \
21257 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21258 cat >conftest.
$ac_ext <<_ACEOF
21261 cat confdefs.h
>>conftest.
$ac_ext
21262 cat >>conftest.
$ac_ext <<_ACEOF
21263 /* end confdefs.h. */
21264 $ac_includes_default
21268 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
21275 rm -f conftest.
$ac_objext
21276 if { (ac_try
="$ac_compile"
21277 case "(($ac_try" in
21278 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21279 *) ac_try_echo=$ac_try;;
21281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21282 $as_echo "$ac_try_echo") >&5
21283 (eval "$ac_compile") 2>conftest.er1
21285 grep -v '^ *+' conftest.er1 >conftest.err
21287 cat conftest.err >&5
21288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); } && {
21290 test -z "$ac_c_werror_flag" ||
21291 test ! -s conftest.err
21292 } && test -s conftest.$ac_objext; then
21294 uint64_t) ac_cv_c_uint64_t=yes ;;
21295 *) ac_cv_c_uint64_t=$ac_type ;;
21299 $as_echo "$as_me: failed program was:" >&5
21300 sed 's/^/| /' conftest.$ac_ext >&5
21305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21306 test "$ac_cv_c_uint64_t" != no && break
21309 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
21310 $as_echo "$ac_cv_c_uint64_t" >&6; }
21311 case $ac_cv_c_uint64_t in #(
21315 cat >>confdefs.h <<\_ACEOF
21316 #define _UINT64_T 1
21320 cat >>confdefs.h <<_ACEOF
21321 #define uint64_t $ac_cv_c_uint64_t
21327 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
21328 $as_echo_n "checking for uintptr_t... " >&6; }
21329 if test "${ac_cv_type_uintptr_t+set}" = set; then
21330 $as_echo_n "(cached) " >&6
21332 ac_cv_type_uintptr_t=no
21333 cat >conftest.$ac_ext <<_ACEOF
21336 cat confdefs.h >>conftest.$ac_ext
21337 cat >>conftest.$ac_ext <<_ACEOF
21338 /* end confdefs.h. */
21339 $ac_includes_default
21343 if (sizeof (uintptr_t))
21349 rm -f conftest.$ac_objext
21350 if { (ac_try="$ac_compile"
21351 case "(($ac_try" in
21352 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21353 *) ac_try_echo
=$ac_try;;
21355 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21356 $as_echo "$ac_try_echo") >&5
21357 (eval "$ac_compile") 2>conftest.er1
21359 grep -v '^ *+' conftest.er1
>conftest.err
21361 cat conftest.err
>&5
21362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); } && {
21364 test -z "$ac_c_werror_flag" ||
21365 test ! -s conftest.err
21366 } && test -s conftest.
$ac_objext; then
21367 cat >conftest.
$ac_ext <<_ACEOF
21370 cat confdefs.h
>>conftest.
$ac_ext
21371 cat >>conftest.
$ac_ext <<_ACEOF
21372 /* end confdefs.h. */
21373 $ac_includes_default
21377 if (sizeof ((uintptr_t)))
21383 rm -f conftest.
$ac_objext
21384 if { (ac_try
="$ac_compile"
21385 case "(($ac_try" in
21386 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21387 *) ac_try_echo=$ac_try;;
21389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21390 $as_echo "$ac_try_echo") >&5
21391 (eval "$ac_compile") 2>conftest.er1
21393 grep -v '^ *+' conftest.er1 >conftest.err
21395 cat conftest.err >&5
21396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397 (exit $ac_status); } && {
21398 test -z "$ac_c_werror_flag" ||
21399 test ! -s conftest.err
21400 } && test -s conftest.$ac_objext; then
21403 $as_echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.$ac_ext >&5
21406 ac_cv_type_uintptr_t=yes
21409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21411 $as_echo "$as_me: failed program was:" >&5
21412 sed 's/^/| /' conftest.$ac_ext >&5
21417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21419 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
21420 $as_echo "$ac_cv_type_uintptr_t" >&6; }
21421 if test "x$ac_cv_type_uintptr_t" = x""yes; then
21423 cat >>confdefs.h <<\_ACEOF
21424 #define HAVE_UINTPTR_T 1
21428 for ac_type in 'unsigned int' 'unsigned long int' \
21429 'unsigned long long int'; do
21430 cat >conftest.$ac_ext <<_ACEOF
21433 cat confdefs.h >>conftest.$ac_ext
21434 cat >>conftest.$ac_ext <<_ACEOF
21435 /* end confdefs.h. */
21436 $ac_includes_default
21440 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
21447 rm -f conftest.$ac_objext
21448 if { (ac_try="$ac_compile"
21449 case "(($ac_try" in
21450 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21451 *) ac_try_echo
=$ac_try;;
21453 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21454 $as_echo "$ac_try_echo") >&5
21455 (eval "$ac_compile") 2>conftest.er1
21457 grep -v '^ *+' conftest.er1
>conftest.err
21459 cat conftest.err
>&5
21460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); } && {
21462 test -z "$ac_c_werror_flag" ||
21463 test ! -s conftest.err
21464 } && test -s conftest.
$ac_objext; then
21466 cat >>confdefs.h
<<_ACEOF
21467 #define uintptr_t $ac_type
21472 $as_echo "$as_me: failed program was:" >&5
21473 sed 's/^/| /' conftest.
$ac_ext >&5
21478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21479 test -z "$ac_type" && break
21484 { $as_echo "$as_me:$LINENO: checking for inline" >&5
21485 $as_echo_n "checking for inline... " >&6; }
21486 if test "${ac_cv_c_inline+set}" = set; then
21487 $as_echo_n "(cached) " >&6
21490 for ac_kw
in inline __inline__ __inline
; do
21491 cat >conftest.
$ac_ext <<_ACEOF
21494 cat confdefs.h
>>conftest.
$ac_ext
21495 cat >>conftest.
$ac_ext <<_ACEOF
21496 /* end confdefs.h. */
21497 #ifndef __cplusplus
21499 static $ac_kw foo_t static_foo () {return 0; }
21500 $ac_kw foo_t foo () {return 0; }
21504 rm -f conftest.
$ac_objext
21505 if { (ac_try
="$ac_compile"
21506 case "(($ac_try" in
21507 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21508 *) ac_try_echo=$ac_try;;
21510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21511 $as_echo "$ac_try_echo") >&5
21512 (eval "$ac_compile") 2>conftest.er1
21514 grep -v '^ *+' conftest.er1 >conftest.err
21516 cat conftest.err >&5
21517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518 (exit $ac_status); } && {
21519 test -z "$ac_c_werror_flag" ||
21520 test ! -s conftest.err
21521 } && test -s conftest.$ac_objext; then
21522 ac_cv_c_inline=$ac_kw
21524 $as_echo "$as_me: failed program was:" >&5
21525 sed 's/^/| /' conftest.$ac_ext >&5
21530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21531 test "$ac_cv_c_inline" != no && break
21535 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21536 $as_echo "$ac_cv_c_inline" >&6; }
21539 case $ac_cv_c_inline in
21542 case $ac_cv_c_inline in
21544 *) ac_val=$ac_cv_c_inline;;
21546 cat >>confdefs.h <<_ACEOF
21547 #ifndef __cplusplus
21548 #define inline $ac_val
21556 # Checks for library functions.
21561 for ac_func in memmove memset strdup accept
21563 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
21564 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21565 $as_echo_n "checking for $ac_func... " >&6; }
21566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21567 $as_echo_n "(cached) " >&6
21569 cat >conftest.$ac_ext <<_ACEOF
21572 cat confdefs.h >>conftest.$ac_ext
21573 cat >>conftest.$ac_ext <<_ACEOF
21574 /* end confdefs.h. */
21575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21577 #define $ac_func innocuous_$ac_func
21579 /* System header to define __stub macros and hopefully few prototypes,
21580 which can conflict with char $ac_func (); below.
21581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21582 <limits.h> exists even on freestanding compilers. */
21585 # include <limits.h>
21587 # include <assert.h>
21592 /* Override any GCC internal prototype to avoid an error.
21593 Use char because int might match the return type of a GCC
21594 builtin and then its argument prototype would still apply. */
21599 /* The GNU C library defines this for functions which it implements
21600 to always fail with ENOSYS. Some functions are actually named
21601 something starting with __ and the normal name is an alias. */
21602 #if defined __stub_$ac_func || defined __stub___$ac_func
21609 return $ac_func ();
21614 rm -f conftest.$ac_objext conftest$ac_exeext
21615 if { (ac_try="$ac_link"
21616 case "(($ac_try" in
21617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21618 *) ac_try_echo
=$ac_try;;
21620 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21621 $as_echo "$ac_try_echo") >&5
21622 (eval "$ac_link") 2>conftest.er1
21624 grep -v '^ *+' conftest.er1
>conftest.err
21626 cat conftest.err
>&5
21627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); } && {
21629 test -z "$ac_c_werror_flag" ||
21630 test ! -s conftest.err
21631 } && test -s conftest
$ac_exeext && {
21632 test "$cross_compiling" = yes ||
21633 $as_test_x conftest
$ac_exeext
21635 eval "$as_ac_var=yes"
21637 $as_echo "$as_me: failed program was:" >&5
21638 sed 's/^/| /' conftest.
$ac_ext >&5
21640 eval "$as_ac_var=no"
21643 rm -rf conftest.dSYM
21644 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21645 conftest
$ac_exeext conftest.
$ac_ext
21647 ac_res
=`eval 'as_val=${'$as_ac_var'}
21648 $as_echo "$as_val"'`
21649 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21650 $as_echo "$ac_res" >&6; }
21651 as_val
=`eval 'as_val=${'$as_ac_var'}
21652 $as_echo "$as_val"'`
21653 if test "x$as_val" = x
""yes; then
21654 cat >>confdefs.h
<<_ACEOF
21655 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21664 ac_config_headers
="$ac_config_headers antlr3config.h"
21666 ac_config_files
="$ac_config_files Makefile"
21668 cat >confcache
<<\_ACEOF
21669 # This file is a shell script that caches the results of configure
21670 # tests run on this system so they can be shared between configure
21671 # scripts and configure runs, see configure's option --config-cache.
21672 # It is not useful on other systems. If it contains results you don't
21673 # want to keep, you may remove or edit it.
21675 # config.status only pays attention to the cache file if you give it
21676 # the --recheck option to rerun configure.
21678 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21679 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21680 # following values.
21684 # The following way of writing the cache mishandles newlines in values,
21685 # but we know of no workaround that is simple, portable, and efficient.
21686 # So, we kill variables containing newlines.
21687 # Ultrix sh set writes to stderr and can't be redirected directly,
21688 # and sets the high bit in the cache file unless we assign to the vars.
21690 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21691 eval ac_val
=\$
$ac_var
21695 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21696 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21699 _ | IFS | as_nl
) ;; #(
21700 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
21701 *) $as_unset $ac_var ;;
21707 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21708 *${as_nl}ac_space
=\
*)
21709 # `set' does not quote correctly, so add quotes (double-quote
21710 # substitution turns \\\\ into \\, and sed turns \\ into \).
21713 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21716 # `set' quotes correctly as required by POSIX, so do not add quotes.
21717 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21726 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21728 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21730 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
21731 if test -w "$cache_file"; then
21732 test "x$cache_file" != "x/dev/null" &&
21733 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21734 $as_echo "$as_me: updating cache $cache_file" >&6;}
21735 cat confcache
>$cache_file
21737 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21738 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21743 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21744 # Let make expand exec_prefix.
21745 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21747 DEFS
=-DHAVE_CONFIG_H
21751 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21752 # 1. Remove the extension, and $U if already installed.
21753 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
21754 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
21755 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21756 # will be set to the directory where LIBOBJS objects are built.
21757 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21758 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21760 LIBOBJS
=$ac_libobjs
21762 LTLIBOBJS
=$ac_ltlibobjs
21765 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21766 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21767 Usually this means the macro was only invoked conditionally." >&5
21768 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21769 Usually this means the macro was only invoked conditionally." >&2;}
21770 { (exit 1); exit 1; }; }
21772 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21773 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21774 Usually this means the macro was only invoked conditionally." >&5
21775 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21776 Usually this means the macro was only invoked conditionally." >&2;}
21777 { (exit 1); exit 1; }; }
21779 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21780 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21781 Usually this means the macro was only invoked conditionally." >&5
21782 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21783 Usually this means the macro was only invoked conditionally." >&2;}
21784 { (exit 1); exit 1; }; }
21786 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21787 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21788 Usually this means the macro was only invoked conditionally." >&5
21789 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21790 Usually this means the macro was only invoked conditionally." >&2;}
21791 { (exit 1); exit 1; }; }
21794 : ${CONFIG_STATUS=./config.status}
21796 ac_clean_files_save
=$ac_clean_files
21797 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21798 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21799 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21800 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21802 # Generated by $as_me.
21803 # Run this file to recreate the current configuration.
21804 # Compiler output produced by configure, useful for debugging
21805 # configure, is in config.log if it exists.
21808 ac_cs_recheck=false
21810 SHELL=\${CONFIG_SHELL-$SHELL}
21813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21814 ## --------------------- ##
21815 ## M4sh Initialization. ##
21816 ## --------------------- ##
21818 # Be more Bourne compatible
21819 DUALCASE
=1; export DUALCASE
# for MKS sh
21820 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21823 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21824 # is contrary to our usage. Disable this feature.
21825 alias -g '${1+"$@"}'='"$@"'
21826 setopt NO_GLOB_SUBST
21828 case `(set -o) 2>/dev/null` in
21829 *posix
*) set -o posix
;;
21838 # Avoid depending upon Character Ranges.
21839 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
21840 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21841 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
21842 as_cr_digits
='0123456789'
21843 as_cr_alnum
=$as_cr_Letters$as_cr_digits
21848 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21849 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21850 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21851 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21852 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21853 as_echo='printf %s
\n'
21854 as_echo_n='printf %s
'
21856 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21857 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
21858 as_echo_n='/usr
/ucb
/echo -n'
21860 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21861 as_echo_n_body='eval
21865 expr "X$arg" : "X\\(.*\\)$as_nl";
21866 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21868 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
21870 export as_echo_n_body
21871 as_echo_n='sh
-c $as_echo_n_body as_echo
'
21873 export as_echo_body
21874 as_echo='sh
-c $as_echo_body as_echo
'
21877 # The user is always right.
21878 if test "${PATH_SEPARATOR+set}" != set; then
21880 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21881 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21886 # Support unset when possible.
21887 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21895 # We need space, tab and new line, in precisely that order. Quoting is
21896 # there to prevent editors from complaining about space-tab.
21897 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21898 # splitting by setting IFS to empty value.)
21901 # Find who we are. Look in the path if we contain no directory separator.
21903 *[\\/]* ) as_myself=$0 ;;
21904 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21905 for as_dir in $PATH
21908 test -z "$as_dir" && as_dir=.
21909 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21915 # We did not find ourselves, most probably we were run as `sh COMMAND'
21916 # in which case we are not to be found in the path.
21917 if test "x$as_myself" = x
; then
21920 if test ! -f "$as_myself"; then
21921 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21922 { (exit 1); exit 1; }
21925 # Work around bugs in pre-3.0 UWIN ksh.
21926 for as_var
in ENV MAIL MAILPATH
21927 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
21939 # Required to use basename.
21940 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
21941 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
21947 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21948 as_basename
=basename
21954 # Name of the executable.
21955 as_me
=`$as_basename -- "$0" ||
21956 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21957 X"$0" : 'X\(//\)$' \| \
21958 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21960 sed '/^.*\/\([^/][^/]*\)\/*$/{
21979 as_lineno_1
=$LINENO
21980 as_lineno_2
=$LINENO
21981 test "x$as_lineno_1" != "x$as_lineno_2" &&
21982 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
21984 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21985 # uniformly replaced by the line number. The first 'sed' inserts a
21986 # line-number line after each line using $LINENO; the second 'sed'
21987 # does the real work. The second script uses 'N' to pair each
21988 # line-number line with the line containing $LINENO, and appends
21989 # trailing '-' during substitution so that $LINENO is not a special
21990 # case at line end.
21991 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21992 # scripts with optimization help from Paolo Bonzini. Blame Lee
21993 # E. McMahon (1931-1989) for sed's syntax. :-)
22005 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22008 ' >$as_me.lineno
&&
22009 chmod +x
"$as_me.lineno" ||
22010 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22011 { (exit 1); exit 1; }; }
22013 # Don't try to exec as it changes $[0], causing all sort of problems
22014 # (the dirname of $[0] is not the place where we might find the
22015 # original and so on. Autoconf is especially sensitive to this).
22016 .
"./$as_me.lineno"
22017 # Exit status is that of the last command.
22022 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
22028 ECHO_C
= ECHO_N
= ECHO_T
=
22029 case `echo -n x` in
22031 case `echo 'x\c'` in
22032 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
22038 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
22039 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
22045 rm -f conf$$ conf$$.exe conf$$.
file
22046 if test -d conf$$.dir
; then
22047 rm -f conf$$.dir
/conf$$.
file
22050 mkdir conf$$.dir
2>/dev
/null
22052 if (echo >conf$$.
file) 2>/dev
/null
; then
22053 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22055 # ... but there are two gotchas:
22056 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22057 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22058 # In both cases, we have to default to `cp -p'.
22059 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
22061 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22069 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
22070 rmdir conf$$.dir
2>/dev
/null
22072 if mkdir
-p .
2>/dev
/null
; then
22075 test -d .
/-p && rmdir .
/-p
22079 if test -x / >/dev
/null
2>&1; then
22080 as_test_x
='test -x'
22082 if ls -dL / >/dev
/null
2>&1; then
22089 if test -d "$1"; then
22095 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22096 ???[sx]*):;;*)false;;esac;fi
22100 as_executable_p
=$as_test_x
22102 # Sed expression to map a string onto a valid CPP name.
22103 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22105 # Sed expression to map a string onto a valid variable name.
22106 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22111 # Save the log message, to keep $[0] and so on meaningful, and to
22112 # report actual input values of CONFIG_FILES etc. instead of their
22113 # values after options handling.
22115 This file was extended by libantlr3c $as_me 3.2, which was
22116 generated by GNU Autoconf 2.63. Invocation command line was
22118 CONFIG_FILES = $CONFIG_FILES
22119 CONFIG_HEADERS = $CONFIG_HEADERS
22120 CONFIG_LINKS = $CONFIG_LINKS
22121 CONFIG_COMMANDS = $CONFIG_COMMANDS
22124 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22129 case $ac_config_files in *"
22130 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
22133 case $ac_config_headers in *"
22134 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
22138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22139 # Files that config.status was made for.
22140 config_files="$ac_config_files"
22141 config_headers="$ac_config_headers"
22142 config_commands="$ac_config_commands"
22146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22148 \`$as_me' instantiates files from templates according to the
22149 current configuration.
22151 Usage: $0 [OPTION]... [FILE]...
22153 -h, --help print this help, then exit
22154 -V, --version print version number and configuration settings, then exit
22155 -q, --quiet, --silent
22156 do not print progress messages
22157 -d, --debug don't remove temporary files
22158 --recheck update $as_me by reconfiguring in the same conditions
22159 --file=FILE[:TEMPLATE]
22160 instantiate the configuration file FILE
22161 --header=FILE[:TEMPLATE]
22162 instantiate the configuration header FILE
22164 Configuration files:
22167 Configuration headers:
22170 Configuration commands:
22173 Report bugs to <bug-autoconf@gnu.org>."
22176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22178 libantlr3c config.status 3.2
22179 configured by $0, generated by GNU Autoconf 2.63,
22180 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22182 Copyright (C) 2008 Free Software Foundation, Inc.
22183 This config.status script is free software; the Free Software Foundation
22184 gives unlimited permission to copy, distribute and modify it."
22190 test -n "\$AWK" || AWK=awk
22193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22194 # The default lists apply if the user does not specify any file.
22200 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
22201 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
22212 # Handling of the options.
22213 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22215 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
22216 $as_echo "$ac_cs_version"; exit ;;
22217 --debug |
--debu |
--deb |
--de |
--d |
-d )
22219 --file |
--fil |
--fi |
--f )
22222 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22224 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
22225 ac_need_defaults
=false
;;
22226 --header |
--heade |
--head |
--hea )
22229 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22231 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
22232 ac_need_defaults
=false
;;
22234 # Conflict between --help and --header
22235 { $as_echo "$as_me: error: ambiguous option: $1
22236 Try \`$0 --help' for more information." >&2
22237 { (exit 1); exit 1; }; };;
22238 --help |
--hel |
-h )
22239 $as_echo "$ac_cs_usage"; exit ;;
22240 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22241 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22244 # This is an error.
22245 -*) { $as_echo "$as_me: error: unrecognized option: $1
22246 Try \`$0 --help' for more information." >&2
22247 { (exit 1); exit 1; }; } ;;
22249 *) ac_config_targets
="$ac_config_targets $1"
22250 ac_need_defaults
=false
;;
22256 ac_configure_extra_args
=
22258 if $ac_cs_silent; then
22260 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22265 if \$ac_cs_recheck; then
22266 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22268 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22269 CONFIG_SHELL='$SHELL'
22270 export CONFIG_SHELL
22275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22279 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22280 ## Running $as_me. ##
22286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22290 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22296 # Handling of arguments.
22297 for ac_config_target
in $ac_config_targets
22299 case $ac_config_target in
22300 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
22301 "antlr3config.h") CONFIG_HEADERS
="$CONFIG_HEADERS antlr3config.h" ;;
22302 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
22304 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22305 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22306 { (exit 1); exit 1; }; };;
22311 # If the user did not use the arguments to specify the items to instantiate,
22312 # then the envvar interface is used. Set only those that are not.
22313 # We use the long form for the default assignment because of an extremely
22314 # bizarre bug on SunOS 4.1.3.
22315 if $ac_need_defaults; then
22316 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22317 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22318 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
22321 # Have a temporary directory for convenience. Make it in the build tree
22322 # simply because there is no reason against having it here, and in addition,
22323 # creating and moving files from /tmp can sometimes cause problems.
22324 # Hook for its removal unless debugging.
22325 # Note that there is a small window in which the directory will not be cleaned:
22326 # after its creation but before its name has been assigned to `$tmp'.
22330 trap 'exit_status=$?
22331 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22333 trap '{ (exit 1); exit 1; }' 1 2 13 15
22335 # Create a (secure) tmp directory for tmp files.
22338 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22339 test -n "$tmp" && test -d "$tmp"
22342 tmp
=.
/conf$$
-$RANDOM
22343 (umask 077 && mkdir
"$tmp")
22346 $as_echo "$as_me: cannot create a temporary directory in ." >&2
22347 { (exit 1); exit 1; }
22350 # Set up the scripts for CONFIG_FILES section.
22351 # No need to generate them if there are no CONFIG_FILES.
22352 # This happens for instance with `./config.status config.h'.
22353 if test -n "$CONFIG_FILES"; then
22357 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22358 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22361 ac_cs_awk_cr
=$ac_cr
22364 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22369 echo "cat >conf$$subs.awk <<_ACEOF" &&
22370 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22372 } >conf$$subs.sh ||
22373 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
22374 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
22375 { (exit 1); exit 1; }; }
22376 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22378 for ac_last_try in false false false false false :; do
22379 . ./conf$$subs.sh ||
22380 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
22381 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
22382 { (exit 1); exit 1; }; }
22384 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
22385 if test $ac_delim_n = $ac_delim_num; then
22387 elif $ac_last_try; then
22388 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
22389 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
22390 { (exit 1); exit 1; }; }
22392 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
22395 rm -f conf$$subs.sh
22397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22398 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
22402 s/^/S["/; s
/!.
*/"]=/
22412 s/\(.\{148\}\).*/\1/
22414 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
22419 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
22426 s/\(.\{148\}\).*/\1/
22428 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
22432 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
22437 ' <conf$$subs.awk | sed '
22442 ' >>$CONFIG_STATUS || ac_write_fail=1
22443 rm -f conf$$subs.awk
22444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22446 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
22447 for (key in S) S_is_set[key] = 1
22453 nfields = split(line, field, "@
")
22455 len = length(field[1])
22456 for (i = 2; i < nfields; i++) {
22458 keylen = length(key)
22459 if (S_is_set[key]) {
22461 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22462 len += length(value) + length(field[++i])
22473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22474 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22475 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
22478 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
22479 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
22480 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
22481 { (exit 1); exit 1; }; }
22484 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22485 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
22486 # trailing colons and then remove the whole line if VPATH becomes empty
22487 # (actually we leave an empty line to preserve line numbers).
22488 if test "x
$srcdir" = x.; then
22489 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22490 s/:*\$(srcdir):*/:/
22491 s/:*\${srcdir}:*/:/
22493 s/^\([^=]*=[ ]*\):*/\1/
22499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22500 fi # test -n "$CONFIG_FILES"
22502 # Set up the scripts for CONFIG_HEADERS section.
22503 # No need to generate them if there are no CONFIG_HEADERS.
22504 # This happens for instance with `./config.status Makefile'.
22505 if test -n "$CONFIG_HEADERS"; then
22506 cat >"$tmp/defines.
awk" <<\_ACAWK ||
22510 # Transform confdefs.h into an awk script `defines.awk', embedded as
22511 # here-document in config.status, that substitutes the proper values into
22512 # config.h.in to produce config.h.
22514 # Create a delimiter string that does not exist in confdefs.h, to ease
22515 # handling of long lines.
22517 for ac_last_try in false false :; do
22518 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
22519 if test -z "$ac_t"; then
22521 elif $ac_last_try; then
22522 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
22523 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
22524 { (exit 1); exit 1; }; }
22526 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
22530 # For the awk script, D is an array of macro values keyed by name,
22531 # likewise P contains macro parameters if any. Preserve backslash
22532 # newline sequences.
22534 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22536 s/.\{148\}/&'"$ac_delim"'/g
22539 s/^[ ]*#[ ]*define[ ][ ]*/ /
22546 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
22548 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
22552 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
22553 D["\
1"]=" \
3\\\\\\n
"\\/p
22555 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
22560 s/.\{148\}/&'"$ac_delim"'/g
22565 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
22568 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
22570 ' <confdefs.h | sed '
22571 s/'"$ac_delim"'/"\\\
22572 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22575 for (key in D) D_is_set[key] = 1
22578 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22580 split(line, arg, " ")
22581 if (arg[1] == "#") {
22585 defundef
= substr
(arg
[1], 2)
22588 split(mac1
, mac2
, "(") #)
22590 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
22591 if (D_is_set
[macro
]) {
22592 # Preserve the white space surrounding the "#".
22593 print prefix
"define", macro P
[macro
] D
[macro
]
22596 # Replace #undef with comments. This is necessary, for example,
22597 # in the case of _POSIX_SOURCE, which is predefined and required
22598 # on some systems where configure will not decide to define it.
22599 if (defundef
== "undef") {
22600 print
"/*", prefix defundef
, macro
, "*/"
22608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22609 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22610 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22611 { (exit 1); exit 1; }; }
22612 fi # test -n "$CONFIG_HEADERS"
22615 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22620 :[FHLC
]) ac_mode
=$ac_tag; continue;;
22622 case $ac_mode$ac_tag in
22624 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22625 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22626 { (exit 1); exit 1; }; };;
22627 :[FH
]-) ac_tag
=-:-;;
22628 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
22645 -) ac_f
="$tmp/stdin";;
22646 *) # Look for the file first in the build tree, then in the source tree
22647 # (if the path is not absolute). The absolute path cannot be DOS-style,
22648 # because $ac_f cannot contain `:'.
22652 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
22654 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22655 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22656 { (exit 1); exit 1; }; };;
22658 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22659 ac_file_inputs
="$ac_file_inputs '$ac_f'"
22662 # Let's still pretend it is `configure' which instantiates (i.e., don't
22663 # use $as_me), people would be surprised to read:
22664 # /* config.h. Generated by config.status. */
22665 configure_input
='Generated from '`
22666 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22668 if test x
"$ac_file" != x-
; then
22669 configure_input
="$ac_file. $configure_input"
22670 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22671 $as_echo "$as_me: creating $ac_file" >&6;}
22673 # Neutralize special characters interpreted by sed in replacement strings.
22674 case $configure_input in #(
22675 *\
&* |
*\|
* |
*\\* )
22676 ac_sed_conf_input
=`$as_echo "$configure_input" |
22677 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22678 *) ac_sed_conf_input
=$configure_input;;
22682 *:-:* |
*:-) cat >"$tmp/stdin" \
22683 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22684 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22685 { (exit 1); exit 1; }; } ;;
22690 ac_dir
=`$as_dirname -- "$ac_file" ||
22691 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22692 X"$ac_file" : 'X\(//\)[^/]' \| \
22693 X"$ac_file" : 'X\(//\)$' \| \
22694 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22695 $as_echo X"$ac_file" |
22696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22700 /^X\(\/\/\)[^/].*/{
22715 -*) as_dir
=.
/$as_dir;;
22717 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
22721 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22722 *) as_qdir
=$as_dir;;
22724 as_dirs
="'$as_qdir' $as_dirs"
22725 as_dir
=`$as_dirname -- "$as_dir" ||
22726 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22727 X"$as_dir" : 'X\(//\)[^/]' \| \
22728 X"$as_dir" : 'X\(//\)$' \| \
22729 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22730 $as_echo X"$as_dir" |
22731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22735 /^X\(\/\/\)[^/].*/{
22748 test -d "$as_dir" && break
22750 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
22751 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22752 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22753 { (exit 1); exit 1; }; }; }
22757 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
22759 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22760 # A ".." for each directory in $ac_dir_suffix.
22761 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22762 case $ac_top_builddir_sub in
22763 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
22764 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
22767 ac_abs_top_builddir
=$ac_pwd
22768 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
22769 # for backward compatibility:
22770 ac_top_builddir
=$ac_top_build_prefix
22773 .
) # We are building in place.
22775 ac_top_srcdir
=$ac_top_builddir_sub
22776 ac_abs_top_srcdir
=$ac_pwd ;;
22777 [\\/]* | ?
:[\\/]* ) # Absolute name.
22778 ac_srcdir
=$srcdir$ac_dir_suffix;
22779 ac_top_srcdir
=$srcdir
22780 ac_abs_top_srcdir
=$srcdir ;;
22781 *) # Relative name.
22782 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
22783 ac_top_srcdir
=$ac_top_build_prefix$srcdir
22784 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
22786 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
22796 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22797 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
22801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22802 # If the template does not know about datarootdir, expand it.
22803 # FIXME: This hack should be removed a few years after 2.60.
22804 ac_datarootdir_hack
=; ac_datarootdir_seen
=
22817 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22818 *datarootdir
*) ac_datarootdir_seen
=yes;;
22819 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
22820 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22821 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22824 ac_datarootdir_hack='
22825 s&@datadir@&$datadir&g
22826 s&@docdir@&$docdir&g
22827 s&@infodir@&$infodir&g
22828 s&@localedir@&$localedir&g
22829 s&@mandir@&$mandir&g
22830 s&\\\${datarootdir}&$datarootdir&g' ;;
22834 # Neutralize VPATH when `$srcdir' = `.'.
22835 # Shell code in configure.ac might set extrasub.
22836 # FIXME: do we really want to maintain this feature?
22837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22838 ac_sed_extra="$ac_vpsub
22841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22843 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22844 s|@configure_input@|
$ac_sed_conf_input|
;t t
22845 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
22846 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
22847 s
&@srcdir@
&$ac_srcdir&;t t
22848 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
22849 s
&@top_srcdir@
&$ac_top_srcdir&;t t
22850 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
22851 s
&@builddir@
&$ac_builddir&;t t
22852 s
&@abs_builddir@
&$ac_abs_builddir&;t t
22853 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
22854 s
&@INSTALL@
&$ac_INSTALL&;t t
22855 $ac_datarootdir_hack
22857 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
22858 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
22859 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
22860 { (exit 1); exit 1; }; }
22862 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22863 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
22864 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
22865 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
22866 which seems to be undefined. Please make sure it is defined." >&5
22867 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
22868 which seems to be undefined. Please make sure it is defined." >&2;}
22872 -) cat "$tmp/out" && rm -f "$tmp/out";;
22873 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22875 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22876 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22877 { (exit 1); exit 1; }; }
22883 if test x"$ac_file" != x-; then
22885 $as_echo "/* $configure_input */" \
22886 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22887 } >"$tmp/config.h" \
22888 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22889 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22890 { (exit 1); exit 1; }; }
22891 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22892 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22893 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22896 mv "$tmp/config.h" "$ac_file" \
22897 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22898 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22899 { (exit 1); exit 1; }; }
22902 $as_echo "/* $configure_input */" \
22903 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22904 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22905 $as_echo "$as_me: error: could not create -" >&2;}
22906 { (exit 1); exit 1; }; }
22908 # Compute "$ac_file"'s index
in $config_headers.
22910 for _am_header
in $config_headers :; do
22911 case $_am_header in
22912 "$ac_file" |
"$ac_file":* )
22915 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
22918 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
22919 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22920 X"$ac_file" : 'X\(//\)[^/]' \| \
22921 X"$ac_file" : 'X\(//\)$' \| \
22922 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22923 $as_echo X"$ac_file" |
22924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22928 /^X\(\/\/\)[^/].*/{
22940 s/.*/./; q'`/stamp-h
$_am_stamp_count
22943 :C
) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22944 $as_echo "$as_me: executing $ac_file commands" >&6;}
22949 case $ac_file$ac_mode in
22950 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
22951 # Strip MF so we end up with the name of the file.
22952 mf
=`echo "$mf" | sed -e 's/:.*$//'`
22953 # Check whether this is an Automake generated Makefile or not.
22954 # We used to match only the files named `Makefile.in', but
22955 # some people rename them; so instead we look at the file content.
22956 # Grep'ing the first line is not enough: some people post-process
22957 # each Makefile.in and add a new line on top of each file to say so.
22958 # So let's grep whole file.
22959 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
22960 dirpart
=`$as_dirname -- "$mf" ||
22961 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22962 X"$mf" : 'X\(//\)[^/]' \| \
22963 X"$mf" : 'X\(//\)$' \| \
22964 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22970 /^X\(\/\/\)[^/].*/{
22986 # Extract the definition of DEPDIR, am__include, and am__quote
22987 # from the Makefile without running `make'.
22988 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
22989 test -z "$DEPDIR" && continue
22990 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
22991 test -z "am__include" && continue
22992 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
22993 # When using ansi2knr, U may be empty or an underscore; expand it
22994 U
=`sed -n 's/^U = //p' < "$mf"`
22995 # Find all dependency output files, they are included files with
22996 # $(DEPDIR) in their names. We invoke sed twice because it is the
22997 # simplest approach to changing $(DEPDIR) to its actual value in the
22999 for file in `sed -n "
23000 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23001 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23002 # Make sure the directory exists.
23003 test -f "$dirpart/$file" && continue
23004 fdir
=`$as_dirname -- "$file" ||
23005 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23006 X"$file" : 'X\(//\)[^/]' \| \
23007 X"$file" : 'X\(//\)$' \| \
23008 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23009 $as_echo X"$file" |
23010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23014 /^X\(\/\/\)[^/].*/{
23027 { as_dir
=$dirpart/$fdir
23029 -*) as_dir
=.
/$as_dir;;
23031 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
23035 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23036 *) as_qdir
=$as_dir;;
23038 as_dirs
="'$as_qdir' $as_dirs"
23039 as_dir
=`$as_dirname -- "$as_dir" ||
23040 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23041 X"$as_dir" : 'X\(//\)[^/]' \| \
23042 X"$as_dir" : 'X\(//\)$' \| \
23043 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23044 $as_echo X"$as_dir" |
23045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23049 /^X\(\/\/\)[^/].*/{
23062 test -d "$as_dir" && break
23064 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23065 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23066 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23067 { (exit 1); exit 1; }; }; }
23068 # echo "creating $dirpart/$file"
23069 echo '# dummy' > "$dirpart/$file"
23078 { (exit 0); exit 0; }
23080 chmod +x
$CONFIG_STATUS
23081 ac_clean_files
=$ac_clean_files_save
23083 test $ac_write_fail = 0 ||
23084 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23085 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23086 { (exit 1); exit 1; }; }
23089 # configure is writing to config.log, and then calls config.status.
23090 # config.status does its own redirection, appending to config.log.
23091 # Unfortunately, on DOS this fails, as config.log is still kept open
23092 # by configure, so config.status won't be able to write to it; its
23093 # output is simply discarded. So we exec the FD to /dev/null,
23094 # effectively closing config.log, so it can be properly (re)opened and
23095 # appended to by config.status. When coming back to configure, we
23096 # need to make the FD available again.
23097 if test "$no_create" != yes; then
23099 ac_config_status_args
=
23100 test "$silent" = yes &&
23101 ac_config_status_args
="$ac_config_status_args --quiet"
23103 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23105 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23106 # would make configure fail if this is the last instruction.
23107 $ac_cs_success ||
{ (exit 1); exit 1; }
23109 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
23110 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23111 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}