2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libratbox devel.
5 # $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
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.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix
*) set -o posix
;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits
='0123456789'
40 as_cr_alnum
=$as_cr_Letters$as_cr_digits
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x
; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var
in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
144 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me
=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x
; then
176 if (eval ":") 2>/dev
/null
; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev
/null
; then
242 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
243 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir
=.
249 for as_base
in sh bash ksh sh5
; do
250 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
257 for as_shell
in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
279 CONFIG_SHELL
=$as_shell
281 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix
*) set -o posix
;;
307 as_func_ret_success
() {
310 as_func_ret_failure
() {
315 if as_func_success
; then
319 echo as_func_success failed.
322 if as_func_failure
; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success
; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure
; then
336 echo as_func_ret_failure succeeded.
339 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x
; then
364 for as_var
in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no
; then
373 echo This
script requires a shell
more modern than all the
374 echo shells that I found on your system. Please
install a
375 echo modern shell
, or manually run the
script under such a
376 echo shell
if you
do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug
-autoconf@gnu.org about your system
,
438 echo including any error possibly output before this message.
439 echo This can
help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x
"$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
494 ECHO_C
= ECHO_N
= ECHO_T
=
498 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
504 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
511 rm -f conf$$ conf$$.exe conf$$.
file
512 if test -d conf$$.dir
; then
513 rm -f conf$$.dir
/conf$$.
file
516 mkdir conf$$.dir
2>/dev
/null
518 if (echo >conf$$.
file) 2>/dev
/null
; then
519 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
527 elif ln conf$$.
file conf$$
2>/dev
/null
; then
535 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
536 rmdir conf$$.dir
2>/dev
/null
538 if mkdir -p .
2>/dev
/null
; then
541 test -d .
/-p && rmdir .
/-p
545 if test -x / >/dev
/null
2>&1; then
548 if ls -dL / >/dev
/null
2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p
=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 # Check that we are running under the correct shell.
578 SHELL
=${CONFIG_SHELL-/bin/sh}
582 # Remove one level of quotation (which was required for Make).
583 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
588 if test "X$1" = X
--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
591 elif test "X$1" = X
--fallback-echo; then
592 # Avoid inline document here, it may be left over
594 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $echo works!
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
602 if test "X$1" = X
--fallback-echo; then
603 # used as fallback echo
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
613 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
615 if test -z "$ECHO"; then
616 if test "X${echo_test_string+set}" != Xset
; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if (echo_test_string
=`eval $cmd`) 2>/dev
/null
&&
621 echo_test_string
=`eval $cmd` &&
622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # The Solaris, AIX, and Digital Unix default echo programs unquote
635 # backslashes. This makes it impossible to quote backslashes using
636 # echo "$something" | sed 's/\\/\\\\/g'
638 # So, first we look for a working echo in the user's PATH.
640 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
641 for dir
in $PATH /usr
/ucb
; do
643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646 test "X$echo_testing_string" = "X$echo_test_string"; then
653 if test "X$echo" = Xecho
; then
654 # We didn't find a better echo, so look for alternatives.
655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 # This shell has a builtin print -r that does the trick.
660 elif (test -f /bin
/ksh
|| test -f /bin
/ksh
$ac_exeext) &&
661 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
662 # If we have ksh, try running configure again with it.
663 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
664 export ORIGINAL_CONFIG_SHELL
665 CONFIG_SHELL
=/bin
/ksh
667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
673 test "X$echo_testing_string" = "X$echo_test_string"; then
676 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677 test "X$echo_testing_string" = 'X\t' &&
678 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679 test "X$echo_testing_string" = "X$echo_test_string"; then
680 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
682 SHELL
="$CONFIG_SHELL"
684 echo="$CONFIG_SHELL $0 --fallback-echo"
685 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686 test "X$echo_testing_string" = 'X\t' &&
687 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688 test "X$echo_testing_string" = "X$echo_test_string"; then
689 echo="$CONFIG_SHELL $0 --fallback-echo"
691 # maybe with a smaller string...
694 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
702 if test "$prev" != 'sed 50q "$0"'; then
703 echo_test_string
=`eval $prev`
704 export echo_test_string
705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
707 # Oops. We lost completely, so just stick with echo.
716 # Copy echo and quote the copy suitably for passing to libtool from
717 # the Makefile, instead of quoting the original, which is used later.
719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
726 tagnames
=${tagnames+${tagnames},}CXX
728 tagnames
=${tagnames+${tagnames},}F77
730 exec 7<&0 </dev
/null
6>&1
733 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734 # so uname gets run too.
735 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
740 ac_default_prefix
=/usr
/local
742 ac_config_libobj_dir
=.
748 SHELL
=${CONFIG_SHELL-/bin/sh}
750 # Identity of this package.
751 PACKAGE_NAME
='libratbox'
752 PACKAGE_TARNAME
='libratbox'
753 PACKAGE_VERSION
='devel'
754 PACKAGE_STRING
='libratbox devel'
757 ac_default_prefix
=/usr
/local
/libratbox
758 # Factoring default headers for most tests.
759 ac_includes_default
="\
761 #ifdef HAVE_SYS_TYPES_H
762 # include <sys/types.h>
764 #ifdef HAVE_SYS_STAT_H
765 # include <sys/stat.h>
771 # ifdef HAVE_STDLIB_H
776 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
781 #ifdef HAVE_STRINGS_H
782 # include <strings.h>
784 #ifdef HAVE_INTTYPES_H
785 # include <inttypes.h>
794 ac_subst_vars
='LTLIBOBJS
842 MAINTAINER_MODE_FALSE
872 INSTALL_STRIP_PROGRAM
914 program_transform_name
926 enable_option_checking
927 enable_dependency_tracking
930 enable_maintainer_mode
944 ac_precious_vars
='build_alias
964 # Initialize some variables set by options.
966 ac_init_version
=false
967 ac_unrecognized_opts
=
969 # The variables have the same names as the options, with
970 # dashes changed to underlines.
978 program_transform_name
=s
,x
,x
,
986 # Installation directory options.
987 # These are left unexpanded so users can "make install exec_prefix=/foo"
988 # and all the variables that are supposed to be based on exec_prefix
989 # by default will actually change.
990 # Use braces instead of parens because sh, perl, etc. also accept them.
991 # (The list follows the same order as the GNU Coding Standards.)
992 bindir
='${exec_prefix}/bin'
993 sbindir
='${exec_prefix}/sbin'
994 libexecdir
='${exec_prefix}/libexec'
995 datarootdir
='${prefix}/share'
996 datadir
='${datarootdir}'
997 sysconfdir
='${prefix}/etc'
998 sharedstatedir
='${prefix}/com'
999 localstatedir
='${prefix}/var'
1000 includedir
='${prefix}/include'
1001 oldincludedir
='/usr/include'
1002 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1003 infodir
='${datarootdir}/info'
1008 libdir
='${exec_prefix}/lib'
1009 localedir
='${datarootdir}/locale'
1010 mandir
='${datarootdir}/man'
1016 # If the previous option needs an argument, assign it.
1017 if test -n "$ac_prev"; then
1018 eval $ac_prev=\
$ac_option
1024 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1028 # Accept the important Cygnus configure options, so we can diagnose typos.
1030 case $ac_dashdash$ac_option in
1034 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1036 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1037 bindir
=$ac_optarg ;;
1039 -build | --build | --buil | --bui | --bu)
1040 ac_prev
=build_alias
;;
1041 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1042 build_alias
=$ac_optarg ;;
1044 -cache-file | --cache-file | --cache-fil | --cache-fi \
1045 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1046 ac_prev
=cache_file
;;
1047 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1048 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1049 cache_file
=$ac_optarg ;;
1051 --config-cache | -C)
1052 cache_file
=config.cache
;;
1054 -datadir | --datadir | --datadi | --datad)
1056 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1057 datadir
=$ac_optarg ;;
1059 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1060 | --dataroo | --dataro | --datar)
1061 ac_prev
=datarootdir
;;
1062 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1063 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1064 datarootdir
=$ac_optarg ;;
1066 -disable-* | --disable-*)
1067 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1070 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_useropt_orig
=$ac_useropt
1073 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1076 "enable_
$ac_useropt"
1078 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1079 ac_unrecognized_sep
=', ';;
1081 eval enable_
$ac_useropt=no
;;
1083 -docdir | --docdir | --docdi | --doc | --do)
1085 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1086 docdir
=$ac_optarg ;;
1088 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1090 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1091 dvidir
=$ac_optarg ;;
1093 -enable-* | --enable-*)
1094 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1097 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1098 { (exit 1); exit 1; }; }
1099 ac_useropt_orig
=$ac_useropt
1100 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1103 "enable_
$ac_useropt"
1105 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1106 ac_unrecognized_sep
=', ';;
1108 eval enable_
$ac_useropt=\
$ac_optarg ;;
1110 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1111 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1112 | --exec | --exe | --ex)
1113 ac_prev
=exec_prefix
;;
1114 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1115 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1116 | --exec=* | --exe=* | --ex=*)
1117 exec_prefix
=$ac_optarg ;;
1119 -gas | --gas | --ga | --g)
1120 # Obsolete; use --with-gas.
1123 -help | --help | --hel | --he | -h)
1124 ac_init_help
=long
;;
1125 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
1126 ac_init_help
=recursive
;;
1127 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
1128 ac_init_help
=short
;;
1130 -host | --host | --hos | --ho)
1131 ac_prev
=host_alias
;;
1132 -host=* | --host=* | --hos=* | --ho=*)
1133 host_alias
=$ac_optarg ;;
1135 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1137 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1139 htmldir
=$ac_optarg ;;
1141 -includedir | --includedir | --includedi | --included | --include \
1142 | --includ | --inclu | --incl | --inc)
1143 ac_prev
=includedir
;;
1144 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1145 | --includ=* | --inclu=* | --incl=* | --inc=*)
1146 includedir
=$ac_optarg ;;
1148 -infodir | --infodir | --infodi | --infod | --info | --inf)
1150 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1151 infodir
=$ac_optarg ;;
1153 -libdir | --libdir | --libdi | --libd)
1155 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1156 libdir
=$ac_optarg ;;
1158 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1159 | --libexe | --libex | --libe)
1160 ac_prev
=libexecdir
;;
1161 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1162 | --libexe=* | --libex=* | --libe=*)
1163 libexecdir
=$ac_optarg ;;
1165 -localedir | --localedir | --localedi | --localed | --locale)
1166 ac_prev
=localedir
;;
1167 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1168 localedir
=$ac_optarg ;;
1170 -localstatedir | --localstatedir | --localstatedi | --localstated \
1171 | --localstate | --localstat | --localsta | --localst | --locals)
1172 ac_prev
=localstatedir
;;
1173 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1174 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1175 localstatedir
=$ac_optarg ;;
1177 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1179 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1180 mandir
=$ac_optarg ;;
1182 -nfp | --nfp | --nf)
1183 # Obsolete; use --without-fp.
1186 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1187 | --no-cr | --no-c | -n)
1190 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1191 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1194 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1195 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1196 | --oldin | --oldi | --old | --ol | --o)
1197 ac_prev
=oldincludedir
;;
1198 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1199 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1200 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1201 oldincludedir
=$ac_optarg ;;
1203 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1205 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1206 prefix
=$ac_optarg ;;
1208 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1209 | --program-pre | --program-pr | --program-p)
1210 ac_prev
=program_prefix
;;
1211 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1212 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1213 program_prefix
=$ac_optarg ;;
1215 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1216 | --program-suf | --program-su | --program-s)
1217 ac_prev
=program_suffix
;;
1218 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1219 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1220 program_suffix
=$ac_optarg ;;
1222 -program-transform-name | --program-transform-name \
1223 | --program-transform-nam | --program-transform-na \
1224 | --program-transform-n | --program-transform- \
1225 | --program-transform | --program-transfor \
1226 | --program-transfo | --program-transf \
1227 | --program-trans | --program-tran \
1228 | --progr-tra | --program-tr | --program-t)
1229 ac_prev
=program_transform_name
;;
1230 -program-transform-name=* | --program-transform-name=* \
1231 | --program-transform-nam=* | --program-transform-na=* \
1232 | --program-transform-n=* | --program-transform-=* \
1233 | --program-transform=* | --program-transfor=* \
1234 | --program-transfo=* | --program-transf=* \
1235 | --program-trans=* | --program-tran=* \
1236 | --progr-tra=* | --program-tr=* | --program-t=*)
1237 program_transform_name
=$ac_optarg ;;
1239 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1241 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1242 pdfdir
=$ac_optarg ;;
1244 -psdir | --psdir | --psdi | --psd | --ps)
1246 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250 | -silent | --silent | --silen | --sile | --sil)
1253 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1255 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1257 sbindir
=$ac_optarg ;;
1259 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1260 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1261 | --sharedst | --shareds | --shared | --share | --shar \
1263 ac_prev
=sharedstatedir
;;
1264 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1265 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1266 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1268 sharedstatedir
=$ac_optarg ;;
1270 -site | --site | --sit)
1272 -site=* | --site=* | --sit=*)
1275 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1277 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1278 srcdir
=$ac_optarg ;;
1280 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1281 | --syscon | --sysco | --sysc | --sys | --sy)
1282 ac_prev
=sysconfdir
;;
1283 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1284 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1285 sysconfdir
=$ac_optarg ;;
1287 -target | --target | --targe | --targ | --tar | --ta | --t)
1288 ac_prev
=target_alias
;;
1289 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1290 target_alias
=$ac_optarg ;;
1292 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1295 -version | --version | --versio | --versi | --vers | -V)
1296 ac_init_version
=: ;;
1299 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1302 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1303 { (exit 1); exit 1; }; }
1304 ac_useropt_orig
=$ac_useropt
1305 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306 case $ac_user_opts in
1310 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1311 ac_unrecognized_sep
=', ';;
1313 eval with_
$ac_useropt=\
$ac_optarg ;;
1315 -without-* | --without-*)
1316 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1317 # Reject names that are not valid shell variable names.
1318 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1319 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1320 { (exit 1); exit 1; }; }
1321 ac_useropt_orig
=$ac_useropt
1322 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1323 case $ac_user_opts in
1327 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1328 ac_unrecognized_sep
=', ';;
1330 eval with_
$ac_useropt=no
;;
1333 # Obsolete; use --with-x.
1336 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1337 | --x-incl | --x-inc | --x-in | --x-i)
1338 ac_prev
=x_includes
;;
1339 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1340 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1341 x_includes
=$ac_optarg ;;
1343 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1344 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1345 ac_prev
=x_libraries
;;
1346 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1347 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1348 x_libraries
=$ac_optarg ;;
1350 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1351 Try \`$0 --help' for more information." >&2
1352 { (exit 1); exit 1; }; }
1356 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1357 # Reject names that are not valid shell variable names.
1358 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1359 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1360 { (exit 1); exit 1; }; }
1361 eval $ac_envvar=\
$ac_optarg
1362 export $ac_envvar ;;
1365 # FIXME: should be removed in autoconf 3.0.
1366 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1367 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1368 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1369 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1375 if test -n "$ac_prev"; then
1376 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1377 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1378 { (exit 1); exit 1; }; }
1381 if test -n "$ac_unrecognized_opts"; then
1382 case $enable_option_checking in
1384 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1385 { (exit 1); exit 1; }; } ;;
1386 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1390 # Check all directory arguments for consistency.
1391 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1392 datadir sysconfdir sharedstatedir localstatedir includedir \
1393 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1394 libdir localedir mandir
1396 eval ac_val
=\$
$ac_var
1397 # Remove trailing slashes.
1400 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1401 eval $ac_var=\
$ac_val;;
1403 # Be sure to have absolute directory names.
1405 [\\/$
]* | ?
:[\\/]* ) continue;;
1406 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1408 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1409 { (exit 1); exit 1; }; }
1412 # There might be people who depend on the old broken behavior: `$host'
1413 # used to hold the argument of --host etc.
1414 # FIXME: To remove some day.
1417 target
=$target_alias
1419 # FIXME: To remove some day.
1420 if test "x$host_alias" != x
; then
1421 if test "x$build_alias" = x
; then
1422 cross_compiling
=maybe
1423 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1424 If a cross compiler is detected then cross compile mode will be used." >&2
1425 elif test "x$build_alias" != "x$host_alias"; then
1431 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1433 test "$silent" = yes && exec 6>/dev
/null
1436 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1437 ac_ls_di
=`ls -di .` &&
1438 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1439 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1440 { (exit 1); exit 1; }; }
1441 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1442 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1443 { (exit 1); exit 1; }; }
1446 # Find the source files, if location was not specified.
1447 if test -z "$srcdir"; then
1448 ac_srcdir_defaulted
=yes
1449 # Try the directory containing this script, then the parent directory.
1450 ac_confdir
=`$as_dirname -- "$as_myself" ||
1451 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1452 X"$as_myself" : 'X\(//\)[^/]' \| \
1453 X"$as_myself" : 'X\(//\)$' \| \
1454 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1455 $as_echo X"$as_myself" |
1456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1478 ac_srcdir_defaulted
=no
1480 if test ! -r "$srcdir/$ac_unique_file"; then
1481 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1482 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1483 { (exit 1); exit 1; }; }
1485 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1487 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1488 { (exit 1); exit 1; }; }
1490 # When building in place, set srcdir=.
1491 if test "$ac_abs_confdir" = "$ac_pwd"; then
1494 # Remove unnecessary trailing slashes from srcdir.
1495 # Double slashes in file names in object file debugging info
1496 # mess up M-x gdb in Emacs.
1498 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1500 for ac_var
in $ac_precious_vars; do
1501 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1502 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1503 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1504 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1508 # Report the --help message.
1510 if test "$ac_init_help" = "long"; then
1511 # Omit some internal or obsolete options to make the list less imposing.
1512 # This message is too long to be a string in the A/UX 3.1 sh.
1514 \`configure' configures libratbox devel to adapt to many kinds of systems.
1516 Usage: $0 [OPTION]... [VAR=VALUE]...
1518 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1519 VAR=VALUE. See below for descriptions of some of the useful variables.
1521 Defaults for the options are specified in brackets.
1524 -h, --help display this help and exit
1525 --help=short display options specific to this package
1526 --help=recursive display the short help of all the included packages
1527 -V, --version display version information and exit
1528 -q, --quiet, --silent do not print \`checking...' messages
1529 --cache-file=FILE cache test results in FILE [disabled]
1530 -C, --config-cache alias for \`--cache-file=config.cache'
1531 -n, --no-create do not create output files
1532 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1534 Installation directories:
1535 --prefix=PREFIX install architecture-independent files in PREFIX
1536 [$ac_default_prefix]
1537 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1540 By default, \`make install' will install all the files in
1541 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1542 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1543 for instance \`--prefix=\$HOME'.
1545 For better control, use the options below.
1547 Fine tuning of the installation directories:
1548 --bindir=DIR user executables [EPREFIX/bin]
1549 --sbindir=DIR system admin executables [EPREFIX/sbin]
1550 --libexecdir=DIR program executables [EPREFIX/libexec]
1551 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1552 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1553 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1554 --libdir=DIR object code libraries [EPREFIX/lib]
1555 --includedir=DIR C header files [PREFIX/include]
1556 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1557 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1558 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1559 --infodir=DIR info documentation [DATAROOTDIR/info]
1560 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1561 --mandir=DIR man documentation [DATAROOTDIR/man]
1562 --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox]
1563 --htmldir=DIR html documentation [DOCDIR]
1564 --dvidir=DIR dvi documentation [DOCDIR]
1565 --pdfdir=DIR pdf documentation [DOCDIR]
1566 --psdir=DIR ps documentation [DOCDIR]
1572 --program-prefix=PREFIX prepend PREFIX to installed program names
1573 --program-suffix=SUFFIX append SUFFIX to installed program names
1574 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1577 --build=BUILD configure
for building on BUILD
[guessed
]
1578 --host=HOST cross
-compile to build programs to run on HOST
[BUILD
]
1582 if test -n "$ac_init_help"; then
1583 case $ac_init_help in
1584 short
| recursive
) echo "Configuration of libratbox devel:";;
1589 --disable-option-checking ignore unrecognized
--enable/--with options
1590 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1591 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1592 --disable-dependency-tracking speeds up one
-time build
1593 --enable-dependency-tracking do not reject slow dependency extractors
1594 --enable-static[=PKGS
] build static libraries
[default
=no
]
1595 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1596 --enable-maintainer-mode enable make rules and dependencies not useful
1597 (and sometimes confusing
) to the casual installer
1598 --enable-fast-install[=PKGS
]
1599 optimize
for fast installation
[default
=yes]
1600 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1601 --disable-ipv6 Disable IPv6 support
1602 --enable-openssl=DIR Enable OpenSSL support
(DIR optional
).
1603 --disable-openssl Disable OpenSSL support.
1604 --enable-gnutls Enable GnuTLS support.
1605 --disable-gnutls Disable GnuTLS support.
1606 --enable-assert Enable assert
(). Choose between soft
(warnings
) and
1607 hard
(aborts the daemon
)
1608 --enable-profile Enable profiling
1609 --disable-balloc Disable the block allocator.
1610 --enable-warnings Enable all sorts of warnings
for debugging.
1613 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1614 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1615 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1616 --with-pic try to use only PIC
/non
-PIC objects
[default
=use
1618 --with-tags[=TAGS
] include additional configurations
[automatic
]
1620 Some influential environment variables
:
1621 CC C compiler
command
1622 CFLAGS C compiler flags
1623 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1624 nonstandard directory
<lib dir
>
1625 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1626 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1627 you have headers
in a nonstandard directory
<include dir
>
1629 CXX C
++ compiler
command
1630 CXXFLAGS C
++ compiler flags
1631 CXXCPP C
++ preprocessor
1632 F77 Fortran
77 compiler
command
1633 FFLAGS Fortran
77 compiler flags
1634 PKG_CONFIG path to pkg
-config utility
1636 C compiler flags
for GNUTLS
, overriding pkg
-config
1637 GNUTLS_LIBS linker flags
for GNUTLS
, overriding pkg
-config
1639 Use these variables to override the choices made by
`configure' or to help
1640 it to find libraries and programs with nonstandard names/locations.
1646 if test "$ac_init_help" = "recursive"; then
1647 # If there are subdirs, report their specific --help.
1648 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1649 test -d "$ac_dir" ||
1650 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1655 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1658 # A ".." for each directory in $ac_dir_suffix.
1659 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1660 case $ac_top_builddir_sub in
1661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1665 ac_abs_top_builddir=$ac_pwd
1666 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1667 # for backward compatibility:
1668 ac_top_builddir=$ac_top_build_prefix
1671 .) # We are building in place.
1673 ac_top_srcdir=$ac_top_builddir_sub
1674 ac_abs_top_srcdir=$ac_pwd ;;
1675 [\\/]* | ?:[\\/]* ) # Absolute name.
1676 ac_srcdir=$srcdir$ac_dir_suffix;
1677 ac_top_srcdir=$srcdir
1678 ac_abs_top_srcdir=$srcdir ;;
1680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1681 ac_top_srcdir=$ac_top_build_prefix$srcdir
1682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1684 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1686 cd "$ac_dir" || { ac_status=$?; continue; }
1687 # Check for guested configure.
1688 if test -f "$ac_srcdir/configure.gnu"; then
1690 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1691 elif test -f "$ac_srcdir/configure"; then
1693 $SHELL "$ac_srcdir/configure" --help=recursive
1695 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1697 cd "$ac_pwd" || { ac_status=$?; break; }
1701 test -n "$ac_init_help" && exit $ac_status
1702 if $ac_init_version; then
1704 libratbox configure devel
1705 generated by GNU Autoconf 2.63
1707 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1708 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1709 This configure script is free software; the Free Software Foundation
1710 gives unlimited permission to copy, distribute and modify it.
1712 $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
1716 cat >config.log <<_ACEOF
1717 This file contains any messages produced by compilers while
1718 running configure, to aid debugging if configure makes a mistake.
1720 It was created by libratbox $as_me devel, which was
1721 generated by GNU Autoconf 2.63. Invocation command line was
1733 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
1734 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
1735 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
1736 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
1737 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
1739 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
1740 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
1742 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
1743 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
1744 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
1745 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null
|| echo unknown
`
1746 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
1747 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
1748 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756 test -z "$as_dir" && as_dir=.
1757 $as_echo "PATH: $as_dir"
1773 # Keep a trace of the command line.
1774 # Strip out --no-create and --no-recursion so they do not pile up.
1775 # Strip out --silent because we don't want to record it for future runs.
1776 # Also quote any args containing shell meta-characters.
1777 # Make two passes to allow for proper duplicate-argument suppression.
1781 ac_must_keep_next=false
1787 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1788 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1789 | -silent | --silent | --silen | --sile | --sil)
1792 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1795 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1797 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1798 if test $ac_must_keep_next = true; then
1799 ac_must_keep_next=false # Got value, back to normal.
1802 *=* | --config-cache | -C | -disable-* | --disable-* \
1803 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1804 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1805 | -with-* | --with-* | -without-* | --without-* | --x)
1806 case "$ac_configure_args0 " in
1807 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1810 -* ) ac_must_keep_next=true ;;
1813 ac_configure_args="$ac_configure_args '$ac_arg'"
1818 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1819 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1821 # When interrupted or exit'd, cleanup temporary files, and complete
1822 # config.log. We remove comments because anyway the quotes in there
1823 # would cause problems or look ugly.
1824 # WARNING: Use '\'' to represent an apostrophe within the trap.
1825 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1826 trap 'exit_status=$?
1827 # Save into config.log some information that might help in debugging.
1832 ## ---------------- ##
1833 ## Cache variables. ##
1834 ## ---------------- ##
1837 # The following way of writing the cache mishandles newlines in values,
1839 for ac_var in `(set) 2>&1 | sed -n '\''s
/^\
([a
-zA-Z_][a
-zA-Z0-9_]*\
)=.
*/\
1/p
'\''`; do
1840 eval ac_val=\$$ac_var
1844 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1845 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1848 _ | IFS | as_nl) ;; #(
1849 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1850 *) $as_unset $ac_var ;;
1855 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1856 *${as_nl}ac_space=\ *)
1858 "s/'\''/'\''\\\\'\'''\''/g;
1859 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1862 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1870 ## ----------------- ##
1871 ## Output variables. ##
1872 ## ----------------- ##
1875 for ac_var in $ac_subst_vars
1877 eval ac_val=\$$ac_var
1879 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1881 $as_echo "$ac_var='\''$ac_val'\''"
1885 if test -n "$ac_subst_files"; then
1887 ## ------------------- ##
1888 ## File substitutions. ##
1889 ## ------------------- ##
1892 for ac_var in $ac_subst_files
1894 eval ac_val=\$$ac_var
1896 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1898 $as_echo "$ac_var='\''$ac_val'\''"
1903 if test -s confdefs.h; then
1913 test "$ac_signal" != 0 &&
1914 $as_echo "$as_me: caught signal $ac_signal"
1915 $as_echo "$as_me: exit $exit_status"
1917 rm -f core *.core core.conftest.* &&
1918 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1921 for ac_signal in 1 2 13 15; do
1922 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1926 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1927 rm -f -r conftest* confdefs.h
1929 # Predefined preprocessor variables.
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_NAME "$PACKAGE_NAME"
1936 cat >>confdefs.h <<_ACEOF
1937 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1941 cat >>confdefs.h <<_ACEOF
1942 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1946 cat >>confdefs.h <<_ACEOF
1947 #define PACKAGE_STRING "$PACKAGE_STRING"
1951 cat >>confdefs.h <<_ACEOF
1952 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1956 # Let the site file select an alternate cache file if it wants to.
1957 # Prefer an explicitly selected file to automatically selected ones.
1960 if test -n "$CONFIG_SITE"; then
1961 ac_site_file1=$CONFIG_SITE
1962 elif test "x$prefix" != xNONE; then
1963 ac_site_file1=$prefix/share/config.site
1964 ac_site_file2=$prefix/etc/config.site
1966 ac_site_file1=$ac_default_prefix/share/config.site
1967 ac_site_file2=$ac_default_prefix/etc/config.site
1969 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1971 test "x$ac_site_file" = xNONE && continue
1972 if test -r "$ac_site_file"; then
1973 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1974 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1975 sed 's/^/| /' "$ac_site_file" >&5
1980 if test -r "$cache_file"; then
1981 # Some versions of bash will fail to source /dev/null (special
1982 # files actually), so we avoid doing that.
1983 if test -f "$cache_file"; then
1984 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1985 $as_echo "$as_me: loading cache $cache_file" >&6;}
1987 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1988 *) . "./$cache_file";;
1992 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1993 $as_echo "$as_me: creating cache $cache_file" >&6;}
1997 # Check that the precious variables saved in the cache have kept the same
1999 ac_cache_corrupted=false
2000 for ac_var in $ac_precious_vars; do
2001 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2002 eval ac_new_set=\$ac_env_${ac_var}_set
2003 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2004 eval ac_new_val=\$ac_env_${ac_var}_value
2005 case $ac_old_set,$ac_new_set in
2007 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2008 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2009 ac_cache_corrupted=: ;;
2011 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
2012 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2013 ac_cache_corrupted=: ;;
2016 if test "x$ac_old_val" != "x$ac_new_val"; then
2017 # differences in whitespace do not lead to failure.
2018 ac_old_val_w=`echo x
$ac_old_val`
2019 ac_new_val_w=`echo x
$ac_new_val`
2020 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2021 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2022 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2023 ac_cache_corrupted=:
2025 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2026 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2027 eval $ac_var=\$ac_old_val
2029 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2030 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2031 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2032 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2035 # Pass precious variables to config.status.
2036 if test "$ac_new_set" = set; then
2038 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2039 *) ac_arg=$ac_var=$ac_new_val ;;
2041 case " $ac_configure_args " in
2042 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2043 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2047 if $ac_cache_corrupted; then
2048 { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2050 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2051 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2052 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&5
2053 $as_echo "$as_me: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&2;}
2054 { (exit 1); exit 1; }; }
2082 ac_cpp='$CPP $CPPFLAGS'
2083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2088 am__api_version='1.10'
2091 for ac_dir in "$srcdir" "$srcdir/..
" "$srcdir/..
/..
"; do
2092 if test -f "$ac_dir/install-sh"; then
2094 ac_install_sh="$ac_aux_dir/install-sh -c"
2096 elif test -f "$ac_dir/install.sh
"; then
2098 ac_install_sh="$ac_aux_dir/install.sh
-c"
2100 elif test -f "$ac_dir/shtool
"; then
2102 ac_install_sh="$ac_aux_dir/shtool
install -c"
2106 if test -z "$ac_aux_dir"; then
2107 { { $as_echo "$as_me:$LINENO: error
: cannot
find install-sh or
install.sh
in \"$srcdir\" \"$srcdir/..
\" \"$srcdir/..
/..
\"" >&5
2108 $as_echo "$as_me: error
: cannot
find install-sh or
install.sh
in \"$srcdir\" \"$srcdir/..
\" \"$srcdir/..
/..
\"" >&2;}
2109 { (exit 1); exit 1; }; }
2112 # These three variables are undocumented and unsupported,
2113 # and are intended to be withdrawn in a future Autoconf release.
2114 # They can cause serious problems if a builder's source tree is in a directory
2115 # whose full name contains unusual characters.
2116 ac_config_guess="$SHELL $ac_aux_dir/config.guess
" # Please don't use this var.
2117 ac_config_sub="$SHELL $ac_aux_dir/config.sub
" # Please don't use this var.
2118 ac_configure="$SHELL $ac_aux_dir/configure
" # Please don't use this var.
2121 # Find a good install program. We prefer a C program (faster),
2122 # so one script is as good as another. But avoid the broken or
2123 # incompatible versions:
2124 # SysV /etc/install, /usr/sbin/install
2125 # SunOS /usr/etc/install
2126 # IRIX /sbin/install
2128 # AmigaOS /C/install, which installs bootblocks on floppy discs
2129 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2130 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2131 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
2132 # OS/2's system install, which has a completely different semantic
2133 # ./install, which can be erroneously created by make from ./install.sh.
2134 # Reject install programs that cannot install multiple files.
2135 { $as_echo "$as_me:$LINENO: checking
for a BSD
-compatible install" >&5
2136 $as_echo_n "checking
for a BSD
-compatible install...
" >&6; }
2137 if test -z "$INSTALL"; then
2138 if test "${ac_cv_path_install+set}" = set; then
2139 $as_echo_n "(cached
) " >&6
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 test -z "$as_dir" && as_dir=.
2146 # Account for people who put trailing slashes in PATH elements.
2148 ./ | .// | /cC/* | \
2149 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2150 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2153 # OSF1 and SCO ODT 3.0 have their own names for install.
2154 # Don't use installbsd from OSF since it installs stuff as root
2156 for ac_prog in ginstall scoinst install; do
2157 for ac_exec_ext in '' $ac_executable_extensions; do
2158 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2159 if test $ac_prog = install &&
2160 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2161 # AIX install. It has an incompatible calling convention.
2163 elif test $ac_prog = install &&
2164 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2165 # program-specific install script used by HP pwplus--don't use.
2168 rm -rf conftest.one conftest.two conftest.dir
2169 echo one > conftest.one
2170 echo two > conftest.two
2172 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir
" &&
2173 test -s conftest.one && test -s conftest.two &&
2174 test -s conftest.dir/conftest.one &&
2175 test -s conftest.dir/conftest.two
2177 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2190 rm -rf conftest.one conftest.two conftest.dir
2193 if test "${ac_cv_path_install+set}" = set; then
2194 INSTALL=$ac_cv_path_install
2196 # As a last resort, use the slow shell script. Don't cache a
2197 # value for INSTALL within a source directory, because that will
2198 # break other packages using the cache if that directory is
2199 # removed, or if the value is a relative name.
2200 INSTALL=$ac_install_sh
2203 { $as_echo "$as_me:$LINENO: result
: $INSTALL" >&5
2204 $as_echo "$INSTALL" >&6; }
2206 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2207 # It thinks the first close brace ends the variable substitution.
2208 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2210 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2212 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2214 { $as_echo "$as_me:$LINENO: checking whether build environment is sane
" >&5
2215 $as_echo_n "checking whether build environment is sane...
" >&6; }
2218 echo timestamp > conftest.file
2219 # Do `set' in a subshell so we don't clobber the current shell's
2220 # arguments. Must try -L first in case configure is actually a
2221 # symlink; some systems play weird games with the mod time of symlinks
2222 # (eg FreeBSD returns the mod time of the symlink's containing
2225 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2226 if test "$
*" = "X
"; then
2228 set X `ls -t $srcdir/configure conftest.file`
2231 if test "$
*" != "X
$srcdir/configure conftest.
file" \
2232 && test "$
*" != "X conftest.
file $srcdir/configure
"; then
2234 # If neither matched, then we have a broken ls. This can happen
2235 # if, for instance, CONFIG_SHELL is bash and it inherits a
2236 # broken ls alias from the environment. This has actually
2237 # happened. Such a system could not be considered "sane
".
2238 { { $as_echo "$as_me:$LINENO: error
: ls -t appears to fail. Make sure there is not a broken
2239 alias in your environment
" >&5
2240 $as_echo "$as_me: error
: ls -t appears to fail. Make sure there is not a broken
2241 alias in your environment
" >&2;}
2242 { (exit 1); exit 1; }; }
2245 test "$2" = conftest.file
2251 { { $as_echo "$as_me:$LINENO: error
: newly created
file is older than distributed files
!
2252 Check your system
clock" >&5
2253 $as_echo "$as_me: error
: newly created
file is older than distributed files
!
2254 Check your system
clock" >&2;}
2255 { (exit 1); exit 1; }; }
2257 { $as_echo "$as_me:$LINENO: result
: yes" >&5
2258 $as_echo "yes" >&6; }
2259 test "$program_prefix" != NONE &&
2260 program_transform_name="s
&^
&$program_prefix&;$program_transform_name"
2261 # Use a double $ so make ignores it.
2262 test "$program_suffix" != NONE &&
2263 program_transform_name="s
&\$
&$program_suffix&;$program_transform_name"
2264 # Double any \ or $.
2265 # By default was `s,x,x', remove it if useless.
2266 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2267 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2269 # expand $ac_aux_dir to an absolute path
2270 am_aux_dir=`cd $ac_aux_dir && pwd`
2272 test x"${MISSING+set}" = xset || MISSING="\
${SHELL} $am_aux_dir/missing
"
2273 # Use eval to expand $SHELL
2274 if eval "$MISSING --run true
"; then
2275 am_missing_run="$MISSING --run "
2278 { $as_echo "$as_me:$LINENO: WARNING
: \
`missing' script is too old or missing" >&5
2279 $as_echo "$as_me: WARNING: \`missing
' script is too old or missing" >&2;}
2282 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2283 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2284 if test -z "$MKDIR_P"; then
2285 if test "${ac_cv_path_mkdir+set}" = set; then
2286 $as_echo_n "(cached) " >&6
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2292 test -z "$as_dir" && as_dir=.
2293 for ac_prog in mkdir gmkdir; do
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2296 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2297 'mkdir (GNU coreutils
) '* | \
2298 'mkdir (coreutils
) '* | \
2299 'mkdir (fileutils
) '4.1*)
2300 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2310 if test "${ac_cv_path_mkdir+set}" = set; then
2311 MKDIR_P="$ac_cv_path_mkdir -p"
2313 # As a last resort, use the slow shell script. Don't cache a
2314 # value for MKDIR_P within a source directory, because that will
2315 # break other packages using the cache if that directory is
2316 # removed, or if the value is a relative name.
2317 test -d .
/--version && rmdir .
/--version
2318 MKDIR_P
="$ac_install_sh -d"
2321 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2322 $as_echo "$MKDIR_P" >&6; }
2326 [\\/$
]* | ?
:[\\/]*) ;;
2327 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2330 for ac_prog
in gawk mawk nawk
awk
2332 # Extract the first word of "$ac_prog", so it can be a program name with args.
2333 set dummy
$ac_prog; ac_word
=$2
2334 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 $as_echo_n "checking for $ac_word... " >&6; }
2336 if test "${ac_cv_prog_AWK+set}" = set; then
2337 $as_echo_n "(cached) " >&6
2339 if test -n "$AWK"; then
2340 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2342 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2346 test -z "$as_dir" && as_dir
=.
2347 for ac_exec_ext
in '' $ac_executable_extensions; do
2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349 ac_cv_prog_AWK
="$ac_prog"
2350 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360 if test -n "$AWK"; then
2361 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2362 $as_echo "$AWK" >&6; }
2364 { $as_echo "$as_me:$LINENO: result: no" >&5
2365 $as_echo "no" >&6; }
2369 test -n "$AWK" && break
2372 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2373 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2375 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2376 if { as_var
=ac_cv_prog_make_
${ac_make}_set
; eval "test \"\${$as_var+set}\" = set"; }; then
2377 $as_echo_n "(cached) " >&6
2379 cat >conftest.
make <<\_ACEOF
2382 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2384 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2385 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2387 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2389 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2393 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2394 { $as_echo "$as_me:$LINENO: result: yes" >&5
2395 $as_echo "yes" >&6; }
2398 { $as_echo "$as_me:$LINENO: result: no" >&5
2399 $as_echo "no" >&6; }
2400 SET_MAKE
="MAKE=${MAKE-make}"
2403 rm -rf .tst
2>/dev
/null
2404 mkdir .tst
2>/dev
/null
2405 if test -d .tst
; then
2410 rmdir .tst
2>/dev
/null
2412 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2413 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2414 # is not polluted with repeated "-I."
2415 am__isrc
=' -I$(srcdir)'
2416 # test to see if srcdir already configured
2417 if test -f $srcdir/config.status
; then
2418 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2419 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2420 { (exit 1); exit 1; }; }
2424 # test whether we have cygpath
2425 if test -z "$CYGPATH_W"; then
2426 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2427 CYGPATH_W
='cygpath -w'
2434 # Define the identity of the package.
2439 # Some tools Automake needs.
2441 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2444 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2447 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2450 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2453 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2455 install_sh
=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2457 # Installed binaries are usually stripped using `strip' when the user
2458 # run `make install-strip'. However `strip' might not be the right
2459 # tool to use in cross-compilation environments, therefore Automake
2460 # will honor the `STRIP' environment variable to overrule this program.
2461 if test "$cross_compiling" != no
; then
2462 if test -n "$ac_tool_prefix"; then
2463 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2464 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2465 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2466 $as_echo_n "checking for $ac_word... " >&6; }
2467 if test "${ac_cv_prog_STRIP+set}" = set; then
2468 $as_echo_n "(cached) " >&6
2470 if test -n "$STRIP"; then
2471 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2477 test -z "$as_dir" && as_dir
=.
2478 for ac_exec_ext
in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2481 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 STRIP
=$ac_cv_prog_STRIP
2491 if test -n "$STRIP"; then
2492 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2493 $as_echo "$STRIP" >&6; }
2495 { $as_echo "$as_me:$LINENO: result: no" >&5
2496 $as_echo "no" >&6; }
2501 if test -z "$ac_cv_prog_STRIP"; then
2503 # Extract the first word of "strip", so it can be a program name with args.
2504 set dummy strip
; ac_word
=$2
2505 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 $as_echo_n "checking for $ac_word... " >&6; }
2507 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2508 $as_echo_n "(cached) " >&6
2510 if test -n "$ac_ct_STRIP"; then
2511 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2517 test -z "$as_dir" && as_dir
=.
2518 for ac_exec_ext
in '' $ac_executable_extensions; do
2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520 ac_cv_prog_ac_ct_STRIP
="strip"
2521 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2531 if test -n "$ac_ct_STRIP"; then
2532 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2533 $as_echo "$ac_ct_STRIP" >&6; }
2535 { $as_echo "$as_me:$LINENO: result: no" >&5
2536 $as_echo "no" >&6; }
2539 if test "x$ac_ct_STRIP" = x
; then
2542 case $cross_compiling:$ac_tool_warned in
2544 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2546 ac_tool_warned
=yes ;;
2551 STRIP
="$ac_cv_prog_STRIP"
2555 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2557 # We need awk for the "check" target. The system "awk" is bad on
2559 # Always define AMTAR for backward compatibility.
2561 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2563 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2570 ac_config_headers
="$ac_config_headers include/libratbox_config.h"
2574 DEPDIR
="${am__leading_dot}deps"
2576 ac_config_commands
="$ac_config_commands depfiles"
2579 am_make
=${MAKE-make}
2580 cat > confinc
<< 'END'
2585 # If we don't find an include directive, just comment out the code.
2586 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2587 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2591 # First try GNU make style include.
2592 echo "include confinc" > confmf
2593 # We grep out `Entering directory' and `Leaving directory'
2594 # messages which can occur if `w' ends up in MAKEFLAGS.
2595 # In particular we don't look at `^make:' because GNU make might
2596 # be invoked under some other name (usually "gmake"), in which
2597 # case it prints its new name instead of `make'.
2598 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2603 # Now try BSD make style include.
2604 if test "$am__include" = "#"; then
2605 echo '.include "confinc"' > confmf
2606 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2607 am__include
=.include
2614 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2615 $as_echo "$_am_result" >&6; }
2616 rm -f confinc confmf
2618 # Check whether --enable-dependency-tracking was given.
2619 if test "${enable_dependency_tracking+set}" = set; then
2620 enableval
=$enable_dependency_tracking;
2623 if test "x$enable_dependency_tracking" != xno
; then
2624 am_depcomp
="$ac_aux_dir/depcomp"
2627 if test "x$enable_dependency_tracking" != xno; then
2637 ac_cpp
='$CPP $CPPFLAGS'
2638 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2639 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2640 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2641 if test -n "$ac_tool_prefix"; then
2642 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2643 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2644 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2645 $as_echo_n "checking for $ac_word... " >&6; }
2646 if test "${ac_cv_prog_CC+set}" = set; then
2647 $as_echo_n "(cached) " >&6
2649 if test -n "$CC"; then
2650 ac_cv_prog_CC
="$CC" # Let the user override the test.
2652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2656 test -z "$as_dir" && as_dir
=.
2657 for ac_exec_ext
in '' $ac_executable_extensions; do
2658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2659 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2660 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 if test -n "$CC"; then
2671 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2672 $as_echo "$CC" >&6; }
2674 { $as_echo "$as_me:$LINENO: result: no" >&5
2675 $as_echo "no" >&6; }
2680 if test -z "$ac_cv_prog_CC"; then
2682 # Extract the first word of "gcc", so it can be a program name with args.
2683 set dummy gcc
; ac_word
=$2
2684 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2685 $as_echo_n "checking for $ac_word... " >&6; }
2686 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2687 $as_echo_n "(cached) " >&6
2689 if test -n "$ac_ct_CC"; then
2690 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2692 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2696 test -z "$as_dir" && as_dir
=.
2697 for ac_exec_ext
in '' $ac_executable_extensions; do
2698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2699 ac_cv_prog_ac_ct_CC
="gcc"
2700 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2710 if test -n "$ac_ct_CC"; then
2711 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2712 $as_echo "$ac_ct_CC" >&6; }
2714 { $as_echo "$as_me:$LINENO: result: no" >&5
2715 $as_echo "no" >&6; }
2718 if test "x$ac_ct_CC" = x
; then
2721 case $cross_compiling:$ac_tool_warned in
2723 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2725 ac_tool_warned
=yes ;;
2733 if test -z "$CC"; then
2734 if test -n "$ac_tool_prefix"; then
2735 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2736 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2737 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2738 $as_echo_n "checking for $ac_word... " >&6; }
2739 if test "${ac_cv_prog_CC+set}" = set; then
2740 $as_echo_n "(cached) " >&6
2742 if test -n "$CC"; then
2743 ac_cv_prog_CC
="$CC" # Let the user override the test.
2745 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2749 test -z "$as_dir" && as_dir
=.
2750 for ac_exec_ext
in '' $ac_executable_extensions; do
2751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2763 if test -n "$CC"; then
2764 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2765 $as_echo "$CC" >&6; }
2767 { $as_echo "$as_me:$LINENO: result: no" >&5
2768 $as_echo "no" >&6; }
2774 if test -z "$CC"; then
2775 # Extract the first word of "cc", so it can be a program name with args.
2776 set dummy cc
; ac_word
=$2
2777 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2778 $as_echo_n "checking for $ac_word... " >&6; }
2779 if test "${ac_cv_prog_CC+set}" = set; then
2780 $as_echo_n "(cached) " >&6
2782 if test -n "$CC"; then
2783 ac_cv_prog_CC
="$CC" # Let the user override the test.
2786 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2790 test -z "$as_dir" && as_dir
=.
2791 for ac_exec_ext
in '' $ac_executable_extensions; do
2792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2794 ac_prog_rejected
=yes
2798 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 if test $ac_prog_rejected = yes; then
2806 # We found a bogon in the path, so make sure we never use it.
2807 set dummy
$ac_cv_prog_CC
2809 if test $# != 0; then
2810 # We chose a different compiler from the bogus one.
2811 # However, it has the same basename, so the bogon will be chosen
2812 # first if we set CC to just the basename; use the full file name.
2814 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2820 if test -n "$CC"; then
2821 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2822 $as_echo "$CC" >&6; }
2824 { $as_echo "$as_me:$LINENO: result: no" >&5
2825 $as_echo "no" >&6; }
2830 if test -z "$CC"; then
2831 if test -n "$ac_tool_prefix"; then
2832 for ac_prog
in cl.exe
2834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2835 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2836 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2837 $as_echo_n "checking for $ac_word... " >&6; }
2838 if test "${ac_cv_prog_CC+set}" = set; then
2839 $as_echo_n "(cached) " >&6
2841 if test -n "$CC"; then
2842 ac_cv_prog_CC
="$CC" # Let the user override the test.
2844 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2848 test -z "$as_dir" && as_dir
=.
2849 for ac_exec_ext
in '' $ac_executable_extensions; do
2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2851 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2852 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 if test -n "$CC"; then
2863 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2864 $as_echo "$CC" >&6; }
2866 { $as_echo "$as_me:$LINENO: result: no" >&5
2867 $as_echo "no" >&6; }
2871 test -n "$CC" && break
2874 if test -z "$CC"; then
2876 for ac_prog
in cl.exe
2878 # Extract the first word of "$ac_prog", so it can be a program name with args.
2879 set dummy
$ac_prog; ac_word
=$2
2880 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2881 $as_echo_n "checking for $ac_word... " >&6; }
2882 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2883 $as_echo_n "(cached) " >&6
2885 if test -n "$ac_ct_CC"; then
2886 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2892 test -z "$as_dir" && as_dir
=.
2893 for ac_exec_ext
in '' $ac_executable_extensions; do
2894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2895 ac_cv_prog_ac_ct_CC
="$ac_prog"
2896 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2906 if test -n "$ac_ct_CC"; then
2907 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2908 $as_echo "$ac_ct_CC" >&6; }
2910 { $as_echo "$as_me:$LINENO: result: no" >&5
2911 $as_echo "no" >&6; }
2915 test -n "$ac_ct_CC" && break
2918 if test "x$ac_ct_CC" = x
; then
2921 case $cross_compiling:$ac_tool_warned in
2923 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2925 ac_tool_warned
=yes ;;
2934 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2936 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2937 See \`config.log' for more details." >&5
2938 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2939 See \`config.log' for more details." >&2;}
2940 { (exit 1); exit 1; }; }; }
2942 # Provide some information about the compiler.
2943 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2946 { (ac_try
="$ac_compiler --version >&5"
2948 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2952 $as_echo "$ac_try_echo") >&5
2953 (eval "$ac_compiler --version >&5") 2>&5
2955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }
2957 { (ac_try="$ac_compiler -v >&5"
2959 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2960 *) ac_try_echo
=$ac_try;;
2962 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2963 $as_echo "$ac_try_echo") >&5
2964 (eval "$ac_compiler -v >&5") 2>&5
2966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }
2968 { (ac_try
="$ac_compiler -V >&5"
2970 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2974 $as_echo "$ac_try_echo") >&5
2975 (eval "$ac_compiler -V >&5") 2>&5
2977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }
2980 cat >conftest.$ac_ext <<_ACEOF
2983 cat confdefs.h >>conftest.$ac_ext
2984 cat >>conftest.$ac_ext <<_ACEOF
2985 /* end confdefs.h. */
2995 ac_clean_files_save=$ac_clean_files
2996 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2997 # Try to create an executable without -o first, disregard a.out.
2998 # It will help us diagnose broken compilers, and finding out an intuition
3000 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3001 $as_echo_n "checking for C compiler default output file name... " >&6; }
3002 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3004 # The possible output files:
3005 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3008 for ac_file in $ac_files
3011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3012 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3017 if { (ac_try="$ac_link_default"
3019 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3020 *) ac_try_echo
=$ac_try;;
3022 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3023 $as_echo "$ac_try_echo") >&5
3024 (eval "$ac_link_default") 2>&5
3026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; then
3028 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3029 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3030 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3031 # so that the user can short-circuit this test for compilers unknown to
3033 for ac_file
in $ac_files ''
3035 test -f "$ac_file" || continue
3037 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
)
3040 # We found the default executable, but exeext='' is most
3044 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3046 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3048 # We set ac_cv_exeext here because the later test for it is not
3049 # safe: cross compilers may not add the suffix if given an `-o'
3050 # argument, so we may need to know it at that point already.
3051 # Even if this section looks crufty: it has the advantage of
3058 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3064 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3065 $as_echo "$ac_file" >&6; }
3066 if test -z "$ac_file"; then
3067 $as_echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.
$ac_ext >&5
3070 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3072 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3073 See \`config.log' for more details." >&5
3074 $as_echo "$as_me: error: C compiler cannot create executables
3075 See \`config.log' for more details." >&2;}
3076 { (exit 77); exit 77; }; }; }
3079 ac_exeext
=$ac_cv_exeext
3081 # Check that the compiler produces executables we can run. If not, either
3082 # the compiler is broken, or we cross compile.
3083 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3084 $as_echo_n "checking whether the C compiler works... " >&6; }
3085 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3086 # If not cross compiling, check that we can run a simple program.
3087 if test "$cross_compiling" != yes; then
3088 if { ac_try
='./$ac_file'
3089 { (case "(($ac_try" in
3090 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3094 $as_echo "$ac_try_echo") >&5
3095 (eval "$ac_try") 2>&5
3097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; }; then
3101 if test "$cross_compiling" = maybe; then
3104 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3106 { { $as_echo "$as_me:$LINENO: error
: cannot run C compiled programs.
3107 If you meant to cross compile
, use \
`--host'.
3108 See \`config.log
' for more details." >&5
3109 $as_echo "$as_me: error: cannot run C compiled programs.
3110 If you meant to cross compile, use \`--host'.
3111 See \
`config.log' for more details." >&2;}
3112 { (exit 1); exit 1; }; }; }
3116 { $as_echo "$as_me:$LINENO: result: yes" >&5
3117 $as_echo "yes" >&6; }
3119 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3120 ac_clean_files=$ac_clean_files_save
3121 # Check that the compiler produces executables we can run. If not, either
3122 # the compiler is broken, or we cross compile.
3123 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3124 $as_echo_n "checking whether we are cross compiling... " >&6; }
3125 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3126 $as_echo "$cross_compiling" >&6; }
3128 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3129 $as_echo_n "checking for suffix of executables... " >&6; }
3130 if { (ac_try="$ac_link"
3132 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3133 *) ac_try_echo
=$ac_try;;
3135 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3136 $as_echo "$ac_try_echo") >&5
3137 (eval "$ac_link") 2>&5
3139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; then
3141 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3142 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3143 # work properly (i.e., refer to `conftest.exe'), while it won't with
3145 for ac_file
in conftest.exe conftest conftest.
*; do
3146 test -f "$ac_file" || continue
3148 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
3149 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3155 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3158 See \`config.log' for more details." >&5
3159 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3160 See \`config.log' for more details." >&2;}
3161 { (exit 1); exit 1; }; }; }
3164 rm -f conftest
$ac_cv_exeext
3165 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3166 $as_echo "$ac_cv_exeext" >&6; }
3168 rm -f conftest.
$ac_ext
3169 EXEEXT
=$ac_cv_exeext
3171 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3172 $as_echo_n "checking for suffix of object files... " >&6; }
3173 if test "${ac_cv_objext+set}" = set; then
3174 $as_echo_n "(cached) " >&6
3176 cat >conftest.
$ac_ext <<_ACEOF
3179 cat confdefs.h
>>conftest.
$ac_ext
3180 cat >>conftest.
$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3191 rm -f conftest.o conftest.obj
3192 if { (ac_try
="$ac_compile"
3194 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3198 $as_echo "$ac_try_echo") >&5
3199 (eval "$ac_compile") 2>&5
3201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; then
3203 for ac_file in conftest.o conftest.obj conftest.*; do
3204 test -f "$ac_file" || continue;
3206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3207 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3212 $as_echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3215 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3217 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of object files
: cannot compile
3218 See \
`config.log' for more details." >&5
3219 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3220 See \`config.log
' for more details." >&2;}
3221 { (exit 1); exit 1; }; }; }
3224 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3226 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3227 $as_echo "$ac_cv_objext" >&6; }
3228 OBJEXT=$ac_cv_objext
3230 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3231 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3232 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3233 $as_echo_n "(cached) " >&6
3235 cat >conftest.$ac_ext <<_ACEOF
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3253 rm -f conftest.$ac_objext
3254 if { (ac_try="$ac_compile"
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3260 $as_echo "$ac_try_echo") >&5
3261 (eval "$ac_compile") 2>conftest.er1
3263 grep -v '^
*+' conftest.er1 >conftest.err
3265 cat conftest.err >&5
3266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } && {
3268 test -z "$ac_c_werror_flag" ||
3269 test ! -s conftest.err
3270 } && test -s conftest.$ac_objext; then
3273 $as_echo "$as_me: failed program was:" >&5
3274 sed 's
/^
/| /' conftest.$ac_ext >&5
3279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3280 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3283 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3284 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3285 if test $ac_compiler_gnu = yes; then
3290 ac_test_CFLAGS=${CFLAGS+set}
3291 ac_save_CFLAGS=$CFLAGS
3292 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3293 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3294 if test "${ac_cv_prog_cc_g+set}" = set; then
3295 $as_echo_n "(cached) " >&6
3297 ac_save_c_werror_flag=$ac_c_werror_flag
3298 ac_c_werror_flag=yes
3301 cat >conftest.$ac_ext <<_ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h. */
3316 rm -f conftest.$ac_objext
3317 if { (ac_try="$ac_compile"
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3323 $as_echo "$ac_try_echo") >&5
3324 (eval "$ac_compile") 2>conftest.er1
3326 grep -v '^
*+' conftest.er1 >conftest.err
3328 cat conftest.err >&5
3329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } && {
3331 test -z "$ac_c_werror_flag" ||
3332 test ! -s conftest.err
3333 } && test -s conftest.$ac_objext; then
3336 $as_echo "$as_me: failed program was:" >&5
3337 sed 's
/^
/| /' conftest.$ac_ext >&5
3340 cat >conftest.$ac_ext <<_ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h. */
3355 rm -f conftest.$ac_objext
3356 if { (ac_try="$ac_compile"
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3362 $as_echo "$ac_try_echo") >&5
3363 (eval "$ac_compile") 2>conftest.er1
3365 grep -v '^
*+' conftest.er1 >conftest.err
3367 cat conftest.err >&5
3368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } && {
3370 test -z "$ac_c_werror_flag" ||
3371 test ! -s conftest.err
3372 } && test -s conftest.$ac_objext; then
3375 $as_echo "$as_me: failed program was:" >&5
3376 sed 's
/^
/| /' conftest.$ac_ext >&5
3378 ac_c_werror_flag=$ac_save_c_werror_flag
3380 cat >conftest.$ac_ext <<_ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3395 rm -f conftest.$ac_objext
3396 if { (ac_try="$ac_compile"
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3402 $as_echo "$ac_try_echo") >&5
3403 (eval "$ac_compile") 2>conftest.er1
3405 grep -v '^
*+' conftest.er1 >conftest.err
3407 cat conftest.err >&5
3408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } && {
3410 test -z "$ac_c_werror_flag" ||
3411 test ! -s conftest.err
3412 } && test -s conftest.$ac_objext; then
3415 $as_echo "$as_me: failed program was:" >&5
3416 sed 's
/^
/| /' conftest.$ac_ext >&5
3421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428 ac_c_werror_flag=$ac_save_c_werror_flag
3430 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3431 $as_echo "$ac_cv_prog_cc_g" >&6; }
3432 if test "$ac_test_CFLAGS" = set; then
3433 CFLAGS=$ac_save_CFLAGS
3434 elif test $ac_cv_prog_cc_g = yes; then
3435 if test "$GCC" = yes; then
3441 if test "$GCC" = yes; then
3447 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3448 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3449 if test "${ac_cv_prog_cc_c89+set}" = set; then
3450 $as_echo_n "(cached) " >&6
3452 ac_cv_prog_cc_c89=no
3454 cat >conftest.$ac_ext <<_ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3462 #include <sys/types.h>
3463 #include <sys/stat.h>
3464 /* Most of the following tests are stolen from RCS 5.7's src
/conf.sh.
*/
3465 struct buf
{ int x
; };
3466 FILE
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
3467 static char
*e
(p
, i
)
3473 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
3478 s
= g
(p
, va_arg
(v
,int
));
3483 /* OSF
4.0 Compaq cc is some
sort of almost
-ANSI by default. It has
3484 function prototypes and stuff
, but not
'\xHH' hex character constants.
3485 These don
't provoke an error unfortunately, instead are silently treated
3486 as 'x
'. The following induces an error, until -std is added to get
3487 proper ANSI mode. Curiously '\x00'!='x
' always comes out true, for an
3488 array size at least. It's necessary to
write '\x00'==0 to get something
3489 that
's true only with -std. */
3490 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3492 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3493 inside strings and character constants. */
3495 int xlc6_cc_array[FOO(a) == 'x
' ? 1 : -1];
3497 int test (int i, double x);
3498 struct s1 {int (*f) (int a);};
3499 struct s2 {int (*f) (double a);};
3500 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3506 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3511 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3512 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3514 CC="$ac_save_CC $ac_arg"
3515 rm -f conftest.$ac_objext
3516 if { (ac_try="$ac_compile"
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3522 $as_echo "$ac_try_echo") >&5
3523 (eval "$ac_compile") 2>conftest.er1
3525 grep -v '^
*+' conftest.er1 >conftest.err
3527 cat conftest.err >&5
3528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } && {
3530 test -z "$ac_c_werror_flag" ||
3531 test ! -s conftest.err
3532 } && test -s conftest.$ac_objext; then
3533 ac_cv_prog_cc_c89=$ac_arg
3535 $as_echo "$as_me: failed program was:" >&5
3536 sed 's
/^
/| /' conftest.$ac_ext >&5
3541 rm -f core conftest.err conftest.$ac_objext
3542 test "x$ac_cv_prog_cc_c89" != "xno" && break
3544 rm -f conftest.$ac_ext
3549 case "x$ac_cv_prog_cc_c89" in
3551 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3552 $as_echo "none needed" >&6; } ;;
3554 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3555 $as_echo "unsupported" >&6; } ;;
3557 CC="$CC $ac_cv_prog_cc_c89"
3558 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3559 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3564 ac_cpp='$CPP $CPPFLAGS'
3565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3566 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3569 depcc="$CC" am_compiler_list=
3571 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3572 $as_echo_n "checking dependency style of $depcc... " >&6; }
3573 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3574 $as_echo_n "(cached) " >&6
3576 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3577 # We make a subdir and do the tests there. Otherwise we can end up
3578 # making bogus files that we don't know about and never remove. For
3579 # instance it was reported that on HP-UX the gcc test will end up
3580 # making a dummy file named `D' -- because `-MD' means `put the output
3583 # Copy depcomp to subdir because otherwise we won't find it if we're
3584 # using a relative directory.
3585 cp "$am_depcomp" conftest.dir
3587 # We will build objects and dependencies in a subdirectory because
3588 # it helps to detect inapplicable dependency modes. For instance
3589 # both Tru64's cc and ICC support -MD to output dependencies as a
3590 # side effect of compilation, but ICC will put the dependencies in
3591 # the current directory while Tru64 will put them in the object
3595 am_cv_CC_dependencies_compiler_type
=none
3596 if test "$am_compiler_list" = ""; then
3597 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3599 for depmode
in $am_compiler_list; do
3600 # Setup a source with many dependencies, because some compilers
3601 # like to wrap large dependency lists on column 80 (with \), and
3602 # we should not choose a depcomp mode which is confused by this.
3604 # We need to recreate these files for each test, as the compiler may
3605 # overwrite some of them when testing with obscure command lines.
3606 # This happens at least with the AIX C compiler.
3608 for i
in 1 2 3 4 5 6; do
3609 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3610 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3611 # Solaris 8's {/usr,}/bin/sh.
3612 touch sub
/conftst
$i.h
3614 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3618 # after this tag, mechanisms are not by side-effect, so they'll
3619 # only be used when explicitly requested
3620 if test "x$enable_dependency_tracking" = xyes
; then
3628 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3629 # mode. It turns out that the SunPro C++ compiler does not properly
3630 # handle `-M -o', and we need to detect this.
3631 if depmode
=$depmode \
3632 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3633 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3634 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3635 >/dev
/null
2>conftest.err
&&
3636 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3637 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3638 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3639 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3640 # icc doesn't choke on unknown options, it will just issue warnings
3641 # or remarks (even with -Werror). So we grep stderr for any message
3642 # that says an option was ignored or not supported.
3643 # When given -MP, icc 7.0 and 7.1 complain thusly:
3644 # icc: Command line warning: ignoring option '-M'; no argument required
3645 # The diagnosis changed in icc 8.0:
3646 # icc: Command line remark: option '-MP' not supported
3647 if (grep 'ignoring option' conftest.err
||
3648 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3649 am_cv_CC_dependencies_compiler_type
=$depmode
3658 am_cv_CC_dependencies_compiler_type
=none
3662 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3663 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3664 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3667 test "x$enable_dependency_tracking" != xno \
3668 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3670 am__fastdepCC_FALSE
='#'
3672 am__fastdepCC_TRUE
='#'
3673 am__fastdepCC_FALSE
=
3679 ac_cpp
='$CPP $CPPFLAGS'
3680 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3683 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3684 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3685 # On Suns, sometimes $CPP names a directory.
3686 if test -n "$CPP" && test -d "$CPP"; then
3689 if test -z "$CPP"; then
3690 if test "${ac_cv_prog_CPP+set}" = set; then
3691 $as_echo_n "(cached) " >&6
3693 # Double quotes because CPP needs to be expanded
3694 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3697 for ac_c_preproc_warn_flag
in '' yes
3699 # Use a header file that comes with gcc, so configuring glibc
3700 # with a fresh cross-compiler works.
3701 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3702 # <limits.h> exists even on freestanding compilers.
3703 # On the NeXT, cc -E runs the code through the compiler's parser,
3704 # not just through cpp. "Syntax error" is here to catch this case.
3705 cat >conftest.
$ac_ext <<_ACEOF
3708 cat confdefs.h
>>conftest.
$ac_ext
3709 cat >>conftest.
$ac_ext <<_ACEOF
3710 /* end confdefs.h. */
3712 # include <limits.h>
3714 # include <assert.h>
3718 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3720 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3724 $as_echo "$ac_try_echo") >&5
3725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3727 grep -v '^ *+' conftest.er1 >conftest.err
3729 cat conftest.err >&5
3730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } >/dev/null && {
3732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3733 test ! -s conftest.err
3737 $as_echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3740 # Broken: fails on valid input.
3744 rm -f conftest.err conftest.$ac_ext
3746 # OK, works on sane cases. Now check whether nonexistent headers
3747 # can be detected and how.
3748 cat >conftest.$ac_ext <<_ACEOF
3751 cat confdefs.h >>conftest.$ac_ext
3752 cat >>conftest.$ac_ext <<_ACEOF
3753 /* end confdefs.h. */
3754 #include <ac_nonexistent.h>
3756 if { (ac_try="$ac_cpp conftest.$ac_ext"
3758 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3759 *) ac_try_echo
=$ac_try;;
3761 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3762 $as_echo "$ac_try_echo") >&5
3763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3765 grep -v '^ *+' conftest.er1
>conftest.err
3767 cat conftest.err
>&5
3768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); } >/dev
/null
&& {
3770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3771 test ! -s conftest.err
3773 # Broken: success on invalid input.
3776 $as_echo "$as_me: failed program was:" >&5
3777 sed 's/^/| /' conftest.
$ac_ext >&5
3779 # Passes both tests.
3784 rm -f conftest.err conftest.
$ac_ext
3787 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3788 rm -f conftest.err conftest.
$ac_ext
3789 if $ac_preproc_ok; then
3801 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3802 $as_echo "$CPP" >&6; }
3804 for ac_c_preproc_warn_flag
in '' yes
3806 # Use a header file that comes with gcc, so configuring glibc
3807 # with a fresh cross-compiler works.
3808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3809 # <limits.h> exists even on freestanding compilers.
3810 # On the NeXT, cc -E runs the code through the compiler's parser,
3811 # not just through cpp. "Syntax error" is here to catch this case.
3812 cat >conftest.
$ac_ext <<_ACEOF
3815 cat confdefs.h
>>conftest.
$ac_ext
3816 cat >>conftest.
$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3819 # include <limits.h>
3821 # include <assert.h>
3825 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3827 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3831 $as_echo "$ac_try_echo") >&5
3832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3834 grep -v '^ *+' conftest.er1 >conftest.err
3836 cat conftest.err >&5
3837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } >/dev/null && {
3839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3840 test ! -s conftest.err
3844 $as_echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3847 # Broken: fails on valid input.
3851 rm -f conftest.err conftest.$ac_ext
3853 # OK, works on sane cases. Now check whether nonexistent headers
3854 # can be detected and how.
3855 cat >conftest.$ac_ext <<_ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h. */
3861 #include <ac_nonexistent.h>
3863 if { (ac_try="$ac_cpp conftest.$ac_ext"
3865 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3866 *) ac_try_echo
=$ac_try;;
3868 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3869 $as_echo "$ac_try_echo") >&5
3870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3872 grep -v '^ *+' conftest.er1
>conftest.err
3874 cat conftest.err
>&5
3875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } >/dev
/null
&& {
3877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3878 test ! -s conftest.err
3880 # Broken: success on invalid input.
3883 $as_echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.
$ac_ext >&5
3886 # Passes both tests.
3891 rm -f conftest.err conftest.
$ac_ext
3894 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3895 rm -f conftest.err conftest.
$ac_ext
3896 if $ac_preproc_ok; then
3899 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3901 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3902 See \`config.log' for more details." >&5
3903 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3904 See \`config.log' for more details." >&2;}
3905 { (exit 1); exit 1; }; }; }
3909 ac_cpp
='$CPP $CPPFLAGS'
3910 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3915 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3916 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3917 if test "${ac_cv_path_GREP+set}" = set; then
3918 $as_echo_n "(cached) " >&6
3920 if test -z "$GREP"; then
3921 ac_path_GREP_found
=false
3922 # Loop through the user's path and test for each of PROGNAME-LIST
3923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3924 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3927 test -z "$as_dir" && as_dir
=.
3928 for ac_prog
in grep ggrep
; do
3929 for ac_exec_ext
in '' $ac_executable_extensions; do
3930 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3931 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3932 # Check for GNU ac_path_GREP and select it if it is found.
3933 # Check for GNU $ac_path_GREP
3934 case `"$ac_path_GREP" --version 2>&1` in
3936 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3939 $as_echo_n 0123456789 >"conftest.in"
3942 cat "conftest.in" "conftest.in" >"conftest.tmp"
3943 mv "conftest.tmp" "conftest.in"
3944 cp "conftest.in" "conftest.nl"
3945 $as_echo 'GREP' >> "conftest.nl"
3946 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3947 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3948 ac_count
=`expr $ac_count + 1`
3949 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3950 # Best one so far, save it but keep looking for a better one
3951 ac_cv_path_GREP
="$ac_path_GREP"
3952 ac_path_GREP_max
=$ac_count
3954 # 10*(2^10) chars as input seems more than enough
3955 test $ac_count -gt 10 && break
3957 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3960 $ac_path_GREP_found && break 3
3965 if test -z "$ac_cv_path_GREP"; then
3966 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3967 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3968 { (exit 1); exit 1; }; }
3971 ac_cv_path_GREP
=$GREP
3975 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3976 $as_echo "$ac_cv_path_GREP" >&6; }
3977 GREP
="$ac_cv_path_GREP"
3980 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3981 $as_echo_n "checking for egrep... " >&6; }
3982 if test "${ac_cv_path_EGREP+set}" = set; then
3983 $as_echo_n "(cached) " >&6
3985 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
3986 then ac_cv_path_EGREP
="$GREP -E"
3988 if test -z "$EGREP"; then
3989 ac_path_EGREP_found
=false
3990 # Loop through the user's path and test for each of PROGNAME-LIST
3991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3992 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3995 test -z "$as_dir" && as_dir
=.
3996 for ac_prog
in egrep; do
3997 for ac_exec_ext
in '' $ac_executable_extensions; do
3998 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3999 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4000 # Check for GNU ac_path_EGREP and select it if it is found.
4001 # Check for GNU $ac_path_EGREP
4002 case `"$ac_path_EGREP" --version 2>&1` in
4004 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4007 $as_echo_n 0123456789 >"conftest.in"
4010 cat "conftest.in" "conftest.in" >"conftest.tmp"
4011 mv "conftest.tmp" "conftest.in"
4012 cp "conftest.in" "conftest.nl"
4013 $as_echo 'EGREP' >> "conftest.nl"
4014 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4015 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4016 ac_count
=`expr $ac_count + 1`
4017 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4018 # Best one so far, save it but keep looking for a better one
4019 ac_cv_path_EGREP
="$ac_path_EGREP"
4020 ac_path_EGREP_max
=$ac_count
4022 # 10*(2^10) chars as input seems more than enough
4023 test $ac_count -gt 10 && break
4025 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4028 $ac_path_EGREP_found && break 3
4033 if test -z "$ac_cv_path_EGREP"; then
4034 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4035 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4036 { (exit 1); exit 1; }; }
4039 ac_cv_path_EGREP
=$EGREP
4044 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4045 $as_echo "$ac_cv_path_EGREP" >&6; }
4046 EGREP
="$ac_cv_path_EGREP"
4049 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4050 $as_echo_n "checking for ANSI C header files... " >&6; }
4051 if test "${ac_cv_header_stdc+set}" = set; then
4052 $as_echo_n "(cached) " >&6
4054 cat >conftest.
$ac_ext <<_ACEOF
4057 cat confdefs.h
>>conftest.
$ac_ext
4058 cat >>conftest.
$ac_ext <<_ACEOF
4059 /* end confdefs.h. */
4073 rm -f conftest.
$ac_objext
4074 if { (ac_try
="$ac_compile"
4076 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4080 $as_echo "$ac_try_echo") >&5
4081 (eval "$ac_compile") 2>conftest.er1
4083 grep -v '^ *+' conftest.er1 >conftest.err
4085 cat conftest.err >&5
4086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } && {
4088 test -z "$ac_c_werror_flag" ||
4089 test ! -s conftest.err
4090 } && test -s conftest.$ac_objext; then
4091 ac_cv_header_stdc=yes
4093 $as_echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4096 ac_cv_header_stdc=no
4099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 if test $ac_cv_header_stdc = yes; then
4102 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4103 cat >conftest.$ac_ext <<_ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4113 $EGREP "memchr" >/dev/null 2>&1; then
4116 ac_cv_header_stdc=no
4122 if test $ac_cv_header_stdc = yes; then
4123 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4124 cat >conftest.$ac_ext <<_ACEOF
4127 cat confdefs.h >>conftest.$ac_ext
4128 cat >>conftest.$ac_ext <<_ACEOF
4129 /* end confdefs.h. */
4133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4134 $EGREP "free" >/dev/null 2>&1; then
4137 ac_cv_header_stdc=no
4143 if test $ac_cv_header_stdc = yes; then
4144 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4145 if test "$cross_compiling" = yes; then
4148 cat >conftest.$ac_ext <<_ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h. */
4156 #if ((' ' & 0x0FF) == 0x020)
4157 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4158 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4160 # define ISLOWER(c) \
4161 (('a' <= (c) && (c) <= 'i') \
4162 || ('j' <= (c) && (c) <= 'r') \
4163 || ('s' <= (c) && (c) <= 'z'))
4164 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4167 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4172 for (i = 0; i < 256; i++)
4173 if (XOR (islower (i), ISLOWER (i))
4174 || toupper (i) != TOUPPER (i))
4179 rm -f conftest$ac_exeext
4180 if { (ac_try="$ac_link"
4182 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4183 *) ac_try_echo
=$ac_try;;
4185 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4186 $as_echo "$ac_try_echo") >&5
4187 (eval "$ac_link") 2>&5
4189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4191 { (case "(($ac_try" in
4192 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4196 $as_echo "$ac_try_echo") >&5
4197 (eval "$ac_try") 2>&5
4199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4203 $as_echo "$as_me: program exited with status $ac_status" >&5
4204 $as_echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4208 ac_cv_header_stdc=no
4210 rm -rf conftest.dSYM
4211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4217 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4218 $as_echo "$ac_cv_header_stdc" >&6; }
4219 if test $ac_cv_header_stdc = yes; then
4221 cat >>confdefs.h <<\_ACEOF
4222 #define STDC_HEADERS 1
4227 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4237 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4238 inttypes.h stdint.h unistd.h
4240 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4241 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4242 $as_echo_n "checking for $ac_header... " >&6; }
4243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4244 $as_echo_n "(cached) " >&6
4246 cat >conftest.$ac_ext <<_ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h. */
4252 $ac_includes_default
4254 #include <$ac_header>
4256 rm -f conftest.$ac_objext
4257 if { (ac_try="$ac_compile"
4259 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4260 *) ac_try_echo
=$ac_try;;
4262 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4263 $as_echo "$ac_try_echo") >&5
4264 (eval "$ac_compile") 2>conftest.er1
4266 grep -v '^ *+' conftest.er1
>conftest.err
4268 cat conftest.err
>&5
4269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } && {
4271 test -z "$ac_c_werror_flag" ||
4272 test ! -s conftest.err
4273 } && test -s conftest.
$ac_objext; then
4274 eval "$as_ac_Header=yes"
4276 $as_echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.
$ac_ext >&5
4279 eval "$as_ac_Header=no"
4282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4284 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4285 $as_echo "$as_val"'`
4286 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4287 $as_echo "$ac_res" >&6; }
4288 as_val
=`eval 'as_val=${'$as_ac_Header'}
4289 $as_echo "$as_val"'`
4290 if test "x$as_val" = x
""yes; then
4291 cat >>confdefs.h
<<_ACEOF
4292 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4301 if test "${ac_cv_header_minix_config_h+set}" = set; then
4302 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4303 $as_echo_n "checking for minix/config.h... " >&6; }
4304 if test "${ac_cv_header_minix_config_h+set}" = set; then
4305 $as_echo_n "(cached) " >&6
4307 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4308 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4310 # Is the header compilable?
4311 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4312 $as_echo_n "checking minix/config.h usability... " >&6; }
4313 cat >conftest.
$ac_ext <<_ACEOF
4316 cat confdefs.h
>>conftest.
$ac_ext
4317 cat >>conftest.
$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4319 $ac_includes_default
4320 #include <minix/config.h>
4322 rm -f conftest.
$ac_objext
4323 if { (ac_try
="$ac_compile"
4325 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4329 $as_echo "$ac_try_echo") >&5
4330 (eval "$ac_compile") 2>conftest.er1
4332 grep -v '^ *+' conftest.er1 >conftest.err
4334 cat conftest.err >&5
4335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); } && {
4337 test -z "$ac_c_werror_flag" ||
4338 test ! -s conftest.err
4339 } && test -s conftest.$ac_objext; then
4340 ac_header_compiler=yes
4342 $as_echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4345 ac_header_compiler=no
4348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4349 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4350 $as_echo "$ac_header_compiler" >&6; }
4352 # Is the header present?
4353 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4354 $as_echo_n "checking minix/config.h presence... " >&6; }
4355 cat >conftest.$ac_ext <<_ACEOF
4358 cat confdefs.h >>conftest.$ac_ext
4359 cat >>conftest.$ac_ext <<_ACEOF
4360 /* end confdefs.h. */
4361 #include <minix/config.h>
4363 if { (ac_try="$ac_cpp conftest.$ac_ext"
4365 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4366 *) ac_try_echo
=$ac_try;;
4368 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4369 $as_echo "$ac_try_echo") >&5
4370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4372 grep -v '^ *+' conftest.er1
>conftest.err
4374 cat conftest.err
>&5
4375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } >/dev
/null
&& {
4377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4378 test ! -s conftest.err
4380 ac_header_preproc
=yes
4382 $as_echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.
$ac_ext >&5
4385 ac_header_preproc
=no
4388 rm -f conftest.err conftest.
$ac_ext
4389 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4390 $as_echo "$ac_header_preproc" >&6; }
4392 # So? What about this header?
4393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4395 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4396 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4397 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4398 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4399 ac_header_preproc
=yes
4402 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4403 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4404 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4405 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4406 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4407 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4408 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4409 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4410 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4411 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4412 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4413 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4417 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4418 $as_echo_n "checking for minix/config.h... " >&6; }
4419 if test "${ac_cv_header_minix_config_h+set}" = set; then
4420 $as_echo_n "(cached) " >&6
4422 ac_cv_header_minix_config_h
=$ac_header_preproc
4424 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4425 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4428 if test "x$ac_cv_header_minix_config_h" = x
""yes; then
4435 if test "$MINIX" = yes; then
4437 cat >>confdefs.h
<<\_ACEOF
4438 #define _POSIX_SOURCE 1
4442 cat >>confdefs.h
<<\_ACEOF
4443 #define _POSIX_1_SOURCE 2
4447 cat >>confdefs.h
<<\_ACEOF
4455 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4456 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4457 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4458 $as_echo_n "(cached) " >&6
4460 cat >conftest.
$ac_ext <<_ACEOF
4463 cat confdefs.h
>>conftest.
$ac_ext
4464 cat >>conftest.
$ac_ext <<_ACEOF
4465 /* end confdefs.h. */
4467 # define __EXTENSIONS__ 1
4468 $ac_includes_default
4477 rm -f conftest.
$ac_objext
4478 if { (ac_try
="$ac_compile"
4480 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4484 $as_echo "$ac_try_echo") >&5
4485 (eval "$ac_compile") 2>conftest.er1
4487 grep -v '^ *+' conftest.er1 >conftest.err
4489 cat conftest.err >&5
4490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } && {
4492 test -z "$ac_c_werror_flag" ||
4493 test ! -s conftest.err
4494 } && test -s conftest.$ac_objext; then
4495 ac_cv_safe_to_define___extensions__=yes
4497 $as_echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4500 ac_cv_safe_to_define___extensions__=no
4503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4505 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4506 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4507 test $ac_cv_safe_to_define___extensions__ = yes &&
4508 cat >>confdefs.h <<\_ACEOF
4509 #define __EXTENSIONS__ 1
4512 cat >>confdefs.h <<\_ACEOF
4513 #define _ALL_SOURCE 1
4516 cat >>confdefs.h <<\_ACEOF
4517 #define _GNU_SOURCE 1
4520 cat >>confdefs.h <<\_ACEOF
4521 #define _POSIX_PTHREAD_SEMANTICS 1
4524 cat >>confdefs.h <<\_ACEOF
4525 #define _TANDEM_SOURCE 1
4530 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4531 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4532 if test "${ac_cv_prog_cc_c99+set}" = set; then
4533 $as_echo_n "(cached) " >&6
4535 ac_cv_prog_cc_c99=no
4537 cat >conftest.$ac_ext <<_ACEOF
4540 cat confdefs.h >>conftest.$ac_ext
4541 cat >>conftest.$ac_ext <<_ACEOF
4542 /* end confdefs.h. */
4544 #include <stdbool.h>
4549 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4550 #define debug(...) fprintf (stderr, __VA_ARGS__)
4551 #define showlist(...) puts (#__VA_ARGS__)
4552 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4554 test_varargs_macros (void)
4559 debug ("X = %d\n", x);
4560 showlist (The first, second, and third items.);
4561 report (x>y, "x is %d but y is %d", x, y);
4564 // Check long long types.
4565 #define BIG64 18446744073709551615ull
4566 #define BIG32 4294967295ul
4567 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4569 your preprocessor is broken;
4573 your preprocessor is broken;
4575 static long long int bignum = -9223372036854775807LL;
4576 static unsigned long long int ubignum = BIG64;
4578 struct incomplete_array
4586 const wchar_t *name;
4590 typedef const char *ccp;
4593 test_restrict (ccp restrict text)
4595 // See if C++-style comments work.
4596 // Iterate through items via the restricted pointer.
4597 // Also check for declarations in for loops.
4598 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4603 // Check varargs and va_copy.
4605 test_varargs (const char *format, ...)
4608 va_start (args, format);
4610 va_copy (args_copy, args);
4621 str = va_arg (args_copy, const char *);
4624 number = va_arg (args_copy, int);
4627 fnumber = va_arg (args_copy, double);
4642 _Bool success = false;
4645 if (test_restrict ("String literal") == 0)
4647 char *restrict newvar = "Another string";
4650 test_varargs ("s, d' f .", "string", 65, 34.234);
4651 test_varargs_macros ();
4653 // Check flexible array members.
4654 struct incomplete_array *ia =
4655 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4657 for (int i = 0; i < ia->datasize; ++i)
4658 ia->data[i] = i * 1.234;
4660 // Check named initializers.
4661 struct named_init ni = {
4663 .name = L"Test wide string",
4664 .average = 543.34343,
4669 int dynamic_array[ni.number];
4670 dynamic_array[ni.number - 1] = 543;
4672 // work around unused variable warnings
4673 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4674 || dynamic_array[ni.number - 1] != 543);
4680 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4682 CC="$ac_save_CC $ac_arg"
4683 rm -f conftest.$ac_objext
4684 if { (ac_try="$ac_compile"
4686 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4687 *) ac_try_echo
=$ac_try;;
4689 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4690 $as_echo "$ac_try_echo") >&5
4691 (eval "$ac_compile") 2>conftest.er1
4693 grep -v '^ *+' conftest.er1
>conftest.err
4695 cat conftest.err
>&5
4696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); } && {
4698 test -z "$ac_c_werror_flag" ||
4699 test ! -s conftest.err
4700 } && test -s conftest.
$ac_objext; then
4701 ac_cv_prog_cc_c99
=$ac_arg
4703 $as_echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.
$ac_ext >&5
4709 rm -f core conftest.err conftest.
$ac_objext
4710 test "x$ac_cv_prog_cc_c99" != "xno" && break
4712 rm -f conftest.
$ac_ext
4717 case "x$ac_cv_prog_cc_c99" in
4719 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4720 $as_echo "none needed" >&6; } ;;
4722 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4723 $as_echo "unsupported" >&6; } ;;
4725 CC
="$CC $ac_cv_prog_cc_c99"
4726 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4727 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4733 if test x
"$ac_cv_prog_cc_c99" = "xno"; then
4734 { { $as_echo "$as_me:$LINENO: error: ircd-ratbox requires a C99 capable compiler" >&5
4735 $as_echo "$as_me: error: ircd-ratbox requires a C99 capable compiler" >&2;}
4736 { (exit 1); exit 1; }; }
4740 # Find a good install program. We prefer a C program (faster),
4741 # so one script is as good as another. But avoid the broken or
4742 # incompatible versions:
4743 # SysV /etc/install, /usr/sbin/install
4744 # SunOS /usr/etc/install
4745 # IRIX /sbin/install
4747 # AmigaOS /C/install, which installs bootblocks on floppy discs
4748 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4749 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4750 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4751 # OS/2's system install, which has a completely different semantic
4752 # ./install, which can be erroneously created by make from ./install.sh.
4753 # Reject install programs that cannot install multiple files.
4754 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4755 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4756 if test -z "$INSTALL"; then
4757 if test "${ac_cv_path_install+set}" = set; then
4758 $as_echo_n "(cached) " >&6
4760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4764 test -z "$as_dir" && as_dir
=.
4765 # Account for people who put trailing slashes in PATH elements.
4767 .
/ | .
// | /cC
/* | \
4768 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
4769 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4772 # OSF1 and SCO ODT 3.0 have their own names for install.
4773 # Don't use installbsd from OSF since it installs stuff as root
4775 for ac_prog
in ginstall scoinst
install; do
4776 for ac_exec_ext
in '' $ac_executable_extensions; do
4777 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4778 if test $ac_prog = install &&
4779 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4780 # AIX install. It has an incompatible calling convention.
4782 elif test $ac_prog = install &&
4783 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4784 # program-specific install script used by HP pwplus--don't use.
4787 rm -rf conftest.one conftest.two conftest.dir
4788 echo one
> conftest.one
4789 echo two
> conftest.two
4791 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4792 test -s conftest.one
&& test -s conftest.two
&&
4793 test -s conftest.dir
/conftest.one
&&
4794 test -s conftest.dir
/conftest.two
4796 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4809 rm -rf conftest.one conftest.two conftest.dir
4812 if test "${ac_cv_path_install+set}" = set; then
4813 INSTALL
=$ac_cv_path_install
4815 # As a last resort, use the slow shell script. Don't cache a
4816 # value for INSTALL within a source directory, because that will
4817 # break other packages using the cache if that directory is
4818 # removed, or if the value is a relative name.
4819 INSTALL
=$ac_install_sh
4822 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4823 $as_echo "$INSTALL" >&6; }
4825 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4826 # It thinks the first close brace ends the variable substitution.
4827 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4829 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4831 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4833 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4834 $as_echo_n "checking for egrep... " >&6; }
4835 if test "${ac_cv_path_EGREP+set}" = set; then
4836 $as_echo_n "(cached) " >&6
4838 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
4839 then ac_cv_path_EGREP
="$GREP -E"
4841 if test -z "$EGREP"; then
4842 ac_path_EGREP_found
=false
4843 # Loop through the user's path and test for each of PROGNAME-LIST
4844 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4845 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4848 test -z "$as_dir" && as_dir
=.
4849 for ac_prog
in egrep; do
4850 for ac_exec_ext
in '' $ac_executable_extensions; do
4851 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4852 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4853 # Check for GNU ac_path_EGREP and select it if it is found.
4854 # Check for GNU $ac_path_EGREP
4855 case `"$ac_path_EGREP" --version 2>&1` in
4857 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4860 $as_echo_n 0123456789 >"conftest.in"
4863 cat "conftest.in" "conftest.in" >"conftest.tmp"
4864 mv "conftest.tmp" "conftest.in"
4865 cp "conftest.in" "conftest.nl"
4866 $as_echo 'EGREP' >> "conftest.nl"
4867 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4868 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4869 ac_count
=`expr $ac_count + 1`
4870 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4871 # Best one so far, save it but keep looking for a better one
4872 ac_cv_path_EGREP
="$ac_path_EGREP"
4873 ac_path_EGREP_max
=$ac_count
4875 # 10*(2^10) chars as input seems more than enough
4876 test $ac_count -gt 10 && break
4878 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4881 $ac_path_EGREP_found && break 3
4886 if test -z "$ac_cv_path_EGREP"; then
4887 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4888 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4889 { (exit 1); exit 1; }; }
4892 ac_cv_path_EGREP
=$EGREP
4897 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4898 $as_echo "$ac_cv_path_EGREP" >&6; }
4899 EGREP
="$ac_cv_path_EGREP"
4902 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4903 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4904 if test "${ac_cv_path_SED+set}" = set; then
4905 $as_echo_n "(cached) " >&6
4907 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4908 for ac_i
in 1 2 3 4 5 6 7; do
4909 ac_script
="$ac_script$as_nl$ac_script"
4911 echo "$ac_script" 2>/dev
/null
| sed 99q
>conftest.
sed
4912 $as_unset ac_script
|| ac_script
=
4913 if test -z "$SED"; then
4914 ac_path_SED_found
=false
4915 # Loop through the user's path and test for each of PROGNAME-LIST
4916 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4920 test -z "$as_dir" && as_dir
=.
4921 for ac_prog
in sed gsed
; do
4922 for ac_exec_ext
in '' $ac_executable_extensions; do
4923 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4924 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4925 # Check for GNU ac_path_SED and select it if it is found.
4926 # Check for GNU $ac_path_SED
4927 case `"$ac_path_SED" --version 2>&1` in
4929 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4932 $as_echo_n 0123456789 >"conftest.in"
4935 cat "conftest.in" "conftest.in" >"conftest.tmp"
4936 mv "conftest.tmp" "conftest.in"
4937 cp "conftest.in" "conftest.nl"
4938 $as_echo '' >> "conftest.nl"
4939 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4940 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4941 ac_count
=`expr $ac_count + 1`
4942 if test $ac_count -gt ${ac_path_SED_max-0}; then
4943 # Best one so far, save it but keep looking for a better one
4944 ac_cv_path_SED
="$ac_path_SED"
4945 ac_path_SED_max
=$ac_count
4947 # 10*(2^10) chars as input seems more than enough
4948 test $ac_count -gt 10 && break
4950 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4953 $ac_path_SED_found && break 3
4958 if test -z "$ac_cv_path_SED"; then
4959 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4960 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4961 { (exit 1); exit 1; }; }
4968 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4969 $as_echo "$ac_cv_path_SED" >&6; }
4970 SED
="$ac_cv_path_SED"
4978 # Check whether --enable-static was given.
4979 if test "${enable_static+set}" = set; then
4980 enableval
=$enable_static; p
=${PACKAGE-default}
4982 yes) enable_static
=yes ;;
4983 no
) enable_static
=no
;;
4986 # Look at the argument we got. We use all the common list separators.
4987 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
4988 for pkg
in $enableval; do
4990 if test "X$pkg" = "X$p"; then
5003 # Check whether --enable-shared was given.
5004 if test "${enable_shared+set}" = set; then
5005 enableval
=$enable_shared; p
=${PACKAGE-default}
5007 yes) enable_shared
=yes ;;
5008 no
) enable_shared
=no
;;
5011 # Look at the argument we got. We use all the common list separators.
5012 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
5013 for pkg
in $enableval; do
5015 if test "X$pkg" = "X$p"; then
5027 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5028 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5029 # Check whether --enable-maintainer-mode was given.
5030 if test "${enable_maintainer_mode+set}" = set; then
5031 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
5033 USE_MAINTAINER_MODE
=no
5036 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5037 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5038 if test $USE_MAINTAINER_MODE = yes; then
5039 MAINTAINER_MODE_TRUE
=
5040 MAINTAINER_MODE_FALSE
='#'
5042 MAINTAINER_MODE_TRUE
='#'
5043 MAINTAINER_MODE_FALSE
=
5046 MAINT
=$MAINTAINER_MODE_TRUE
5050 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
5051 $as_echo_n "checking for library containing strerror... " >&6; }
5052 if test "${ac_cv_search_strerror+set}" = set; then
5053 $as_echo_n "(cached) " >&6
5055 ac_func_search_save_LIBS
=$LIBS
5056 cat >conftest.
$ac_ext <<_ACEOF
5059 cat confdefs.h
>>conftest.
$ac_ext
5060 cat >>conftest.
$ac_ext <<_ACEOF
5061 /* end confdefs.h. */
5063 /* Override any GCC internal prototype to avoid an error.
5064 Use char because int might match the return type of a GCC
5065 builtin and then its argument prototype would still apply. */
5078 for ac_lib
in '' cposix
; do
5079 if test -z "$ac_lib"; then
5080 ac_res
="none required"
5083 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5085 rm -f conftest.
$ac_objext conftest
$ac_exeext
5086 if { (ac_try
="$ac_link"
5088 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5089 *) ac_try_echo=$ac_try;;
5091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5092 $as_echo "$ac_try_echo") >&5
5093 (eval "$ac_link") 2>conftest.er1
5095 grep -v '^ *+' conftest.er1 >conftest.err
5097 cat conftest.err >&5
5098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); } && {
5100 test -z "$ac_c_werror_flag" ||
5101 test ! -s conftest.err
5102 } && test -s conftest$ac_exeext && {
5103 test "$cross_compiling" = yes ||
5104 $as_test_x conftest$ac_exeext
5106 ac_cv_search_strerror=$ac_res
5108 $as_echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5114 rm -rf conftest.dSYM
5115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5117 if test "${ac_cv_search_strerror+set}" = set; then
5121 if test "${ac_cv_search_strerror+set}" = set; then
5124 ac_cv_search_strerror=no
5127 LIBS=$ac_func_search_save_LIBS
5129 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5130 $as_echo "$ac_cv_search_strerror" >&6; }
5131 ac_res=$ac_cv_search_strerror
5132 if test "$ac_res" != no; then
5133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5137 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5138 $as_echo_n "checking for inline... " >&6; }
5139 if test "${ac_cv_c_inline+set}" = set; then
5140 $as_echo_n "(cached) " >&6
5143 for ac_kw in inline __inline__ __inline; do
5144 cat >conftest.$ac_ext <<_ACEOF
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5152 static $ac_kw foo_t static_foo () {return 0; }
5153 $ac_kw foo_t foo () {return 0; }
5157 rm -f conftest.$ac_objext
5158 if { (ac_try="$ac_compile"
5160 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5161 *) ac_try_echo
=$ac_try;;
5163 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5164 $as_echo "$ac_try_echo") >&5
5165 (eval "$ac_compile") 2>conftest.er1
5167 grep -v '^ *+' conftest.er1
>conftest.err
5169 cat conftest.err
>&5
5170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); } && {
5172 test -z "$ac_c_werror_flag" ||
5173 test ! -s conftest.err
5174 } && test -s conftest.
$ac_objext; then
5175 ac_cv_c_inline
=$ac_kw
5177 $as_echo "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.
$ac_ext >&5
5183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5184 test "$ac_cv_c_inline" != no
&& break
5188 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5189 $as_echo "$ac_cv_c_inline" >&6; }
5192 case $ac_cv_c_inline in
5195 case $ac_cv_c_inline in
5197 *) ac_val
=$ac_cv_c_inline;;
5199 cat >>confdefs.h
<<_ACEOF
5201 #define inline $ac_val
5207 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5208 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5209 if test "${ac_cv_c_const+set}" = set; then
5210 $as_echo_n "(cached) " >&6
5212 cat >conftest.
$ac_ext <<_ACEOF
5215 cat confdefs.h
>>conftest.
$ac_ext
5216 cat >>conftest.
$ac_ext <<_ACEOF
5217 /* end confdefs.h. */
5222 /* FIXME: Include the comments suggested by Paul. */
5224 /* Ultrix mips cc rejects this. */
5225 typedef int charset[2];
5227 /* SunOS 4.1.1 cc rejects this. */
5228 char const *const *pcpcc;
5230 /* NEC SVR4.0.2 mips cc rejects this. */
5231 struct point {int x, y;};
5232 static struct point const zero = {0,0};
5233 /* AIX XL C 1.02.0.0 rejects this.
5234 It does not let you subtract one const X* pointer from another in
5235 an arm of an if-expression whose if-part is not a constant
5237 const char *g = "string";
5238 pcpcc = &g + (g ? g-g : 0);
5239 /* HPUX 7.0 cc rejects these. */
5241 ppc = (char**) pcpcc;
5242 pcpcc = (char const *const *) ppc;
5243 { /* SCO 3.2v4 cc rejects this. */
5245 char const *s = 0 ? (char *) 0 : (char const *) 0;
5250 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5252 const int *foo = &x[0];
5255 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5256 typedef const int *iptr;
5260 { /* AIX XL C 1.02.0.0 rejects this saying
5261 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5262 struct s { int j; const int *ap[3]; };
5263 struct s *b; b->j = 5;
5265 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5269 return !cs[0] && !zero.x;
5276 rm -f conftest.
$ac_objext
5277 if { (ac_try
="$ac_compile"
5279 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5280 *) ac_try_echo=$ac_try;;
5282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5283 $as_echo "$ac_try_echo") >&5
5284 (eval "$ac_compile") 2>conftest.er1
5286 grep -v '^ *+' conftest.er1 >conftest.err
5288 cat conftest.err >&5
5289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); } && {
5291 test -z "$ac_c_werror_flag" ||
5292 test ! -s conftest.err
5293 } && test -s conftest.$ac_objext; then
5296 $as_echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5304 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5305 $as_echo "$ac_cv_c_const" >&6; }
5306 if test $ac_cv_c_const = no; then
5308 cat >>confdefs.h <<\_ACEOF
5314 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5315 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5317 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5318 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5319 $as_echo_n "(cached) " >&6
5321 cat >conftest.make <<\_ACEOF
5324 @echo '@@@%%%=$(MAKE)=@@@%%%'
5326 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5327 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
5329 eval ac_cv_prog_make_${ac_make}_set=yes;;
5331 eval ac_cv_prog_make_${ac_make}_set=no;;
5335 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5336 { $as_echo "$as_me:$LINENO: result: yes" >&5
5337 $as_echo "yes" >&6; }
5340 { $as_echo "$as_me:$LINENO: result: no" >&5
5341 $as_echo "no" >&6; }
5342 SET_MAKE="MAKE=${MAKE-make}"
5345 # Find a good install program. We prefer a C program (faster),
5346 # so one script is as good as another. But avoid the broken or
5347 # incompatible versions:
5348 # SysV /etc/install, /usr/sbin/install
5349 # SunOS /usr/etc/install
5350 # IRIX /sbin/install
5352 # AmigaOS /C/install, which installs bootblocks on floppy discs
5353 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5354 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5355 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5356 # OS/2's system install, which has a completely different semantic
5357 # ./install, which can be erroneously created by make from ./install.sh.
5358 # Reject install programs that cannot install multiple files.
5359 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5360 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5361 if test -z "$INSTALL"; then
5362 if test "${ac_cv_path_install+set}" = set; then
5363 $as_echo_n "(cached) " >&6
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 test -z "$as_dir" && as_dir=.
5370 # Account for people who put trailing slashes in PATH elements.
5372 ./ | .// | /cC/* | \
5373 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5374 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5377 # OSF1 and SCO ODT 3.0 have their own names for install.
5378 # Don't use installbsd from OSF since it installs stuff as root
5380 for ac_prog in ginstall scoinst install; do
5381 for ac_exec_ext in '' $ac_executable_extensions; do
5382 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5383 if test $ac_prog = install &&
5384 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5385 # AIX install. It has an incompatible calling convention.
5387 elif test $ac_prog = install &&
5388 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5389 # program-specific install script used by HP pwplus--don't use.
5392 rm -rf conftest.one conftest.two conftest.dir
5393 echo one > conftest.one
5394 echo two > conftest.two
5396 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5397 test -s conftest.one && test -s conftest.two &&
5398 test -s conftest.dir/conftest.one &&
5399 test -s conftest.dir/conftest.two
5401 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5414 rm -rf conftest.one conftest.two conftest.dir
5417 if test "${ac_cv_path_install+set}" = set; then
5418 INSTALL=$ac_cv_path_install
5420 # As a last resort, use the slow shell script. Don't cache a
5421 # value for INSTALL within a source directory, because that will
5422 # break other packages using the cache if that directory is
5423 # removed, or if the value is a relative name.
5424 INSTALL=$ac_install_sh
5427 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5428 $as_echo "$INSTALL" >&6; }
5430 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5431 # It thinks the first close brace ends the variable substitution.
5432 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5434 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5436 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5438 # Extract the first word of "automake", so it can be a program name with args.
5439 set dummy automake; ac_word=$2
5440 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5441 $as_echo_n "checking for $ac_word... " >&6; }
5442 if test "${ac_cv_path_AUTOMAKE+set}" = set; then
5443 $as_echo_n "(cached) " >&6
5447 ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path.
5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454 test -z "$as_dir" && as_dir=.
5455 for ac_exec_ext in '' $ac_executable_extensions; do
5456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5457 ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext"
5458 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5468 AUTOMAKE=$ac_cv_path_AUTOMAKE
5469 if test -n "$AUTOMAKE"; then
5470 { $as_echo "$as_me:$LINENO: result: $AUTOMAKE" >&5
5471 $as_echo "$AUTOMAKE" >&6; }
5473 { $as_echo "$as_me:$LINENO: result: no" >&5
5474 $as_echo "no" >&6; }
5478 # Extract the first word of "aclocal", so it can be a program name with args.
5479 set dummy aclocal; ac_word=$2
5480 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5481 $as_echo_n "checking for $ac_word... " >&6; }
5482 if test "${ac_cv_path_ACLOCAL+set}" = set; then
5483 $as_echo_n "(cached) " >&6
5487 ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
5490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 test -z "$as_dir" && as_dir=.
5495 for ac_exec_ext in '' $ac_executable_extensions; do
5496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5497 ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
5498 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5508 ACLOCAL=$ac_cv_path_ACLOCAL
5509 if test -n "$ACLOCAL"; then
5510 { $as_echo "$as_me:$LINENO: result: $ACLOCAL" >&5
5511 $as_echo "$ACLOCAL" >&6; }
5513 { $as_echo "$as_me:$LINENO: result: no" >&5
5514 $as_echo "no" >&6; }
5518 # Extract the first word of "autoheader", so it can be a program name with args.
5519 set dummy autoheader; ac_word=$2
5520 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5521 $as_echo_n "checking for $ac_word... " >&6; }
5522 if test "${ac_cv_path_AUTOHEADER+set}" = set; then
5523 $as_echo_n "(cached) " >&6
5527 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
5530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 test -z "$as_dir" && as_dir=.
5535 for ac_exec_ext in '' $ac_executable_extensions; do
5536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5537 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
5538 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5548 AUTOHEADER=$ac_cv_path_AUTOHEADER
5549 if test -n "$AUTOHEADER"; then
5550 { $as_echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
5551 $as_echo "$AUTOHEADER" >&6; }
5553 { $as_echo "$as_me:$LINENO: result: no" >&5
5554 $as_echo "no" >&6; }
5558 # Extract the first word of "as", so it can be a program name with args.
5559 set dummy as; ac_word=$2
5560 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5561 $as_echo_n "checking for $ac_word... " >&6; }
5562 if test "${ac_cv_path_AS+set}" = set; then
5563 $as_echo_n "(cached) " >&6
5567 ac_cv_path_AS="$AS" # Let the user override the test with a path.
5570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 test -z "$as_dir" && as_dir=.
5575 for ac_exec_ext in '' $ac_executable_extensions; do
5576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5577 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
5578 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 if test -n "$AS"; then
5590 { $as_echo "$as_me:$LINENO: result: $AS" >&5
5591 $as_echo "$AS" >&6; }
5593 { $as_echo "$as_me:$LINENO: result: no" >&5
5594 $as_echo "no" >&6; }
5598 # Extract the first word of "rm", so it can be a program name with args.
5599 set dummy rm; ac_word=$2
5600 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if test "${ac_cv_path_RM+set}" = set; then
5603 $as_echo_n "(cached) " >&6
5607 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 test -z "$as_dir" && as_dir=.
5615 for ac_exec_ext in '' $ac_executable_extensions; do
5616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5617 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5618 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 if test -n "$RM"; then
5630 { $as_echo "$as_me:$LINENO: result: $RM" >&5
5631 $as_echo "$RM" >&6; }
5633 { $as_echo "$as_me:$LINENO: result: no" >&5
5634 $as_echo "no" >&6; }
5638 # Extract the first word of "cp", so it can be a program name with args.
5639 set dummy cp; ac_word=$2
5640 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if test "${ac_cv_path_CP+set}" = set; then
5643 $as_echo_n "(cached) " >&6
5647 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 test -z "$as_dir" && as_dir=.
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5657 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5669 if test -n "$CP"; then
5670 { $as_echo "$as_me:$LINENO: result: $CP" >&5
5671 $as_echo "$CP" >&6; }
5673 { $as_echo "$as_me:$LINENO: result: no" >&5
5674 $as_echo "no" >&6; }
5678 # Extract the first word of "mv", so it can be a program name with args.
5679 set dummy mv; ac_word=$2
5680 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5681 $as_echo_n "checking for $ac_word... " >&6; }
5682 if test "${ac_cv_path_MV+set}" = set; then
5683 $as_echo_n "(cached) " >&6
5687 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 test -z "$as_dir" && as_dir=.
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5697 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5698 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5709 if test -n "$MV"; then
5710 { $as_echo "$as_me:$LINENO: result: $MV" >&5
5711 $as_echo "$MV" >&6; }
5713 { $as_echo "$as_me:$LINENO: result: no" >&5
5714 $as_echo "no" >&6; }
5718 # Extract the first word of "ln", so it can be a program name with args.
5719 set dummy ln; ac_word=$2
5720 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5721 $as_echo_n "checking for $ac_word... " >&6; }
5722 if test "${ac_cv_path_LN+set}" = set; then
5723 $as_echo_n "(cached) " >&6
5727 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 test -z "$as_dir" && as_dir=.
5735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5737 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
5738 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5749 if test -n "$LN"; then
5750 { $as_echo "$as_me:$LINENO: result: $LN" >&5
5751 $as_echo "$LN" >&6; }
5753 { $as_echo "$as_me:$LINENO: result: no" >&5
5754 $as_echo "no" >&6; }
5758 # Extract the first word of "touch", so it can be a program name with args.
5759 set dummy touch; ac_word=$2
5760 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5761 $as_echo_n "checking for $ac_word... " >&6; }
5762 if test "${ac_cv_path_TOUCH+set}" = set; then
5763 $as_echo_n "(cached) " >&6
5767 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 test -z "$as_dir" && as_dir=.
5775 for ac_exec_ext in '' $ac_executable_extensions; do
5776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5777 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5778 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5788 TOUCH=$ac_cv_path_TOUCH
5789 if test -n "$TOUCH"; then
5790 { $as_echo "$as_me:$LINENO: result: $TOUCH" >&5
5791 $as_echo "$TOUCH" >&6; }
5793 { $as_echo "$as_me:$LINENO: result: no" >&5
5794 $as_echo "no" >&6; }
5799 ac_cpp='$CPP $CPPFLAGS'
5800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5805 # Check whether --enable-fast-install was given.
5806 if test "${enable_fast_install+set}" = set; then
5807 enableval=$enable_fast_install; p=${PACKAGE-default}
5809 yes) enable_fast_install=yes ;;
5810 no) enable_fast_install=no ;;
5812 enable_fast_install=no
5813 # Look at the argument we got. We use all the common list separators.
5814 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5815 for pkg in $enableval; do
5817 if test "X$pkg" = "X$p"; then
5818 enable_fast_install=yes
5825 enable_fast_install=yes
5829 # Make sure we can run config.sub.
5830 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5831 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5832 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5833 { (exit 1); exit 1; }; }
5835 { $as_echo "$as_me:$LINENO: checking build system type" >&5
5836 $as_echo_n "checking build system type... " >&6; }
5837 if test "${ac_cv_build+set}" = set; then
5838 $as_echo_n "(cached) " >&6
5840 ac_build_alias=$build_alias
5841 test "x$ac_build_alias" = x &&
5842 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5843 test "x$ac_build_alias" = x &&
5844 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5845 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5846 { (exit 1); exit 1; }; }
5847 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5848 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5849 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5850 { (exit 1); exit 1; }; }
5853 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5854 $as_echo "$ac_cv_build" >&6; }
5855 case $ac_cv_build in
5857 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5858 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
5859 { (exit 1); exit 1; }; };;
5862 ac_save_IFS=$IFS; IFS='-'
5868 # Remember, the first character of IFS is used to create $*,
5869 # except with old shells:
5872 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5875 { $as_echo "$as_me:$LINENO: checking host system type" >&5
5876 $as_echo_n "checking host system type... " >&6; }
5877 if test "${ac_cv_host+set}" = set; then
5878 $as_echo_n "(cached) " >&6
5880 if test "x$host_alias" = x; then
5881 ac_cv_host=$ac_cv_build
5883 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5884 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5885 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5886 { (exit 1); exit 1; }; }
5890 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5891 $as_echo "$ac_cv_host" >&6; }
5894 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5895 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
5896 { (exit 1); exit 1; }; };;
5899 ac_save_IFS=$IFS; IFS='-'
5905 # Remember, the first character of IFS is used to create $*,
5906 # except with old shells:
5909 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5912 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5913 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5914 if test "${lt_cv_path_SED+set}" = set; then
5915 $as_echo_n "(cached) " >&6
5917 # Loop through the user's path and test for sed and gsed.
5918 # Then use that list of sed's as ones to test for truncation.
5919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 test -z "$as_dir" && as_dir=.
5924 for lt_ac_prog in sed gsed; do
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5927 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5935 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5936 # along with /bin/sed that truncates output.
5937 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5938 test ! -f $lt_ac_sed && continue
5939 cat /dev/null > conftest.in
5941 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5942 # Check for GNU sed and select it if it is found.
5943 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5944 lt_cv_path_SED=$lt_ac_sed
5948 cat conftest.in conftest.in >conftest.tmp
5949 mv conftest.tmp conftest.in
5950 cp conftest.in conftest.nl
5952 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5953 cmp -s conftest.out conftest.nl || break
5954 # 10000 chars as input seems more than enough
5955 test $lt_ac_count -gt 10 && break
5956 lt_ac_count=`expr $lt_ac_count + 1`
5957 if test $lt_ac_count -gt $lt_ac_max; then
5958 lt_ac_max=$lt_ac_count
5959 lt_cv_path_SED=$lt_ac_sed
5968 { $as_echo "$as_me:$LINENO: result: $SED" >&5
5969 $as_echo "$SED" >&6; }
5972 # Check whether --with-gnu-ld was given.
5973 if test "${with_gnu_ld+set}" = set; then
5974 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5980 if test "$GCC" = yes; then
5981 # Check if gcc -print-prog-name=ld gives a path.
5982 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5983 $as_echo_n "checking for ld used by $CC... " >&6; }
5986 # gcc leaves a trailing carriage return which upsets mingw
5987 ac_prog=`($CC -print-prog-name=ld
) 2>&5 | tr -d '\015'` ;;
5989 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
5992 # Accept absolute paths.
5994 re_direlt='/[^/][^/]*/\.\./'
5995 # Canonicalize the pathname of ld
5996 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5997 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5998 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6000 test -z "$LD" && LD="$ac_prog"
6003 # If it fails, then pretend we aren't using GCC.
6007 # If it is relative, then search for the first ld in PATH.
6011 elif test "$with_gnu_ld" = yes; then
6012 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6013 $as_echo_n "checking for GNU ld... " >&6; }
6015 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6016 $as_echo_n "checking for non-GNU ld... " >&6; }
6018 if test "${lt_cv_path_LD+set}" = set; then
6019 $as_echo_n "(cached) " >&6
6021 if test -z "$LD"; then
6022 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6023 for ac_dir in $PATH; do
6025 test -z "$ac_dir" && ac_dir=.
6026 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6027 lt_cv_path_LD="$ac_dir/$ac_prog"
6028 # Check to see if the program is GNU ld. I'd rather use --version,
6029 # but apparently some variants of GNU ld only accept -v.
6030 # Break only if it was the GNU/non-GNU ld that we prefer.
6031 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
6032 *GNU* | *'with BFD'*)
6033 test "$with_gnu_ld" != no && break
6036 test "$with_gnu_ld" != yes && break
6043 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6048 if test -n "$LD"; then
6049 { $as_echo "$as_me:$LINENO: result: $LD" >&5
6050 $as_echo "$LD" >&6; }
6052 { $as_echo "$as_me:$LINENO: result: no" >&5
6053 $as_echo "no" >&6; }
6055 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6056 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6057 { (exit 1); exit 1; }; }
6058 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6059 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6060 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6061 $as_echo_n "(cached) " >&6
6063 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6064 case `$LD -v 2>&1 </dev
/null
` in
6065 *GNU* | *'with BFD'*)
6066 lt_cv_prog_gnu_ld=yes
6069 lt_cv_prog_gnu_ld=no
6073 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6074 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6075 with_gnu_ld=$lt_cv_prog_gnu_ld
6078 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6079 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6080 if test "${lt_cv_ld_reload_flag+set}" = set; then
6081 $as_echo_n "(cached) " >&6
6083 lt_cv_ld_reload_flag='-r'
6085 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6086 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6087 reload_flag=$lt_cv_ld_reload_flag
6088 case $reload_flag in
6090 *) reload_flag=" $reload_flag" ;;
6092 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6095 if test "$GCC" = yes; then
6096 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6098 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6103 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6104 $as_echo_n "checking for BSD-compatible nm... " >&6; }
6105 if test "${lt_cv_path_NM+set}" = set; then
6106 $as_echo_n "(cached) " >&6
6108 if test -n "$NM"; then
6109 # Let the user override the test.
6112 lt_nm_to_check="${ac_tool_prefix}nm"
6113 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6114 lt_nm_to_check="$lt_nm_to_check nm"
6116 for lt_tmp_nm in $lt_nm_to_check; do
6117 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6118 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6120 test -z "$ac_dir" && ac_dir=.
6121 tmp_nm="$ac_dir/$lt_tmp_nm"
6122 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6123 # Check to see if the nm accepts a BSD-compat flag.
6124 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
6125 # nm: unknown option "B" ignored
6126 # Tru64's nm complains that
/dev
/null is an invalid object
file
6127 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6128 */dev
/null
* | *'Invalid file or object type'*)
6129 lt_cv_path_NM
="$tmp_nm -B"
6133 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6135 lt_cv_path_NM
="$tmp_nm -p"
6139 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6140 continue # so that we can try to find one that supports BSD flags
6149 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
6152 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6153 $as_echo "$lt_cv_path_NM" >&6; }
6156 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6157 $as_echo_n "checking whether ln -s works... " >&6; }
6159 if test "$LN_S" = "ln -s"; then
6160 { $as_echo "$as_me:$LINENO: result: yes" >&5
6161 $as_echo "yes" >&6; }
6163 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6164 $as_echo "no, using $LN_S" >&6; }
6167 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6168 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6169 if test "${lt_cv_deplibs_check_method+set}" = set; then
6170 $as_echo_n "(cached) " >&6
6172 lt_cv_file_magic_cmd
='$MAGIC_CMD'
6173 lt_cv_file_magic_test_file
=
6174 lt_cv_deplibs_check_method
='unknown'
6175 # Need to set the preceding variable on all platforms that support
6176 # interlibrary dependencies.
6177 # 'none' -- dependencies not supported.
6178 # `unknown' -- same as none, but documents that we really don't know.
6179 # 'pass_all' -- all dependencies passed with no checks.
6180 # 'test_compile' -- check by making test program.
6181 # 'file_magic [[regex]]' -- check by looking for files in library path
6182 # which responds to the $file_magic_cmd with a given extended regex.
6183 # If you have `file' or equivalent on your system and you're not sure
6184 # whether `pass_all' will *always* work, you probably want this one.
6188 lt_cv_deplibs_check_method
=pass_all
6192 lt_cv_deplibs_check_method
=pass_all
6196 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6197 lt_cv_file_magic_cmd
='/usr/bin/file -L'
6198 lt_cv_file_magic_test_file
=/shlib
/libc.so
6202 # func_win32_libid is a shell function defined in ltmain.sh
6203 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6204 lt_cv_file_magic_cmd
='func_win32_libid'
6208 # Base MSYS/MinGW do not provide the 'file' command needed by
6209 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6210 # unless we find 'file', for example because we are cross-compiling.
6211 if ( file / ) >/dev
/null
2>&1; then
6212 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6213 lt_cv_file_magic_cmd
='func_win32_libid'
6215 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
6216 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6220 darwin
* | rhapsody
*)
6221 lt_cv_deplibs_check_method
=pass_all
6224 freebsd
* | dragonfly
*)
6225 if echo __ELF__
| $CC -E - | grep __ELF__
> /dev
/null
; then
6228 # Not sure whether the presence of OpenBSD here was a mistake.
6229 # Let's accept both of them until this is cleared up.
6230 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6231 lt_cv_file_magic_cmd
=/usr
/bin
/file
6232 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
6236 lt_cv_deplibs_check_method
=pass_all
6241 lt_cv_deplibs_check_method
=pass_all
6244 hpux10.20
* | hpux11
*)
6245 lt_cv_file_magic_cmd
=/usr
/bin
/file
6248 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6249 lt_cv_file_magic_test_file
=/usr
/lib
/hpux
32/libc.so
6252 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]'
6253 lt_cv_file_magic_test_file
=/usr
/lib
/pa
20_
64/libc.sl
6256 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6257 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
6263 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6264 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
6267 irix5
* | irix6
* | nonstopux
*)
6269 *-32|*"-32 ") libmagic
=32-bit;;
6270 *-n32|*"-n32 ") libmagic
=N32
;;
6271 *-64|*"-64 ") libmagic
=64-bit;;
6272 *) libmagic
=never
-match;;
6274 lt_cv_deplibs_check_method
=pass_all
6277 # This must be Linux ELF.
6278 linux
* | k
*bsd
*-gnu)
6279 lt_cv_deplibs_check_method
=pass_all
6282 netbsd
* | netbsdelf
*-gnu)
6283 if echo __ELF__
| $CC -E - | grep __ELF__
> /dev
/null
; then
6284 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6286 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6291 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6292 lt_cv_file_magic_cmd
=/usr
/bin
/file
6293 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
6297 lt_cv_deplibs_check_method
=unknown
6301 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6302 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6304 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6308 osf3
* | osf4
* | osf5
*)
6309 lt_cv_deplibs_check_method
=pass_all
6313 lt_cv_deplibs_check_method
=pass_all
6317 lt_cv_deplibs_check_method
=pass_all
6321 case $host_vendor in
6323 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]'
6324 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
6327 lt_cv_deplibs_check_method
=pass_all
6330 lt_cv_file_magic_cmd
='/bin/file'
6331 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6334 lt_cv_file_magic_cmd
='/bin/file'
6335 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6336 lt_cv_file_magic_test_file
=/lib
/libc.so
6339 lt_cv_deplibs_check_method
=pass_all
6342 lt_cv_deplibs_check_method
=pass_all
6347 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
6348 lt_cv_deplibs_check_method
=pass_all
6353 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6354 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6355 file_magic_cmd
=$lt_cv_file_magic_cmd
6356 deplibs_check_method
=$lt_cv_deplibs_check_method
6357 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
6362 # If no C compiler was specified, use CC.
6365 # If no C compiler flags were specified, use CFLAGS.
6366 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
6368 # Allow CC to be a program name with arguments.
6371 # Check whether --enable-libtool-lock was given.
6372 if test "${enable_libtool_lock+set}" = set; then
6373 enableval
=$enable_libtool_lock;
6376 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6378 # Some flags need to be propagated to the compiler or linker for good
6382 # Find out which ABI we are using.
6383 echo 'int i;' > conftest.
$ac_ext
6384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6385 (eval $ac_compile) 2>&5
6387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }; then
6389 case `/usr/bin/file conftest.$ac_objext` in
6401 # Find out which ABI we are using.
6402 echo '#line 6402 "configure"' > conftest.
$ac_ext
6403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6404 (eval $ac_compile) 2>&5
6406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; then
6408 if test "$lt_cv_prog_gnu_ld" = yes; then
6409 case `/usr/bin/file conftest.$ac_objext` in
6411 LD
="${LD-ld} -melf32bsmip"
6414 LD
="${LD-ld} -melf32bmipn32"
6417 LD
="${LD-ld} -melf64bmip"
6421 case `/usr/bin/file conftest.$ac_objext` in
6437 x86_64
-*kfreebsd
*-gnu|x86_64
-*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*| \
6438 s390
*-*linux
*|sparc
*-*linux
*)
6439 # Find out which ABI we are using.
6440 echo 'int i;' > conftest.
$ac_ext
6441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6442 (eval $ac_compile) 2>&5
6444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); }; then
6446 case `/usr/bin/file conftest.o` in
6449 x86_64
-*kfreebsd
*-gnu)
6450 LD
="${LD-ld} -m elf_i386_fbsd"
6453 LD
="${LD-ld} -m elf_i386"
6455 ppc64
-*linux
*|powerpc64
-*linux
*)
6456 LD
="${LD-ld} -m elf32ppclinux"
6459 LD
="${LD-ld} -m elf_s390"
6462 LD
="${LD-ld} -m elf32_sparc"
6468 x86_64
-*kfreebsd
*-gnu)
6469 LD
="${LD-ld} -m elf_x86_64_fbsd"
6472 LD
="${LD-ld} -m elf_x86_64"
6474 ppc
*-*linux
*|powerpc
*-*linux
*)
6475 LD
="${LD-ld} -m elf64ppc"
6478 LD
="${LD-ld} -m elf64_s390"
6481 LD
="${LD-ld} -m elf64_sparc"
6491 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6492 SAVE_CFLAGS
="$CFLAGS"
6493 CFLAGS
="$CFLAGS -belf"
6494 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6495 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6496 if test "${lt_cv_cc_needs_belf+set}" = set; then
6497 $as_echo_n "(cached) " >&6
6500 ac_cpp
='$CPP $CPPFLAGS'
6501 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6502 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6503 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6505 cat >conftest.
$ac_ext <<_ACEOF
6508 cat confdefs.h
>>conftest.
$ac_ext
6509 cat >>conftest.
$ac_ext <<_ACEOF
6510 /* end confdefs.h. */
6520 rm -f conftest.
$ac_objext conftest
$ac_exeext
6521 if { (ac_try
="$ac_link"
6523 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6524 *) ac_try_echo=$ac_try;;
6526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6527 $as_echo "$ac_try_echo") >&5
6528 (eval "$ac_link") 2>conftest.er1
6530 grep -v '^ *+' conftest.er1 >conftest.err
6532 cat conftest.err >&5
6533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); } && {
6535 test -z "$ac_c_werror_flag" ||
6536 test ! -s conftest.err
6537 } && test -s conftest$ac_exeext && {
6538 test "$cross_compiling" = yes ||
6539 $as_test_x conftest$ac_exeext
6541 lt_cv_cc_needs_belf=yes
6543 $as_echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6546 lt_cv_cc_needs_belf=no
6549 rm -rf conftest.dSYM
6550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6551 conftest$ac_exeext conftest.$ac_ext
6553 ac_cpp='$CPP $CPPFLAGS'
6554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6559 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6560 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6561 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6562 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6563 CFLAGS="$SAVE_CFLAGS"
6567 # Find out which ABI we are using.
6568 echo 'int i;' > conftest.$ac_ext
6569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6570 (eval $ac_compile) 2>&5
6572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; then
6574 case `/usr
/bin
/file conftest.o
` in
6576 case $lt_cv_prog_gnu_ld in
6577 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6579 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6593 need_locks="$enable_libtool_lock"
6597 for ac_header in dlfcn.h
6599 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6601 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6602 $as_echo_n "checking for $ac_header... " >&6; }
6603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6604 $as_echo_n "(cached) " >&6
6606 ac_res=`eval 'as_val=${'$as_ac_Header'}
6607 $as_echo "$as_val"'`
6608 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6609 $as_echo "$ac_res" >&6; }
6611 # Is the header compilable?
6612 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6613 $as_echo_n "checking $ac_header usability... " >&6; }
6614 cat >conftest.$ac_ext <<_ACEOF
6617 cat confdefs.h >>conftest.$ac_ext
6618 cat >>conftest.$ac_ext <<_ACEOF
6619 /* end confdefs.h. */
6620 $ac_includes_default
6621 #include <$ac_header>
6623 rm -f conftest.$ac_objext
6624 if { (ac_try="$ac_compile"
6626 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6627 *) ac_try_echo
=$ac_try;;
6629 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6630 $as_echo "$ac_try_echo") >&5
6631 (eval "$ac_compile") 2>conftest.er1
6633 grep -v '^ *+' conftest.er1
>conftest.err
6635 cat conftest.err
>&5
6636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); } && {
6638 test -z "$ac_c_werror_flag" ||
6639 test ! -s conftest.err
6640 } && test -s conftest.
$ac_objext; then
6641 ac_header_compiler
=yes
6643 $as_echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.
$ac_ext >&5
6646 ac_header_compiler
=no
6649 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6650 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6651 $as_echo "$ac_header_compiler" >&6; }
6653 # Is the header present?
6654 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6655 $as_echo_n "checking $ac_header presence... " >&6; }
6656 cat >conftest.
$ac_ext <<_ACEOF
6659 cat confdefs.h
>>conftest.
$ac_ext
6660 cat >>conftest.
$ac_ext <<_ACEOF
6661 /* end confdefs.h. */
6662 #include <$ac_header>
6664 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6666 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6667 *) ac_try_echo=$ac_try;;
6669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6670 $as_echo "$ac_try_echo") >&5
6671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6673 grep -v '^ *+' conftest.er1 >conftest.err
6675 cat conftest.err >&5
6676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } >/dev/null && {
6678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6679 test ! -s conftest.err
6681 ac_header_preproc=yes
6683 $as_echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6686 ac_header_preproc=no
6689 rm -f conftest.err conftest.$ac_ext
6690 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6691 $as_echo "$ac_header_preproc" >&6; }
6693 # So? What about this header?
6694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6697 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6699 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6700 ac_header_preproc=yes
6703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6704 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6706 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6708 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6710 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6712 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6714 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6718 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6719 $as_echo_n "checking for $ac_header... " >&6; }
6720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6721 $as_echo_n "(cached) " >&6
6723 eval "$as_ac_Header=\$ac_header_preproc"
6725 ac_res=`eval 'as_val=${'$as_ac_Header'}
6726 $as_echo "$as_val"'`
6727 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6728 $as_echo "$ac_res" >&6; }
6731 as_val=`eval 'as_val=${'$as_ac_Header'}
6732 $as_echo "$as_val"'`
6733 if test "x$as_val" = x""yes; then
6734 cat >>confdefs.h <<_ACEOF
6735 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6743 ac_cpp='$CXXCPP $CPPFLAGS'
6744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6747 if test -z "$CXX"; then
6748 if test -n "$CCC"; then
6751 if test -n "$ac_tool_prefix"; then
6752 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6756 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6757 $as_echo_n "checking for $ac_word... " >&6; }
6758 if test "${ac_cv_prog_CXX+set}" = set; then
6759 $as_echo_n "(cached) " >&6
6761 if test -n "$CXX"; then
6762 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6771 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 if test -n "$CXX"; then
6783 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
6784 $as_echo "$CXX" >&6; }
6786 { $as_echo "$as_me:$LINENO: result: no" >&5
6787 $as_echo "no" >&6; }
6791 test -n "$CXX" && break
6794 if test -z "$CXX"; then
6796 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6798 # Extract the first word of "$ac_prog", so it can be a program name with args.
6799 set dummy $ac_prog; ac_word=$2
6800 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6803 $as_echo_n "(cached) " >&6
6805 if test -n "$ac_ct_CXX"; then
6806 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_prog_ac_ct_CXX="$ac_prog"
6816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6826 if test -n "$ac_ct_CXX"; then
6827 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6828 $as_echo "$ac_ct_CXX" >&6; }
6830 { $as_echo "$as_me:$LINENO: result: no" >&5
6831 $as_echo "no" >&6; }
6835 test -n "$ac_ct_CXX" && break
6838 if test "x$ac_ct_CXX" = x; then
6841 case $cross_compiling:$ac_tool_warned in
6843 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6845 ac_tool_warned=yes ;;
6853 # Provide some information about the compiler.
6854 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6857 { (ac_try="$ac_compiler --version >&5"
6859 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6860 *) ac_try_echo
=$ac_try;;
6862 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6863 $as_echo "$ac_try_echo") >&5
6864 (eval "$ac_compiler --version >&5") 2>&5
6866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); }
6868 { (ac_try
="$ac_compiler -v >&5"
6870 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6871 *) ac_try_echo=$ac_try;;
6873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6874 $as_echo "$ac_try_echo") >&5
6875 (eval "$ac_compiler -v >&5") 2>&5
6877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); }
6879 { (ac_try="$ac_compiler -V >&5"
6881 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6882 *) ac_try_echo
=$ac_try;;
6884 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6885 $as_echo "$ac_try_echo") >&5
6886 (eval "$ac_compiler -V >&5") 2>&5
6888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); }
6891 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6892 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6893 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6894 $as_echo_n "(cached) " >&6
6896 cat >conftest.
$ac_ext <<_ACEOF
6899 cat confdefs.h
>>conftest.
$ac_ext
6900 cat >>conftest.
$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6914 rm -f conftest.
$ac_objext
6915 if { (ac_try
="$ac_compile"
6917 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6918 *) ac_try_echo=$ac_try;;
6920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6921 $as_echo "$ac_try_echo") >&5
6922 (eval "$ac_compile") 2>conftest.er1
6924 grep -v '^ *+' conftest.er1 >conftest.err
6926 cat conftest.err >&5
6927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } && {
6929 test -z "$ac_cxx_werror_flag" ||
6930 test ! -s conftest.err
6931 } && test -s conftest.$ac_objext; then
6934 $as_echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6941 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6944 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6945 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6946 if test $ac_compiler_gnu = yes; then
6951 ac_test_CXXFLAGS=${CXXFLAGS+set}
6952 ac_save_CXXFLAGS=$CXXFLAGS
6953 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6954 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6955 if test "${ac_cv_prog_cxx_g+set}" = set; then
6956 $as_echo_n "(cached) " >&6
6958 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6959 ac_cxx_werror_flag=yes
6962 cat >conftest.$ac_ext <<_ACEOF
6965 cat confdefs.h >>conftest.$ac_ext
6966 cat >>conftest.$ac_ext <<_ACEOF
6967 /* end confdefs.h. */
6977 rm -f conftest.$ac_objext
6978 if { (ac_try="$ac_compile"
6980 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6981 *) ac_try_echo
=$ac_try;;
6983 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6984 $as_echo "$ac_try_echo") >&5
6985 (eval "$ac_compile") 2>conftest.er1
6987 grep -v '^ *+' conftest.er1
>conftest.err
6989 cat conftest.err
>&5
6990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } && {
6992 test -z "$ac_cxx_werror_flag" ||
6993 test ! -s conftest.err
6994 } && test -s conftest.
$ac_objext; then
6995 ac_cv_prog_cxx_g
=yes
6997 $as_echo "$as_me: failed program was:" >&5
6998 sed 's/^/| /' conftest.
$ac_ext >&5
7001 cat >conftest.
$ac_ext <<_ACEOF
7004 cat confdefs.h
>>conftest.
$ac_ext
7005 cat >>conftest.
$ac_ext <<_ACEOF
7006 /* end confdefs.h. */
7016 rm -f conftest.
$ac_objext
7017 if { (ac_try
="$ac_compile"
7019 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7020 *) ac_try_echo=$ac_try;;
7022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7023 $as_echo "$ac_try_echo") >&5
7024 (eval "$ac_compile") 2>conftest.er1
7026 grep -v '^ *+' conftest.er1 >conftest.err
7028 cat conftest.err >&5
7029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); } && {
7031 test -z "$ac_cxx_werror_flag" ||
7032 test ! -s conftest.err
7033 } && test -s conftest.$ac_objext; then
7036 $as_echo "$as_me: failed program was:" >&5
7037 sed 's/^/| /' conftest.$ac_ext >&5
7039 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7041 cat >conftest.$ac_ext <<_ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7056 rm -f conftest.$ac_objext
7057 if { (ac_try="$ac_compile"
7059 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7060 *) ac_try_echo
=$ac_try;;
7062 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7063 $as_echo "$ac_try_echo") >&5
7064 (eval "$ac_compile") 2>conftest.er1
7066 grep -v '^ *+' conftest.er1
>conftest.err
7068 cat conftest.err
>&5
7069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } && {
7071 test -z "$ac_cxx_werror_flag" ||
7072 test ! -s conftest.err
7073 } && test -s conftest.
$ac_objext; then
7074 ac_cv_prog_cxx_g
=yes
7076 $as_echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.
$ac_ext >&5
7082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7089 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7091 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7092 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7093 if test "$ac_test_CXXFLAGS" = set; then
7094 CXXFLAGS
=$ac_save_CXXFLAGS
7095 elif test $ac_cv_prog_cxx_g = yes; then
7096 if test "$GXX" = yes; then
7102 if test "$GXX" = yes; then
7109 ac_cpp
='$CXXCPP $CPPFLAGS'
7110 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7111 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7112 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7114 depcc
="$CXX" am_compiler_list
=
7116 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7117 $as_echo_n "checking dependency style of $depcc... " >&6; }
7118 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7119 $as_echo_n "(cached) " >&6
7121 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7122 # We make a subdir and do the tests there. Otherwise we can end up
7123 # making bogus files that we don't know about and never remove. For
7124 # instance it was reported that on HP-UX the gcc test will end up
7125 # making a dummy file named `D' -- because `-MD' means `put the output
7128 # Copy depcomp to subdir because otherwise we won't find it if we're
7129 # using a relative directory.
7130 cp "$am_depcomp" conftest.dir
7132 # We will build objects and dependencies in a subdirectory because
7133 # it helps to detect inapplicable dependency modes. For instance
7134 # both Tru64's cc and ICC support -MD to output dependencies as a
7135 # side effect of compilation, but ICC will put the dependencies in
7136 # the current directory while Tru64 will put them in the object
7140 am_cv_CXX_dependencies_compiler_type
=none
7141 if test "$am_compiler_list" = ""; then
7142 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7144 for depmode
in $am_compiler_list; do
7145 # Setup a source with many dependencies, because some compilers
7146 # like to wrap large dependency lists on column 80 (with \), and
7147 # we should not choose a depcomp mode which is confused by this.
7149 # We need to recreate these files for each test, as the compiler may
7150 # overwrite some of them when testing with obscure command lines.
7151 # This happens at least with the AIX C compiler.
7153 for i
in 1 2 3 4 5 6; do
7154 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
7155 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7156 # Solaris 8's {/usr,}/bin/sh.
7157 touch sub
/conftst
$i.h
7159 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7163 # after this tag, mechanisms are not by side-effect, so they'll
7164 # only be used when explicitly requested
7165 if test "x$enable_dependency_tracking" = xyes
; then
7173 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7174 # mode. It turns out that the SunPro C++ compiler does not properly
7175 # handle `-M -o', and we need to detect this.
7176 if depmode
=$depmode \
7177 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
7178 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
7179 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
7180 >/dev
/null
2>conftest.err
&&
7181 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
7182 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
7183 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
7184 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
7185 # icc doesn't choke on unknown options, it will just issue warnings
7186 # or remarks (even with -Werror). So we grep stderr for any message
7187 # that says an option was ignored or not supported.
7188 # When given -MP, icc 7.0 and 7.1 complain thusly:
7189 # icc: Command line warning: ignoring option '-M'; no argument required
7190 # The diagnosis changed in icc 8.0:
7191 # icc: Command line remark: option '-MP' not supported
7192 if (grep 'ignoring option' conftest.err
||
7193 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
7194 am_cv_CXX_dependencies_compiler_type
=$depmode
7203 am_cv_CXX_dependencies_compiler_type
=none
7207 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7208 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7209 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
7212 test "x$enable_dependency_tracking" != xno \
7213 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
7214 am__fastdepCXX_TRUE
=
7215 am__fastdepCXX_FALSE
='#'
7217 am__fastdepCXX_TRUE
='#'
7218 am__fastdepCXX_FALSE
=
7224 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7225 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7226 (test "X$CXX" != "Xg++"))) ; then
7228 ac_cpp
='$CXXCPP $CPPFLAGS'
7229 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7230 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7231 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7232 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7233 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7234 if test -z "$CXXCPP"; then
7235 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7236 $as_echo_n "(cached) " >&6
7238 # Double quotes because CXXCPP needs to be expanded
7239 for CXXCPP
in "$CXX -E" "/lib/cpp"
7242 for ac_cxx_preproc_warn_flag
in '' yes
7244 # Use a header file that comes with gcc, so configuring glibc
7245 # with a fresh cross-compiler works.
7246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7247 # <limits.h> exists even on freestanding compilers.
7248 # On the NeXT, cc -E runs the code through the compiler's parser,
7249 # not just through cpp. "Syntax error" is here to catch this case.
7250 cat >conftest.
$ac_ext <<_ACEOF
7253 cat confdefs.h
>>conftest.
$ac_ext
7254 cat >>conftest.
$ac_ext <<_ACEOF
7255 /* end confdefs.h. */
7257 # include <limits.h>
7259 # include <assert.h>
7263 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7265 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7266 *) ac_try_echo=$ac_try;;
7268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7269 $as_echo "$ac_try_echo") >&5
7270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7272 grep -v '^ *+' conftest.er1 >conftest.err
7274 cat conftest.err >&5
7275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } >/dev/null && {
7277 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7278 test ! -s conftest.err
7282 $as_echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.$ac_ext >&5
7285 # Broken: fails on valid input.
7289 rm -f conftest.err conftest.$ac_ext
7291 # OK, works on sane cases. Now check whether nonexistent headers
7292 # can be detected and how.
7293 cat >conftest.$ac_ext <<_ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h. */
7299 #include <ac_nonexistent.h>
7301 if { (ac_try="$ac_cpp conftest.$ac_ext"
7303 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7304 *) ac_try_echo
=$ac_try;;
7306 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7307 $as_echo "$ac_try_echo") >&5
7308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7310 grep -v '^ *+' conftest.er1
>conftest.err
7312 cat conftest.err
>&5
7313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); } >/dev
/null
&& {
7315 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7316 test ! -s conftest.err
7318 # Broken: success on invalid input.
7321 $as_echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.
$ac_ext >&5
7324 # Passes both tests.
7329 rm -f conftest.err conftest.
$ac_ext
7332 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7333 rm -f conftest.err conftest.
$ac_ext
7334 if $ac_preproc_ok; then
7339 ac_cv_prog_CXXCPP
=$CXXCPP
7342 CXXCPP
=$ac_cv_prog_CXXCPP
7344 ac_cv_prog_CXXCPP
=$CXXCPP
7346 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
7347 $as_echo "$CXXCPP" >&6; }
7349 for ac_cxx_preproc_warn_flag
in '' yes
7351 # Use a header file that comes with gcc, so configuring glibc
7352 # with a fresh cross-compiler works.
7353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7354 # <limits.h> exists even on freestanding compilers.
7355 # On the NeXT, cc -E runs the code through the compiler's parser,
7356 # not just through cpp. "Syntax error" is here to catch this case.
7357 cat >conftest.
$ac_ext <<_ACEOF
7360 cat confdefs.h
>>conftest.
$ac_ext
7361 cat >>conftest.
$ac_ext <<_ACEOF
7362 /* end confdefs.h. */
7364 # include <limits.h>
7366 # include <assert.h>
7370 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7372 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7373 *) ac_try_echo=$ac_try;;
7375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7376 $as_echo "$ac_try_echo") >&5
7377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7379 grep -v '^ *+' conftest.er1 >conftest.err
7381 cat conftest.err >&5
7382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); } >/dev/null && {
7384 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7385 test ! -s conftest.err
7389 $as_echo "$as_me: failed program was:" >&5
7390 sed 's/^/| /' conftest.$ac_ext >&5
7392 # Broken: fails on valid input.
7396 rm -f conftest.err conftest.$ac_ext
7398 # OK, works on sane cases. Now check whether nonexistent headers
7399 # can be detected and how.
7400 cat >conftest.$ac_ext <<_ACEOF
7403 cat confdefs.h >>conftest.$ac_ext
7404 cat >>conftest.$ac_ext <<_ACEOF
7405 /* end confdefs.h. */
7406 #include <ac_nonexistent.h>
7408 if { (ac_try="$ac_cpp conftest.$ac_ext"
7410 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7411 *) ac_try_echo
=$ac_try;;
7413 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7414 $as_echo "$ac_try_echo") >&5
7415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7417 grep -v '^ *+' conftest.er1
>conftest.err
7419 cat conftest.err
>&5
7420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); } >/dev
/null
&& {
7422 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7423 test ! -s conftest.err
7425 # Broken: success on invalid input.
7428 $as_echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.
$ac_ext >&5
7431 # Passes both tests.
7436 rm -f conftest.err conftest.
$ac_ext
7439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7440 rm -f conftest.err conftest.
$ac_ext
7441 if $ac_preproc_ok; then
7444 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7446 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7447 See \`config.log' for more details." >&5
7448 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7449 See \`config.log' for more details." >&2;}
7450 { (exit 1); exit 1; }; }; }
7454 ac_cpp
='$CXXCPP $CPPFLAGS'
7455 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7456 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7457 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7463 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7464 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7465 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
7466 if test -n "$ac_tool_prefix"; then
7467 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
7469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7470 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
7471 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7472 $as_echo_n "checking for $ac_word... " >&6; }
7473 if test "${ac_cv_prog_F77+set}" = set; then
7474 $as_echo_n "(cached) " >&6
7476 if test -n "$F77"; then
7477 ac_cv_prog_F77
="$F77" # Let the user override the test.
7479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7483 test -z "$as_dir" && as_dir
=.
7484 for ac_exec_ext
in '' $ac_executable_extensions; do
7485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7486 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
7487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7497 if test -n "$F77"; then
7498 { $as_echo "$as_me:$LINENO: result: $F77" >&5
7499 $as_echo "$F77" >&6; }
7501 { $as_echo "$as_me:$LINENO: result: no" >&5
7502 $as_echo "no" >&6; }
7506 test -n "$F77" && break
7509 if test -z "$F77"; then
7511 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
7513 # Extract the first word of "$ac_prog", so it can be a program name with args.
7514 set dummy
$ac_prog; ac_word
=$2
7515 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7516 $as_echo_n "checking for $ac_word... " >&6; }
7517 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7518 $as_echo_n "(cached) " >&6
7520 if test -n "$ac_ct_F77"; then
7521 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
7523 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7527 test -z "$as_dir" && as_dir
=.
7528 for ac_exec_ext
in '' $ac_executable_extensions; do
7529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7530 ac_cv_prog_ac_ct_F77
="$ac_prog"
7531 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7540 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
7541 if test -n "$ac_ct_F77"; then
7542 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7543 $as_echo "$ac_ct_F77" >&6; }
7545 { $as_echo "$as_me:$LINENO: result: no" >&5
7546 $as_echo "no" >&6; }
7550 test -n "$ac_ct_F77" && break
7553 if test "x$ac_ct_F77" = x
; then
7556 case $cross_compiling:$ac_tool_warned in
7558 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7560 ac_tool_warned
=yes ;;
7567 # Provide some information about the compiler.
7568 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7571 { (ac_try
="$ac_compiler --version >&5"
7573 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7574 *) ac_try_echo=$ac_try;;
7576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7577 $as_echo "$ac_try_echo") >&5
7578 (eval "$ac_compiler --version >&5") 2>&5
7580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }
7582 { (ac_try="$ac_compiler -v >&5"
7584 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7585 *) ac_try_echo
=$ac_try;;
7587 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7588 $as_echo "$ac_try_echo") >&5
7589 (eval "$ac_compiler -v >&5") 2>&5
7591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); }
7593 { (ac_try
="$ac_compiler -V >&5"
7595 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7596 *) ac_try_echo=$ac_try;;
7598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7599 $as_echo "$ac_try_echo") >&5
7600 (eval "$ac_compiler -V >&5") 2>&5
7602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }
7606 # If we don't use `.F
' as extension, the preprocessor is not run on the
7607 # input file. (Note that this only needs to work for GNU compilers.)
7610 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7611 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7612 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7613 $as_echo_n "(cached) " >&6
7615 cat >conftest.$ac_ext <<_ACEOF
7623 rm -f conftest.$ac_objext
7624 if { (ac_try="$ac_compile"
7626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7627 *) ac_try_echo=$ac_try;;
7629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7630 $as_echo "$ac_try_echo") >&5
7631 (eval "$ac_compile") 2>conftest.er1
7633 grep -v '^
*+' conftest.er1 >conftest.err
7635 cat conftest.err >&5
7636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); } && {
7638 test -z "$ac_f77_werror_flag" ||
7639 test ! -s conftest.err
7640 } && test -s conftest.$ac_objext; then
7643 $as_echo "$as_me: failed program was:" >&5
7644 sed 's
/^
/| /' conftest.$ac_ext >&5
7649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7650 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7653 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7654 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7656 ac_test_FFLAGS=${FFLAGS+set}
7657 ac_save_FFLAGS=$FFLAGS
7659 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7660 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7661 if test "${ac_cv_prog_f77_g+set}" = set; then
7662 $as_echo_n "(cached) " >&6
7665 cat >conftest.$ac_ext <<_ACEOF
7670 rm -f conftest.$ac_objext
7671 if { (ac_try="$ac_compile"
7673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7674 *) ac_try_echo=$ac_try;;
7676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7677 $as_echo "$ac_try_echo") >&5
7678 (eval "$ac_compile") 2>conftest.er1
7680 grep -v '^
*+' conftest.er1 >conftest.err
7682 cat conftest.err >&5
7683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); } && {
7685 test -z "$ac_f77_werror_flag" ||
7686 test ! -s conftest.err
7687 } && test -s conftest.$ac_objext; then
7688 ac_cv_prog_f77_g=yes
7690 $as_echo "$as_me: failed program was:" >&5
7691 sed 's
/^
/| /' conftest.$ac_ext >&5
7696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7700 $as_echo "$ac_cv_prog_f77_g" >&6; }
7701 if test "$ac_test_FFLAGS" = set; then
7702 FFLAGS=$ac_save_FFLAGS
7703 elif test $ac_cv_prog_f77_g = yes; then
7704 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7710 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7717 if test $ac_compiler_gnu = yes; then
7723 ac_cpp='$CPP $CPPFLAGS'
7724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
7725 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
7726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7730 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works
for C compilers
!
7731 # find the maximum length of command line arguments
7732 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7733 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7734 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7735 $as_echo_n "(cached) " >&6
7742 # On DJGPP, this test can blow up pretty badly due to problems in libc
7743 # (any single argument exceeding 2000 bytes causes a buffer overrun
7744 # during glob expansion). Even if it were fixed, the result of this
7745 # check would be larger than it should be.
7746 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
7750 # Under GNU Hurd, this test is not required because there is
7751 # no limit to the length of command line arguments.
7752 # Libtool will interpret -1 as no limit whatsoever
7753 lt_cv_sys_max_cmd_len
=-1;
7757 # On Win9x/ME, this test blows up -- it succeeds, but takes
7758 # about 5 minutes as the teststring grows exponentially.
7759 # Worse, since 9x/ME are not pre-emptively multitasking,
7760 # you end up with a "frozen" computer, even though with patience
7761 # the test eventually succeeds (with a max line length of 256k).
7762 # Instead, let's just punt: use the minimum linelength reported by
7763 # all of the supported platforms: 8192 (on NT/2K/XP).
7764 lt_cv_sys_max_cmd_len
=8192;
7768 # On AmigaOS with pdksh, this test takes hours, literally.
7769 # So we just punt and use a minimum line length of 8192.
7770 lt_cv_sys_max_cmd_len
=8192;
7773 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
7774 # This has been around since 386BSD, at least. Likely further.
7775 if test -x /sbin
/sysctl
; then
7776 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
7777 elif test -x /usr
/sbin
/sysctl
; then
7778 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
7780 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
7782 # And add a safety zone
7783 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
7784 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
7788 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7789 lt_cv_sys_max_cmd_len
=196608
7793 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7794 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7795 # nice to cause kernel panics so lets avoid the loop below.
7796 # First set a reasonable default.
7797 lt_cv_sys_max_cmd_len
=16384
7799 if test -x /sbin
/sysconfig
; then
7800 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7801 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
7806 lt_cv_sys_max_cmd_len
=102400
7808 sysv5
* | sco5v6
* | sysv4.2uw2
*)
7809 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7810 if test -n "$kargmax"; then
7811 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
7813 lt_cv_sys_max_cmd_len
=32768
7817 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
7818 if test -n "$lt_cv_sys_max_cmd_len"; then
7819 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
7820 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
7822 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
7823 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7824 = "XX$teststring") >/dev
/null
2>&1 &&
7825 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
7826 lt_cv_sys_max_cmd_len
=$new_result &&
7827 test $i != 17 # 1/2 MB should be enough
7830 teststring
=$teststring$teststring
7833 # Add a significant safety factor because C++ compilers can tack on massive
7834 # amounts of additional arguments before passing them to the linker.
7835 # It appears as though 1/2 is a usable value.
7836 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
7843 if test -n $lt_cv_sys_max_cmd_len ; then
7844 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7845 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7847 { $as_echo "$as_me:$LINENO: result: none" >&5
7848 $as_echo "none" >&6; }
7855 # Check for command to grab the raw symbol name followed by C symbol from nm.
7856 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7857 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7858 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7859 $as_echo_n "(cached) " >&6
7862 # These are sane defaults that work on at least a few old systems.
7863 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7865 # Character class describing NM global symbol codes.
7866 symcode
='[BCDEGRST]'
7868 # Regexp to match symbols that can be accessed directly from C.
7869 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
7871 # Transform an extracted symbol line into a proper C declaration
7872 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7874 # Transform an extracted symbol line into symbol name and symbol address
7875 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'"
7877 # Define system-specific variables.
7882 cygwin
* | mingw
* | pw32
*)
7883 symcode
='[ABCDGISTW]'
7885 hpux
*) # Its linker distinguishes data from code symbols
7886 if test "$host_cpu" = ia64
; then
7887 symcode
='[ABCDEGRST]'
7889 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7890 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'"
7892 linux
* | k
*bsd
*-gnu)
7893 if test "$host_cpu" = ia64
; then
7894 symcode
='[ABCDGIRSTW]'
7895 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7896 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'"
7900 symcode
='[BCDEGRST]'
7903 symcode
='[BCDEGQRST]'
7914 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
7922 # Handle CRLF in mingw tool chain
7926 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7930 # If we're using GNU nm, then use its standard symbol codes.
7931 case `$NM -V 2>&1` in
7932 *GNU
* | *'with BFD'*)
7933 symcode
='[ABCDGIRSTW]' ;;
7936 # Try without a prefix undercore, then with it.
7937 for ac_symprfx
in "" "_"; do
7939 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7940 symxfrm
="\\1 $ac_symprfx\\2 \\2"
7942 # Write the raw and C identifiers.
7943 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7945 # Check to see that the pipe works correctly.
7949 cat > conftest.
$ac_ext <<EOF
7954 void nm_test_func(){}
7958 int main(){nm_test_var='a';nm_test_func();return(0);}
7961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7962 (eval $ac_compile) 2>&5
7964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; then
7966 # Now try to grab the symbols.
7968 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7969 (eval $NM conftest.
$ac_objext \
| $lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
7971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); } && test -s "$nlist"; then
7973 # Try sorting and uniquifying the output.
7974 if sort "$nlist" | uniq > "$nlist"T
; then
7975 mv -f "$nlist"T
"$nlist"
7980 # Make sure that we snagged all the symbols we need.
7981 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
7982 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
7983 cat <<EOF > conftest.$ac_ext
7989 # Now generate the symbol file.
7990 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7992 cat <<EOF >> conftest.$ac_ext
7993 #if defined (__STDC__) && __STDC__
7994 # define lt_ptr_t void *
7996 # define lt_ptr_t char *
8000 /* The mapping between symbol names and symbols. */
8005 lt_preloaded_symbols[] =
8008 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main
>> conftest.
$ac_ext
8009 cat <<\EOF
>> conftest.
$ac_ext
8017 # Now try linking the two files.
8018 mv conftest.
$ac_objext conftstm.
$ac_objext
8019 lt_save_LIBS
="$LIBS"
8020 lt_save_CFLAGS
="$CFLAGS"
8021 LIBS
="conftstm.$ac_objext"
8022 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8024 (eval $ac_link) 2>&5
8026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
8030 LIBS
="$lt_save_LIBS"
8031 CFLAGS
="$lt_save_CFLAGS"
8033 echo "cannot find nm_test_func in $nlist" >&5
8036 echo "cannot find nm_test_var in $nlist" >&5
8039 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8042 echo "$progname: failed program was:" >&5
8043 cat conftest.
$ac_ext >&5
8045 rm -rf conftest
* conftst
*
8047 # Do not use the global_symbol_pipe unless it works.
8048 if test "$pipe_works" = yes; then
8051 lt_cv_sys_global_symbol_pipe
=
8057 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8058 lt_cv_sys_global_symbol_to_cdecl
=
8060 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8061 { $as_echo "$as_me:$LINENO: result: failed" >&5
8062 $as_echo "failed" >&6; }
8064 { $as_echo "$as_me:$LINENO: result: ok" >&5
8065 $as_echo "ok" >&6; }
8068 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8069 $as_echo_n "checking for objdir... " >&6; }
8070 if test "${lt_cv_objdir+set}" = set; then
8071 $as_echo_n "(cached) " >&6
8073 rm -f .libs
2>/dev
/null
8074 mkdir .libs
2>/dev
/null
8075 if test -d .libs
; then
8078 # MS-DOS does not allow filenames that begin with a dot.
8081 rmdir .libs
2>/dev
/null
8083 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8084 $as_echo "$lt_cv_objdir" >&6; }
8085 objdir
=$lt_cv_objdir
8093 # AIX sometimes has problems with the GCC collect2 program. For some
8094 # reason, if we set the COLLECT_NAMES environment variable, the problems
8095 # vanish in a puff of smoke.
8096 if test "X${COLLECT_NAMES+set}" != Xset
; then
8098 export COLLECT_NAMES
8103 # Sed substitution that helps us do robust quoting. It backslashifies
8104 # metacharacters that are still active within double-quoted strings.
8105 Xsed
='sed -e 1s/^X//'
8106 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
8108 # Same as above, but do not quote variable references.
8109 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
8111 # Sed substitution to delay expansion of an escaped shell variable in a
8112 # double_quote_subst'ed string.
8113 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
8115 # Sed substitution to avoid accidental globbing in evaled expressions
8116 no_glob_subst
='s/\*/\\\*/g'
8122 default_ofile
=libtool
8123 can_build_shared
=yes
8125 # All known linkers require a `.a' archive for static linking (except MSVC,
8126 # which needs '.lib').
8128 ltmain
="$ac_aux_dir/ltmain.sh"
8129 ofile
="$default_ofile"
8130 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8132 if test -n "$ac_tool_prefix"; then
8133 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8134 set dummy
${ac_tool_prefix}ar; ac_word
=$2
8135 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8136 $as_echo_n "checking for $ac_word... " >&6; }
8137 if test "${ac_cv_prog_AR+set}" = set; then
8138 $as_echo_n "(cached) " >&6
8140 if test -n "$AR"; then
8141 ac_cv_prog_AR
="$AR" # Let the user override the test.
8143 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8147 test -z "$as_dir" && as_dir
=.
8148 for ac_exec_ext
in '' $ac_executable_extensions; do
8149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8150 ac_cv_prog_AR
="${ac_tool_prefix}ar"
8151 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8161 if test -n "$AR"; then
8162 { $as_echo "$as_me:$LINENO: result: $AR" >&5
8163 $as_echo "$AR" >&6; }
8165 { $as_echo "$as_me:$LINENO: result: no" >&5
8166 $as_echo "no" >&6; }
8171 if test -z "$ac_cv_prog_AR"; then
8173 # Extract the first word of "ar", so it can be a program name with args.
8174 set dummy
ar; ac_word
=$2
8175 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8176 $as_echo_n "checking for $ac_word... " >&6; }
8177 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8178 $as_echo_n "(cached) " >&6
8180 if test -n "$ac_ct_AR"; then
8181 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
8183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8187 test -z "$as_dir" && as_dir
=.
8188 for ac_exec_ext
in '' $ac_executable_extensions; do
8189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8190 ac_cv_prog_ac_ct_AR
="ar"
8191 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8200 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
8201 if test -n "$ac_ct_AR"; then
8202 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8203 $as_echo "$ac_ct_AR" >&6; }
8205 { $as_echo "$as_me:$LINENO: result: no" >&5
8206 $as_echo "no" >&6; }
8209 if test "x$ac_ct_AR" = x
; then
8212 case $cross_compiling:$ac_tool_warned in
8214 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8216 ac_tool_warned
=yes ;;
8224 if test -n "$ac_tool_prefix"; then
8225 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8226 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8227 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8228 $as_echo_n "checking for $ac_word... " >&6; }
8229 if test "${ac_cv_prog_RANLIB+set}" = set; then
8230 $as_echo_n "(cached) " >&6
8232 if test -n "$RANLIB"; then
8233 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8235 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8239 test -z "$as_dir" && as_dir
=.
8240 for ac_exec_ext
in '' $ac_executable_extensions; do
8241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8242 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8243 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8252 RANLIB
=$ac_cv_prog_RANLIB
8253 if test -n "$RANLIB"; then
8254 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
8255 $as_echo "$RANLIB" >&6; }
8257 { $as_echo "$as_me:$LINENO: result: no" >&5
8258 $as_echo "no" >&6; }
8263 if test -z "$ac_cv_prog_RANLIB"; then
8264 ac_ct_RANLIB
=$RANLIB
8265 # Extract the first word of "ranlib", so it can be a program name with args.
8266 set dummy ranlib
; ac_word
=$2
8267 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8268 $as_echo_n "checking for $ac_word... " >&6; }
8269 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8270 $as_echo_n "(cached) " >&6
8272 if test -n "$ac_ct_RANLIB"; then
8273 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8275 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8279 test -z "$as_dir" && as_dir
=.
8280 for ac_exec_ext
in '' $ac_executable_extensions; do
8281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8282 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8283 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8292 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8293 if test -n "$ac_ct_RANLIB"; then
8294 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8295 $as_echo "$ac_ct_RANLIB" >&6; }
8297 { $as_echo "$as_me:$LINENO: result: no" >&5
8298 $as_echo "no" >&6; }
8301 if test "x$ac_ct_RANLIB" = x
; then
8304 case $cross_compiling:$ac_tool_warned in
8306 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8308 ac_tool_warned
=yes ;;
8310 RANLIB
=$ac_ct_RANLIB
8313 RANLIB
="$ac_cv_prog_RANLIB"
8316 if test -n "$ac_tool_prefix"; then
8317 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8318 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
8319 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8320 $as_echo_n "checking for $ac_word... " >&6; }
8321 if test "${ac_cv_prog_STRIP+set}" = set; then
8322 $as_echo_n "(cached) " >&6
8324 if test -n "$STRIP"; then
8325 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
8327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8331 test -z "$as_dir" && as_dir
=.
8332 for ac_exec_ext
in '' $ac_executable_extensions; do
8333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8334 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
8335 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8344 STRIP
=$ac_cv_prog_STRIP
8345 if test -n "$STRIP"; then
8346 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
8347 $as_echo "$STRIP" >&6; }
8349 { $as_echo "$as_me:$LINENO: result: no" >&5
8350 $as_echo "no" >&6; }
8355 if test -z "$ac_cv_prog_STRIP"; then
8357 # Extract the first word of "strip", so it can be a program name with args.
8358 set dummy strip
; ac_word
=$2
8359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8360 $as_echo_n "checking for $ac_word... " >&6; }
8361 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8362 $as_echo_n "(cached) " >&6
8364 if test -n "$ac_ct_STRIP"; then
8365 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
8367 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8371 test -z "$as_dir" && as_dir
=.
8372 for ac_exec_ext
in '' $ac_executable_extensions; do
8373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8374 ac_cv_prog_ac_ct_STRIP
="strip"
8375 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8384 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
8385 if test -n "$ac_ct_STRIP"; then
8386 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8387 $as_echo "$ac_ct_STRIP" >&6; }
8389 { $as_echo "$as_me:$LINENO: result: no" >&5
8390 $as_echo "no" >&6; }
8393 if test "x$ac_ct_STRIP" = x
; then
8396 case $cross_compiling:$ac_tool_warned in
8398 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8400 ac_tool_warned
=yes ;;
8405 STRIP
="$ac_cv_prog_STRIP"
8410 old_CFLAGS
="$CFLAGS"
8412 # Set sane defaults for various variables
8413 test -z "$AR" && AR
=ar
8414 test -z "$AR_FLAGS" && AR_FLAGS
=cru
8415 test -z "$AS" && AS
=as
8416 test -z "$CC" && CC
=cc
8417 test -z "$LTCC" && LTCC
=$CC
8418 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8419 test -z "$DLLTOOL" && DLLTOOL
=dlltool
8420 test -z "$LD" && LD
=ld
8421 test -z "$LN_S" && LN_S
="ln -s"
8422 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8423 test -z "$NM" && NM
=nm
8424 test -z "$SED" && SED
=sed
8425 test -z "$OBJDUMP" && OBJDUMP
=objdump
8426 test -z "$RANLIB" && RANLIB
=:
8427 test -z "$STRIP" && STRIP
=:
8428 test -z "$ac_objext" && ac_objext
=o
8430 # Determine commands to create old-style static archives.
8431 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
8432 old_postinstall_cmds
='chmod 644 $oldlib'
8433 old_postuninstall_cmds
=
8435 if test -n "$RANLIB"; then
8438 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8441 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
8444 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
8447 for cc_temp
in $compiler""; do
8449 compile
| *[\\/]compile
| ccache
| *[\\/]ccache
) ;;
8450 distcc
| *[\\/]distcc
| purify
| *[\\/]purify
) ;;
8455 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8458 # Only perform the check for file, if the check method requires it
8459 case $deplibs_check_method in
8461 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8462 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8463 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8464 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8465 $as_echo_n "(cached) " >&6
8469 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8472 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8473 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8474 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8475 for ac_dir
in $ac_dummy; do
8477 test -z "$ac_dir" && ac_dir
=.
8478 if test -f $ac_dir/${ac_tool_prefix}file; then
8479 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8480 if test -n "$file_magic_test_file"; then
8481 case $deplibs_check_method in
8483 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8484 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8485 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null
|
8486 $EGREP "$file_magic_regex" > /dev
/null
; then
8491 *** Warning: the command libtool uses to detect shared libraries,
8492 *** $file_magic_cmd, produces output that libtool cannot recognize.
8493 *** The result is that libtool may fail to recognize shared libraries
8494 *** as such. This will affect the creation of libtool libraries that
8495 *** depend on shared libraries, but programs linked with such libtool
8496 *** libraries will work regardless of this problem. Nevertheless, you
8497 *** may want to report the problem to your system manager and/or to
8498 *** bug-libtool@gnu.org
8508 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8513 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8514 if test -n "$MAGIC_CMD"; then
8515 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8516 $as_echo "$MAGIC_CMD" >&6; }
8518 { $as_echo "$as_me:$LINENO: result: no" >&5
8519 $as_echo "no" >&6; }
8522 if test -z "$lt_cv_path_MAGIC_CMD"; then
8523 if test -n "$ac_tool_prefix"; then
8524 { $as_echo "$as_me:$LINENO: checking for file" >&5
8525 $as_echo_n "checking for file... " >&6; }
8526 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8527 $as_echo_n "(cached) " >&6
8531 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8534 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8535 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8536 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8537 for ac_dir
in $ac_dummy; do
8539 test -z "$ac_dir" && ac_dir
=.
8540 if test -f $ac_dir/file; then
8541 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8542 if test -n "$file_magic_test_file"; then
8543 case $deplibs_check_method in
8545 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8546 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8547 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null
|
8548 $EGREP "$file_magic_regex" > /dev
/null
; then
8553 *** Warning: the command libtool uses to detect shared libraries,
8554 *** $file_magic_cmd, produces output that libtool cannot recognize.
8555 *** The result is that libtool may fail to recognize shared libraries
8556 *** as such. This will affect the creation of libtool libraries that
8557 *** depend on shared libraries, but programs linked with such libtool
8558 *** libraries will work regardless of this problem. Nevertheless, you
8559 *** may want to report the problem to your system manager and/or to
8560 *** bug-libtool@gnu.org
8570 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8575 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8576 if test -n "$MAGIC_CMD"; then
8577 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8578 $as_echo "$MAGIC_CMD" >&6; }
8580 { $as_echo "$as_me:$LINENO: result: no" >&5
8581 $as_echo "no" >&6; }
8595 rhapsody
* | darwin
*)
8596 if test -n "$ac_tool_prefix"; then
8597 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8598 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
8599 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8600 $as_echo_n "checking for $ac_word... " >&6; }
8601 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8602 $as_echo_n "(cached) " >&6
8604 if test -n "$DSYMUTIL"; then
8605 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
8607 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8611 test -z "$as_dir" && as_dir
=.
8612 for ac_exec_ext
in '' $ac_executable_extensions; do
8613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8614 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
8615 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8624 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
8625 if test -n "$DSYMUTIL"; then
8626 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8627 $as_echo "$DSYMUTIL" >&6; }
8629 { $as_echo "$as_me:$LINENO: result: no" >&5
8630 $as_echo "no" >&6; }
8635 if test -z "$ac_cv_prog_DSYMUTIL"; then
8636 ac_ct_DSYMUTIL
=$DSYMUTIL
8637 # Extract the first word of "dsymutil", so it can be a program name with args.
8638 set dummy dsymutil
; ac_word
=$2
8639 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8640 $as_echo_n "checking for $ac_word... " >&6; }
8641 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8642 $as_echo_n "(cached) " >&6
8644 if test -n "$ac_ct_DSYMUTIL"; then
8645 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
8647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8651 test -z "$as_dir" && as_dir
=.
8652 for ac_exec_ext
in '' $ac_executable_extensions; do
8653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8654 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
8655 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8664 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
8665 if test -n "$ac_ct_DSYMUTIL"; then
8666 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8667 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8669 { $as_echo "$as_me:$LINENO: result: no" >&5
8670 $as_echo "no" >&6; }
8673 if test "x$ac_ct_DSYMUTIL" = x
; then
8676 case $cross_compiling:$ac_tool_warned in
8678 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8680 ac_tool_warned
=yes ;;
8682 DSYMUTIL
=$ac_ct_DSYMUTIL
8685 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
8688 if test -n "$ac_tool_prefix"; then
8689 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8690 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
8691 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8692 $as_echo_n "checking for $ac_word... " >&6; }
8693 if test "${ac_cv_prog_NMEDIT+set}" = set; then
8694 $as_echo_n "(cached) " >&6
8696 if test -n "$NMEDIT"; then
8697 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
8699 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8703 test -z "$as_dir" && as_dir
=.
8704 for ac_exec_ext
in '' $ac_executable_extensions; do
8705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8706 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
8707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8716 NMEDIT
=$ac_cv_prog_NMEDIT
8717 if test -n "$NMEDIT"; then
8718 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
8719 $as_echo "$NMEDIT" >&6; }
8721 { $as_echo "$as_me:$LINENO: result: no" >&5
8722 $as_echo "no" >&6; }
8727 if test -z "$ac_cv_prog_NMEDIT"; then
8728 ac_ct_NMEDIT
=$NMEDIT
8729 # Extract the first word of "nmedit", so it can be a program name with args.
8730 set dummy nmedit
; ac_word
=$2
8731 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8732 $as_echo_n "checking for $ac_word... " >&6; }
8733 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8734 $as_echo_n "(cached) " >&6
8736 if test -n "$ac_ct_NMEDIT"; then
8737 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
8739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8743 test -z "$as_dir" && as_dir
=.
8744 for ac_exec_ext
in '' $ac_executable_extensions; do
8745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8746 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
8747 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8756 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
8757 if test -n "$ac_ct_NMEDIT"; then
8758 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8759 $as_echo "$ac_ct_NMEDIT" >&6; }
8761 { $as_echo "$as_me:$LINENO: result: no" >&5
8762 $as_echo "no" >&6; }
8765 if test "x$ac_ct_NMEDIT" = x
; then
8768 case $cross_compiling:$ac_tool_warned in
8770 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8772 ac_tool_warned
=yes ;;
8774 NMEDIT
=$ac_ct_NMEDIT
8777 NMEDIT
="$ac_cv_prog_NMEDIT"
8781 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8782 $as_echo_n "checking for -single_module linker flag... " >&6; }
8783 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8784 $as_echo_n "(cached) " >&6
8786 lt_cv_apple_cc_single_mod
=no
8787 if test -z "${LT_MULTI_MODULE}"; then
8788 # By default we will add the -single_module flag. You can override
8789 # by either setting the environment variable LT_MULTI_MODULE
8790 # non-empty at configure time, or by adding -multi_module to the
8792 echo "int foo(void){return 1;}" > conftest.c
8793 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8794 -dynamiclib ${wl}-single_module conftest.c
8795 if test -f libconftest.dylib
; then
8796 lt_cv_apple_cc_single_mod
=yes
8797 rm -rf libconftest.dylib
*
8802 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8803 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8804 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8805 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8806 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8807 $as_echo_n "(cached) " >&6
8809 lt_cv_ld_exported_symbols_list
=no
8810 save_LDFLAGS
=$LDFLAGS
8811 echo "_main" > conftest.sym
8812 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8813 cat >conftest.
$ac_ext <<_ACEOF
8816 cat confdefs.h
>>conftest.
$ac_ext
8817 cat >>conftest.
$ac_ext <<_ACEOF
8818 /* end confdefs.h. */
8828 rm -f conftest.
$ac_objext conftest
$ac_exeext
8829 if { (ac_try
="$ac_link"
8831 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
8832 *) ac_try_echo=$ac_try;;
8834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8835 $as_echo "$ac_try_echo") >&5
8836 (eval "$ac_link") 2>conftest.er1
8838 grep -v '^ *+' conftest.er1 >conftest.err
8840 cat conftest.err >&5
8841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); } && {
8843 test -z "$ac_c_werror_flag" ||
8844 test ! -s conftest.err
8845 } && test -s conftest$ac_exeext && {
8846 test "$cross_compiling" = yes ||
8847 $as_test_x conftest$ac_exeext
8849 lt_cv_ld_exported_symbols_list=yes
8851 $as_echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8854 lt_cv_ld_exported_symbols_list=no
8857 rm -rf conftest.dSYM
8858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8859 conftest$ac_exeext conftest.$ac_ext
8860 LDFLAGS="$save_LDFLAGS"
8863 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8864 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8866 rhapsody* | darwin1.[0123])
8867 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8869 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8871 # if running on 10.5 or later, the deployment target defaults
8872 # to the OS version, if on x86, and 10.4, the deployment
8873 # target defaults to 10.4. Don't you love it?
8874 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8875 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8876 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8878 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8880 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8884 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8885 _lt_dar_single_mod='$single_module'
8887 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8888 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8890 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
8892 if test "$DSYMUTIL" != ":"; then
8893 _lt_dsymutil="~$DSYMUTIL \$lib || :"
8904 # Check whether --enable-libtool-lock was given.
8905 if test "${enable_libtool_lock+set}" = set; then
8906 enableval=$enable_libtool_lock;
8909 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8912 # Check whether --with-pic was given.
8913 if test "${with_pic+set}" = set; then
8914 withval=$with_pic; pic_mode="$withval"
8919 test -z "$pic_mode" && pic_mode=default
8921 # Use C for the default configuration in the libtool script
8925 ac_cpp='$CPP $CPPFLAGS'
8926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8931 # Source file extension for C test sources.
8934 # Object file extension for compiled C test sources.
8938 # Code to be used in simple compile tests
8939 lt_simple_compile_test_code="int some_variable = 0;"
8941 # Code to be used in simple link tests
8942 lt_simple_link_test_code='int main(){return(0);}'
8945 # If no C compiler was specified, use CC.
8948 # If no C compiler flags were specified, use CFLAGS.
8949 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8951 # Allow CC to be a program name with arguments.
8955 # save warnings/boilerplate of simple test code
8956 ac_outfile=conftest.$ac_objext
8957 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8958 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8959 _lt_compiler_boilerplate=`cat conftest.err
`
8962 ac_outfile=conftest.$ac_objext
8963 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8964 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8965 _lt_linker_boilerplate=`cat conftest.err
`
8970 lt_prog_compiler_no_builtin_flag=
8972 if test "$GCC" = yes; then
8973 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8976 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8977 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8978 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8979 $as_echo_n "(cached) " >&6
8981 lt_cv_prog_compiler_rtti_exceptions=no
8982 ac_outfile=conftest.$ac_objext
8983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8984 lt_compiler_flag="-fno-rtti -fno-exceptions"
8985 # Insert the option either (1) after the last *FLAGS variable, or
8986 # (2) before a word containing "conftest.", or (3) at the end.
8987 # Note that $ac_compile itself does not contain backslashes and begins
8988 # with a dollar sign (not a hyphen), so the echo should work correctly.
8989 # The option is referenced via a variable to avoid confusing sed.
8990 lt_compile=`echo "$ac_compile" | $SED \
8991 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8993 -e 's:$: $lt_compiler_flag:'`
8994 (eval echo "\"\$as_me:8994: $lt_compile\"" >&5)
8995 (eval "$lt_compile" 2>conftest.err)
8997 cat conftest.err >&5
8998 echo "$as_me:8998: \$? = $ac_status" >&5
8999 if (exit $ac_status) && test -s "$ac_outfile"; then
9000 # The compiler can only warn and ignore the option if not recognized
9001 # So say no if there are warnings other than the usual output.
9002 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9003 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9004 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9005 lt_cv_prog_compiler_rtti_exceptions=yes
9011 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9012 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9014 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9015 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9022 lt_prog_compiler_wl=
9023 lt_prog_compiler_pic=
9024 lt_prog_compiler_static=
9026 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9027 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9029 if test "$GCC" = yes; then
9030 lt_prog_compiler_wl='-Wl,'
9031 lt_prog_compiler_static='-static'
9035 # All AIX code is PIC.
9036 if test "$host_cpu" = ia64; then
9037 # AIX 5 now supports IA64 processor
9038 lt_prog_compiler_static='-Bstatic'
9043 # FIXME: we need at least 68020 code to build shared libraries, but
9044 # adding the `-m68020' flag to GCC prevents building anything better,
9046 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
9049 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
9050 # PIC is the default for these OSes.
9053 mingw
* | cygwin
* | pw32
* | os2
*)
9054 # This hack is so that the source file can tell whether it is being
9055 # built for inclusion in a dll (and should export symbols for example).
9056 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9057 # (--disable-auto-import) libraries
9058 lt_prog_compiler_pic
='-DDLL_EXPORT'
9061 darwin
* | rhapsody
*)
9062 # PIC is the default on this platform
9063 # Common symbols not allowed in MH_DYLIB files
9064 lt_prog_compiler_pic
='-fno-common'
9068 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9069 # Instead, we relocate shared libraries at runtime.
9073 # Just because we use GCC doesn't mean we suddenly get shared libraries
9074 # on systems that don't support them.
9075 lt_prog_compiler_can_build_shared
=no
9080 if test -d /usr
/nec
; then
9081 lt_prog_compiler_pic
=-Kconform_pic
9086 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9093 lt_prog_compiler_pic
='-fPIC'
9099 lt_prog_compiler_pic
='-fPIC'
9103 # PORTME Check for flag to pass linker flags through the system compiler.
9106 lt_prog_compiler_wl
='-Wl,'
9107 if test "$host_cpu" = ia64
; then
9108 # AIX 5 now supports IA64 processor
9109 lt_prog_compiler_static
='-Bstatic'
9111 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
9115 # PIC is the default on this platform
9116 # Common symbols not allowed in MH_DYLIB files
9117 case $cc_basename in
9119 lt_prog_compiler_pic
='-qnocommon'
9120 lt_prog_compiler_wl
='-Wl,'
9125 mingw
* | cygwin
* | pw32
* | os2
*)
9126 # This hack is so that the source file can tell whether it is being
9127 # built for inclusion in a dll (and should export symbols for example).
9128 lt_prog_compiler_pic
='-DDLL_EXPORT'
9131 hpux9
* | hpux10
* | hpux11
*)
9132 lt_prog_compiler_wl
='-Wl,'
9133 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9140 lt_prog_compiler_pic
='+Z'
9143 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9144 lt_prog_compiler_static
='${wl}-a ${wl}archive'
9147 irix5
* | irix6
* | nonstopux
*)
9148 lt_prog_compiler_wl
='-Wl,'
9149 # PIC (with -KPIC) is the default.
9150 lt_prog_compiler_static
='-non_shared'
9154 lt_prog_compiler_pic
='-KPIC'
9155 lt_prog_compiler_static
='-Bstatic'
9158 linux
* | k
*bsd
*-gnu)
9159 case $cc_basename in
9161 lt_prog_compiler_wl
='-Wl,'
9162 lt_prog_compiler_pic
='-KPIC'
9163 lt_prog_compiler_static
='-static'
9165 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
9166 # Portland Group compilers (*not* the Pentium gcc compiler,
9167 # which looks to be a dead project)
9168 lt_prog_compiler_wl
='-Wl,'
9169 lt_prog_compiler_pic
='-fpic'
9170 lt_prog_compiler_static
='-Bstatic'
9173 lt_prog_compiler_wl
='-Wl,'
9174 # All Alpha code is PIC.
9175 lt_prog_compiler_static
='-non_shared'
9178 case `$CC -V 2>&1 | sed 5q` in
9181 lt_prog_compiler_pic
='-KPIC'
9182 lt_prog_compiler_static
='-Bstatic'
9183 lt_prog_compiler_wl
='-Wl,'
9186 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9187 lt_prog_compiler_pic
='-KPIC'
9188 lt_prog_compiler_static
='-Bstatic'
9189 lt_prog_compiler_wl
=''
9196 osf3
* | osf4
* | osf5
*)
9197 lt_prog_compiler_wl
='-Wl,'
9198 # All OSF/1 code is PIC.
9199 lt_prog_compiler_static
='-non_shared'
9203 lt_prog_compiler_static
='-non_shared'
9207 lt_prog_compiler_pic
='-KPIC'
9208 lt_prog_compiler_static
='-Bstatic'
9209 case $cc_basename in
9211 lt_prog_compiler_wl
='-Qoption ld ';;
9213 lt_prog_compiler_wl
='-Wl,';;
9218 lt_prog_compiler_wl
='-Qoption ld '
9219 lt_prog_compiler_pic
='-PIC'
9220 lt_prog_compiler_static
='-Bstatic'
9223 sysv4
| sysv4.2uw2
* | sysv4.3
*)
9224 lt_prog_compiler_wl
='-Wl,'
9225 lt_prog_compiler_pic
='-KPIC'
9226 lt_prog_compiler_static
='-Bstatic'
9230 if test -d /usr
/nec
;then
9231 lt_prog_compiler_pic
='-Kconform_pic'
9232 lt_prog_compiler_static
='-Bstatic'
9236 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
9237 lt_prog_compiler_wl
='-Wl,'
9238 lt_prog_compiler_pic
='-KPIC'
9239 lt_prog_compiler_static
='-Bstatic'
9243 lt_prog_compiler_wl
='-Wl,'
9244 lt_prog_compiler_can_build_shared
=no
9248 lt_prog_compiler_pic
='-pic'
9249 lt_prog_compiler_static
='-Bstatic'
9253 lt_prog_compiler_can_build_shared
=no
9258 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9259 $as_echo "$lt_prog_compiler_pic" >&6; }
9262 # Check to make sure the PIC flag actually works.
9264 if test -n "$lt_prog_compiler_pic"; then
9266 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9267 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9268 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9269 $as_echo_n "(cached) " >&6
9271 lt_cv_prog_compiler_pic_works
=no
9272 ac_outfile
=conftest.
$ac_objext
9273 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9274 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
9275 # Insert the option either (1) after the last *FLAGS variable, or
9276 # (2) before a word containing "conftest.", or (3) at the end.
9277 # Note that $ac_compile itself does not contain backslashes and begins
9278 # with a dollar sign (not a hyphen), so the echo should work correctly.
9279 # The option is referenced via a variable to avoid confusing sed.
9280 lt_compile
=`echo "$ac_compile" | $SED \
9281 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9283 -e 's:$: $lt_compiler_flag:'`
9284 (eval echo "\"\$as_me:9284: $lt_compile\"" >&5)
9285 (eval "$lt_compile" 2>conftest.err
)
9287 cat conftest.err
>&5
9288 echo "$as_me:9288: \$? = $ac_status" >&5
9289 if (exit $ac_status) && test -s "$ac_outfile"; then
9290 # The compiler can only warn and ignore the option if not recognized
9291 # So say no if there are warnings other than the usual output.
9292 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9293 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9294 if test ! -s conftest.er2
|| diff conftest.exp conftest.er2
>/dev
/null
; then
9295 lt_cv_prog_compiler_pic_works
=yes
9301 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9302 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9304 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
9305 case $lt_prog_compiler_pic in
9307 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
9310 lt_prog_compiler_pic
=
9311 lt_prog_compiler_can_build_shared
=no
9316 # For platforms which do not support PIC, -DPIC is meaningless:
9318 lt_prog_compiler_pic
=
9321 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
9326 # Check to make sure the static flag actually works.
9328 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
9329 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9330 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9331 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9332 $as_echo_n "(cached) " >&6
9334 lt_cv_prog_compiler_static_works
=no
9335 save_LDFLAGS
="$LDFLAGS"
9336 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
9337 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9338 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9339 # The linker can only warn and ignore the option if not recognized
9340 # So say no if there are warnings
9341 if test -s conftest.err
; then
9342 # Append any errors to the config.log.
9343 cat conftest.err
1>&5
9344 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9345 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9346 if diff conftest.exp conftest.er2
>/dev
/null
; then
9347 lt_cv_prog_compiler_static_works
=yes
9350 lt_cv_prog_compiler_static_works
=yes
9354 LDFLAGS
="$save_LDFLAGS"
9357 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9358 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9360 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
9363 lt_prog_compiler_static
=
9367 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9368 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9369 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9370 $as_echo_n "(cached) " >&6
9372 lt_cv_prog_compiler_c_o
=no
9373 $rm -r conftest
2>/dev
/null
9377 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9379 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9380 # Insert the option either (1) after the last *FLAGS variable, or
9381 # (2) before a word containing "conftest.", or (3) at the end.
9382 # Note that $ac_compile itself does not contain backslashes and begins
9383 # with a dollar sign (not a hyphen), so the echo should work correctly.
9384 lt_compile
=`echo "$ac_compile" | $SED \
9385 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9387 -e 's:$: $lt_compiler_flag:'`
9388 (eval echo "\"\$as_me:9388: $lt_compile\"" >&5)
9389 (eval "$lt_compile" 2>out
/conftest.err
)
9391 cat out
/conftest.err
>&5
9392 echo "$as_me:9392: \$? = $ac_status" >&5
9393 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9395 # The compiler can only warn and ignore the option if not recognized
9396 # So say no if there are warnings
9397 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out
/conftest.exp
9398 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9399 if test ! -s out
/conftest.er2
|| diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9400 lt_cv_prog_compiler_c_o
=yes
9405 # SGI C++ compiler will create directory out/ii_files/ for
9406 # template instantiation
9407 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
9408 $rm out
/* && rmdir out
9414 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9415 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9418 hard_links
="nottested"
9419 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
9420 # do not overwrite the value of need_locks provided by the user
9421 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9422 $as_echo_n "checking if we can lock with hard links... " >&6; }
9425 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9427 ln conftest.a conftest.b
2>&5 || hard_links
=no
9428 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9429 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9430 $as_echo "$hard_links" >&6; }
9431 if test "$hard_links" = no
; then
9432 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9433 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9440 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9441 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9444 allow_undefined_flag
=
9445 enable_shared_with_static_runtimes
=no
9447 archive_expsym_cmds
=
9448 old_archive_From_new_cmds
=
9449 old_archive_from_expsyms_cmds
=
9450 export_dynamic_flag_spec
=
9451 whole_archive_flag_spec
=
9452 thread_safe_flag_spec
=
9453 hardcode_libdir_flag_spec
=
9454 hardcode_libdir_flag_spec_ld
=
9455 hardcode_libdir_separator
=
9458 hardcode_shlibpath_var
=unsupported
9459 link_all_deplibs
=unknown
9460 hardcode_automatic
=no
9463 always_export_symbols
=no
9464 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9465 # include_expsyms should be a list of space-separated symbols to be *always*
9466 # included in the symbol list
9468 # exclude_expsyms can be an extended regexp of symbols to exclude
9469 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9470 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9471 # as well as any symbol that contains `d'.
9472 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9473 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9474 # platforms (ab)use it in PIC code, but their linkers get confused if
9475 # the symbol is explicitly referenced. Since portable code cannot
9476 # rely on this symbol name, it's probably fine to never include it in
9477 # preloaded symbol tables.
9478 # Exclude shared library initialization/finalization symbols.
9479 extract_expsyms_cmds
=
9480 # Just being paranoid about ensuring that cc_basename is set.
9481 for cc_temp
in $compiler""; do
9483 compile
| *[\\/]compile
| ccache
| *[\\/]ccache
) ;;
9484 distcc
| *[\\/]distcc
| purify
| *[\\/]purify
) ;;
9489 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9492 cygwin
* | mingw
* | pw32
*)
9493 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9494 # When not using gcc, we currently assume that we are using
9495 # Microsoft Visual C++.
9496 if test "$GCC" != yes; then
9501 # we just hope/assume this is gcc and not c89 (= MSVC++)
9510 if test "$with_gnu_ld" = yes; then
9511 # If archive_cmds runs LD, not CC, wlarc should be empty
9514 # Set some defaults for GNU ld with shared library support. These
9515 # are reset later if shared libraries are not supported. Putting them
9516 # here allows them to be overridden if necessary.
9517 runpath_var
=LD_RUN_PATH
9518 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
9519 export_dynamic_flag_spec
='${wl}--export-dynamic'
9520 # ancient GNU ld didn't support --whole-archive et. al.
9521 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev
/null
; then
9522 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9524 whole_archive_flag_spec
=
9526 supports_anon_versioning
=no
9527 case `$LD -v 2>/dev/null` in
9528 *\
[01].
* | *\
2.
[0-9].
* | *\
2.10.
*) ;; # catch versions < 2.11
9529 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9530 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9531 *\
2.11.
*) ;; # other 2.11 versions
9532 *) supports_anon_versioning
=yes ;;
9535 # See if GNU ld supports shared libraries.
9538 # On AIX/PPC, the GNU linker is very broken
9539 if test "$host_cpu" != ia64
; then
9543 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9544 *** to be unable to reliably create shared libraries on AIX.
9545 *** Therefore, libtool is disabling shared libraries support. If you
9546 *** really care for shared libraries, you may want to modify your PATH
9547 *** so that a non-GNU linker is found, and then restart.
9554 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)'
9555 hardcode_libdir_flag_spec
='-L$libdir'
9556 hardcode_minus_L
=yes
9558 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9559 # that the semantics of dynamic libraries on AmigaOS, at least up
9560 # to version 4, is to share data among multiple programs linked
9561 # with the same dynamic library. Since this doesn't match the
9562 # behavior of shared libraries on other platforms, we can't use
9568 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
9569 allow_undefined_flag
=unsupported
9570 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9571 # support --undefined. This deserves some investigation. FIXME
9572 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9578 cygwin
* | mingw
* | pw32
*)
9579 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9580 # as there is no search path for DLLs.
9581 hardcode_libdir_flag_spec
='-L$libdir'
9582 allow_undefined_flag
=unsupported
9583 always_export_symbols
=no
9584 enable_shared_with_static_runtimes
=yes
9585 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9587 if $LD --help 2>&1 | grep 'auto-import' > /dev
/null
; then
9588 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9589 # If the export-symbols file already is a .def file (1st line
9590 # is EXPORTS), use it as is; otherwise, prepend...
9591 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9592 cp $export_symbols $output_objdir/$soname.def;
9594 echo EXPORTS > $output_objdir/$soname.def;
9595 cat $export_symbols >> $output_objdir/$soname.def;
9597 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9605 hardcode_shlibpath_var
=no
9606 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9607 export_dynamic_flag_spec
='${wl}-E'
9608 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9609 # Instead, shared libraries are loaded at an image base (0x10000000 by
9610 # default) and relocated if they conflict, which is a slow very memory
9611 # consuming and fragmenting process. To avoid this, we pick a random,
9612 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9613 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9614 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9615 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'
9618 gnu
* | linux
* | k
*bsd
*-gnu)
9619 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
9621 case $cc_basename,$host_cpu in
9622 pgcc
*) # Portland Group C compiler
9623 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'
9624 tmp_addflag
=' $pic_flag'
9626 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
9627 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'
9628 tmp_addflag
=' $pic_flag -Mnomain' ;;
9629 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9630 tmp_addflag
=' -i_dynamic' ;;
9631 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9632 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9633 ifc
* | ifort
*) # Intel Fortran compiler
9634 tmp_addflag
=' -nofor_main' ;;
9636 case `$CC -V 2>&1 | sed 5q` in
9637 *Sun\ C
*) # Sun C 5.9
9638 whole_archive_flag_spec
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9639 tmp_sharedflag
='-G' ;;
9640 *Sun\ F
*) # Sun Fortran 8.3
9641 tmp_sharedflag
='-G' ;;
9643 tmp_sharedflag
='-shared' ;;
9645 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9647 if test $supports_anon_versioning = yes; then
9648 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
9649 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9650 $echo "local: *; };" >> $output_objdir/$libname.ver~
9651 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9659 netbsd
* | netbsdelf
*-gnu)
9660 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
9661 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9664 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9665 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9670 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev
/null
; then
9674 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9675 *** create shared libraries on Solaris systems. Therefore, libtool
9676 *** is disabling shared libraries support. We urge you to upgrade GNU
9677 *** binutils to release 2.9.1 or newer. Another option is to modify
9678 *** your PATH or compiler configuration so that the native linker is
9679 *** used, and then restart.
9682 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
9683 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9684 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9690 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9691 case `$LD -v 2>&1` in
9692 *\
[01].
* | *\
2.
[0-9].
* | *\
2.1[0-5].
*)
9696 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9697 *** reliably create shared libraries on SCO systems. Therefore, libtool
9698 *** is disabling shared libraries support. We urge you to upgrade GNU
9699 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9700 *** your PATH or compiler configuration so that the native linker is
9701 *** used, and then restart.
9706 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
9707 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9708 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9709 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9718 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9721 hardcode_shlibpath_var
=no
9725 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
9726 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9727 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9734 if test "$ld_shlibs" = no
; then
9736 hardcode_libdir_flag_spec
=
9737 export_dynamic_flag_spec
=
9738 whole_archive_flag_spec
=
9741 # PORTME fill in a description of your system's linker (not GNU ld)
9744 allow_undefined_flag
=unsupported
9745 always_export_symbols
=yes
9746 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'
9747 # Note: this linker hardcodes the directories in LIBPATH if there
9748 # are no directories specified by -L.
9749 hardcode_minus_L
=yes
9750 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9751 # Neither direct hardcoding nor static linking is supported with a
9753 hardcode_direct
=unsupported
9758 if test "$host_cpu" = ia64
; then
9759 # On IA64, the linker does run time linking by default, so we don't
9760 # have to do anything special.
9761 aix_use_runtimelinking
=no
9762 exp_sym_flag
='-Bexport'
9765 # If we're using GNU nm, then we don't want the "-C" option.
9766 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9767 if $NM -V 2>&1 | grep 'GNU' > /dev
/null
; then
9768 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'
9770 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'
9772 aix_use_runtimelinking
=no
9774 # Test if we are trying to use run time linking or normal
9775 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9776 # need to do runtime linking.
9777 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9778 for ld_flag
in $LDFLAGS; do
9779 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9780 aix_use_runtimelinking
=yes
9787 exp_sym_flag
='-bexport'
9788 no_entry_flag
='-bnoentry'
9791 # When large executables or shared objects are built, AIX ld can
9792 # have problems creating the table of contents. If linking a library
9793 # or program results in "error TOC overflow" add -mminimal-toc to
9794 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9795 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9799 hardcode_libdir_separator
=':'
9800 link_all_deplibs
=yes
9802 if test "$GCC" = yes; then
9803 case $host_os in aix4.
[012]|aix4.
[012].
*)
9804 # We only want to do this on AIX 4.2 and lower, the check
9805 # below for broken collect2 doesn't work under 4.3+
9806 collect2name
=`${CC} -print-prog-name=collect2`
9807 if test -f "$collect2name" && \
9808 strings "$collect2name" | grep resolve_lib_name
>/dev
/null
9810 # We have reworked collect2
9813 # We have old collect2
9814 hardcode_direct
=unsupported
9815 # It fails to find uninstalled libraries when the uninstalled
9816 # path is not listed in the libpath. Setting hardcode_minus_L
9817 # to unsupported forces relinking
9818 hardcode_minus_L
=yes
9819 hardcode_libdir_flag_spec
='-L$libdir'
9820 hardcode_libdir_separator
=
9824 shared_flag
='-shared'
9825 if test "$aix_use_runtimelinking" = yes; then
9826 shared_flag
="$shared_flag "'${wl}-G'
9830 if test "$host_cpu" = ia64
; then
9831 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9832 # chokes on -Wl,-G. The following line is correct:
9835 if test "$aix_use_runtimelinking" = yes; then
9836 shared_flag
='${wl}-G'
9838 shared_flag
='${wl}-bM:SRE'
9843 # It seems that -bexpall does not export symbols beginning with
9844 # underscore (_), so it is better to generate a list of symbols to export.
9845 always_export_symbols
=yes
9846 if test "$aix_use_runtimelinking" = yes; then
9847 # Warning - without using the other runtime loading flags (-brtl),
9848 # -berok will link without error, but may produce a broken library.
9849 allow_undefined_flag
='-berok'
9850 # Determine the default libpath from the value encoded in an empty executable.
9851 cat >conftest.
$ac_ext <<_ACEOF
9854 cat confdefs.h
>>conftest.
$ac_ext
9855 cat >>conftest.
$ac_ext <<_ACEOF
9856 /* end confdefs.h. */
9866 rm -f conftest.
$ac_objext conftest
$ac_exeext
9867 if { (ac_try
="$ac_link"
9869 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
9870 *) ac_try_echo=$ac_try;;
9872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9873 $as_echo "$ac_try_echo") >&5
9874 (eval "$ac_link") 2>conftest.er1
9876 grep -v '^ *+' conftest.er1 >conftest.err
9878 cat conftest.err >&5
9879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); } && {
9881 test -z "$ac_c_werror_flag" ||
9882 test ! -s conftest.err
9883 } && test -s conftest$ac_exeext && {
9884 test "$cross_compiling" = yes ||
9885 $as_test_x conftest$ac_exeext
9888 lt_aix_libpath_sed='
9889 /Import File Strings/,/^$/ {
9895 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null
| $SED -n -e "$lt_aix_libpath_sed"`
9896 # Check for a 64-bit object if we didn't find anything.
9897 if test -z "$aix_libpath"; then
9898 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null
| $SED -n -e "$lt_aix_libpath_sed"`
9901 $as_echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9907 rm -rf conftest.dSYM
9908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9909 conftest$ac_exeext conftest.$ac_ext
9910 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9912 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9913 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"
9915 if test "$host_cpu" = ia64; then
9916 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9917 allow_undefined_flag="-z nodefs"
9918 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"
9920 # Determine the default libpath from the value encoded in an empty executable.
9921 cat >conftest.$ac_ext <<_ACEOF
9924 cat confdefs.h >>conftest.$ac_ext
9925 cat >>conftest.$ac_ext <<_ACEOF
9926 /* end confdefs.h. */
9936 rm -f conftest.$ac_objext conftest$ac_exeext
9937 if { (ac_try="$ac_link"
9939 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
9940 *) ac_try_echo
=$ac_try;;
9942 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9943 $as_echo "$ac_try_echo") >&5
9944 (eval "$ac_link") 2>conftest.er1
9946 grep -v '^ *+' conftest.er1
>conftest.err
9948 cat conftest.err
>&5
9949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } && {
9951 test -z "$ac_c_werror_flag" ||
9952 test ! -s conftest.err
9953 } && test -s conftest
$ac_exeext && {
9954 test "$cross_compiling" = yes ||
9955 $as_test_x conftest
$ac_exeext
9958 lt_aix_libpath_sed
='
9959 /Import File Strings/,/^$/ {
9965 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9966 # Check for a 64-bit object if we didn't find anything.
9967 if test -z "$aix_libpath"; then
9968 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9971 $as_echo "$as_me: failed program was:" >&5
9972 sed 's/^/| /' conftest.
$ac_ext >&5
9977 rm -rf conftest.dSYM
9978 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9979 conftest
$ac_exeext conftest.
$ac_ext
9980 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9982 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9983 # Warning - without using the other run time loading flags,
9984 # -berok will link without error, but may produce a broken library.
9985 no_undefined_flag
=' ${wl}-bernotok'
9986 allow_undefined_flag
=' ${wl}-berok'
9987 # Exported symbols can be pulled into shared objects from archives
9988 whole_archive_flag_spec
='$convenience'
9989 archive_cmds_need_lc
=yes
9990 # This is similar to how AIX traditionally builds its shared libraries.
9991 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'
9997 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)'
9998 hardcode_libdir_flag_spec
='-L$libdir'
9999 hardcode_minus_L
=yes
10000 # see comment about different semantics on the GNU ld section
10005 export_dynamic_flag_spec
=-rdynamic
10008 cygwin
* | mingw
* | pw32
*)
10009 # When not using gcc, we currently assume that we are using
10010 # Microsoft Visual C++.
10011 # hardcode_libdir_flag_spec is actually meaningless, as there is
10012 # no search path for DLLs.
10013 hardcode_libdir_flag_spec
=' '
10014 allow_undefined_flag
=unsupported
10015 # Tell ltmain to make .lib files, not .a files.
10017 # Tell ltmain to make .dll files, not .so files.
10019 # FIXME: Setting linknames here is a bad hack.
10020 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10021 # The linker will automatically build a .lib file if we build a DLL.
10022 old_archive_From_new_cmds
='true'
10023 # FIXME: Should let the user specify the lib program.
10024 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
10025 fix_srcfile_path
='`cygpath -w "$srcfile"`'
10026 enable_shared_with_static_runtimes
=yes
10029 darwin
* | rhapsody
*)
10031 rhapsody
* | darwin1.
[012])
10032 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
10035 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10036 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10038 case ${MACOSX_DEPLOYMENT_TARGET} in
10040 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10043 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
10049 archive_cmds_need_lc
=no
10051 hardcode_automatic
=yes
10052 hardcode_shlibpath_var
=unsupported
10053 whole_archive_flag_spec
=''
10054 link_all_deplibs
=yes
10055 if test "$GCC" = yes ; then
10056 output_verbose_link_cmd
='echo'
10057 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10058 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10059 archive_expsym_cmds
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10060 module_expsym_cmds
="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10062 case $cc_basename in
10064 output_verbose_link_cmd
='echo'
10065 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10066 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10067 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10068 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10069 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}'
10079 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10080 hardcode_libdir_flag_spec
='-L$libdir'
10081 hardcode_shlibpath_var
=no
10088 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10089 # support. Future versions do this automatically, but an explicit c++rt0.o
10090 # does not break anything, and helps significantly (at the cost of a little
10093 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10094 hardcode_libdir_flag_spec
='-R$libdir'
10095 hardcode_direct
=yes
10096 hardcode_shlibpath_var
=no
10099 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10101 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10102 hardcode_direct
=yes
10103 hardcode_minus_L
=yes
10104 hardcode_shlibpath_var
=no
10107 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10108 freebsd
* | dragonfly
*)
10109 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10110 hardcode_libdir_flag_spec
='-R$libdir'
10111 hardcode_direct
=yes
10112 hardcode_shlibpath_var
=no
10116 if test "$GCC" = yes; then
10117 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'
10119 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'
10121 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10122 hardcode_libdir_separator
=:
10123 hardcode_direct
=yes
10125 # hardcode_minus_L: Not really in the search PATH,
10126 # but as the default location of the library.
10127 hardcode_minus_L
=yes
10128 export_dynamic_flag_spec
='${wl}-E'
10132 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
10133 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10135 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10137 if test "$with_gnu_ld" = no
; then
10138 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10139 hardcode_libdir_separator
=:
10141 hardcode_direct
=yes
10142 export_dynamic_flag_spec
='${wl}-E'
10144 # hardcode_minus_L: Not really in the search PATH,
10145 # but as the default location of the library.
10146 hardcode_minus_L
=yes
10151 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
10154 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10157 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10160 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10166 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10169 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10172 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10176 if test "$with_gnu_ld" = no
; then
10177 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10178 hardcode_libdir_separator
=:
10182 hardcode_libdir_flag_spec_ld
='+b $libdir'
10184 hardcode_shlibpath_var
=no
10187 hardcode_direct
=yes
10188 export_dynamic_flag_spec
='${wl}-E'
10190 # hardcode_minus_L: Not really in the search PATH,
10191 # but as the default location of the library.
10192 hardcode_minus_L
=yes
10198 irix5
* | irix6
* | nonstopux
*)
10199 if test "$GCC" = yes; then
10200 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'
10202 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'
10203 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
10205 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10206 hardcode_libdir_separator
=:
10207 link_all_deplibs
=yes
10210 netbsd
* | netbsdelf
*-gnu)
10211 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
10212 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10214 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10216 hardcode_libdir_flag_spec
='-R$libdir'
10217 hardcode_direct
=yes
10218 hardcode_shlibpath_var
=no
10222 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10223 hardcode_direct
=yes
10224 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10225 hardcode_libdir_separator
=:
10226 hardcode_shlibpath_var
=no
10230 if test -f /usr
/libexec
/ld.so
; then
10231 hardcode_direct
=yes
10232 hardcode_shlibpath_var
=no
10233 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10234 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10235 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10236 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10237 export_dynamic_flag_spec
='${wl}-E'
10240 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
10241 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10242 hardcode_libdir_flag_spec
='-R$libdir'
10245 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10246 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10256 hardcode_libdir_flag_spec
='-L$libdir'
10257 hardcode_minus_L
=yes
10258 allow_undefined_flag
=unsupported
10259 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'
10260 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10264 if test "$GCC" = yes; then
10265 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10266 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'
10268 allow_undefined_flag
=' -expect_unresolved \*'
10269 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'
10271 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10272 hardcode_libdir_separator
=:
10275 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10276 if test "$GCC" = yes; then
10277 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10278 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'
10279 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10281 allow_undefined_flag
=' -expect_unresolved \*'
10282 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'
10283 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10284 $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'
10286 # Both c and cxx compiler support -rpath directly
10287 hardcode_libdir_flag_spec
='-rpath $libdir'
10289 hardcode_libdir_separator
=:
10293 no_undefined_flag
=' -z text'
10294 if test "$GCC" = yes; then
10296 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10297 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10298 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10301 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10302 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10303 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10305 hardcode_libdir_flag_spec
='-R$libdir'
10306 hardcode_shlibpath_var
=no
10308 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10310 # The compiler driver will combine and reorder linker options,
10311 # but understands `-z linker_flag'. GCC discards it without `$wl',
10312 # but is careful enough not to reorder.
10313 # Supported since Solaris 2.6 (maybe 2.5.1?)
10314 if test "$GCC" = yes; then
10315 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10317 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10321 link_all_deplibs
=yes
10325 if test "x$host_vendor" = xsequent
; then
10326 # Use $CC to link under sequent, because it throws in some extra .o
10327 # files that make .init and .fini sections work.
10328 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10330 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10332 hardcode_libdir_flag_spec
='-L$libdir'
10333 hardcode_direct
=yes
10334 hardcode_minus_L
=yes
10335 hardcode_shlibpath_var
=no
10339 case $host_vendor in
10341 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10342 hardcode_direct
=yes # is this really true???
10345 ## LD is ld it makes a PLAMLIB
10346 ## CC just makes a GrossModule.
10347 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10348 reload_cmds
='$CC -r -o $output$reload_objs'
10352 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10353 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10356 runpath_var
='LD_RUN_PATH'
10357 hardcode_shlibpath_var
=no
10361 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10362 hardcode_shlibpath_var
=no
10363 export_dynamic_flag_spec
='-Bexport'
10367 if test -d /usr
/nec
; then
10368 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10369 hardcode_shlibpath_var
=no
10370 runpath_var
=LD_RUN_PATH
10371 hardcode_runpath_var
=yes
10376 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10377 no_undefined_flag
='${wl}-z,text'
10378 archive_cmds_need_lc
=no
10379 hardcode_shlibpath_var
=no
10380 runpath_var
='LD_RUN_PATH'
10382 if test "$GCC" = yes; then
10383 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10384 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10386 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10387 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10391 sysv5
* | sco3.2v5
* | sco5v6
*)
10392 # Note: We can NOT use -z defs as we might desire, because we do not
10393 # link with -lc, and that would cause any symbols used from libc to
10394 # always be unresolved, which means just about no library would
10395 # ever link correctly. If we're not using GNU ld we use -z text
10396 # though, which does catch some bad symbols but isn't as heavy-handed
10398 no_undefined_flag
='${wl}-z,text'
10399 allow_undefined_flag
='${wl}-z,nodefs'
10400 archive_cmds_need_lc
=no
10401 hardcode_shlibpath_var
=no
10402 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10403 hardcode_libdir_separator
=':'
10404 link_all_deplibs
=yes
10405 export_dynamic_flag_spec
='${wl}-Bexport'
10406 runpath_var
='LD_RUN_PATH'
10408 if test "$GCC" = yes; then
10409 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10410 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10412 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10413 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10418 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10419 hardcode_libdir_flag_spec
='-L$libdir'
10420 hardcode_shlibpath_var
=no
10429 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10430 $as_echo "$ld_shlibs" >&6; }
10431 test "$ld_shlibs" = no
&& can_build_shared
=no
10434 # Do we need to explicitly link libc?
10436 case "x$archive_cmds_need_lc" in
10438 # Assume -lc should be added
10439 archive_cmds_need_lc
=yes
10441 if test "$enable_shared" = yes && test "$GCC" = yes; then
10442 case $archive_cmds in
10444 # FIXME: we may have to deal with multi-command sequences.
10447 # Test whether the compiler implicitly links with -lc since on some
10448 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10449 # to ld, don't add -lc before -lgcc.
10450 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10451 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10453 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10456 (eval $ac_compile) 2>&5
10458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } 2>conftest.err
; then
10462 libobjs
=conftest.
$ac_objext
10464 wl
=$lt_prog_compiler_wl
10465 pic_flag
=$lt_prog_compiler_pic
10471 lt_save_allow_undefined_flag
=$allow_undefined_flag
10472 allow_undefined_flag
=
10473 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10474 (eval $archive_cmds 2\
>\
&1 \
| grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); }
10479 archive_cmds_need_lc
=no
10481 archive_cmds_need_lc
=yes
10483 allow_undefined_flag
=$lt_save_allow_undefined_flag
10485 cat conftest.err
1>&5
10488 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10489 $as_echo "$archive_cmds_need_lc" >&6; }
10496 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10497 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10498 library_names_spec
=
10499 libname_spec
='lib$name'
10503 postuninstall_cmds
=
10507 shlibpath_overrides_runpath
=unknown
10509 dynamic_linker
="$host_os ld.so"
10510 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10512 if test "$GCC" = yes; then
10514 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10515 *) lt_awk_arg
="/^libraries:/" ;;
10517 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10518 if echo "$lt_search_path_spec" | grep ';' >/dev
/null
; then
10519 # if the path contains ";" then we assume it to be the separator
10520 # otherwise default to the standard path separator (i.e. ":") - it is
10521 # assumed that no part of a normal pathname contains ";" but that should
10522 # okay in the real world where ";" in dirpaths is itself problematic.
10523 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10525 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10527 # Ok, now we have the path, separated by spaces, we can step through it
10528 # and add multilib dir if necessary.
10529 lt_tmp_lt_search_path_spec
=
10530 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10531 for lt_sys_path
in $lt_search_path_spec; do
10532 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10533 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10535 test -d "$lt_sys_path" && \
10536 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10539 lt_search_path_spec
=`echo $lt_tmp_lt_search_path_spec | awk '
10540 BEGIN {RS=" "; FS="/|\n";} {
10543 for (lt_i = NF; lt_i > 0; lt_i--) {
10544 if ($lt_i != "" && $lt_i != ".") {
10545 if ($lt_i == "..") {
10548 if (lt_count == 0) {
10549 lt_foo="/" $lt_i lt_foo;
10556 if (lt_foo != "") { lt_freq[lt_foo]++; }
10557 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10559 sys_lib_search_path_spec
=`echo $lt_search_path_spec`
10561 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10563 need_lib_prefix
=unknown
10564 hardcode_into_libs
=no
10566 # when you set need_version to no, make sure it does not cause -set_version
10567 # flags to be left without arguments
10568 need_version
=unknown
10573 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10574 shlibpath_var
=LIBPATH
10576 # AIX 3 has no versioning support, so we append a major version to the name.
10577 soname_spec
='${libname}${release}${shared_ext}$major'
10584 hardcode_into_libs
=yes
10585 if test "$host_cpu" = ia64
; then
10586 # AIX 5 supports IA64
10587 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10588 shlibpath_var
=LD_LIBRARY_PATH
10590 # With GCC up to 2.95.x, collect2 would create an import file
10591 # for dependence libraries. The import file would start with
10592 # the line `#! .'. This would cause the generated library to
10593 # depend on `.', always an invalid library. This was fixed in
10594 # development snapshots of GCC prior to 3.0.
10596 aix4
| aix4.
[01] | aix4.
[01].
*)
10597 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10599 echo '#endif'; } | ${CC} -E - | grep yes > /dev
/null
; then
10602 can_build_shared
=no
10606 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10607 # soname into executable. Probably we can add versioning support to
10608 # collect2, so additional links can be useful in future.
10609 if test "$aix_use_runtimelinking" = yes; then
10610 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10611 # instead of lib<name>.a to let people know that these are not
10612 # typical AIX shared libraries.
10613 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10615 # We preserve .a as extension for shared libraries through AIX4.2
10616 # and later when we are not doing run time linking.
10617 library_names_spec
='${libname}${release}.a $libname.a'
10618 soname_spec
='${libname}${release}${shared_ext}$major'
10620 shlibpath_var
=LIBPATH
10625 library_names_spec
='$libname.ixlibrary $libname.a'
10626 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10627 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'
10631 library_names_spec
='${libname}${shared_ext}'
10632 dynamic_linker
="$host_os ld.so"
10633 shlibpath_var
=LIBRARY_PATH
10639 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10640 soname_spec
='${libname}${release}${shared_ext}$major'
10641 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10642 shlibpath_var
=LD_LIBRARY_PATH
10643 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10644 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10645 # the default ld.so.conf also contains /usr/contrib/lib and
10646 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10647 # libtool to hard-code these into programs
10650 cygwin
* | mingw
* | pw32
*)
10651 version_type
=windows
10656 case $GCC,$host_os in
10657 yes,cygwin
* | yes,mingw
* | yes,pw32
*)
10658 library_names_spec
='$libname.dll.a'
10659 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10660 postinstall_cmds
='base_file=`basename \${file}`~
10661 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10662 dldir=$destdir/`dirname \$dlpath`~
10663 test -d \$dldir || mkdir -p \$dldir~
10664 $install_prog $dir/$dlname \$dldir/$dlname~
10665 chmod a+x \$dldir/$dlname'
10666 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10667 dlpath=$dir/\$dldll~
10669 shlibpath_overrides_runpath
=yes
10673 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10674 soname_spec
='`echo ${libname} | sed -e 's
/^lib
/cyg
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
10675 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
10678 # MinGW DLLs use traditional 'lib' prefix
10679 soname_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
10680 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10681 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev
/null
; then
10682 # It is most probably a Windows format PATH printed by
10683 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10684 # path with ; separators, and with drive letters. We can handle the
10685 # drive letters (cygwin fileutils understands them), so leave them,
10686 # especially as we might pass files found there to a mingw objdump,
10687 # which wouldn't understand a cygwinified path. Ahh.
10688 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10690 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10694 # pw32 DLLs use 'pw' prefix rather than 'lib'
10695 library_names_spec
='`echo ${libname} | sed -e 's
/^lib
/pw
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
10701 library_names_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext} $libname.lib'
10704 dynamic_linker
='Win32 ld.exe'
10705 # FIXME: first we should search . and the directory the executable is in
10709 darwin
* | rhapsody
*)
10710 dynamic_linker
="$host_os dyld"
10711 version_type
=darwin
10714 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10715 soname_spec
='${libname}${release}${major}$shared_ext'
10716 shlibpath_overrides_runpath
=yes
10717 shlibpath_var
=DYLD_LIBRARY_PATH
10718 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10720 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10721 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10728 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10729 soname_spec
='${libname}${release}${shared_ext}$major'
10730 shlibpath_var
=LD_LIBRARY_PATH
10737 freebsd
* | dragonfly
*)
10738 # DragonFly does not have aout. When/if they implement a new
10739 # versioning mechanism, adjust this.
10740 if test -x /usr
/bin
/objformat
; then
10741 objformat
=`/usr/bin/objformat`
10744 freebsd
[123]*) objformat
=aout
;;
10745 *) objformat
=elf
;;
10748 version_type
=freebsd
-$objformat
10749 case $version_type in
10751 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10756 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10760 shlibpath_var
=LD_LIBRARY_PATH
10763 shlibpath_overrides_runpath
=yes
10765 freebsd3.
[01]* | freebsdelf3.
[01]*)
10766 shlibpath_overrides_runpath
=yes
10767 hardcode_into_libs
=yes
10769 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10770 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10771 shlibpath_overrides_runpath
=no
10772 hardcode_into_libs
=yes
10774 *) # from 4.6 on, and DragonFly
10775 shlibpath_overrides_runpath
=yes
10776 hardcode_into_libs
=yes
10785 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10786 soname_spec
='${libname}${release}${shared_ext}$major'
10787 shlibpath_var
=LD_LIBRARY_PATH
10788 hardcode_into_libs
=yes
10791 hpux9
* | hpux10
* | hpux11
*)
10792 # Give a soname corresponding to the major version so that dld.sl refuses to
10793 # link against other versions.
10800 hardcode_into_libs
=yes
10801 dynamic_linker
="$host_os dld.so"
10802 shlibpath_var
=LD_LIBRARY_PATH
10803 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10804 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10805 soname_spec
='${libname}${release}${shared_ext}$major'
10806 if test "X$HPUX_IA64_MODE" = X32
; then
10807 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10809 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10811 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10815 hardcode_into_libs
=yes
10816 dynamic_linker
="$host_os dld.sl"
10817 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10818 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10819 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10820 soname_spec
='${libname}${release}${shared_ext}$major'
10821 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10822 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10826 dynamic_linker
="$host_os dld.sl"
10827 shlibpath_var
=SHLIB_PATH
10828 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10829 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10830 soname_spec
='${libname}${release}${shared_ext}$major'
10833 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10834 postinstall_cmds
='chmod 555 $lib'
10841 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10842 soname_spec
='${libname}${release}${shared_ext}$major'
10843 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10844 shlibpath_var
=LD_LIBRARY_PATH
10845 shlibpath_overrides_runpath
=no
10846 hardcode_into_libs
=yes
10849 irix5
* | irix6
* | nonstopux
*)
10851 nonstopux
*) version_type
=nonstopux
;;
10853 if test "$lt_cv_prog_gnu_ld" = yes; then
10861 soname_spec
='${libname}${release}${shared_ext}$major'
10862 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10864 irix5
* | nonstopux
*)
10865 libsuff
= shlibsuff
=
10868 case $LD in # libtool.m4 will add one of these switches to LD
10869 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10870 libsuff
= shlibsuff
= libmagic
=32-bit;;
10871 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10872 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10873 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10874 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10875 *) libsuff
= shlibsuff
= libmagic
=never
-match;;
10879 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10880 shlibpath_overrides_runpath
=no
10881 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10882 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10883 hardcode_into_libs
=yes
10886 # No shared lib support for Linux oldld, aout, or coff.
10887 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10891 # This must be Linux ELF.
10892 linux
* | k
*bsd
*-gnu)
10896 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10897 soname_spec
='${libname}${release}${shared_ext}$major'
10898 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10899 shlibpath_var
=LD_LIBRARY_PATH
10900 shlibpath_overrides_runpath
=no
10901 # This implies no fast_install, which is unacceptable.
10902 # Some rework will be needed to allow for fast_install
10903 # before this can be enabled.
10904 hardcode_into_libs
=yes
10906 # Append ld.so.conf contents to the search path
10907 if test -f /etc
/ld.so.conf
; then
10908 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10909 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10912 # We used to test for /lib/ld.so.1 and disable shared libraries on
10913 # powerpc, because MkLinux only supported shared libraries with the
10914 # GNU dynamic linker. Since this was broken with cross compilers,
10915 # most powerpc-linux boxes support dynamic linking these days and
10916 # people can always --disable-shared, the test was removed, and we
10917 # assume the GNU/Linux dynamic linker is in use.
10918 dynamic_linker
='GNU/Linux ld.so'
10925 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10926 soname_spec
='${libname}${release}${shared_ext}$major'
10927 shlibpath_var
=LD_LIBRARY_PATH
10928 shlibpath_overrides_runpath
=no
10929 hardcode_into_libs
=yes
10930 dynamic_linker
='NetBSD ld.elf_so'
10937 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
10938 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10939 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10940 dynamic_linker
='NetBSD (a.out) ld.so'
10942 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10943 soname_spec
='${libname}${release}${shared_ext}$major'
10944 dynamic_linker
='NetBSD ld.elf_so'
10946 shlibpath_var
=LD_LIBRARY_PATH
10947 shlibpath_overrides_runpath
=yes
10948 hardcode_into_libs
=yes
10953 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10954 shlibpath_var
=LD_LIBRARY_PATH
10955 shlibpath_overrides_runpath
=yes
10962 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963 soname_spec
='${libname}${release}${shared_ext}$major'
10964 shlibpath_var
=LD_LIBRARY_PATH
10965 shlibpath_overrides_runpath
=yes
10970 sys_lib_dlsearch_path_spec
="/usr/lib"
10972 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10974 openbsd3.3
| openbsd3.3.
*) need_version
=yes ;;
10975 *) need_version
=no
;;
10977 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10978 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10979 shlibpath_var
=LD_LIBRARY_PATH
10980 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10982 openbsd2.
[89] | openbsd2.
[89].
*)
10983 shlibpath_overrides_runpath
=no
10986 shlibpath_overrides_runpath
=yes
10990 shlibpath_overrides_runpath
=yes
10995 libname_spec
='$name'
10998 library_names_spec
='$libname${shared_ext} $libname.a'
10999 dynamic_linker
='OS/2 ld.exe'
11000 shlibpath_var
=LIBPATH
11003 osf3
* | osf4
* | osf5
*)
11007 soname_spec
='${libname}${release}${shared_ext}$major'
11008 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11009 shlibpath_var
=LD_LIBRARY_PATH
11010 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11011 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11022 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11023 soname_spec
='${libname}${release}${shared_ext}$major'
11024 shlibpath_var
=LD_LIBRARY_PATH
11025 shlibpath_overrides_runpath
=yes
11026 hardcode_into_libs
=yes
11027 # ldd complains unless libraries are executable
11028 postinstall_cmds
='chmod +x $lib'
11033 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11034 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11035 shlibpath_var
=LD_LIBRARY_PATH
11036 shlibpath_overrides_runpath
=yes
11037 if test "$with_gnu_ld" = yes; then
11045 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11046 soname_spec
='${libname}${release}${shared_ext}$major'
11047 shlibpath_var
=LD_LIBRARY_PATH
11048 case $host_vendor in
11050 shlibpath_overrides_runpath
=no
11052 export_dynamic_flag_spec
='${wl}-Blargedynsym'
11053 runpath_var
=LD_RUN_PATH
11061 shlibpath_overrides_runpath
=no
11062 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11068 if test -d /usr
/nec
;then
11070 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11071 soname_spec
='$libname${shared_ext}.$major'
11072 shlibpath_var
=LD_LIBRARY_PATH
11076 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11077 version_type
=freebsd
-elf
11080 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11081 soname_spec
='${libname}${release}${shared_ext}$major'
11082 shlibpath_var
=LD_LIBRARY_PATH
11083 hardcode_into_libs
=yes
11084 if test "$with_gnu_ld" = yes; then
11085 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11086 shlibpath_overrides_runpath
=no
11088 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11089 shlibpath_overrides_runpath
=yes
11092 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11096 sys_lib_dlsearch_path_spec
='/usr/lib'
11101 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102 soname_spec
='${libname}${release}${shared_ext}$major'
11103 shlibpath_var
=LD_LIBRARY_PATH
11110 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11111 $as_echo "$dynamic_linker" >&6; }
11112 test "$dynamic_linker" = no
&& can_build_shared
=no
11114 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11115 $as_echo_n "(cached) " >&6
11117 lt_cv_sys_lib_search_path_spec
="$sys_lib_search_path_spec"
11120 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11121 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11122 $as_echo_n "(cached) " >&6
11124 lt_cv_sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec"
11127 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11129 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11130 if test "$GCC" = yes; then
11131 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11134 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11135 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11137 if test -n "$hardcode_libdir_flag_spec" || \
11138 test -n "$runpath_var" || \
11139 test "X$hardcode_automatic" = "Xyes" ; then
11141 # We can hardcode non-existant directories.
11142 if test "$hardcode_direct" != no
&&
11143 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11144 # have to relink, otherwise we might link with an installed library
11145 # when we should be linking with a yet-to-be-installed one
11146 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11147 test "$hardcode_minus_L" != no
; then
11148 # Linking always hardcodes the temporary library directory.
11149 hardcode_action
=relink
11151 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11152 hardcode_action
=immediate
11155 # We cannot hardcode anything, or else we can only hardcode existing
11157 hardcode_action
=unsupported
11159 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11160 $as_echo "$hardcode_action" >&6; }
11162 if test "$hardcode_action" = relink
; then
11163 # Fast installation is not supported
11164 enable_fast_install
=no
11165 elif test "$shlibpath_overrides_runpath" = yes ||
11166 test "$enable_shared" = no
; then
11167 # Fast installation is not necessary
11168 enable_fast_install
=needless
11173 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11174 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11175 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev
/null
; then
11176 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11177 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11178 { $as_echo "$as_me:$LINENO: result: yes" >&5
11179 $as_echo "yes" >&6; }
11181 # FIXME - insert some real tests, host_os isn't really good enough
11184 if test -n "$STRIP" ; then
11185 striplib
="$STRIP -x"
11186 old_striplib
="$STRIP -S"
11187 { $as_echo "$as_me:$LINENO: result: yes" >&5
11188 $as_echo "yes" >&6; }
11190 { $as_echo "$as_me:$LINENO: result: no" >&5
11191 $as_echo "no" >&6; }
11195 { $as_echo "$as_me:$LINENO: result: no" >&5
11196 $as_echo "no" >&6; }
11201 if test "x$enable_dlopen" != xyes
; then
11202 enable_dlopen
=unknown
11203 enable_dlopen_self
=unknown
11204 enable_dlopen_self_static
=unknown
11211 lt_cv_dlopen
="load_add_on"
11213 lt_cv_dlopen_self
=yes
11217 lt_cv_dlopen
="LoadLibrary"
11222 lt_cv_dlopen
="dlopen"
11227 # if libdl is installed we need to link against it
11228 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11229 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11230 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11231 $as_echo_n "(cached) " >&6
11233 ac_check_lib_save_LIBS
=$LIBS
11235 cat >conftest.
$ac_ext <<_ACEOF
11238 cat confdefs.h
>>conftest.
$ac_ext
11239 cat >>conftest.
$ac_ext <<_ACEOF
11240 /* end confdefs.h. */
11242 /* Override any GCC internal prototype to avoid an error.
11243 Use char because int might match the return type of a GCC
11244 builtin and then its argument prototype would still apply. */
11257 rm -f conftest.
$ac_objext conftest
$ac_exeext
11258 if { (ac_try
="$ac_link"
11259 case "(($ac_try" in
11260 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
11261 *) ac_try_echo=$ac_try;;
11263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11264 $as_echo "$ac_try_echo") >&5
11265 (eval "$ac_link") 2>conftest.er1
11267 grep -v '^ *+' conftest.er1 >conftest.err
11269 cat conftest.err >&5
11270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } && {
11272 test -z "$ac_c_werror_flag" ||
11273 test ! -s conftest.err
11274 } && test -s conftest$ac_exeext && {
11275 test "$cross_compiling" = yes ||
11276 $as_test_x conftest$ac_exeext
11278 ac_cv_lib_dl_dlopen=yes
11280 $as_echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11283 ac_cv_lib_dl_dlopen=no
11286 rm -rf conftest.dSYM
11287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11288 conftest$ac_exeext conftest.$ac_ext
11289 LIBS=$ac_check_lib_save_LIBS
11291 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11292 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11293 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11294 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11297 lt_cv_dlopen="dyld"
11299 lt_cv_dlopen_self=yes
11306 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11307 $as_echo_n "checking for shl_load... " >&6; }
11308 if test "${ac_cv_func_shl_load+set}" = set; then
11309 $as_echo_n "(cached) " >&6
11311 cat >conftest.$ac_ext <<_ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h. */
11317 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11319 #define shl_load innocuous_shl_load
11321 /* System header to define __stub macros and hopefully few prototypes,
11322 which can conflict with char shl_load (); below.
11323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11324 <limits.h> exists even on freestanding compilers. */
11327 # include <limits.h>
11329 # include <assert.h>
11334 /* Override any GCC internal prototype to avoid an error.
11335 Use char because int might match the return type of a GCC
11336 builtin and then its argument prototype would still apply. */
11341 /* The GNU C library defines this for functions which it implements
11342 to always fail with ENOSYS. Some functions are actually named
11343 something starting with __ and the normal name is an alias. */
11344 #if defined __stub_shl_load || defined __stub___shl_load
11351 return shl_load ();
11356 rm -f conftest.$ac_objext conftest$ac_exeext
11357 if { (ac_try="$ac_link"
11358 case "(($ac_try" in
11359 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
11360 *) ac_try_echo
=$ac_try;;
11362 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11363 $as_echo "$ac_try_echo") >&5
11364 (eval "$ac_link") 2>conftest.er1
11366 grep -v '^ *+' conftest.er1
>conftest.err
11368 cat conftest.err
>&5
11369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); } && {
11371 test -z "$ac_c_werror_flag" ||
11372 test ! -s conftest.err
11373 } && test -s conftest
$ac_exeext && {
11374 test "$cross_compiling" = yes ||
11375 $as_test_x conftest
$ac_exeext
11377 ac_cv_func_shl_load
=yes
11379 $as_echo "$as_me: failed program was:" >&5
11380 sed 's/^/| /' conftest.
$ac_ext >&5
11382 ac_cv_func_shl_load
=no
11385 rm -rf conftest.dSYM
11386 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11387 conftest
$ac_exeext conftest.
$ac_ext
11389 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11390 $as_echo "$ac_cv_func_shl_load" >&6; }
11391 if test "x$ac_cv_func_shl_load" = x
""yes; then
11392 lt_cv_dlopen
="shl_load"
11394 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11395 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11396 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11397 $as_echo_n "(cached) " >&6
11399 ac_check_lib_save_LIBS
=$LIBS
11401 cat >conftest.
$ac_ext <<_ACEOF
11404 cat confdefs.h
>>conftest.
$ac_ext
11405 cat >>conftest.
$ac_ext <<_ACEOF
11406 /* end confdefs.h. */
11408 /* Override any GCC internal prototype to avoid an error.
11409 Use char because int might match the return type of a GCC
11410 builtin and then its argument prototype would still apply. */
11418 return shl_load ();
11423 rm -f conftest.
$ac_objext conftest
$ac_exeext
11424 if { (ac_try
="$ac_link"
11425 case "(($ac_try" in
11426 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
11427 *) ac_try_echo=$ac_try;;
11429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11430 $as_echo "$ac_try_echo") >&5
11431 (eval "$ac_link") 2>conftest.er1
11433 grep -v '^ *+' conftest.er1 >conftest.err
11435 cat conftest.err >&5
11436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } && {
11438 test -z "$ac_c_werror_flag" ||
11439 test ! -s conftest.err
11440 } && test -s conftest$ac_exeext && {
11441 test "$cross_compiling" = yes ||
11442 $as_test_x conftest$ac_exeext
11444 ac_cv_lib_dld_shl_load=yes
11446 $as_echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11449 ac_cv_lib_dld_shl_load=no
11452 rm -rf conftest.dSYM
11453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11454 conftest$ac_exeext conftest.$ac_ext
11455 LIBS=$ac_check_lib_save_LIBS
11457 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11458 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11459 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11460 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11462 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11463 $as_echo_n "checking for dlopen... " >&6; }
11464 if test "${ac_cv_func_dlopen+set}" = set; then
11465 $as_echo_n "(cached) " >&6
11467 cat >conftest.$ac_ext <<_ACEOF
11470 cat confdefs.h >>conftest.$ac_ext
11471 cat >>conftest.$ac_ext <<_ACEOF
11472 /* end confdefs.h. */
11473 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11475 #define dlopen innocuous_dlopen
11477 /* System header to define __stub macros and hopefully few prototypes,
11478 which can conflict with char dlopen (); below.
11479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11480 <limits.h> exists even on freestanding compilers. */
11483 # include <limits.h>
11485 # include <assert.h>
11490 /* Override any GCC internal prototype to avoid an error.
11491 Use char because int might match the return type of a GCC
11492 builtin and then its argument prototype would still apply. */
11497 /* The GNU C library defines this for functions which it implements
11498 to always fail with ENOSYS. Some functions are actually named
11499 something starting with __ and the normal name is an alias. */
11500 #if defined __stub_dlopen || defined __stub___dlopen
11512 rm -f conftest.$ac_objext conftest$ac_exeext
11513 if { (ac_try="$ac_link"
11514 case "(($ac_try" in
11515 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
11516 *) ac_try_echo
=$ac_try;;
11518 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11519 $as_echo "$ac_try_echo") >&5
11520 (eval "$ac_link") 2>conftest.er1
11522 grep -v '^ *+' conftest.er1
>conftest.err
11524 cat conftest.err
>&5
11525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } && {
11527 test -z "$ac_c_werror_flag" ||
11528 test ! -s conftest.err
11529 } && test -s conftest
$ac_exeext && {
11530 test "$cross_compiling" = yes ||
11531 $as_test_x conftest
$ac_exeext
11533 ac_cv_func_dlopen
=yes
11535 $as_echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.
$ac_ext >&5
11538 ac_cv_func_dlopen
=no
11541 rm -rf conftest.dSYM
11542 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11543 conftest
$ac_exeext conftest.
$ac_ext
11545 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11546 $as_echo "$ac_cv_func_dlopen" >&6; }
11547 if test "x$ac_cv_func_dlopen" = x
""yes; then
11548 lt_cv_dlopen
="dlopen"
11550 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11551 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11552 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11553 $as_echo_n "(cached) " >&6
11555 ac_check_lib_save_LIBS
=$LIBS
11557 cat >conftest.
$ac_ext <<_ACEOF
11560 cat confdefs.h
>>conftest.
$ac_ext
11561 cat >>conftest.
$ac_ext <<_ACEOF
11562 /* end confdefs.h. */
11564 /* Override any GCC internal prototype to avoid an error.
11565 Use char because int might match the return type of a GCC
11566 builtin and then its argument prototype would still apply. */
11579 rm -f conftest.
$ac_objext conftest
$ac_exeext
11580 if { (ac_try
="$ac_link"
11581 case "(($ac_try" in
11582 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
11583 *) ac_try_echo=$ac_try;;
11585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11586 $as_echo "$ac_try_echo") >&5
11587 (eval "$ac_link") 2>conftest.er1
11589 grep -v '^ *+' conftest.er1 >conftest.err
11591 cat conftest.err >&5
11592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); } && {
11594 test -z "$ac_c_werror_flag" ||
11595 test ! -s conftest.err
11596 } && test -s conftest$ac_exeext && {
11597 test "$cross_compiling" = yes ||
11598 $as_test_x conftest$ac_exeext
11600 ac_cv_lib_dl_dlopen=yes
11602 $as_echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.$ac_ext >&5
11605 ac_cv_lib_dl_dlopen=no
11608 rm -rf conftest.dSYM
11609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11610 conftest$ac_exeext conftest.$ac_ext
11611 LIBS=$ac_check_lib_save_LIBS
11613 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11614 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11615 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11616 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11618 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11619 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11620 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11621 $as_echo_n "(cached) " >&6
11623 ac_check_lib_save_LIBS=$LIBS
11624 LIBS="-lsvld $LIBS"
11625 cat >conftest.$ac_ext <<_ACEOF
11628 cat confdefs.h >>conftest.$ac_ext
11629 cat >>conftest.$ac_ext <<_ACEOF
11630 /* end confdefs.h. */
11632 /* Override any GCC internal prototype to avoid an error.
11633 Use char because int might match the return type of a GCC
11634 builtin and then its argument prototype would still apply. */
11647 rm -f conftest.$ac_objext conftest$ac_exeext
11648 if { (ac_try="$ac_link"
11649 case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
11651 *) ac_try_echo
=$ac_try;;
11653 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11654 $as_echo "$ac_try_echo") >&5
11655 (eval "$ac_link") 2>conftest.er1
11657 grep -v '^ *+' conftest.er1
>conftest.err
11659 cat conftest.err
>&5
11660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); } && {
11662 test -z "$ac_c_werror_flag" ||
11663 test ! -s conftest.err
11664 } && test -s conftest
$ac_exeext && {
11665 test "$cross_compiling" = yes ||
11666 $as_test_x conftest
$ac_exeext
11668 ac_cv_lib_svld_dlopen
=yes
11670 $as_echo "$as_me: failed program was:" >&5
11671 sed 's/^/| /' conftest.
$ac_ext >&5
11673 ac_cv_lib_svld_dlopen
=no
11676 rm -rf conftest.dSYM
11677 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11678 conftest
$ac_exeext conftest.
$ac_ext
11679 LIBS
=$ac_check_lib_save_LIBS
11681 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11682 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11683 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then
11684 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11686 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11687 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11688 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11689 $as_echo_n "(cached) " >&6
11691 ac_check_lib_save_LIBS
=$LIBS
11693 cat >conftest.
$ac_ext <<_ACEOF
11696 cat confdefs.h
>>conftest.
$ac_ext
11697 cat >>conftest.
$ac_ext <<_ACEOF
11698 /* end confdefs.h. */
11700 /* Override any GCC internal prototype to avoid an error.
11701 Use char because int might match the return type of a GCC
11702 builtin and then its argument prototype would still apply. */
11710 return dld_link ();
11715 rm -f conftest.
$ac_objext conftest
$ac_exeext
11716 if { (ac_try
="$ac_link"
11717 case "(($ac_try" in
11718 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
11719 *) ac_try_echo=$ac_try;;
11721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11722 $as_echo "$ac_try_echo") >&5
11723 (eval "$ac_link") 2>conftest.er1
11725 grep -v '^ *+' conftest.er1 >conftest.err
11727 cat conftest.err >&5
11728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } && {
11730 test -z "$ac_c_werror_flag" ||
11731 test ! -s conftest.err
11732 } && test -s conftest$ac_exeext && {
11733 test "$cross_compiling" = yes ||
11734 $as_test_x conftest$ac_exeext
11736 ac_cv_lib_dld_dld_link=yes
11738 $as_echo "$as_me: failed program was:" >&5
11739 sed 's/^/| /' conftest.$ac_ext >&5
11741 ac_cv_lib_dld_dld_link=no
11744 rm -rf conftest.dSYM
11745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11746 conftest$ac_exeext conftest.$ac_ext
11747 LIBS=$ac_check_lib_save_LIBS
11749 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11750 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11751 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11752 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11773 if test "x$lt_cv_dlopen" != xno; then
11779 case $lt_cv_dlopen in
11781 save_CPPFLAGS="$CPPFLAGS"
11782 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11784 save_LDFLAGS="$LDFLAGS"
11785 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11788 LIBS="$lt_cv_dlopen_libs $LIBS"
11790 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11791 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11792 if test "${lt_cv_dlopen_self+set}" = set; then
11793 $as_echo_n "(cached) " >&6
11795 if test "$cross_compiling" = yes; then :
11796 lt_cv_dlopen_self=cross
11798 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11799 lt_status=$lt_dlunknown
11800 cat > conftest.$ac_ext <<EOF
11801 #line 11801 "configure"
11802 #include "confdefs.h"
11811 # define LT_DLGLOBAL RTLD_GLOBAL
11814 # define LT_DLGLOBAL DL_GLOBAL
11816 # define LT_DLGLOBAL 0
11820 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11821 find out it does not work in some platform. */
11822 #ifndef LT_DLLAZY_OR_NOW
11824 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11827 # define LT_DLLAZY_OR_NOW DL_LAZY
11830 # define LT_DLLAZY_OR_NOW RTLD_NOW
11833 # define LT_DLLAZY_OR_NOW DL_NOW
11835 # define LT_DLLAZY_OR_NOW 0
11843 extern "C" void exit (int);
11846 void fnord() { int i=42;}
11849 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11850 int status = $lt_dlunknown;
11854 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11855 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11856 /* dlclose (self); */
11864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11865 (eval $ac_link) 2>&5
11867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11869 (./conftest; exit; ) >&5 2>/dev/null
11871 case x$lt_status in
11872 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11873 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11874 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11877 # compilation failed
11878 lt_cv_dlopen_self=no
11885 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11886 $as_echo "$lt_cv_dlopen_self" >&6; }
11888 if test "x$lt_cv_dlopen_self" = xyes; then
11889 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11890 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11891 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11892 if test "${lt_cv_dlopen_self_static+set}" = set; then
11893 $as_echo_n "(cached) " >&6
11895 if test "$cross_compiling" = yes; then :
11896 lt_cv_dlopen_self_static=cross
11898 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11899 lt_status=$lt_dlunknown
11900 cat > conftest.$ac_ext <<EOF
11901 #line 11901 "configure"
11902 #include "confdefs.h"
11911 # define LT_DLGLOBAL RTLD_GLOBAL
11914 # define LT_DLGLOBAL DL_GLOBAL
11916 # define LT_DLGLOBAL 0
11920 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11921 find out it does not work in some platform. */
11922 #ifndef LT_DLLAZY_OR_NOW
11924 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11927 # define LT_DLLAZY_OR_NOW DL_LAZY
11930 # define LT_DLLAZY_OR_NOW RTLD_NOW
11933 # define LT_DLLAZY_OR_NOW DL_NOW
11935 # define LT_DLLAZY_OR_NOW 0
11943 extern "C" void exit (int);
11946 void fnord() { int i=42;}
11949 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11950 int status = $lt_dlunknown;
11954 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11955 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11956 /* dlclose (self); */
11964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11965 (eval $ac_link) 2>&5
11967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11969 (./conftest; exit; ) >&5 2>/dev/null
11971 case x$lt_status in
11972 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11973 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11974 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11977 # compilation failed
11978 lt_cv_dlopen_self_static=no
11985 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11986 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11989 CPPFLAGS="$save_CPPFLAGS"
11990 LDFLAGS="$save_LDFLAGS"
11995 case $lt_cv_dlopen_self in
11996 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11997 *) enable_dlopen_self=unknown ;;
12000 case $lt_cv_dlopen_self_static in
12001 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12002 *) enable_dlopen_self_static=unknown ;;
12007 # Report which library types will actually be built
12008 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12009 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12010 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12011 $as_echo "$can_build_shared" >&6; }
12013 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12014 $as_echo_n "checking whether to build shared libraries... " >&6; }
12015 test "$can_build_shared" = "no" && enable_shared=no
12017 # On AIX, shared libraries and static libraries use the same namespace, and
12018 # are all built from PIC.
12021 test "$enable_shared" = yes && enable_static=no
12022 if test -n "$RANLIB"; then
12023 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12024 postinstall_cmds='$RANLIB $lib'
12029 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12030 test "$enable_shared" = yes && enable_static=no
12034 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12035 $as_echo "$enable_shared" >&6; }
12037 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12038 $as_echo_n "checking whether to build static libraries... " >&6; }
12039 # Make sure either enable_shared or enable_static is yes.
12040 test "$enable_shared" = yes || enable_static=yes
12041 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12042 $as_echo "$enable_static" >&6; }
12044 # The else clause should only fire when bootstrapping the
12045 # libtool distribution, otherwise you forgot to ship ltmain.sh
12046 # with your package, and you will get complaints that there are
12047 # no rules to generate ltmain.sh.
12048 if test -f "$ltmain"; then
12049 # See if we are running on zsh, and set the options which allow our commands through
12050 # without removal of \ escapes.
12051 if test -n "${ZSH_VERSION+set}" ; then
12052 setopt NO_GLOB_SUBST
12054 # Now quote all the things that may contain metacharacters while being
12055 # careful not to overquote the AC_SUBSTed values. We take copies of the
12056 # variables and quote the copies for generation of the libtool script.
12057 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12059 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12060 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12061 deplibs_check_method reload_flag reload_cmds need_locks \
12062 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12063 lt_cv_sys_global_symbol_to_c_name_address \
12064 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12065 old_postinstall_cmds old_postuninstall_cmds \
12069 lt_prog_compiler_wl \
12070 lt_prog_compiler_pic \
12071 lt_prog_compiler_static \
12072 lt_prog_compiler_no_builtin_flag \
12073 export_dynamic_flag_spec \
12074 thread_safe_flag_spec \
12075 whole_archive_flag_spec \
12076 enable_shared_with_static_runtimes \
12078 old_archive_from_new_cmds \
12083 compiler_lib_search_path \
12084 compiler_lib_search_dirs \
12086 archive_expsym_cmds \
12088 postuninstall_cmds \
12089 old_archive_from_expsyms_cmds \
12090 allow_undefined_flag \
12091 no_undefined_flag \
12092 export_symbols_cmds \
12093 hardcode_libdir_flag_spec \
12094 hardcode_libdir_flag_spec_ld \
12095 hardcode_libdir_separator \
12096 hardcode_automatic \
12098 module_expsym_cmds \
12099 lt_cv_prog_compiler_c_o \
12102 include_expsyms; do
12105 old_archive_cmds | \
12106 old_archive_from_new_cmds | \
12108 archive_expsym_cmds | \
12110 module_expsym_cmds | \
12111 old_archive_from_expsyms_cmds | \
12112 export_symbols_cmds | \
12113 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12114 postinstall_cmds | postuninstall_cmds | \
12115 old_postinstall_cmds | old_postuninstall_cmds | \
12116 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12117 # Double-quote double-evaled strings.
12118 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
12121 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
12127 *'\$0 --fallback-echo"')
12128 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12132 cfgfile="${ofile}T"
12133 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12135 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
12136 $as_echo "$as_me: creating $ofile" >&6;}
12138 cat <<__EOF__ >> "$cfgfile"
12141 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12142 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12143 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12145 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
12146 # Free Software Foundation, Inc.
12148 # This file is part of GNU Libtool:
12149 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12151 # This program is free software; you can redistribute it and/or modify
12152 # it under the terms of the GNU General Public License as published by
12153 # the Free Software Foundation; either version 2 of the License, or
12154 # (at your option) any later version.
12156 # This program is distributed in the hope that it will be useful, but
12157 # WITHOUT ANY WARRANTY; without even the implied warranty of
12158 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12159 # General Public License for more details.
12161 # You should have received a copy of the GNU General Public License
12162 # along with this program; if not, write to the Free Software
12163 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12165 # As a special exception to the GNU General Public License, if you
12166 # distribute this file as part of a program that contains a
12167 # configuration script generated by Autoconf, you may include it under
12168 # the same distribution terms that you use for the rest of that program.
12170 # A sed program that does not truncate output.
12173 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12174 Xsed="$SED -e 1s/^X//"
12176 # The HP-UX ksh and POSIX shell print the target directory to stdout
12177 # if CDPATH is set.
12178 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12180 # The names of the tagged configurations supported by this script.
12183 # ### BEGIN LIBTOOL CONFIG
12185 # Libtool was configured on host `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`:
12187 # Shell to use when invoking shell scripts.
12190 # Whether or not to build shared libraries.
12191 build_libtool_libs=$enable_shared
12193 # Whether or not to build static libraries.
12194 build_old_libs=$enable_static
12196 # Whether or not to add -lc for building shared libraries.
12197 build_libtool_need_lc=$archive_cmds_need_lc
12199 # Whether or not to disallow shared libs when runtime libs are static
12200 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12202 # Whether or not to optimize for fast installation.
12203 fast_install=$enable_fast_install
12206 host_alias=$host_alias
12210 # The build system.
12211 build_alias=$build_alias
12215 # An echo program that does not interpret backslashes.
12220 AR_FLAGS=$lt_AR_FLAGS
12225 # LTCC compiler flags.
12226 LTCFLAGS=$lt_LTCFLAGS
12228 # A language-specific compiler.
12231 # Is the compiler the GNU C compiler?
12237 # The linker used to build libraries.
12240 # Whether we need hard or soft links.
12243 # A BSD-compatible nm program.
12246 # A symbol stripping program
12249 # Used to examine libraries when file_magic_cmd begins "file"
12250 MAGIC_CMD=$MAGIC_CMD
12252 # Used on cygwin: DLL creation program.
12255 # Used on cygwin: object dumper.
12258 # Used on cygwin: assembler.
12261 # The name of the directory that contains temporary libtool files.
12264 # How to create reloadable object files.
12265 reload_flag=$lt_reload_flag
12266 reload_cmds=$lt_reload_cmds
12268 # How to pass a linker flag through the compiler.
12269 wl=$lt_lt_prog_compiler_wl
12271 # Object file suffix (normally "o").
12272 objext="$ac_objext"
12274 # Old archive suffix (normally "a").
12277 # Shared library suffix (normally ".so").
12278 shrext_cmds='$shrext_cmds'
12280 # Executable file suffix (normally "").
12283 # Additional compiler flags for building library objects.
12284 pic_flag=$lt_lt_prog_compiler_pic
12287 # What is the maximum length of a command?
12288 max_cmd_len=$lt_cv_sys_max_cmd_len
12290 # Does compiler simultaneously support -c and -o options?
12291 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12293 # Must we lock files when doing compilation?
12294 need_locks=$lt_need_locks
12296 # Do we need the lib prefix for modules?
12297 need_lib_prefix=$need_lib_prefix
12299 # Do we need a version for libraries?
12300 need_version=$need_version
12302 # Whether dlopen is supported.
12303 dlopen_support=$enable_dlopen
12305 # Whether dlopen of programs is supported.
12306 dlopen_self=$enable_dlopen_self
12308 # Whether dlopen of statically linked programs is supported.
12309 dlopen_self_static=$enable_dlopen_self_static
12311 # Compiler flag to prevent dynamic linking.
12312 link_static_flag=$lt_lt_prog_compiler_static
12314 # Compiler flag to turn off builtin functions.
12315 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12317 # Compiler flag to allow reflexive dlopens.
12318 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12320 # Compiler flag to generate shared objects directly from archives.
12321 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12323 # Compiler flag to generate thread-safe objects.
12324 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12326 # Library versioning type.
12327 version_type=$version_type
12329 # Format of library name prefix.
12330 libname_spec=$lt_libname_spec
12332 # List of archive names. First name is the real one, the rest are links.
12333 # The last name is the one that the linker finds with -lNAME.
12334 library_names_spec=$lt_library_names_spec
12336 # The coded name of the library, if different from the real name.
12337 soname_spec=$lt_soname_spec
12339 # Commands used to build and install an old-style archive.
12341 old_archive_cmds=$lt_old_archive_cmds
12342 old_postinstall_cmds=$lt_old_postinstall_cmds
12343 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12345 # Create an old-style archive from a shared archive.
12346 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12348 # Create a temporary old-style archive to link instead of a shared archive.
12349 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12351 # Commands used to build and install a shared archive.
12352 archive_cmds=$lt_archive_cmds
12353 archive_expsym_cmds=$lt_archive_expsym_cmds
12354 postinstall_cmds=$lt_postinstall_cmds
12355 postuninstall_cmds=$lt_postuninstall_cmds
12357 # Commands used to build a loadable module (assumed same as above if empty)
12358 module_cmds=$lt_module_cmds
12359 module_expsym_cmds=$lt_module_expsym_cmds
12361 # Commands to strip libraries.
12362 old_striplib=$lt_old_striplib
12363 striplib=$lt_striplib
12365 # Dependencies to place before the objects being linked to create a
12367 predep_objects=$lt_predep_objects
12369 # Dependencies to place after the objects being linked to create a
12371 postdep_objects=$lt_postdep_objects
12373 # Dependencies to place before the objects being linked to create a
12375 predeps=$lt_predeps
12377 # Dependencies to place after the objects being linked to create a
12379 postdeps=$lt_postdeps
12381 # The directories searched by this compiler when creating a shared
12383 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
12385 # The library search path used internally by the compiler when linking
12386 # a shared library.
12387 compiler_lib_search_path=$lt_compiler_lib_search_path
12389 # Method to check whether dependent libraries are shared objects.
12390 deplibs_check_method=$lt_deplibs_check_method
12392 # Command to use when deplibs_check_method == file_magic.
12393 file_magic_cmd=$lt_file_magic_cmd
12395 # Flag that allows shared libraries with undefined symbols to be built.
12396 allow_undefined_flag=$lt_allow_undefined_flag
12398 # Flag that forces no undefined symbols.
12399 no_undefined_flag=$lt_no_undefined_flag
12401 # Commands used to finish a libtool library installation in a directory.
12402 finish_cmds=$lt_finish_cmds
12404 # Same as above, but a single script fragment to be evaled but not shown.
12405 finish_eval=$lt_finish_eval
12407 # Take the output of nm and produce a listing of raw symbols and C names.
12408 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12410 # Transform the output of nm in a proper C declaration
12411 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12413 # Transform the output of nm in a C name address pair
12414 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12416 # This is the shared library runtime path variable.
12417 runpath_var=$runpath_var
12419 # This is the shared library path variable.
12420 shlibpath_var=$shlibpath_var
12422 # Is shlibpath searched before the hard-coded library search path?
12423 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12425 # How to hardcode a shared library path into an executable.
12426 hardcode_action=$hardcode_action
12428 # Whether we should hardcode library paths into libraries.
12429 hardcode_into_libs=$hardcode_into_libs
12431 # Flag to hardcode \$libdir into a binary during linking.
12432 # This must work even if \$libdir does not exist.
12433 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12435 # If ld is used when linking, flag to hardcode \$libdir into
12436 # a binary during linking. This must work even if \$libdir does
12438 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12440 # Whether we need a single -rpath flag with a separated argument.
12441 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12443 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12444 # resulting binary.
12445 hardcode_direct=$hardcode_direct
12447 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12448 # resulting binary.
12449 hardcode_minus_L=$hardcode_minus_L
12451 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12452 # the resulting binary.
12453 hardcode_shlibpath_var=$hardcode_shlibpath_var
12455 # Set to yes if building a shared library automatically hardcodes DIR into the library
12456 # and all subsequent libraries and executables linked against it.
12457 hardcode_automatic=$hardcode_automatic
12459 # Variables whose values should be saved in libtool wrapper scripts and
12460 # restored at relink time.
12461 variables_saved_for_relink="$variables_saved_for_relink"
12463 # Whether libtool must link a program against all its dependency libraries.
12464 link_all_deplibs=$link_all_deplibs
12466 # Compile-time system search path for libraries
12467 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12469 # Run-time system search path for libraries
12470 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12472 # Fix the shell variable \$srcfile for the compiler.
12473 fix_srcfile_path=$lt_fix_srcfile_path
12475 # Set to yes if exported symbols are required.
12476 always_export_symbols=$always_export_symbols
12478 # The commands to list exported symbols.
12479 export_symbols_cmds=$lt_export_symbols_cmds
12481 # The commands to extract the exported symbol list from a shared archive.
12482 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12484 # Symbols that should not be listed in the preloaded symbols.
12485 exclude_expsyms=$lt_exclude_expsyms
12487 # Symbols that must always be exported.
12488 include_expsyms=$lt_include_expsyms
12490 # ### END LIBTOOL CONFIG
12497 cat <<\EOF >> "$cfgfile"
12499 # AIX sometimes has problems with the GCC collect2 program. For some
12500 # reason, if we set the COLLECT_NAMES environment variable, the problems
12501 # vanish in a puff of smoke.
12502 if test "X${COLLECT_NAMES+set}" != Xset; then
12504 export COLLECT_NAMES
12510 # We use sed instead of cat because bash on DJGPP gets confused if
12511 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12512 # text mode, it properly converts lines to CR/LF. This bash problem
12513 # is reportedly fixed, but why not run on old versions too?
12514 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12516 mv -f "$cfgfile" "$ofile" || \
12517 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12521 # If there is no Makefile yet, we rely on a make rule to execute
12522 # `config.status
--recheck' to rerun these tests and create the
12523 # libtool script then.
12524 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
12525 if test -f "$ltmain_in"; then
12526 test -f Makefile && make "$ltmain"
12532 ac_cpp='$CPP $CPPFLAGS'
12533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
12534 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
12535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12540 # Check whether --with-tags was given.
12541 if test "${with_tags+set}" = set; then
12542 withval=$with_tags; tagnames="$withval"
12546 if test -f "$ltmain" && test -n "$tagnames"; then
12547 if test ! -f "${ofile}"; then
12548 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
12549 $as_echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
12552 if test -z "$LTCC"; then
12553 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12554 if test -z "$LTCC"; then
12555 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12556 $as_echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
12558 { $as_echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
12559 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
12562 if test -z "$LTCFLAGS"; then
12563 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12566 # Extract list of available tagged configurations in $ofile.
12567 # Note that this assumes the entire list is on one line.
12568 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12570 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12571 for tagname in $tagnames; do
12573 # Check whether tagname contains only valid characters
12574 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12576 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12577 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
12578 { (exit 1); exit 1; }; }
12582 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12584 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12585 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12586 { (exit 1); exit 1; }; }
12589 # Update the list of available tags.
12590 if test -n "$tagname"; then
12591 echo appending configuration tag \"$tagname\" to $ofile
12595 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12596 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
12597 (test "X$CXX" != "Xg++"))) ; then
12599 ac_cpp='$CXXCPP $CPPFLAGS'
12600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12607 archive_cmds_need_lc_CXX=no
12608 allow_undefined_flag_CXX=
12609 always_export_symbols_CXX=no
12610 archive_expsym_cmds_CXX=
12611 export_dynamic_flag_spec_CXX=
12612 hardcode_direct_CXX=no
12613 hardcode_libdir_flag_spec_CXX=
12614 hardcode_libdir_flag_spec_ld_CXX=
12615 hardcode_libdir_separator_CXX=
12616 hardcode_minus_L_CXX=no
12617 hardcode_shlibpath_var_CXX=unsupported
12618 hardcode_automatic_CXX=no
12620 module_expsym_cmds_CXX=
12621 link_all_deplibs_CXX=unknown
12622 old_archive_cmds_CXX=$old_archive_cmds
12623 no_undefined_flag_CXX=
12624 whole_archive_flag_spec_CXX=
12625 enable_shared_with_static_runtimes_CXX=no
12627 # Dependencies to place before and after the object being linked:
12628 predep_objects_CXX=
12629 postdep_objects_CXX=
12632 compiler_lib_search_path_CXX=
12633 compiler_lib_search_dirs_CXX=
12635 # Source file extension for C++ test sources.
12638 # Object file extension for compiled C++ test sources.
12642 # Code to be used in simple compile tests
12643 lt_simple_compile_test_code="int some_variable = 0;"
12645 # Code to be used in simple link tests
12646 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12648 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12650 # If no C compiler was specified, use CC.
12653 # If no C compiler flags were specified, use CFLAGS.
12654 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12656 # Allow CC to be a program name with arguments.
12660 # save warnings/boilerplate of simple test code
12661 ac_outfile=conftest.$ac_objext
12662 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12663 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12664 _lt_compiler_boilerplate=`cat conftest.err
`
12667 ac_outfile=conftest.$ac_objext
12668 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12669 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12670 _lt_linker_boilerplate=`cat conftest.err
`
12674 # Allow CC to be a program name with arguments.
12679 lt_save_with_gnu_ld=$with_gnu_ld
12680 lt_save_path_LD=$lt_cv_path_LD
12681 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12682 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12684 $as_unset lt_cv_prog_gnu_ld
12686 if test -n "${lt_cv_path_LDCXX+set}"; then
12687 lt_cv_path_LD=$lt_cv_path_LDCXX
12689 $as_unset lt_cv_path_LD
12691 test -z "${LDCXX+set}" || LD=$LDCXX
12695 for cc_temp in $compiler""; do
12697 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12698 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12703 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12706 # We don't want -fno-exception wen compiling C++ code, so set the
12707 # no_builtin_flag separately
12708 if test "$GXX" = yes; then
12709 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12711 lt_prog_compiler_no_builtin_flag_CXX=
12714 if test "$GXX" = yes; then
12715 # Set up default GNU C++ configuration
12718 # Check whether --with-gnu-ld was given.
12719 if test "${with_gnu_ld+set}" = set; then
12720 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12726 if test "$GCC" = yes; then
12727 # Check if gcc -print-prog-name=ld gives a path.
12728 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12729 $as_echo_n "checking for ld used by $CC... " >&6; }
12732 # gcc leaves a trailing carriage return which upsets mingw
12733 ac_prog=`($CC -print-prog-name=ld
) 2>&5 | tr -d '\015'` ;;
12735 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
12738 # Accept absolute paths.
12740 re_direlt='/[^/][^/]*/\.\./'
12741 # Canonicalize the pathname of ld
12742 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12743 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12744 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12746 test -z "$LD" && LD="$ac_prog"
12749 # If it fails, then pretend we aren't using GCC.
12753 # If it is relative, then search for the first ld in PATH.
12754 with_gnu_ld=unknown
12757 elif test "$with_gnu_ld" = yes; then
12758 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
12759 $as_echo_n "checking for GNU ld... " >&6; }
12761 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12762 $as_echo_n "checking for non-GNU ld... " >&6; }
12764 if test "${lt_cv_path_LD+set}" = set; then
12765 $as_echo_n "(cached) " >&6
12767 if test -z "$LD"; then
12768 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12769 for ac_dir in $PATH; do
12771 test -z "$ac_dir" && ac_dir=.
12772 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12773 lt_cv_path_LD="$ac_dir/$ac_prog"
12774 # Check to see if the program is GNU ld. I'd rather use --version,
12775 # but apparently some variants of GNU ld only accept -v.
12776 # Break only if it was the GNU/non-GNU ld that we prefer.
12777 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
12778 *GNU* | *'with BFD'*)
12779 test "$with_gnu_ld" != no && break
12782 test "$with_gnu_ld" != yes && break
12789 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12793 LD="$lt_cv_path_LD"
12794 if test -n "$LD"; then
12795 { $as_echo "$as_me:$LINENO: result: $LD" >&5
12796 $as_echo "$LD" >&6; }
12798 { $as_echo "$as_me:$LINENO: result: no" >&5
12799 $as_echo "no" >&6; }
12801 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12802 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12803 { (exit 1); exit 1; }; }
12804 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12805 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12806 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12807 $as_echo_n "(cached) " >&6
12809 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12810 case `$LD -v 2>&1 </dev
/null
` in
12811 *GNU* | *'with BFD'*)
12812 lt_cv_prog_gnu_ld=yes
12815 lt_cv_prog_gnu_ld=no
12819 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12820 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12821 with_gnu_ld=$lt_cv_prog_gnu_ld
12825 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12826 # archiving commands below assume that GNU ld is being used.
12827 if test "$with_gnu_ld" = yes; then
12828 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12829 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'
12831 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12832 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12834 # If archive_cmds runs LD, not CC, wlarc should be empty
12835 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12836 # investigate it a little bit more. (MM)
12839 # ancient GNU ld didn't support --whole-archive et. al.
12840 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
12841 grep 'no-whole-archive' > /dev/null; then
12842 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12844 whole_archive_flag_spec_CXX=
12850 # A generic and very simple default shared library creation
12851 # command for GNU C++ for the case where it uses the native
12852 # linker, instead of GNU ld. If possible, this setting should
12853 # overridden to take advantage of the native linker features on
12854 # the platform it is being used on.
12855 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12858 # Commands to make compiler produce verbose output that lists
12859 # what "hidden" libraries, object files and flags are used when
12860 # linking a shared library.
12861 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12869 # PORTME: fill in a description of your system's C++ link characteristics
12870 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12871 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12875 # FIXME: insert proper C++ library support
12879 if test "$host_cpu" = ia64; then
12880 # On IA64, the linker does run time linking by default, so we don't
12881 # have to do anything special.
12882 aix_use_runtimelinking=no
12883 exp_sym_flag='-Bexport'
12886 aix_use_runtimelinking=no
12888 # Test if we are trying to use run time linking or normal
12889 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12890 # need to do runtime linking.
12891 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12892 for ld_flag in $LDFLAGS; do
12895 aix_use_runtimelinking=yes
12903 exp_sym_flag='-bexport'
12904 no_entry_flag='-bnoentry'
12907 # When large executables or shared objects are built, AIX ld can
12908 # have problems creating the table of contents. If linking a library
12909 # or program results in "error TOC overflow" add -mminimal-toc to
12910 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12911 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12913 archive_cmds_CXX=''
12914 hardcode_direct_CXX=yes
12915 hardcode_libdir_separator_CXX=':'
12916 link_all_deplibs_CXX=yes
12918 if test "$GXX" = yes; then
12919 case $host_os in aix4.[012]|aix4.[012].*)
12920 # We only want to do this on AIX 4.2 and lower, the check
12921 # below for broken collect2 doesn't work under 4.3+
12922 collect2name=`${CC} -print-prog-name=collect2
`
12923 if test -f "$collect2name" && \
12924 strings "$collect2name" | grep resolve_lib_name >/dev/null
12926 # We have reworked collect2
12929 # We have old collect2
12930 hardcode_direct_CXX=unsupported
12931 # It fails to find uninstalled libraries when the uninstalled
12932 # path is not listed in the libpath. Setting hardcode_minus_L
12933 # to unsupported forces relinking
12934 hardcode_minus_L_CXX=yes
12935 hardcode_libdir_flag_spec_CXX='-L$libdir'
12936 hardcode_libdir_separator_CXX=
12940 shared_flag='-shared'
12941 if test "$aix_use_runtimelinking" = yes; then
12942 shared_flag="$shared_flag "'${wl}-G'
12946 if test "$host_cpu" = ia64; then
12947 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12948 # chokes on -Wl,-G. The following line is correct:
12951 if test "$aix_use_runtimelinking" = yes; then
12952 shared_flag='${wl}-G'
12954 shared_flag='${wl}-bM:SRE'
12959 # It seems that -bexpall does not export symbols beginning with
12960 # underscore (_), so it is better to generate a list of symbols to export.
12961 always_export_symbols_CXX=yes
12962 if test "$aix_use_runtimelinking" = yes; then
12963 # Warning - without using the other runtime loading flags (-brtl),
12964 # -berok will link without error, but may produce a broken library.
12965 allow_undefined_flag_CXX='-berok'
12966 # Determine the default libpath from the value encoded in an empty executable.
12967 cat >conftest.$ac_ext <<_ACEOF
12970 cat confdefs.h >>conftest.$ac_ext
12971 cat >>conftest.$ac_ext <<_ACEOF
12972 /* end confdefs.h. */
12982 rm -f conftest.$ac_objext conftest$ac_exeext
12983 if { (ac_try="$ac_link"
12984 case "(($ac_try" in
12985 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
12986 *) ac_try_echo
=$ac_try;;
12988 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12989 $as_echo "$ac_try_echo") >&5
12990 (eval "$ac_link") 2>conftest.er1
12992 grep -v '^ *+' conftest.er1
>conftest.err
12994 cat conftest.err
>&5
12995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); } && {
12997 test -z "$ac_cxx_werror_flag" ||
12998 test ! -s conftest.err
12999 } && test -s conftest
$ac_exeext && {
13000 test "$cross_compiling" = yes ||
13001 $as_test_x conftest
$ac_exeext
13004 lt_aix_libpath_sed
='
13005 /Import File Strings/,/^$/ {
13011 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13012 # Check for a 64-bit object if we didn't find anything.
13013 if test -z "$aix_libpath"; then
13014 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13017 $as_echo "$as_me: failed program was:" >&5
13018 sed 's/^/| /' conftest.
$ac_ext >&5
13023 rm -rf conftest.dSYM
13024 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13025 conftest
$ac_exeext conftest.
$ac_ext
13026 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13028 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
13030 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"
13032 if test "$host_cpu" = ia64
; then
13033 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
13034 allow_undefined_flag_CXX
="-z nodefs"
13035 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"
13037 # Determine the default libpath from the value encoded in an empty executable.
13038 cat >conftest.
$ac_ext <<_ACEOF
13041 cat confdefs.h
>>conftest.
$ac_ext
13042 cat >>conftest.
$ac_ext <<_ACEOF
13043 /* end confdefs.h. */
13053 rm -f conftest.
$ac_objext conftest
$ac_exeext
13054 if { (ac_try
="$ac_link"
13055 case "(($ac_try" in
13056 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
13057 *) ac_try_echo=$ac_try;;
13059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13060 $as_echo "$ac_try_echo") >&5
13061 (eval "$ac_link") 2>conftest.er1
13063 grep -v '^ *+' conftest.er1 >conftest.err
13065 cat conftest.err >&5
13066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); } && {
13068 test -z "$ac_cxx_werror_flag" ||
13069 test ! -s conftest.err
13070 } && test -s conftest$ac_exeext && {
13071 test "$cross_compiling" = yes ||
13072 $as_test_x conftest$ac_exeext
13075 lt_aix_libpath_sed='
13076 /Import File Strings/,/^$/ {
13082 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null
| $SED -n -e "$lt_aix_libpath_sed"`
13083 # Check for a 64-bit object if we didn't find anything.
13084 if test -z "$aix_libpath"; then
13085 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null
| $SED -n -e "$lt_aix_libpath_sed"`
13088 $as_echo "$as_me: failed program was:" >&5
13089 sed 's/^/| /' conftest.$ac_ext >&5
13094 rm -rf conftest.dSYM
13095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13096 conftest$ac_exeext conftest.$ac_ext
13097 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13099 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13100 # Warning - without using the other run time loading flags,
13101 # -berok will link without error, but may produce a broken library.
13102 no_undefined_flag_CXX=' ${wl}-bernotok'
13103 allow_undefined_flag_CXX=' ${wl}-berok'
13104 # Exported symbols can be pulled into shared objects from archives
13105 whole_archive_flag_spec_CXX='$convenience'
13106 archive_cmds_need_lc_CXX=yes
13107 # This is similar to how AIX traditionally builds its shared libraries.
13108 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'
13114 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13115 allow_undefined_flag_CXX=unsupported
13116 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13117 # support --undefined. This deserves some investigation. FIXME
13118 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13125 case $cc_basename in
13127 # FIXME: insert proper C++ library support
13133 cygwin* | mingw* | pw32*)
13134 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13135 # as there is no search path for DLLs.
13136 hardcode_libdir_flag_spec_CXX='-L$libdir'
13137 allow_undefined_flag_CXX=unsupported
13138 always_export_symbols_CXX=no
13139 enable_shared_with_static_runtimes_CXX=yes
13141 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13142 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'
13143 # If the export-symbols file already is a .def file (1st line
13144 # is EXPORTS), use it as is; otherwise, prepend...
13145 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
13146 cp $export_symbols $output_objdir/$soname.def;
13148 echo EXPORTS > $output_objdir/$soname.def;
13149 cat $export_symbols >> $output_objdir/$soname.def;
13151 $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'
13156 darwin* | rhapsody*)
13157 archive_cmds_need_lc_CXX=no
13158 hardcode_direct_CXX=no
13159 hardcode_automatic_CXX=yes
13160 hardcode_shlibpath_var_CXX=unsupported
13161 whole_archive_flag_spec_CXX=''
13162 link_all_deplibs_CXX=yes
13163 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13164 if test "$GXX" = yes ; then
13165 output_verbose_link_cmd='echo'
13166 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13167 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13168 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13169 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13170 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13171 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${_lt_dsymutil}"
13172 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
13175 case $cc_basename in
13177 output_verbose_link_cmd='echo'
13178 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
13179 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13180 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13181 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13182 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}'
13192 case $cc_basename in
13194 # FIXME: insert proper C++ library support
13198 # Green Hills C++ Compiler
13199 # FIXME: insert proper C++ library support
13203 # FIXME: insert proper C++ library support
13209 # C++ shared libraries reported to be fairly broken before switch to ELF
13213 archive_cmds_need_lc_CXX=no
13215 freebsd* | dragonfly*)
13216 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13223 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13224 hardcode_libdir_separator_CXX=:
13225 export_dynamic_flag_spec_CXX='${wl}-E'
13226 hardcode_direct_CXX=yes
13227 hardcode_minus_L_CXX=yes # Not in the search PATH,
13228 # but as the default
13229 # location of the library.
13231 case $cc_basename in
13233 # FIXME: insert proper C++ library support
13237 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'
13238 # Commands to make compiler produce verbose output that lists
13239 # what "hidden" libraries, object files and flags are used when
13240 # linking a shared library.
13242 # There doesn't appear to be a way to prevent this compiler from
13243 # explicitly linking system object files so we need to strip them
13244 # from the output so that they don't get included in the library
13246 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'
13249 if test "$GXX" = yes; then
13250 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'
13252 # FIXME: insert proper C++ library support
13259 if test $with_gnu_ld = no; then
13260 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13261 hardcode_libdir_separator_CXX=:
13266 export_dynamic_flag_spec_CXX='${wl}-E'
13272 hardcode_direct_CXX=no
13273 hardcode_shlibpath_var_CXX=no
13276 hardcode_direct_CXX=yes
13277 hardcode_minus_L_CXX=yes # Not in the search PATH,
13278 # but as the default
13279 # location of the library.
13283 case $cc_basename in
13285 # FIXME: insert proper C++ library support
13291 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13294 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13297 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13300 # Commands to make compiler produce verbose output that lists
13301 # what "hidden" libraries, object files and flags are used when
13302 # linking a shared library.
13304 # There doesn't appear to be a way to prevent this compiler from
13305 # explicitly linking system object files so we need to strip them
13306 # from the output so that they don't get included in the library
13308 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'
13311 if test "$GXX" = yes; then
13312 if test $with_gnu_ld = no; then
13315 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13318 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13321 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'
13326 # FIXME: insert proper C++ library support
13333 hardcode_direct_CXX=no
13334 hardcode_shlibpath_var_CXX=no
13335 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13336 export_dynamic_flag_spec_CXX='${wl}-E'
13337 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13338 # Instead, shared libraries are loaded at an image base (0x10000000 by
13339 # default) and relocated if they conflict, which is a slow very memory
13340 # consuming and fragmenting process. To avoid this, we pick a random,
13341 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13342 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13343 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'
13344 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'
13347 case $cc_basename in
13350 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'
13352 # Archives containing C++ object files must be created using
13353 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13354 # necessary to make sure instantiated templates are included
13356 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13359 if test "$GXX" = yes; then
13360 if test "$with_gnu_ld" = no; then
13361 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'
13363 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'
13366 link_all_deplibs_CXX=yes
13369 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13370 hardcode_libdir_separator_CXX=:
13372 linux* | k*bsd*-gnu)
13373 case $cc_basename in
13375 # Kuck and Associates, Inc. (KAI) C++ Compiler
13377 # KCC will only create a shared library if the output file
13378 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13379 # to its proper name (with version) after linking.
13380 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'
13381 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'
13382 # Commands to make compiler produce verbose output that lists
13383 # what "hidden" libraries, object files and flags are used when
13384 # linking a shared library.
13386 # There doesn't appear to be a way to prevent this compiler from
13387 # explicitly linking system object files so we need to strip them
13388 # from the output so that they don't get included in the library
13390 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'
13392 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13393 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13395 # Archives containing C++ object files must be created using
13396 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13397 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13402 # version 8.0 and above of icpc choke on multiply defined symbols
13403 # if we add $predep_objects and $postdep_objects, however 7.1 and
13404 # earlier do not add the objects themselves.
13405 case `$CC -V 2>&1` in
13407 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13408 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'
13410 *) # Version 8.0 or newer
13413 ia64*) tmp_idyn=' -i_dynamic';;
13415 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13416 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'
13419 archive_cmds_need_lc_CXX=no
13420 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13421 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13422 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13425 # Portland Group C++ compiler
13426 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13427 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'
13429 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13430 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13431 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'
13435 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13436 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'
13438 runpath_var=LD_RUN_PATH
13439 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13440 hardcode_libdir_separator_CXX=:
13442 # Commands to make compiler produce verbose output that lists
13443 # what "hidden" libraries, object files and flags are used when
13444 # linking a shared library.
13446 # There doesn't appear to be a way to prevent this compiler from
13447 # explicitly linking system object files so we need to strip them
13448 # from the output so that they don't get included in the library
13450 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'
13453 case `$CC -V 2>&1 | sed 5q
` in
13456 no_undefined_flag_CXX=' -zdefs'
13457 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13458 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13459 hardcode_libdir_flag_spec_CXX='-R$libdir'
13460 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience
=; for conv
in $convenience\"\"; do test -z \"$conv\" || new_convenience
=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13462 # Not sure whether something based on
13463 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13465 output_verbose_link_cmd='echo'
13467 # Archives containing C++ object files must be created using
13468 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13469 # necessary to make sure instantiated templates are included
13471 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13478 # FIXME: insert proper C++ library support
13482 # FIXME: insert proper C++ library support
13486 case $cc_basename in
13488 # FIXME: insert proper C++ library support
13492 # FIXME: insert proper C++ library support
13497 netbsd* | netbsdelf*-gnu)
13498 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13499 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13501 hardcode_libdir_flag_spec_CXX='-R$libdir'
13502 hardcode_direct_CXX=yes
13503 hardcode_shlibpath_var_CXX=no
13505 # Workaround some broken pre-1.5 toolchains
13506 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13509 # C++ shared libraries are fairly broken
13513 if test -f /usr/libexec/ld.so; then
13514 hardcode_direct_CXX=yes
13515 hardcode_shlibpath_var_CXX=no
13516 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13517 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13518 if test -z "`echo __ELF__
| $CC -E - | grep __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13519 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13520 export_dynamic_flag_spec_CXX='${wl}-E'
13521 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13523 output_verbose_link_cmd='echo'
13529 case $cc_basename in
13531 # Kuck and Associates, Inc. (KAI) C++ Compiler
13533 # KCC will only create a shared library if the output file
13534 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13535 # to its proper name (with version) after linking.
13536 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'
13538 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13539 hardcode_libdir_separator_CXX=:
13541 # Archives containing C++ object files must be created using
13542 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13543 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13547 # Rational C++ 2.4.1
13548 # FIXME: insert proper C++ library support
13552 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13553 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'
13555 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13556 hardcode_libdir_separator_CXX=:
13558 # Commands to make compiler produce verbose output that lists
13559 # what "hidden" libraries, object files and flags are used when
13560 # linking a shared library.
13562 # There doesn't appear to be a way to prevent this compiler from
13563 # explicitly linking system object files so we need to strip them
13564 # from the output so that they don't get included in the library
13566 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'
13569 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13570 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13571 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'
13573 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13574 hardcode_libdir_separator_CXX=:
13576 # Commands to make compiler produce verbose output that lists
13577 # what "hidden" libraries, object files and flags are used when
13578 # linking a shared library.
13579 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13582 # FIXME: insert proper C++ library support
13589 case $cc_basename in
13591 # Kuck and Associates, Inc. (KAI) C++ Compiler
13593 # KCC will only create a shared library if the output file
13594 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13595 # to its proper name (with version) after linking.
13596 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'
13598 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13599 hardcode_libdir_separator_CXX=:
13601 # Archives containing C++ object files must be created using
13602 # the KAI C++ compiler.
13603 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13606 # Rational C++ 2.4.1
13607 # FIXME: insert proper C++ library support
13611 allow_undefined_flag_CXX=' -expect_unresolved \*'
13612 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'
13613 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13614 echo "-hidden">> $lib.exp~
13615 $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~
13618 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13619 hardcode_libdir_separator_CXX=:
13621 # Commands to make compiler produce verbose output that lists
13622 # what "hidden" libraries, object files and flags are used when
13623 # linking a shared library.
13625 # There doesn't appear to be a way to prevent this compiler from
13626 # explicitly linking system object files so we need to strip them
13627 # from the output so that they don't get included in the library
13629 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'
13632 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13633 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13634 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'
13636 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13637 hardcode_libdir_separator_CXX=:
13639 # Commands to make compiler produce verbose output that lists
13640 # what "hidden" libraries, object files and flags are used when
13641 # linking a shared library.
13642 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13645 # FIXME: insert proper C++ library support
13652 # FIXME: insert proper C++ library support
13656 case $cc_basename in
13659 # FIXME: insert proper C++ library support
13664 # FIXME: insert proper C++ library support
13668 # FIXME: insert proper C++ library support
13674 case $cc_basename in
13676 # Sun C++ 4.2, 5.x and Centerline C++
13677 archive_cmds_need_lc_CXX=yes
13678 no_undefined_flag_CXX=' -zdefs'
13679 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13680 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13681 $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'
13683 hardcode_libdir_flag_spec_CXX='-R$libdir'
13684 hardcode_shlibpath_var_CXX=no
13686 solaris2.[0-5] | solaris2.[0-5].*) ;;
13688 # The compiler driver will combine and reorder linker options,
13689 # but understands `-z linker_flag
'.
13690 # Supported since Solaris 2.6 (maybe 2.5.1?)
13691 whole_archive_flag_spec_CXX='-z allextract
$convenience -z defaultextract
'
13694 link_all_deplibs_CXX=yes
13696 output_verbose_link_cmd='echo'
13698 # Archives containing C++ object files must be created using
13699 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13700 # necessary to make sure instantiated templates are included
13702 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13705 # Green Hills C++ Compiler
13706 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13708 # The C++ compiler must be used to create the archive.
13709 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13712 # GNU C++ compiler with Solaris linker
13713 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13714 no_undefined_flag_CXX=' ${wl}-z ${wl}defs
'
13715 if $CC --version | grep -v '^
2\
.7' > /dev/null; then
13716 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13717 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~
cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~
$echo "local: *; };" >> $lib.exp~
13718 $CC -shared -nostdlib ${wl}-M $wl$lib.exp
-o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~
$rm $lib.exp
'
13720 # Commands to make compiler produce verbose output that lists
13721 # what "hidden" libraries, object files and flags are used when
13722 # linking a shared library.
13723 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13725 # g++ 2.7 appears to require `-G' NOT
`-shared' on this
13727 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13728 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13729 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13731 # Commands to make compiler produce verbose output that lists
13732 # what "hidden" libraries, object files and flags are used when
13733 # linking a shared library.
13734 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13737 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13739 solaris2.[0-5] | solaris2.[0-5].*) ;;
13741 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13748 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13749 no_undefined_flag_CXX='${wl}-z,text'
13750 archive_cmds_need_lc_CXX=no
13751 hardcode_shlibpath_var_CXX=no
13752 runpath_var='LD_RUN_PATH'
13754 case $cc_basename in
13756 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13757 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13760 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13761 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13765 sysv5* | sco3.2v5* | sco5v6*)
13766 # Note: We can NOT use -z defs as we might desire, because we do not
13767 # link with -lc, and that would cause any symbols used from libc to
13768 # always be unresolved, which means just about no library would
13769 # ever link correctly. If we're not using GNU ld we use -z text
13770 # though, which does catch some bad symbols but isn't as heavy-handed
13772 # For security reasons, it is highly recommended that you always
13773 # use absolute paths for naming shared libraries, and exclude the
13774 # DT_RUNPATH tag from executables and libraries. But doing so
13775 # requires that you compile everything twice, which is a pain.
13776 # So that behaviour is only enabled if SCOABSPATH is set to a
13777 # non-empty value in the environment. Most likely only useful for
13778 # creating official distributions of packages.
13779 # This is a hack until libtool officially supports absolute path
13780 # names for shared libraries.
13781 no_undefined_flag_CXX='${wl}-z,text'
13782 allow_undefined_flag_CXX='${wl}-z,nodefs'
13783 archive_cmds_need_lc_CXX=no
13784 hardcode_shlibpath_var_CXX=no
13785 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13786 hardcode_libdir_separator_CXX=':'
13787 link_all_deplibs_CXX=yes
13788 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13789 runpath_var='LD_RUN_PATH'
13791 case $cc_basename in
13793 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13794 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13797 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13798 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13803 case $cc_basename in
13805 # NonStop-UX NCC 3.20
13806 # FIXME: insert proper C++ library support
13810 # FIXME: insert proper C++ library support
13816 # FIXME: insert proper C++ library support
13820 # FIXME: insert proper C++ library support
13824 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13825 $as_echo "$ld_shlibs_CXX" >&6; }
13826 test "$ld_shlibs_CXX" = no && can_build_shared=no
13831 cat > conftest.$ac_ext <<EOF
13835 Foo (void) { a = 0; }
13841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13842 (eval $ac_compile) 2>&5
13844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; then
13846 # Parse the compiler output and extract the necessary
13847 # objects, libraries and library flags.
13849 # Sentinel used to keep track of whether or not we are before
13850 # the conftest object file.
13851 pre_test_object_deps_done=no
13853 # The `*' in the case matches for architectures that use `case' in
13854 # $output_verbose_cmd can trigger glob expansion during the loop
13855 # eval without this substitution.
13856 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13858 for p
in `eval $output_verbose_link_cmd`; do
13862 # Some compilers place space between "-{L,R}" and the path.
13863 # Remove the space.
13864 if test $p = "-L" \
13865 || test $p = "-R"; then
13872 if test "$pre_test_object_deps_done" = no
; then
13875 # Internal compiler library paths should come after those
13876 # provided the user. The postdeps already come after the
13877 # user supplied libs so there is no need to process them.
13878 if test -z "$compiler_lib_search_path_CXX"; then
13879 compiler_lib_search_path_CXX
="${prev}${p}"
13881 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
13884 # The "-l" case would never come before the object being
13885 # linked, so don't bother handling this case.
13888 if test -z "$postdeps_CXX"; then
13889 postdeps_CXX
="${prev}${p}"
13891 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
13897 # This assumes that the test object file only shows up
13898 # once in the compiler output.
13899 if test "$p" = "conftest.$objext"; then
13900 pre_test_object_deps_done
=yes
13904 if test "$pre_test_object_deps_done" = no
; then
13905 if test -z "$predep_objects_CXX"; then
13906 predep_objects_CXX
="$p"
13908 predep_objects_CXX
="$predep_objects_CXX $p"
13911 if test -z "$postdep_objects_CXX"; then
13912 postdep_objects_CXX
="$p"
13914 postdep_objects_CXX
="$postdep_objects_CXX $p"
13919 *) ;; # Ignore the rest.
13927 echo "libtool.m4: error: problem compiling CXX test program"
13930 $rm -f confest.
$objext
13932 compiler_lib_search_dirs_CXX
=
13933 if test -n "$compiler_lib_search_path_CXX"; then
13934 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13937 # PORTME: override above test on systems where it is broken
13940 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13941 # hack all around it, let's just trust "g++" to DTRT.
13942 predep_objects_CXX
=
13943 postdep_objects_CXX
=
13948 case `$CC -V 2>&1 | sed 5q` in
13952 # The more standards-conforming stlport4 library is
13953 # incompatible with the Cstd library. Avoid specifying
13954 # it if it's in CXXFLAGS. Ignore libCrun as
13955 # -library=stlport4 depends on it.
13956 case " $CXX $CXXFLAGS " in
13957 *" -library=stlport4 "*)
13958 solaris_use_stlport4
=yes
13961 if test "$solaris_use_stlport4" != yes; then
13962 postdeps_CXX
='-library=Cstd -library=Crun'
13969 case $cc_basename in
13971 # The more standards-conforming stlport4 library is
13972 # incompatible with the Cstd library. Avoid specifying
13973 # it if it's in CXXFLAGS. Ignore libCrun as
13974 # -library=stlport4 depends on it.
13975 case " $CXX $CXXFLAGS " in
13976 *" -library=stlport4 "*)
13977 solaris_use_stlport4
=yes
13981 # Adding this requires a known-good setup of shared libraries for
13982 # Sun compiler versions before 5.6, else PIC objects from an old
13983 # archive will be linked into the output, leading to subtle bugs.
13984 if test "$solaris_use_stlport4" != yes; then
13985 postdeps_CXX
='-library=Cstd -library=Crun'
13992 case " $postdeps_CXX " in
13993 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
13996 lt_prog_compiler_wl_CXX
=
13997 lt_prog_compiler_pic_CXX
=
13998 lt_prog_compiler_static_CXX
=
14000 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14001 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14003 # C++ specific cases for pic, static, wl, etc.
14004 if test "$GXX" = yes; then
14005 lt_prog_compiler_wl_CXX
='-Wl,'
14006 lt_prog_compiler_static_CXX
='-static'
14010 # All AIX code is PIC.
14011 if test "$host_cpu" = ia64
; then
14012 # AIX 5 now supports IA64 processor
14013 lt_prog_compiler_static_CXX
='-Bstatic'
14017 # FIXME: we need at least 68020 code to build shared libraries, but
14018 # adding the `-m68020' flag to GCC prevents building anything better,
14020 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
14022 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
14023 # PIC is the default for these OSes.
14025 mingw
* | cygwin
* | os2
* | pw32
*)
14026 # This hack is so that the source file can tell whether it is being
14027 # built for inclusion in a dll (and should export symbols for example).
14028 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14029 # (--disable-auto-import) libraries
14030 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
14032 darwin
* | rhapsody
*)
14033 # PIC is the default on this platform
14034 # Common symbols not allowed in MH_DYLIB files
14035 lt_prog_compiler_pic_CXX
='-fno-common'
14038 # DJGPP does not support shared libraries at all
14039 lt_prog_compiler_pic_CXX
=
14042 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14043 # Instead, we relocate shared libraries at runtime.
14046 if test -d /usr
/nec
; then
14047 lt_prog_compiler_pic_CXX
=-Kconform_pic
14051 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14052 # not for PA HP-UX.
14057 lt_prog_compiler_pic_CXX
='-fPIC'
14062 lt_prog_compiler_pic_CXX
='-fPIC'
14068 # All AIX code is PIC.
14069 if test "$host_cpu" = ia64
; then
14070 # AIX 5 now supports IA64 processor
14071 lt_prog_compiler_static_CXX
='-Bstatic'
14073 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
14077 case $cc_basename in
14079 # Green Hills C++ Compiler
14080 # _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"
14085 # PIC is the default on this platform
14086 # Common symbols not allowed in MH_DYLIB files
14087 case $cc_basename in
14089 lt_prog_compiler_pic_CXX
='-qnocommon'
14090 lt_prog_compiler_wl_CXX
='-Wl,'
14095 case $cc_basename in
14097 lt_prog_compiler_pic_CXX
='-KPIC'
14100 # Green Hills C++ Compiler
14101 lt_prog_compiler_pic_CXX
='-pic'
14107 freebsd
* | dragonfly
*)
14108 # FreeBSD uses GNU C++
14110 hpux9
* | hpux10
* | hpux11
*)
14111 case $cc_basename in
14113 lt_prog_compiler_wl_CXX
='-Wl,'
14114 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
14115 if test "$host_cpu" != ia64
; then
14116 lt_prog_compiler_pic_CXX
='+Z'
14120 lt_prog_compiler_wl_CXX
='-Wl,'
14121 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
14127 lt_prog_compiler_pic_CXX
='+Z'
14136 # This is c89, which is MS Visual C++ (no shared libs)
14137 # Anyone wants to do a port?
14139 irix5
* | irix6
* | nonstopux
*)
14140 case $cc_basename in
14142 lt_prog_compiler_wl_CXX
='-Wl,'
14143 lt_prog_compiler_static_CXX
='-non_shared'
14144 # CC pic flag -KPIC is the default.
14150 linux
* | k
*bsd
*-gnu)
14151 case $cc_basename in
14154 lt_prog_compiler_wl_CXX
='--backend -Wl,'
14155 lt_prog_compiler_pic_CXX
='-fPIC'
14159 lt_prog_compiler_wl_CXX
='-Wl,'
14160 lt_prog_compiler_pic_CXX
='-KPIC'
14161 lt_prog_compiler_static_CXX
='-static'
14164 # Portland Group C++ compiler.
14165 lt_prog_compiler_wl_CXX
='-Wl,'
14166 lt_prog_compiler_pic_CXX
='-fpic'
14167 lt_prog_compiler_static_CXX
='-Bstatic'
14171 # Make sure the PIC flag is empty. It appears that all Alpha
14172 # Linux and Compaq Tru64 Unix objects are PIC.
14173 lt_prog_compiler_pic_CXX
=
14174 lt_prog_compiler_static_CXX
='-non_shared'
14177 case `$CC -V 2>&1 | sed 5q` in
14180 lt_prog_compiler_pic_CXX
='-KPIC'
14181 lt_prog_compiler_static_CXX
='-Bstatic'
14182 lt_prog_compiler_wl_CXX
='-Qoption ld '
14193 case $cc_basename in
14195 lt_prog_compiler_pic_CXX
='-W c,exportall'
14201 netbsd
* | netbsdelf
*-gnu)
14203 osf3
* | osf4
* | osf5
*)
14204 case $cc_basename in
14206 lt_prog_compiler_wl_CXX
='--backend -Wl,'
14209 # Rational C++ 2.4.1
14210 lt_prog_compiler_pic_CXX
='-pic'
14213 # Digital/Compaq C++
14214 lt_prog_compiler_wl_CXX
='-Wl,'
14215 # Make sure the PIC flag is empty. It appears that all Alpha
14216 # Linux and Compaq Tru64 Unix objects are PIC.
14217 lt_prog_compiler_pic_CXX
=
14218 lt_prog_compiler_static_CXX
='-non_shared'
14227 case $cc_basename in
14229 # Sun C++ 4.2, 5.x and Centerline C++
14230 lt_prog_compiler_pic_CXX
='-KPIC'
14231 lt_prog_compiler_static_CXX
='-Bstatic'
14232 lt_prog_compiler_wl_CXX
='-Qoption ld '
14235 # Green Hills C++ Compiler
14236 lt_prog_compiler_pic_CXX
='-PIC'
14243 case $cc_basename in
14246 lt_prog_compiler_pic_CXX
='-pic'
14247 lt_prog_compiler_static_CXX
='-Bstatic'
14251 lt_prog_compiler_pic_CXX
='-pic'
14258 case $cc_basename in
14260 # NonStop-UX NCC 3.20
14261 lt_prog_compiler_pic_CXX
='-KPIC'
14267 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
14268 case $cc_basename in
14270 lt_prog_compiler_wl_CXX
='-Wl,'
14271 lt_prog_compiler_pic_CXX
='-KPIC'
14272 lt_prog_compiler_static_CXX
='-Bstatic'
14279 lt_prog_compiler_can_build_shared_CXX
=no
14284 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14285 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14288 # Check to make sure the PIC flag actually works.
14290 if test -n "$lt_prog_compiler_pic_CXX"; then
14292 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14293 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14294 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14295 $as_echo_n "(cached) " >&6
14297 lt_cv_prog_compiler_pic_works_CXX
=no
14298 ac_outfile
=conftest.
$ac_objext
14299 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14300 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
14301 # Insert the option either (1) after the last *FLAGS variable, or
14302 # (2) before a word containing "conftest.", or (3) at the end.
14303 # Note that $ac_compile itself does not contain backslashes and begins
14304 # with a dollar sign (not a hyphen), so the echo should work correctly.
14305 # The option is referenced via a variable to avoid confusing sed.
14306 lt_compile
=`echo "$ac_compile" | $SED \
14307 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14308 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14309 -e 's:$: $lt_compiler_flag:'`
14310 (eval echo "\"\$as_me:14310: $lt_compile\"" >&5)
14311 (eval "$lt_compile" 2>conftest.err
)
14313 cat conftest.err
>&5
14314 echo "$as_me:14314: \$? = $ac_status" >&5
14315 if (exit $ac_status) && test -s "$ac_outfile"; then
14316 # The compiler can only warn and ignore the option if not recognized
14317 # So say no if there are warnings other than the usual output.
14318 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14319 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14320 if test ! -s conftest.er2
|| diff conftest.exp conftest.er2
>/dev
/null
; then
14321 lt_cv_prog_compiler_pic_works_CXX
=yes
14327 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14328 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14330 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
14331 case $lt_prog_compiler_pic_CXX in
14333 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
14336 lt_prog_compiler_pic_CXX
=
14337 lt_prog_compiler_can_build_shared_CXX
=no
14342 # For platforms which do not support PIC, -DPIC is meaningless:
14344 lt_prog_compiler_pic_CXX
=
14347 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
14352 # Check to make sure the static flag actually works.
14354 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
14355 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14356 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14357 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14358 $as_echo_n "(cached) " >&6
14360 lt_cv_prog_compiler_static_works_CXX
=no
14361 save_LDFLAGS
="$LDFLAGS"
14362 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
14363 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
14364 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
14365 # The linker can only warn and ignore the option if not recognized
14366 # So say no if there are warnings
14367 if test -s conftest.err
; then
14368 # Append any errors to the config.log.
14369 cat conftest.err
1>&5
14370 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14371 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14372 if diff conftest.exp conftest.er2
>/dev
/null
; then
14373 lt_cv_prog_compiler_static_works_CXX
=yes
14376 lt_cv_prog_compiler_static_works_CXX
=yes
14380 LDFLAGS
="$save_LDFLAGS"
14383 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14384 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14386 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
14389 lt_prog_compiler_static_CXX
=
14393 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14394 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14395 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14396 $as_echo_n "(cached) " >&6
14398 lt_cv_prog_compiler_c_o_CXX
=no
14399 $rm -r conftest
2>/dev
/null
14403 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14405 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14406 # Insert the option either (1) after the last *FLAGS variable, or
14407 # (2) before a word containing "conftest.", or (3) at the end.
14408 # Note that $ac_compile itself does not contain backslashes and begins
14409 # with a dollar sign (not a hyphen), so the echo should work correctly.
14410 lt_compile
=`echo "$ac_compile" | $SED \
14411 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14413 -e 's:$: $lt_compiler_flag:'`
14414 (eval echo "\"\$as_me:14414: $lt_compile\"" >&5)
14415 (eval "$lt_compile" 2>out
/conftest.err
)
14417 cat out
/conftest.err
>&5
14418 echo "$as_me:14418: \$? = $ac_status" >&5
14419 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14421 # The compiler can only warn and ignore the option if not recognized
14422 # So say no if there are warnings
14423 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out
/conftest.exp
14424 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14425 if test ! -s out
/conftest.er2
|| diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14426 lt_cv_prog_compiler_c_o_CXX
=yes
14431 # SGI C++ compiler will create directory out/ii_files/ for
14432 # template instantiation
14433 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
14434 $rm out
/* && rmdir out
14440 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14441 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14444 hard_links
="nottested"
14445 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
14446 # do not overwrite the value of need_locks provided by the user
14447 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14448 $as_echo_n "checking if we can lock with hard links... " >&6; }
14451 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14453 ln conftest.a conftest.b
2>&5 || hard_links
=no
14454 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14455 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14456 $as_echo "$hard_links" >&6; }
14457 if test "$hard_links" = no
; then
14458 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14459 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14466 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14467 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14469 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14472 # If we're using GNU nm, then we don't want the "-C" option.
14473 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14474 if $NM -V 2>&1 | grep 'GNU' > /dev
/null
; then
14475 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'
14477 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'
14481 export_symbols_cmds_CXX
="$ltdll_cmds"
14484 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'
14486 linux
* | k
*bsd
*-gnu)
14487 link_all_deplibs_CXX
=no
14490 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14493 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14495 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14496 $as_echo "$ld_shlibs_CXX" >&6; }
14497 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
14500 # Do we need to explicitly link libc?
14502 case "x$archive_cmds_need_lc_CXX" in
14504 # Assume -lc should be added
14505 archive_cmds_need_lc_CXX
=yes
14507 if test "$enable_shared" = yes && test "$GCC" = yes; then
14508 case $archive_cmds_CXX in
14510 # FIXME: we may have to deal with multi-command sequences.
14513 # Test whether the compiler implicitly links with -lc since on some
14514 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14515 # to ld, don't add -lc before -lgcc.
14516 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14517 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14519 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14522 (eval $ac_compile) 2>&5
14524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); } 2>conftest.err
; then
14528 libobjs
=conftest.
$ac_objext
14530 wl
=$lt_prog_compiler_wl_CXX
14531 pic_flag
=$lt_prog_compiler_pic_CXX
14537 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
14538 allow_undefined_flag_CXX
=
14539 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14540 (eval $archive_cmds_CXX 2\
>\
&1 \
| grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }
14545 archive_cmds_need_lc_CXX
=no
14547 archive_cmds_need_lc_CXX
=yes
14549 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
14551 cat conftest.err
1>&5
14554 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14555 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14562 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14563 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14564 library_names_spec
=
14565 libname_spec
='lib$name'
14569 postuninstall_cmds
=
14573 shlibpath_overrides_runpath
=unknown
14575 dynamic_linker
="$host_os ld.so"
14576 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14578 need_lib_prefix
=unknown
14579 hardcode_into_libs
=no
14581 # when you set need_version to no, make sure it does not cause -set_version
14582 # flags to be left without arguments
14583 need_version
=unknown
14588 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14589 shlibpath_var
=LIBPATH
14591 # AIX 3 has no versioning support, so we append a major version to the name.
14592 soname_spec
='${libname}${release}${shared_ext}$major'
14599 hardcode_into_libs
=yes
14600 if test "$host_cpu" = ia64
; then
14601 # AIX 5 supports IA64
14602 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14603 shlibpath_var
=LD_LIBRARY_PATH
14605 # With GCC up to 2.95.x, collect2 would create an import file
14606 # for dependence libraries. The import file would start with
14607 # the line `#! .'. This would cause the generated library to
14608 # depend on `.', always an invalid library. This was fixed in
14609 # development snapshots of GCC prior to 3.0.
14611 aix4
| aix4.
[01] | aix4.
[01].
*)
14612 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14614 echo '#endif'; } | ${CC} -E - | grep yes > /dev
/null
; then
14617 can_build_shared
=no
14621 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14622 # soname into executable. Probably we can add versioning support to
14623 # collect2, so additional links can be useful in future.
14624 if test "$aix_use_runtimelinking" = yes; then
14625 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14626 # instead of lib<name>.a to let people know that these are not
14627 # typical AIX shared libraries.
14628 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14630 # We preserve .a as extension for shared libraries through AIX4.2
14631 # and later when we are not doing run time linking.
14632 library_names_spec
='${libname}${release}.a $libname.a'
14633 soname_spec
='${libname}${release}${shared_ext}$major'
14635 shlibpath_var
=LIBPATH
14640 library_names_spec
='$libname.ixlibrary $libname.a'
14641 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14642 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'
14646 library_names_spec
='${libname}${shared_ext}'
14647 dynamic_linker
="$host_os ld.so"
14648 shlibpath_var
=LIBRARY_PATH
14654 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14655 soname_spec
='${libname}${release}${shared_ext}$major'
14656 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14657 shlibpath_var
=LD_LIBRARY_PATH
14658 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14659 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14660 # the default ld.so.conf also contains /usr/contrib/lib and
14661 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14662 # libtool to hard-code these into programs
14665 cygwin
* | mingw
* | pw32
*)
14666 version_type
=windows
14671 case $GCC,$host_os in
14672 yes,cygwin
* | yes,mingw
* | yes,pw32
*)
14673 library_names_spec
='$libname.dll.a'
14674 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14675 postinstall_cmds
='base_file=`basename \${file}`~
14676 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14677 dldir=$destdir/`dirname \$dlpath`~
14678 test -d \$dldir || mkdir -p \$dldir~
14679 $install_prog $dir/$dlname \$dldir/$dlname~
14680 chmod a+x \$dldir/$dlname'
14681 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14682 dlpath=$dir/\$dldll~
14684 shlibpath_overrides_runpath
=yes
14688 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14689 soname_spec
='`echo ${libname} | sed -e 's
/^lib
/cyg
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
14690 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
14693 # MinGW DLLs use traditional 'lib' prefix
14694 soname_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
14695 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14696 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev
/null
; then
14697 # It is most probably a Windows format PATH printed by
14698 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14699 # path with ; separators, and with drive letters. We can handle the
14700 # drive letters (cygwin fileutils understands them), so leave them,
14701 # especially as we might pass files found there to a mingw objdump,
14702 # which wouldn't understand a cygwinified path. Ahh.
14703 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14705 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14709 # pw32 DLLs use 'pw' prefix rather than 'lib'
14710 library_names_spec
='`echo ${libname} | sed -e 's
/^lib
/pw
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
14716 library_names_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext} $libname.lib'
14719 dynamic_linker
='Win32 ld.exe'
14720 # FIXME: first we should search . and the directory the executable is in
14724 darwin
* | rhapsody
*)
14725 dynamic_linker
="$host_os dyld"
14726 version_type
=darwin
14729 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14730 soname_spec
='${libname}${release}${major}$shared_ext'
14731 shlibpath_overrides_runpath
=yes
14732 shlibpath_var
=DYLD_LIBRARY_PATH
14733 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14735 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14742 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14743 soname_spec
='${libname}${release}${shared_ext}$major'
14744 shlibpath_var
=LD_LIBRARY_PATH
14751 freebsd
* | dragonfly
*)
14752 # DragonFly does not have aout. When/if they implement a new
14753 # versioning mechanism, adjust this.
14754 if test -x /usr
/bin
/objformat
; then
14755 objformat
=`/usr/bin/objformat`
14758 freebsd
[123]*) objformat
=aout
;;
14759 *) objformat
=elf
;;
14762 version_type
=freebsd
-$objformat
14763 case $version_type in
14765 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14770 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14774 shlibpath_var
=LD_LIBRARY_PATH
14777 shlibpath_overrides_runpath
=yes
14779 freebsd3.
[01]* | freebsdelf3.
[01]*)
14780 shlibpath_overrides_runpath
=yes
14781 hardcode_into_libs
=yes
14783 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14784 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14785 shlibpath_overrides_runpath
=no
14786 hardcode_into_libs
=yes
14788 *) # from 4.6 on, and DragonFly
14789 shlibpath_overrides_runpath
=yes
14790 hardcode_into_libs
=yes
14799 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14800 soname_spec
='${libname}${release}${shared_ext}$major'
14801 shlibpath_var
=LD_LIBRARY_PATH
14802 hardcode_into_libs
=yes
14805 hpux9
* | hpux10
* | hpux11
*)
14806 # Give a soname corresponding to the major version so that dld.sl refuses to
14807 # link against other versions.
14814 hardcode_into_libs
=yes
14815 dynamic_linker
="$host_os dld.so"
14816 shlibpath_var
=LD_LIBRARY_PATH
14817 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14818 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14819 soname_spec
='${libname}${release}${shared_ext}$major'
14820 if test "X$HPUX_IA64_MODE" = X32
; then
14821 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14823 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14825 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14829 hardcode_into_libs
=yes
14830 dynamic_linker
="$host_os dld.sl"
14831 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14832 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14833 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14834 soname_spec
='${libname}${release}${shared_ext}$major'
14835 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14836 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14840 dynamic_linker
="$host_os dld.sl"
14841 shlibpath_var
=SHLIB_PATH
14842 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14843 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14844 soname_spec
='${libname}${release}${shared_ext}$major'
14847 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14848 postinstall_cmds
='chmod 555 $lib'
14855 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14856 soname_spec
='${libname}${release}${shared_ext}$major'
14857 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14858 shlibpath_var
=LD_LIBRARY_PATH
14859 shlibpath_overrides_runpath
=no
14860 hardcode_into_libs
=yes
14863 irix5
* | irix6
* | nonstopux
*)
14865 nonstopux
*) version_type
=nonstopux
;;
14867 if test "$lt_cv_prog_gnu_ld" = yes; then
14875 soname_spec
='${libname}${release}${shared_ext}$major'
14876 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14878 irix5
* | nonstopux
*)
14879 libsuff
= shlibsuff
=
14882 case $LD in # libtool.m4 will add one of these switches to LD
14883 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14884 libsuff
= shlibsuff
= libmagic
=32-bit;;
14885 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14886 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14887 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14888 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14889 *) libsuff
= shlibsuff
= libmagic
=never
-match;;
14893 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14894 shlibpath_overrides_runpath
=no
14895 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14896 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14897 hardcode_into_libs
=yes
14900 # No shared lib support for Linux oldld, aout, or coff.
14901 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14905 # This must be Linux ELF.
14906 linux
* | k
*bsd
*-gnu)
14910 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14911 soname_spec
='${libname}${release}${shared_ext}$major'
14912 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14913 shlibpath_var
=LD_LIBRARY_PATH
14914 shlibpath_overrides_runpath
=no
14915 # This implies no fast_install, which is unacceptable.
14916 # Some rework will be needed to allow for fast_install
14917 # before this can be enabled.
14918 hardcode_into_libs
=yes
14920 # Append ld.so.conf contents to the search path
14921 if test -f /etc
/ld.so.conf
; then
14922 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14923 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14926 # We used to test for /lib/ld.so.1 and disable shared libraries on
14927 # powerpc, because MkLinux only supported shared libraries with the
14928 # GNU dynamic linker. Since this was broken with cross compilers,
14929 # most powerpc-linux boxes support dynamic linking these days and
14930 # people can always --disable-shared, the test was removed, and we
14931 # assume the GNU/Linux dynamic linker is in use.
14932 dynamic_linker
='GNU/Linux ld.so'
14939 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14940 soname_spec
='${libname}${release}${shared_ext}$major'
14941 shlibpath_var
=LD_LIBRARY_PATH
14942 shlibpath_overrides_runpath
=no
14943 hardcode_into_libs
=yes
14944 dynamic_linker
='NetBSD ld.elf_so'
14951 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
14952 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14953 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14954 dynamic_linker
='NetBSD (a.out) ld.so'
14956 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14957 soname_spec
='${libname}${release}${shared_ext}$major'
14958 dynamic_linker
='NetBSD ld.elf_so'
14960 shlibpath_var
=LD_LIBRARY_PATH
14961 shlibpath_overrides_runpath
=yes
14962 hardcode_into_libs
=yes
14967 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14968 shlibpath_var
=LD_LIBRARY_PATH
14969 shlibpath_overrides_runpath
=yes
14976 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14977 soname_spec
='${libname}${release}${shared_ext}$major'
14978 shlibpath_var
=LD_LIBRARY_PATH
14979 shlibpath_overrides_runpath
=yes
14984 sys_lib_dlsearch_path_spec
="/usr/lib"
14986 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14988 openbsd3.3
| openbsd3.3.
*) need_version
=yes ;;
14989 *) need_version
=no
;;
14991 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14992 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14993 shlibpath_var
=LD_LIBRARY_PATH
14994 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14996 openbsd2.
[89] | openbsd2.
[89].
*)
14997 shlibpath_overrides_runpath
=no
15000 shlibpath_overrides_runpath
=yes
15004 shlibpath_overrides_runpath
=yes
15009 libname_spec
='$name'
15012 library_names_spec
='$libname${shared_ext} $libname.a'
15013 dynamic_linker
='OS/2 ld.exe'
15014 shlibpath_var
=LIBPATH
15017 osf3
* | osf4
* | osf5
*)
15021 soname_spec
='${libname}${release}${shared_ext}$major'
15022 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15023 shlibpath_var
=LD_LIBRARY_PATH
15024 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15025 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15036 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15037 soname_spec
='${libname}${release}${shared_ext}$major'
15038 shlibpath_var
=LD_LIBRARY_PATH
15039 shlibpath_overrides_runpath
=yes
15040 hardcode_into_libs
=yes
15041 # ldd complains unless libraries are executable
15042 postinstall_cmds
='chmod +x $lib'
15047 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15048 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15049 shlibpath_var
=LD_LIBRARY_PATH
15050 shlibpath_overrides_runpath
=yes
15051 if test "$with_gnu_ld" = yes; then
15059 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15060 soname_spec
='${libname}${release}${shared_ext}$major'
15061 shlibpath_var
=LD_LIBRARY_PATH
15062 case $host_vendor in
15064 shlibpath_overrides_runpath
=no
15066 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15067 runpath_var
=LD_RUN_PATH
15075 shlibpath_overrides_runpath
=no
15076 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15082 if test -d /usr
/nec
;then
15084 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15085 soname_spec
='$libname${shared_ext}.$major'
15086 shlibpath_var
=LD_LIBRARY_PATH
15090 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
15091 version_type
=freebsd
-elf
15094 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15095 soname_spec
='${libname}${release}${shared_ext}$major'
15096 shlibpath_var
=LD_LIBRARY_PATH
15097 hardcode_into_libs
=yes
15098 if test "$with_gnu_ld" = yes; then
15099 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15100 shlibpath_overrides_runpath
=no
15102 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
15103 shlibpath_overrides_runpath
=yes
15106 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
15110 sys_lib_dlsearch_path_spec
='/usr/lib'
15115 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15116 soname_spec
='${libname}${release}${shared_ext}$major'
15117 shlibpath_var
=LD_LIBRARY_PATH
15124 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15125 $as_echo "$dynamic_linker" >&6; }
15126 test "$dynamic_linker" = no
&& can_build_shared
=no
15128 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15129 $as_echo_n "(cached) " >&6
15131 lt_cv_sys_lib_search_path_spec
="$sys_lib_search_path_spec"
15134 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
15135 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15136 $as_echo_n "(cached) " >&6
15138 lt_cv_sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec"
15141 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
15143 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
15144 if test "$GCC" = yes; then
15145 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15148 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15149 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15150 hardcode_action_CXX
=
15151 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15152 test -n "$runpath_var_CXX" || \
15153 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15155 # We can hardcode non-existant directories.
15156 if test "$hardcode_direct_CXX" != no
&&
15157 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15158 # have to relink, otherwise we might link with an installed library
15159 # when we should be linking with a yet-to-be-installed one
15160 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15161 test "$hardcode_minus_L_CXX" != no
; then
15162 # Linking always hardcodes the temporary library directory.
15163 hardcode_action_CXX
=relink
15165 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15166 hardcode_action_CXX
=immediate
15169 # We cannot hardcode anything, or else we can only hardcode existing
15171 hardcode_action_CXX
=unsupported
15173 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15174 $as_echo "$hardcode_action_CXX" >&6; }
15176 if test "$hardcode_action_CXX" = relink
; then
15177 # Fast installation is not supported
15178 enable_fast_install
=no
15179 elif test "$shlibpath_overrides_runpath" = yes ||
15180 test "$enable_shared" = no
; then
15181 # Fast installation is not necessary
15182 enable_fast_install
=needless
15186 # The else clause should only fire when bootstrapping the
15187 # libtool distribution, otherwise you forgot to ship ltmain.sh
15188 # with your package, and you will get complaints that there are
15189 # no rules to generate ltmain.sh.
15190 if test -f "$ltmain"; then
15191 # See if we are running on zsh, and set the options which allow our commands through
15192 # without removal of \ escapes.
15193 if test -n "${ZSH_VERSION+set}" ; then
15194 setopt NO_GLOB_SUBST
15196 # Now quote all the things that may contain metacharacters while being
15197 # careful not to overquote the AC_SUBSTed values. We take copies of the
15198 # variables and quote the copies for generation of the libtool script.
15199 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15201 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15202 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15203 deplibs_check_method reload_flag reload_cmds need_locks \
15204 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15205 lt_cv_sys_global_symbol_to_c_name_address \
15206 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15207 old_postinstall_cmds old_postuninstall_cmds \
15211 lt_prog_compiler_wl_CXX \
15212 lt_prog_compiler_pic_CXX \
15213 lt_prog_compiler_static_CXX \
15214 lt_prog_compiler_no_builtin_flag_CXX \
15215 export_dynamic_flag_spec_CXX \
15216 thread_safe_flag_spec_CXX \
15217 whole_archive_flag_spec_CXX \
15218 enable_shared_with_static_runtimes_CXX \
15219 old_archive_cmds_CXX \
15220 old_archive_from_new_cmds_CXX \
15221 predep_objects_CXX \
15222 postdep_objects_CXX \
15225 compiler_lib_search_path_CXX \
15226 compiler_lib_search_dirs_CXX \
15228 archive_expsym_cmds_CXX \
15229 postinstall_cmds_CXX \
15230 postuninstall_cmds_CXX \
15231 old_archive_from_expsyms_cmds_CXX \
15232 allow_undefined_flag_CXX \
15233 no_undefined_flag_CXX \
15234 export_symbols_cmds_CXX \
15235 hardcode_libdir_flag_spec_CXX \
15236 hardcode_libdir_flag_spec_ld_CXX \
15237 hardcode_libdir_separator_CXX \
15238 hardcode_automatic_CXX \
15240 module_expsym_cmds_CXX \
15241 lt_cv_prog_compiler_c_o_CXX \
15242 fix_srcfile_path_CXX \
15243 exclude_expsyms_CXX \
15244 include_expsyms_CXX
; do
15247 old_archive_cmds_CXX
| \
15248 old_archive_from_new_cmds_CXX
| \
15249 archive_cmds_CXX
| \
15250 archive_expsym_cmds_CXX
| \
15251 module_cmds_CXX
| \
15252 module_expsym_cmds_CXX
| \
15253 old_archive_from_expsyms_cmds_CXX
| \
15254 export_symbols_cmds_CXX
| \
15255 extract_expsyms_cmds
| reload_cmds
| finish_cmds
| \
15256 postinstall_cmds
| postuninstall_cmds
| \
15257 old_postinstall_cmds
| old_postuninstall_cmds
| \
15258 sys_lib_search_path_spec
| sys_lib_dlsearch_path_spec
)
15259 # Double-quote double-evaled strings.
15260 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15263 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15269 *'\$0 --fallback-echo"')
15270 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15276 cat <<__EOF__ >> "$cfgfile"
15277 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15279 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15281 # Shell to use when invoking shell scripts.
15284 # Whether or not to build shared libraries.
15285 build_libtool_libs=$enable_shared
15287 # Whether or not to build static libraries.
15288 build_old_libs=$enable_static
15290 # Whether or not to add -lc for building shared libraries.
15291 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15293 # Whether or not to disallow shared libs when runtime libs are static
15294 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15296 # Whether or not to optimize for fast installation.
15297 fast_install=$enable_fast_install
15300 host_alias=$host_alias
15304 # The build system.
15305 build_alias=$build_alias
15309 # An echo program that does not interpret backslashes.
15314 AR_FLAGS=$lt_AR_FLAGS
15319 # LTCC compiler flags.
15320 LTCFLAGS=$lt_LTCFLAGS
15322 # A language-specific compiler.
15323 CC=$lt_compiler_CXX
15325 # Is the compiler the GNU C compiler?
15331 # The linker used to build libraries.
15334 # Whether we need hard or soft links.
15337 # A BSD-compatible nm program.
15340 # A symbol stripping program
15343 # Used to examine libraries when file_magic_cmd begins "file"
15344 MAGIC_CMD=$MAGIC_CMD
15346 # Used on cygwin: DLL creation program.
15349 # Used on cygwin: object dumper.
15352 # Used on cygwin: assembler.
15355 # The name of the directory that contains temporary libtool files.
15358 # How to create reloadable object files.
15359 reload_flag=$lt_reload_flag
15360 reload_cmds=$lt_reload_cmds
15362 # How to pass a linker flag through the compiler.
15363 wl=$lt_lt_prog_compiler_wl_CXX
15365 # Object file suffix (normally "o").
15366 objext="$ac_objext"
15368 # Old archive suffix (normally "a").
15371 # Shared library suffix (normally ".so").
15372 shrext_cmds='$shrext_cmds'
15374 # Executable file suffix (normally "").
15377 # Additional compiler flags for building library objects.
15378 pic_flag=$lt_lt_prog_compiler_pic_CXX
15381 # What is the maximum length of a command?
15382 max_cmd_len=$lt_cv_sys_max_cmd_len
15384 # Does compiler simultaneously support -c and -o options?
15385 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15387 # Must we lock files when doing compilation?
15388 need_locks=$lt_need_locks
15390 # Do we need the lib prefix for modules?
15391 need_lib_prefix=$need_lib_prefix
15393 # Do we need a version for libraries?
15394 need_version=$need_version
15396 # Whether dlopen is supported.
15397 dlopen_support=$enable_dlopen
15399 # Whether dlopen of programs is supported.
15400 dlopen_self=$enable_dlopen_self
15402 # Whether dlopen of statically linked programs is supported.
15403 dlopen_self_static=$enable_dlopen_self_static
15405 # Compiler flag to prevent dynamic linking.
15406 link_static_flag=$lt_lt_prog_compiler_static_CXX
15408 # Compiler flag to turn off builtin functions.
15409 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15411 # Compiler flag to allow reflexive dlopens.
15412 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15414 # Compiler flag to generate shared objects directly from archives.
15415 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15417 # Compiler flag to generate thread-safe objects.
15418 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15420 # Library versioning type.
15421 version_type=$version_type
15423 # Format of library name prefix.
15424 libname_spec=$lt_libname_spec
15426 # List of archive names. First name is the real one, the rest are links.
15427 # The last name is the one that the linker finds with -lNAME.
15428 library_names_spec=$lt_library_names_spec
15430 # The coded name of the library, if different from the real name.
15431 soname_spec=$lt_soname_spec
15433 # Commands used to build and install an old-style archive.
15435 old_archive_cmds=$lt_old_archive_cmds_CXX
15436 old_postinstall_cmds=$lt_old_postinstall_cmds
15437 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15439 # Create an old-style archive from a shared archive.
15440 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15442 # Create a temporary old-style archive to link instead of a shared archive.
15443 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15445 # Commands used to build and install a shared archive.
15446 archive_cmds=$lt_archive_cmds_CXX
15447 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15448 postinstall_cmds=$lt_postinstall_cmds
15449 postuninstall_cmds=$lt_postuninstall_cmds
15451 # Commands used to build a loadable module (assumed same as above if empty)
15452 module_cmds=$lt_module_cmds_CXX
15453 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15455 # Commands to strip libraries.
15456 old_striplib=$lt_old_striplib
15457 striplib=$lt_striplib
15459 # Dependencies to place before the objects being linked to create a
15461 predep_objects=$lt_predep_objects_CXX
15463 # Dependencies to place after the objects being linked to create a
15465 postdep_objects=$lt_postdep_objects_CXX
15467 # Dependencies to place before the objects being linked to create a
15469 predeps=$lt_predeps_CXX
15471 # Dependencies to place after the objects being linked to create a
15473 postdeps=$lt_postdeps_CXX
15475 # The directories searched by this compiler when creating a shared
15477 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
15479 # The library search path used internally by the compiler when linking
15480 # a shared library.
15481 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15483 # Method to check whether dependent libraries are shared objects.
15484 deplibs_check_method=$lt_deplibs_check_method
15486 # Command to use when deplibs_check_method == file_magic.
15487 file_magic_cmd=$lt_file_magic_cmd
15489 # Flag that allows shared libraries with undefined symbols to be built.
15490 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15492 # Flag that forces no undefined symbols.
15493 no_undefined_flag=$lt_no_undefined_flag_CXX
15495 # Commands used to finish a libtool library installation in a directory.
15496 finish_cmds=$lt_finish_cmds
15498 # Same as above, but a single script fragment to be evaled but not shown.
15499 finish_eval=$lt_finish_eval
15501 # Take the output of nm and produce a listing of raw symbols and C names.
15502 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15504 # Transform the output of nm in a proper C declaration
15505 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15507 # Transform the output of nm in a C name address pair
15508 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15510 # This is the shared library runtime path variable.
15511 runpath_var=$runpath_var
15513 # This is the shared library path variable.
15514 shlibpath_var=$shlibpath_var
15516 # Is shlibpath searched before the hard-coded library search path?
15517 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15519 # How to hardcode a shared library path into an executable.
15520 hardcode_action=$hardcode_action_CXX
15522 # Whether we should hardcode library paths into libraries.
15523 hardcode_into_libs=$hardcode_into_libs
15525 # Flag to hardcode \$libdir into a binary during linking.
15526 # This must work even if \$libdir does not exist.
15527 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15529 # If ld is used when linking, flag to hardcode \$libdir into
15530 # a binary during linking. This must work even if \$libdir does
15532 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15534 # Whether we need a single -rpath flag with a separated argument.
15535 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15537 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15538 # resulting binary.
15539 hardcode_direct=$hardcode_direct_CXX
15541 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15542 # resulting binary.
15543 hardcode_minus_L=$hardcode_minus_L_CXX
15545 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15546 # the resulting binary.
15547 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15549 # Set to yes if building a shared library automatically hardcodes DIR into the library
15550 # and all subsequent libraries and executables linked against it.
15551 hardcode_automatic=$hardcode_automatic_CXX
15553 # Variables whose values should be saved in libtool wrapper scripts and
15554 # restored at relink time.
15555 variables_saved_for_relink="$variables_saved_for_relink"
15557 # Whether libtool must link a program against all its dependency libraries.
15558 link_all_deplibs=$link_all_deplibs_CXX
15560 # Compile-time system search path for libraries
15561 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15563 # Run-time system search path for libraries
15564 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15566 # Fix the shell variable \$srcfile for the compiler.
15567 fix_srcfile_path=$lt_fix_srcfile_path
15569 # Set to yes if exported symbols are required.
15570 always_export_symbols=$always_export_symbols_CXX
15572 # The commands to list exported symbols.
15573 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15575 # The commands to extract the exported symbol list from a shared archive.
15576 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15578 # Symbols that should not be listed in the preloaded symbols.
15579 exclude_expsyms=$lt_exclude_expsyms_CXX
15581 # Symbols that must always be exported.
15582 include_expsyms=$lt_include_expsyms_CXX
15584 # ### END LIBTOOL TAG CONFIG: $tagname
15590 # If there is no Makefile yet, we rely on a make rule to execute
15591 # `config.status --recheck' to rerun these tests and create the
15592 # libtool script then.
15593 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15594 if test -f "$ltmain_in"; then
15595 test -f Makefile
&& make "$ltmain"
15601 ac_cpp
='$CPP $CPPFLAGS'
15602 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15603 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15604 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15610 with_gnu_ldcxx
=$with_gnu_ld
15611 with_gnu_ld
=$lt_save_with_gnu_ld
15612 lt_cv_path_LDCXX
=$lt_cv_path_LD
15613 lt_cv_path_LD
=$lt_save_path_LD
15614 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
15615 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
15623 if test -n "$F77" && test "X$F77" != "Xno"; then
15626 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15627 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15628 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
15631 archive_cmds_need_lc_F77
=no
15632 allow_undefined_flag_F77
=
15633 always_export_symbols_F77
=no
15634 archive_expsym_cmds_F77
=
15635 export_dynamic_flag_spec_F77
=
15636 hardcode_direct_F77
=no
15637 hardcode_libdir_flag_spec_F77
=
15638 hardcode_libdir_flag_spec_ld_F77
=
15639 hardcode_libdir_separator_F77
=
15640 hardcode_minus_L_F77
=no
15641 hardcode_automatic_F77
=no
15643 module_expsym_cmds_F77
=
15644 link_all_deplibs_F77
=unknown
15645 old_archive_cmds_F77
=$old_archive_cmds
15646 no_undefined_flag_F77
=
15647 whole_archive_flag_spec_F77
=
15648 enable_shared_with_static_runtimes_F77
=no
15650 # Source file extension for f77 test sources.
15653 # Object file extension for compiled f77 test sources.
15657 # Code to be used in simple compile tests
15658 lt_simple_compile_test_code
="\
15664 # Code to be used in simple link tests
15665 lt_simple_link_test_code
="\
15670 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15672 # If no C compiler was specified, use CC.
15675 # If no C compiler flags were specified, use CFLAGS.
15676 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
15678 # Allow CC to be a program name with arguments.
15682 # save warnings/boilerplate of simple test code
15683 ac_outfile
=conftest.
$ac_objext
15684 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
15685 eval "$ac_compile" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
15686 _lt_compiler_boilerplate
=`cat conftest.err`
15689 ac_outfile
=conftest.
$ac_objext
15690 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
15691 eval "$ac_link" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
15692 _lt_linker_boilerplate
=`cat conftest.err`
15696 # Allow CC to be a program name with arguments.
15701 for cc_temp
in $compiler""; do
15703 compile
| *[\\/]compile
| ccache
| *[\\/]ccache
) ;;
15704 distcc
| *[\\/]distcc
| purify
| *[\\/]purify
) ;;
15709 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15712 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15713 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15714 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
15715 $as_echo "$can_build_shared" >&6; }
15717 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15718 $as_echo_n "checking whether to build shared libraries... " >&6; }
15719 test "$can_build_shared" = "no" && enable_shared
=no
15721 # On AIX, shared libraries and static libraries use the same namespace, and
15722 # are all built from PIC.
15725 test "$enable_shared" = yes && enable_static
=no
15726 if test -n "$RANLIB"; then
15727 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
15728 postinstall_cmds
='$RANLIB $lib'
15732 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
15733 test "$enable_shared" = yes && enable_static
=no
15737 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
15738 $as_echo "$enable_shared" >&6; }
15740 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15741 $as_echo_n "checking whether to build static libraries... " >&6; }
15742 # Make sure either enable_shared or enable_static is yes.
15743 test "$enable_shared" = yes || enable_static
=yes
15744 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
15745 $as_echo "$enable_static" >&6; }
15750 lt_prog_compiler_wl_F77
=
15751 lt_prog_compiler_pic_F77
=
15752 lt_prog_compiler_static_F77
=
15754 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15755 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15757 if test "$GCC" = yes; then
15758 lt_prog_compiler_wl_F77
='-Wl,'
15759 lt_prog_compiler_static_F77
='-static'
15763 # All AIX code is PIC.
15764 if test "$host_cpu" = ia64
; then
15765 # AIX 5 now supports IA64 processor
15766 lt_prog_compiler_static_F77
='-Bstatic'
15771 # FIXME: we need at least 68020 code to build shared libraries, but
15772 # adding the `-m68020' flag to GCC prevents building anything better,
15774 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
15777 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
15778 # PIC is the default for these OSes.
15781 mingw
* | cygwin
* | pw32
* | os2
*)
15782 # This hack is so that the source file can tell whether it is being
15783 # built for inclusion in a dll (and should export symbols for example).
15784 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15785 # (--disable-auto-import) libraries
15786 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
15789 darwin
* | rhapsody
*)
15790 # PIC is the default on this platform
15791 # Common symbols not allowed in MH_DYLIB files
15792 lt_prog_compiler_pic_F77
='-fno-common'
15796 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15797 # Instead, we relocate shared libraries at runtime.
15801 # Just because we use GCC doesn't mean we suddenly get shared libraries
15802 # on systems that don't support them.
15803 lt_prog_compiler_can_build_shared_F77
=no
15808 if test -d /usr
/nec
; then
15809 lt_prog_compiler_pic_F77
=-Kconform_pic
15814 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15815 # not for PA HP-UX.
15821 lt_prog_compiler_pic_F77
='-fPIC'
15827 lt_prog_compiler_pic_F77
='-fPIC'
15831 # PORTME Check for flag to pass linker flags through the system compiler.
15834 lt_prog_compiler_wl_F77
='-Wl,'
15835 if test "$host_cpu" = ia64
; then
15836 # AIX 5 now supports IA64 processor
15837 lt_prog_compiler_static_F77
='-Bstatic'
15839 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
15843 # PIC is the default on this platform
15844 # Common symbols not allowed in MH_DYLIB files
15845 case $cc_basename in
15847 lt_prog_compiler_pic_F77
='-qnocommon'
15848 lt_prog_compiler_wl_F77
='-Wl,'
15853 mingw
* | cygwin
* | pw32
* | os2
*)
15854 # This hack is so that the source file can tell whether it is being
15855 # built for inclusion in a dll (and should export symbols for example).
15856 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
15859 hpux9
* | hpux10
* | hpux11
*)
15860 lt_prog_compiler_wl_F77
='-Wl,'
15861 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15862 # not for PA HP-UX.
15868 lt_prog_compiler_pic_F77
='+Z'
15871 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15872 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
15875 irix5
* | irix6
* | nonstopux
*)
15876 lt_prog_compiler_wl_F77
='-Wl,'
15877 # PIC (with -KPIC) is the default.
15878 lt_prog_compiler_static_F77
='-non_shared'
15882 lt_prog_compiler_pic_F77
='-KPIC'
15883 lt_prog_compiler_static_F77
='-Bstatic'
15886 linux
* | k
*bsd
*-gnu)
15887 case $cc_basename in
15889 lt_prog_compiler_wl_F77
='-Wl,'
15890 lt_prog_compiler_pic_F77
='-KPIC'
15891 lt_prog_compiler_static_F77
='-static'
15893 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
15894 # Portland Group compilers (*not* the Pentium gcc compiler,
15895 # which looks to be a dead project)
15896 lt_prog_compiler_wl_F77
='-Wl,'
15897 lt_prog_compiler_pic_F77
='-fpic'
15898 lt_prog_compiler_static_F77
='-Bstatic'
15901 lt_prog_compiler_wl_F77
='-Wl,'
15902 # All Alpha code is PIC.
15903 lt_prog_compiler_static_F77
='-non_shared'
15906 case `$CC -V 2>&1 | sed 5q` in
15909 lt_prog_compiler_pic_F77
='-KPIC'
15910 lt_prog_compiler_static_F77
='-Bstatic'
15911 lt_prog_compiler_wl_F77
='-Wl,'
15914 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15915 lt_prog_compiler_pic_F77
='-KPIC'
15916 lt_prog_compiler_static_F77
='-Bstatic'
15917 lt_prog_compiler_wl_F77
=''
15924 osf3
* | osf4
* | osf5
*)
15925 lt_prog_compiler_wl_F77
='-Wl,'
15926 # All OSF/1 code is PIC.
15927 lt_prog_compiler_static_F77
='-non_shared'
15931 lt_prog_compiler_static_F77
='-non_shared'
15935 lt_prog_compiler_pic_F77
='-KPIC'
15936 lt_prog_compiler_static_F77
='-Bstatic'
15937 case $cc_basename in
15938 f77
* | f90
* | f95
*)
15939 lt_prog_compiler_wl_F77
='-Qoption ld ';;
15941 lt_prog_compiler_wl_F77
='-Wl,';;
15946 lt_prog_compiler_wl_F77
='-Qoption ld '
15947 lt_prog_compiler_pic_F77
='-PIC'
15948 lt_prog_compiler_static_F77
='-Bstatic'
15951 sysv4
| sysv4.2uw2
* | sysv4.3
*)
15952 lt_prog_compiler_wl_F77
='-Wl,'
15953 lt_prog_compiler_pic_F77
='-KPIC'
15954 lt_prog_compiler_static_F77
='-Bstatic'
15958 if test -d /usr
/nec
;then
15959 lt_prog_compiler_pic_F77
='-Kconform_pic'
15960 lt_prog_compiler_static_F77
='-Bstatic'
15964 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
15965 lt_prog_compiler_wl_F77
='-Wl,'
15966 lt_prog_compiler_pic_F77
='-KPIC'
15967 lt_prog_compiler_static_F77
='-Bstatic'
15971 lt_prog_compiler_wl_F77
='-Wl,'
15972 lt_prog_compiler_can_build_shared_F77
=no
15976 lt_prog_compiler_pic_F77
='-pic'
15977 lt_prog_compiler_static_F77
='-Bstatic'
15981 lt_prog_compiler_can_build_shared_F77
=no
15986 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15987 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
15990 # Check to make sure the PIC flag actually works.
15992 if test -n "$lt_prog_compiler_pic_F77"; then
15994 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15995 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
15996 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
15997 $as_echo_n "(cached) " >&6
15999 lt_cv_prog_compiler_pic_works_F77
=no
16000 ac_outfile
=conftest.
$ac_objext
16001 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16002 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
16003 # Insert the option either (1) after the last *FLAGS variable, or
16004 # (2) before a word containing "conftest.", or (3) at the end.
16005 # Note that $ac_compile itself does not contain backslashes and begins
16006 # with a dollar sign (not a hyphen), so the echo should work correctly.
16007 # The option is referenced via a variable to avoid confusing sed.
16008 lt_compile
=`echo "$ac_compile" | $SED \
16009 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16011 -e 's:$: $lt_compiler_flag:'`
16012 (eval echo "\"\$as_me:16012: $lt_compile\"" >&5)
16013 (eval "$lt_compile" 2>conftest.err
)
16015 cat conftest.err
>&5
16016 echo "$as_me:16016: \$? = $ac_status" >&5
16017 if (exit $ac_status) && test -s "$ac_outfile"; then
16018 # The compiler can only warn and ignore the option if not recognized
16019 # So say no if there are warnings other than the usual output.
16020 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16021 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16022 if test ! -s conftest.er2
|| diff conftest.exp conftest.er2
>/dev
/null
; then
16023 lt_cv_prog_compiler_pic_works_F77
=yes
16029 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
16030 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
16032 if test x
"$lt_cv_prog_compiler_pic_works_F77" = xyes
; then
16033 case $lt_prog_compiler_pic_F77 in
16035 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
16038 lt_prog_compiler_pic_F77
=
16039 lt_prog_compiler_can_build_shared_F77
=no
16044 # For platforms which do not support PIC, -DPIC is meaningless:
16046 lt_prog_compiler_pic_F77
=
16049 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
16054 # Check to make sure the static flag actually works.
16056 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
16057 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16058 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16059 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
16060 $as_echo_n "(cached) " >&6
16062 lt_cv_prog_compiler_static_works_F77
=no
16063 save_LDFLAGS
="$LDFLAGS"
16064 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
16065 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16066 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16067 # The linker can only warn and ignore the option if not recognized
16068 # So say no if there are warnings
16069 if test -s conftest.err
; then
16070 # Append any errors to the config.log.
16071 cat conftest.err
1>&5
16072 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16073 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16074 if diff conftest.exp conftest.er2
>/dev
/null
; then
16075 lt_cv_prog_compiler_static_works_F77
=yes
16078 lt_cv_prog_compiler_static_works_F77
=yes
16082 LDFLAGS
="$save_LDFLAGS"
16085 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
16086 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
16088 if test x
"$lt_cv_prog_compiler_static_works_F77" = xyes
; then
16091 lt_prog_compiler_static_F77
=
16095 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16096 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16097 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16098 $as_echo_n "(cached) " >&6
16100 lt_cv_prog_compiler_c_o_F77
=no
16101 $rm -r conftest
2>/dev
/null
16105 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16107 lt_compiler_flag
="-o out/conftest2.$ac_objext"
16108 # Insert the option either (1) after the last *FLAGS variable, or
16109 # (2) before a word containing "conftest.", or (3) at the end.
16110 # Note that $ac_compile itself does not contain backslashes and begins
16111 # with a dollar sign (not a hyphen), so the echo should work correctly.
16112 lt_compile
=`echo "$ac_compile" | $SED \
16113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16115 -e 's:$: $lt_compiler_flag:'`
16116 (eval echo "\"\$as_me:16116: $lt_compile\"" >&5)
16117 (eval "$lt_compile" 2>out
/conftest.err
)
16119 cat out
/conftest.err
>&5
16120 echo "$as_me:16120: \$? = $ac_status" >&5
16121 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
16123 # The compiler can only warn and ignore the option if not recognized
16124 # So say no if there are warnings
16125 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out
/conftest.exp
16126 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
16127 if test ! -s out
/conftest.er2
|| diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
16128 lt_cv_prog_compiler_c_o_F77
=yes
16133 # SGI C++ compiler will create directory out/ii_files/ for
16134 # template instantiation
16135 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
16136 $rm out
/* && rmdir out
16142 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16143 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
16146 hard_links
="nottested"
16147 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
16148 # do not overwrite the value of need_locks provided by the user
16149 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16150 $as_echo_n "checking if we can lock with hard links... " >&6; }
16153 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16155 ln conftest.a conftest.b
2>&5 || hard_links
=no
16156 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16157 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16158 $as_echo "$hard_links" >&6; }
16159 if test "$hard_links" = no
; then
16160 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16161 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16168 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16169 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16172 allow_undefined_flag_F77
=
16173 enable_shared_with_static_runtimes_F77
=no
16175 archive_expsym_cmds_F77
=
16176 old_archive_From_new_cmds_F77
=
16177 old_archive_from_expsyms_cmds_F77
=
16178 export_dynamic_flag_spec_F77
=
16179 whole_archive_flag_spec_F77
=
16180 thread_safe_flag_spec_F77
=
16181 hardcode_libdir_flag_spec_F77
=
16182 hardcode_libdir_flag_spec_ld_F77
=
16183 hardcode_libdir_separator_F77
=
16184 hardcode_direct_F77
=no
16185 hardcode_minus_L_F77
=no
16186 hardcode_shlibpath_var_F77
=unsupported
16187 link_all_deplibs_F77
=unknown
16188 hardcode_automatic_F77
=no
16190 module_expsym_cmds_F77
=
16191 always_export_symbols_F77
=no
16192 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16193 # include_expsyms should be a list of space-separated symbols to be *always*
16194 # included in the symbol list
16195 include_expsyms_F77
=
16196 # exclude_expsyms can be an extended regexp of symbols to exclude
16197 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16198 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16199 # as well as any symbol that contains `d'.
16200 exclude_expsyms_F77
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16201 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16202 # platforms (ab)use it in PIC code, but their linkers get confused if
16203 # the symbol is explicitly referenced. Since portable code cannot
16204 # rely on this symbol name, it's probably fine to never include it in
16205 # preloaded symbol tables.
16206 # Exclude shared library initialization/finalization symbols.
16207 extract_expsyms_cmds
=
16208 # Just being paranoid about ensuring that cc_basename is set.
16209 for cc_temp
in $compiler""; do
16211 compile
| *[\\/]compile
| ccache
| *[\\/]ccache
) ;;
16212 distcc
| *[\\/]distcc
| purify
| *[\\/]purify
) ;;
16217 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16220 cygwin
* | mingw
* | pw32
*)
16221 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16222 # When not using gcc, we currently assume that we are using
16223 # Microsoft Visual C++.
16224 if test "$GCC" != yes; then
16229 # we just hope/assume this is gcc and not c89 (= MSVC++)
16238 if test "$with_gnu_ld" = yes; then
16239 # If archive_cmds runs LD, not CC, wlarc should be empty
16242 # Set some defaults for GNU ld with shared library support. These
16243 # are reset later if shared libraries are not supported. Putting them
16244 # here allows them to be overridden if necessary.
16245 runpath_var
=LD_RUN_PATH
16246 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
16247 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
16248 # ancient GNU ld didn't support --whole-archive et. al.
16249 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev
/null
; then
16250 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16252 whole_archive_flag_spec_F77
=
16254 supports_anon_versioning
=no
16255 case `$LD -v 2>/dev/null` in
16256 *\
[01].
* | *\
2.
[0-9].
* | *\
2.10.
*) ;; # catch versions < 2.11
16257 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
16258 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
16259 *\
2.11.
*) ;; # other 2.11 versions
16260 *) supports_anon_versioning
=yes ;;
16263 # See if GNU ld supports shared libraries.
16266 # On AIX/PPC, the GNU linker is very broken
16267 if test "$host_cpu" != ia64
; then
16271 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16272 *** to be unable to reliably create shared libraries on AIX.
16273 *** Therefore, libtool is disabling shared libraries support. If you
16274 *** really care for shared libraries, you may want to modify your PATH
16275 *** so that a non-GNU linker is found, and then restart.
16282 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)'
16283 hardcode_libdir_flag_spec_F77
='-L$libdir'
16284 hardcode_minus_L_F77
=yes
16286 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16287 # that the semantics of dynamic libraries on AmigaOS, at least up
16288 # to version 4, is to share data among multiple programs linked
16289 # with the same dynamic library. Since this doesn't match the
16290 # behavior of shared libraries on other platforms, we can't use
16296 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
16297 allow_undefined_flag_F77
=unsupported
16298 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16299 # support --undefined. This deserves some investigation. FIXME
16300 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16306 cygwin
* | mingw
* | pw32
*)
16307 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16308 # as there is no search path for DLLs.
16309 hardcode_libdir_flag_spec_F77
='-L$libdir'
16310 allow_undefined_flag_F77
=unsupported
16311 always_export_symbols_F77
=no
16312 enable_shared_with_static_runtimes_F77
=yes
16313 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16315 if $LD --help 2>&1 | grep 'auto-import' > /dev
/null
; then
16316 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16317 # If the export-symbols file already is a .def file (1st line
16318 # is EXPORTS), use it as is; otherwise, prepend...
16319 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16320 cp $export_symbols $output_objdir/$soname.def;
16322 echo EXPORTS > $output_objdir/$soname.def;
16323 cat $export_symbols >> $output_objdir/$soname.def;
16325 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16332 hardcode_direct_F77
=no
16333 hardcode_shlibpath_var_F77
=no
16334 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
16335 export_dynamic_flag_spec_F77
='${wl}-E'
16336 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16337 # Instead, shared libraries are loaded at an image base (0x10000000 by
16338 # default) and relocated if they conflict, which is a slow very memory
16339 # consuming and fragmenting process. To avoid this, we pick a random,
16340 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16341 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16342 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'
16343 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'
16346 gnu
* | linux
* | k
*bsd
*-gnu)
16347 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
16349 case $cc_basename,$host_cpu in
16350 pgcc
*) # Portland Group C compiler
16351 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'
16352 tmp_addflag
=' $pic_flag'
16354 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
16355 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'
16356 tmp_addflag
=' $pic_flag -Mnomain' ;;
16357 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16358 tmp_addflag
=' -i_dynamic' ;;
16359 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16360 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16361 ifc
* | ifort
*) # Intel Fortran compiler
16362 tmp_addflag
=' -nofor_main' ;;
16364 case `$CC -V 2>&1 | sed 5q` in
16365 *Sun\ C
*) # Sun C 5.9
16366 whole_archive_flag_spec_F77
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16367 tmp_sharedflag
='-G' ;;
16368 *Sun\ F
*) # Sun Fortran 8.3
16369 tmp_sharedflag
='-G' ;;
16371 tmp_sharedflag
='-shared' ;;
16373 archive_cmds_F77
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16375 if test $supports_anon_versioning = yes; then
16376 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
16377 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16378 $echo "local: *; };" >> $output_objdir/$libname.ver~
16379 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16381 link_all_deplibs_F77
=no
16387 netbsd
* | netbsdelf
*-gnu)
16388 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
16389 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16392 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16393 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16398 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev
/null
; then
16402 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16403 *** create shared libraries on Solaris systems. Therefore, libtool
16404 *** is disabling shared libraries support. We urge you to upgrade GNU
16405 *** binutils to release 2.9.1 or newer. Another option is to modify
16406 *** your PATH or compiler configuration so that the native linker is
16407 *** used, and then restart.
16410 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
16411 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16412 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16418 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16419 case `$LD -v 2>&1` in
16420 *\
[01].
* | *\
2.
[0-9].
* | *\
2.1[0-5].
*)
16424 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16425 *** reliably create shared libraries on SCO systems. Therefore, libtool
16426 *** is disabling shared libraries support. We urge you to upgrade GNU
16427 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16428 *** your PATH or compiler configuration so that the native linker is
16429 *** used, and then restart.
16434 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
16435 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16436 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16437 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16446 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16448 hardcode_direct_F77
=yes
16449 hardcode_shlibpath_var_F77
=no
16453 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
16454 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16455 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16462 if test "$ld_shlibs_F77" = no
; then
16464 hardcode_libdir_flag_spec_F77
=
16465 export_dynamic_flag_spec_F77
=
16466 whole_archive_flag_spec_F77
=
16469 # PORTME fill in a description of your system's linker (not GNU ld)
16472 allow_undefined_flag_F77
=unsupported
16473 always_export_symbols_F77
=yes
16474 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'
16475 # Note: this linker hardcodes the directories in LIBPATH if there
16476 # are no directories specified by -L.
16477 hardcode_minus_L_F77
=yes
16478 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16479 # Neither direct hardcoding nor static linking is supported with a
16481 hardcode_direct_F77
=unsupported
16486 if test "$host_cpu" = ia64
; then
16487 # On IA64, the linker does run time linking by default, so we don't
16488 # have to do anything special.
16489 aix_use_runtimelinking
=no
16490 exp_sym_flag
='-Bexport'
16493 # If we're using GNU nm, then we don't want the "-C" option.
16494 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16495 if $NM -V 2>&1 | grep 'GNU' > /dev
/null
; then
16496 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'
16498 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'
16500 aix_use_runtimelinking
=no
16502 # Test if we are trying to use run time linking or normal
16503 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16504 # need to do runtime linking.
16505 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16506 for ld_flag
in $LDFLAGS; do
16507 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16508 aix_use_runtimelinking
=yes
16515 exp_sym_flag
='-bexport'
16516 no_entry_flag
='-bnoentry'
16519 # When large executables or shared objects are built, AIX ld can
16520 # have problems creating the table of contents. If linking a library
16521 # or program results in "error TOC overflow" add -mminimal-toc to
16522 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16523 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16525 archive_cmds_F77
=''
16526 hardcode_direct_F77
=yes
16527 hardcode_libdir_separator_F77
=':'
16528 link_all_deplibs_F77
=yes
16530 if test "$GCC" = yes; then
16531 case $host_os in aix4.
[012]|aix4.
[012].
*)
16532 # We only want to do this on AIX 4.2 and lower, the check
16533 # below for broken collect2 doesn't work under 4.3+
16534 collect2name
=`${CC} -print-prog-name=collect2`
16535 if test -f "$collect2name" && \
16536 strings "$collect2name" | grep resolve_lib_name
>/dev
/null
16538 # We have reworked collect2
16541 # We have old collect2
16542 hardcode_direct_F77
=unsupported
16543 # It fails to find uninstalled libraries when the uninstalled
16544 # path is not listed in the libpath. Setting hardcode_minus_L
16545 # to unsupported forces relinking
16546 hardcode_minus_L_F77
=yes
16547 hardcode_libdir_flag_spec_F77
='-L$libdir'
16548 hardcode_libdir_separator_F77
=
16552 shared_flag
='-shared'
16553 if test "$aix_use_runtimelinking" = yes; then
16554 shared_flag
="$shared_flag "'${wl}-G'
16558 if test "$host_cpu" = ia64
; then
16559 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16560 # chokes on -Wl,-G. The following line is correct:
16563 if test "$aix_use_runtimelinking" = yes; then
16564 shared_flag
='${wl}-G'
16566 shared_flag
='${wl}-bM:SRE'
16571 # It seems that -bexpall does not export symbols beginning with
16572 # underscore (_), so it is better to generate a list of symbols to export.
16573 always_export_symbols_F77
=yes
16574 if test "$aix_use_runtimelinking" = yes; then
16575 # Warning - without using the other runtime loading flags (-brtl),
16576 # -berok will link without error, but may produce a broken library.
16577 allow_undefined_flag_F77
='-berok'
16578 # Determine the default libpath from the value encoded in an empty executable.
16579 cat >conftest.
$ac_ext <<_ACEOF
16584 rm -f conftest.
$ac_objext conftest
$ac_exeext
16585 if { (ac_try
="$ac_link"
16586 case "(($ac_try" in
16587 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
16588 *) ac_try_echo=$ac_try;;
16590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16591 $as_echo "$ac_try_echo") >&5
16592 (eval "$ac_link") 2>conftest.er1
16594 grep -v '^ *+' conftest.er1 >conftest.err
16596 cat conftest.err >&5
16597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); } && {
16599 test -z "$ac_f77_werror_flag" ||
16600 test ! -s conftest.err
16601 } && test -s conftest$ac_exeext && {
16602 test "$cross_compiling" = yes ||
16603 $as_test_x conftest$ac_exeext
16606 lt_aix_libpath_sed='
16607 /Import File Strings/,/^$/ {
16613 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null
| $SED -n -e "$lt_aix_libpath_sed"`
16614 # Check for a 64-bit object if we didn't find anything.
16615 if test -z "$aix_libpath"; then
16616 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null
| $SED -n -e "$lt_aix_libpath_sed"`
16619 $as_echo "$as_me: failed program was:" >&5
16620 sed 's/^/| /' conftest.$ac_ext >&5
16625 rm -rf conftest.dSYM
16626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16627 conftest$ac_exeext conftest.$ac_ext
16628 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16630 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16631 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"
16633 if test "$host_cpu" = ia64; then
16634 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16635 allow_undefined_flag_F77="-z nodefs"
16636 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"
16638 # Determine the default libpath from the value encoded in an empty executable.
16639 cat >conftest.$ac_ext <<_ACEOF
16644 rm -f conftest.$ac_objext conftest$ac_exeext
16645 if { (ac_try="$ac_link"
16646 case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
16648 *) ac_try_echo
=$ac_try;;
16650 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16651 $as_echo "$ac_try_echo") >&5
16652 (eval "$ac_link") 2>conftest.er1
16654 grep -v '^ *+' conftest.er1
>conftest.err
16656 cat conftest.err
>&5
16657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); } && {
16659 test -z "$ac_f77_werror_flag" ||
16660 test ! -s conftest.err
16661 } && test -s conftest
$ac_exeext && {
16662 test "$cross_compiling" = yes ||
16663 $as_test_x conftest
$ac_exeext
16666 lt_aix_libpath_sed
='
16667 /Import File Strings/,/^$/ {
16673 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16674 # Check for a 64-bit object if we didn't find anything.
16675 if test -z "$aix_libpath"; then
16676 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16679 $as_echo "$as_me: failed program was:" >&5
16680 sed 's/^/| /' conftest.
$ac_ext >&5
16685 rm -rf conftest.dSYM
16686 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16687 conftest
$ac_exeext conftest.
$ac_ext
16688 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16690 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
16691 # Warning - without using the other run time loading flags,
16692 # -berok will link without error, but may produce a broken library.
16693 no_undefined_flag_F77
=' ${wl}-bernotok'
16694 allow_undefined_flag_F77
=' ${wl}-berok'
16695 # Exported symbols can be pulled into shared objects from archives
16696 whole_archive_flag_spec_F77
='$convenience'
16697 archive_cmds_need_lc_F77
=yes
16698 # This is similar to how AIX traditionally builds its shared libraries.
16699 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'
16705 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)'
16706 hardcode_libdir_flag_spec_F77
='-L$libdir'
16707 hardcode_minus_L_F77
=yes
16708 # see comment about different semantics on the GNU ld section
16713 export_dynamic_flag_spec_F77
=-rdynamic
16716 cygwin
* | mingw
* | pw32
*)
16717 # When not using gcc, we currently assume that we are using
16718 # Microsoft Visual C++.
16719 # hardcode_libdir_flag_spec is actually meaningless, as there is
16720 # no search path for DLLs.
16721 hardcode_libdir_flag_spec_F77
=' '
16722 allow_undefined_flag_F77
=unsupported
16723 # Tell ltmain to make .lib files, not .a files.
16725 # Tell ltmain to make .dll files, not .so files.
16727 # FIXME: Setting linknames here is a bad hack.
16728 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16729 # The linker will automatically build a .lib file if we build a DLL.
16730 old_archive_From_new_cmds_F77
='true'
16731 # FIXME: Should let the user specify the lib program.
16732 old_archive_cmds_F77
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16733 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
16734 enable_shared_with_static_runtimes_F77
=yes
16737 darwin
* | rhapsody
*)
16739 rhapsody
* | darwin1.
[012])
16740 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
16743 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16744 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16746 case ${MACOSX_DEPLOYMENT_TARGET} in
16748 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16751 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
16757 archive_cmds_need_lc_F77
=no
16758 hardcode_direct_F77
=no
16759 hardcode_automatic_F77
=yes
16760 hardcode_shlibpath_var_F77
=unsupported
16761 whole_archive_flag_spec_F77
=''
16762 link_all_deplibs_F77
=yes
16763 if test "$GCC" = yes ; then
16764 output_verbose_link_cmd
='echo'
16765 archive_cmds_F77
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16766 module_cmds_F77
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16767 archive_expsym_cmds_F77
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
16768 module_expsym_cmds_F77
="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
16770 case $cc_basename in
16772 output_verbose_link_cmd
='echo'
16773 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16774 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16775 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16776 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16777 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}'
16787 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16788 hardcode_libdir_flag_spec_F77
='-L$libdir'
16789 hardcode_shlibpath_var_F77
=no
16796 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16797 # support. Future versions do this automatically, but an explicit c++rt0.o
16798 # does not break anything, and helps significantly (at the cost of a little
16801 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16802 hardcode_libdir_flag_spec_F77
='-R$libdir'
16803 hardcode_direct_F77
=yes
16804 hardcode_shlibpath_var_F77
=no
16807 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16809 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16810 hardcode_direct_F77
=yes
16811 hardcode_minus_L_F77
=yes
16812 hardcode_shlibpath_var_F77
=no
16815 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16816 freebsd
* | dragonfly
*)
16817 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16818 hardcode_libdir_flag_spec_F77
='-R$libdir'
16819 hardcode_direct_F77
=yes
16820 hardcode_shlibpath_var_F77
=no
16824 if test "$GCC" = yes; then
16825 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'
16827 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'
16829 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
16830 hardcode_libdir_separator_F77
=:
16831 hardcode_direct_F77
=yes
16833 # hardcode_minus_L: Not really in the search PATH,
16834 # but as the default location of the library.
16835 hardcode_minus_L_F77
=yes
16836 export_dynamic_flag_spec_F77
='${wl}-E'
16840 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
16841 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16843 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16845 if test "$with_gnu_ld" = no
; then
16846 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
16847 hardcode_libdir_separator_F77
=:
16849 hardcode_direct_F77
=yes
16850 export_dynamic_flag_spec_F77
='${wl}-E'
16852 # hardcode_minus_L: Not really in the search PATH,
16853 # but as the default location of the library.
16854 hardcode_minus_L_F77
=yes
16859 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
16862 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16865 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16868 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16874 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16877 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16880 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16884 if test "$with_gnu_ld" = no
; then
16885 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
16886 hardcode_libdir_separator_F77
=:
16890 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
16891 hardcode_direct_F77
=no
16892 hardcode_shlibpath_var_F77
=no
16895 hardcode_direct_F77
=yes
16896 export_dynamic_flag_spec_F77
='${wl}-E'
16898 # hardcode_minus_L: Not really in the search PATH,
16899 # but as the default location of the library.
16900 hardcode_minus_L_F77
=yes
16906 irix5
* | irix6
* | nonstopux
*)
16907 if test "$GCC" = yes; then
16908 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'
16910 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'
16911 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
16913 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
16914 hardcode_libdir_separator_F77
=:
16915 link_all_deplibs_F77
=yes
16918 netbsd
* | netbsdelf
*-gnu)
16919 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
16920 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16922 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16924 hardcode_libdir_flag_spec_F77
='-R$libdir'
16925 hardcode_direct_F77
=yes
16926 hardcode_shlibpath_var_F77
=no
16930 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16931 hardcode_direct_F77
=yes
16932 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
16933 hardcode_libdir_separator_F77
=:
16934 hardcode_shlibpath_var_F77
=no
16938 if test -f /usr
/libexec
/ld.so
; then
16939 hardcode_direct_F77
=yes
16940 hardcode_shlibpath_var_F77
=no
16941 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16942 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16943 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16944 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
16945 export_dynamic_flag_spec_F77
='${wl}-E'
16948 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16949 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16950 hardcode_libdir_flag_spec_F77
='-R$libdir'
16953 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16954 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
16964 hardcode_libdir_flag_spec_F77
='-L$libdir'
16965 hardcode_minus_L_F77
=yes
16966 allow_undefined_flag_F77
=unsupported
16967 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'
16968 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16972 if test "$GCC" = yes; then
16973 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
16974 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'
16976 allow_undefined_flag_F77
=' -expect_unresolved \*'
16977 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'
16979 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
16980 hardcode_libdir_separator_F77
=:
16983 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16984 if test "$GCC" = yes; then
16985 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
16986 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'
16987 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
16989 allow_undefined_flag_F77
=' -expect_unresolved \*'
16990 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'
16991 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~
16992 $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'
16994 # Both c and cxx compiler support -rpath directly
16995 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
16997 hardcode_libdir_separator_F77
=:
17001 no_undefined_flag_F77
=' -z text'
17002 if test "$GCC" = yes; then
17004 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17005 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17006 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17009 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17010 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17011 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17013 hardcode_libdir_flag_spec_F77
='-R$libdir'
17014 hardcode_shlibpath_var_F77
=no
17016 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17018 # The compiler driver will combine and reorder linker options,
17019 # but understands `-z linker_flag'. GCC discards it without `$wl',
17020 # but is careful enough not to reorder.
17021 # Supported since Solaris 2.6 (maybe 2.5.1?)
17022 if test "$GCC" = yes; then
17023 whole_archive_flag_spec_F77
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17025 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract'
17029 link_all_deplibs_F77
=yes
17033 if test "x$host_vendor" = xsequent
; then
17034 # Use $CC to link under sequent, because it throws in some extra .o
17035 # files that make .init and .fini sections work.
17036 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17038 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17040 hardcode_libdir_flag_spec_F77
='-L$libdir'
17041 hardcode_direct_F77
=yes
17042 hardcode_minus_L_F77
=yes
17043 hardcode_shlibpath_var_F77
=no
17047 case $host_vendor in
17049 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17050 hardcode_direct_F77
=yes # is this really true???
17053 ## LD is ld it makes a PLAMLIB
17054 ## CC just makes a GrossModule.
17055 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17056 reload_cmds_F77
='$CC -r -o $output$reload_objs'
17057 hardcode_direct_F77
=no
17060 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17061 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
17064 runpath_var
='LD_RUN_PATH'
17065 hardcode_shlibpath_var_F77
=no
17069 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17070 hardcode_shlibpath_var_F77
=no
17071 export_dynamic_flag_spec_F77
='-Bexport'
17075 if test -d /usr
/nec
; then
17076 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17077 hardcode_shlibpath_var_F77
=no
17078 runpath_var
=LD_RUN_PATH
17079 hardcode_runpath_var
=yes
17084 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17085 no_undefined_flag_F77
='${wl}-z,text'
17086 archive_cmds_need_lc_F77
=no
17087 hardcode_shlibpath_var_F77
=no
17088 runpath_var
='LD_RUN_PATH'
17090 if test "$GCC" = yes; then
17091 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17092 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17094 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17095 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17099 sysv5
* | sco3.2v5
* | sco5v6
*)
17100 # Note: We can NOT use -z defs as we might desire, because we do not
17101 # link with -lc, and that would cause any symbols used from libc to
17102 # always be unresolved, which means just about no library would
17103 # ever link correctly. If we're not using GNU ld we use -z text
17104 # though, which does catch some bad symbols but isn't as heavy-handed
17106 no_undefined_flag_F77
='${wl}-z,text'
17107 allow_undefined_flag_F77
='${wl}-z,nodefs'
17108 archive_cmds_need_lc_F77
=no
17109 hardcode_shlibpath_var_F77
=no
17110 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17111 hardcode_libdir_separator_F77
=':'
17112 link_all_deplibs_F77
=yes
17113 export_dynamic_flag_spec_F77
='${wl}-Bexport'
17114 runpath_var
='LD_RUN_PATH'
17116 if test "$GCC" = yes; then
17117 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17118 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17120 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17121 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17126 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17127 hardcode_libdir_flag_spec_F77
='-L$libdir'
17128 hardcode_shlibpath_var_F77
=no
17137 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17138 $as_echo "$ld_shlibs_F77" >&6; }
17139 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
17142 # Do we need to explicitly link libc?
17144 case "x$archive_cmds_need_lc_F77" in
17146 # Assume -lc should be added
17147 archive_cmds_need_lc_F77
=yes
17149 if test "$enable_shared" = yes && test "$GCC" = yes; then
17150 case $archive_cmds_F77 in
17152 # FIXME: we may have to deal with multi-command sequences.
17155 # Test whether the compiler implicitly links with -lc since on some
17156 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17157 # to ld, don't add -lc before -lgcc.
17158 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17159 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17161 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17164 (eval $ac_compile) 2>&5
17166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); } 2>conftest.err
; then
17170 libobjs
=conftest.
$ac_objext
17172 wl
=$lt_prog_compiler_wl_F77
17173 pic_flag
=$lt_prog_compiler_pic_F77
17179 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
17180 allow_undefined_flag_F77
=
17181 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17182 (eval $archive_cmds_F77 2\
>\
&1 \
| grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }
17187 archive_cmds_need_lc_F77
=no
17189 archive_cmds_need_lc_F77
=yes
17191 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
17193 cat conftest.err
1>&5
17196 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17197 $as_echo "$archive_cmds_need_lc_F77" >&6; }
17204 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17205 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17206 library_names_spec
=
17207 libname_spec
='lib$name'
17211 postuninstall_cmds
=
17215 shlibpath_overrides_runpath
=unknown
17217 dynamic_linker
="$host_os ld.so"
17218 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17220 need_lib_prefix
=unknown
17221 hardcode_into_libs
=no
17223 # when you set need_version to no, make sure it does not cause -set_version
17224 # flags to be left without arguments
17225 need_version
=unknown
17230 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17231 shlibpath_var
=LIBPATH
17233 # AIX 3 has no versioning support, so we append a major version to the name.
17234 soname_spec
='${libname}${release}${shared_ext}$major'
17241 hardcode_into_libs
=yes
17242 if test "$host_cpu" = ia64
; then
17243 # AIX 5 supports IA64
17244 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17245 shlibpath_var
=LD_LIBRARY_PATH
17247 # With GCC up to 2.95.x, collect2 would create an import file
17248 # for dependence libraries. The import file would start with
17249 # the line `#! .'. This would cause the generated library to
17250 # depend on `.', always an invalid library. This was fixed in
17251 # development snapshots of GCC prior to 3.0.
17253 aix4
| aix4.
[01] | aix4.
[01].
*)
17254 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17256 echo '#endif'; } | ${CC} -E - | grep yes > /dev
/null
; then
17259 can_build_shared
=no
17263 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17264 # soname into executable. Probably we can add versioning support to
17265 # collect2, so additional links can be useful in future.
17266 if test "$aix_use_runtimelinking" = yes; then
17267 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17268 # instead of lib<name>.a to let people know that these are not
17269 # typical AIX shared libraries.
17270 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17272 # We preserve .a as extension for shared libraries through AIX4.2
17273 # and later when we are not doing run time linking.
17274 library_names_spec
='${libname}${release}.a $libname.a'
17275 soname_spec
='${libname}${release}${shared_ext}$major'
17277 shlibpath_var
=LIBPATH
17282 library_names_spec
='$libname.ixlibrary $libname.a'
17283 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17284 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'
17288 library_names_spec
='${libname}${shared_ext}'
17289 dynamic_linker
="$host_os ld.so"
17290 shlibpath_var
=LIBRARY_PATH
17296 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17297 soname_spec
='${libname}${release}${shared_ext}$major'
17298 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17299 shlibpath_var
=LD_LIBRARY_PATH
17300 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17301 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17302 # the default ld.so.conf also contains /usr/contrib/lib and
17303 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17304 # libtool to hard-code these into programs
17307 cygwin
* | mingw
* | pw32
*)
17308 version_type
=windows
17313 case $GCC,$host_os in
17314 yes,cygwin
* | yes,mingw
* | yes,pw32
*)
17315 library_names_spec
='$libname.dll.a'
17316 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17317 postinstall_cmds
='base_file=`basename \${file}`~
17318 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17319 dldir=$destdir/`dirname \$dlpath`~
17320 test -d \$dldir || mkdir -p \$dldir~
17321 $install_prog $dir/$dlname \$dldir/$dlname~
17322 chmod a+x \$dldir/$dlname'
17323 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17324 dlpath=$dir/\$dldll~
17326 shlibpath_overrides_runpath
=yes
17330 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17331 soname_spec
='`echo ${libname} | sed -e 's
/^lib
/cyg
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
17332 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
17335 # MinGW DLLs use traditional 'lib' prefix
17336 soname_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
17337 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17338 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev
/null
; then
17339 # It is most probably a Windows format PATH printed by
17340 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17341 # path with ; separators, and with drive letters. We can handle the
17342 # drive letters (cygwin fileutils understands them), so leave them,
17343 # especially as we might pass files found there to a mingw objdump,
17344 # which wouldn't understand a cygwinified path. Ahh.
17345 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17347 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17351 # pw32 DLLs use 'pw' prefix rather than 'lib'
17352 library_names_spec
='`echo ${libname} | sed -e 's
/^lib
/pw
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
17358 library_names_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext} $libname.lib'
17361 dynamic_linker
='Win32 ld.exe'
17362 # FIXME: first we should search . and the directory the executable is in
17366 darwin
* | rhapsody
*)
17367 dynamic_linker
="$host_os dyld"
17368 version_type
=darwin
17371 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17372 soname_spec
='${libname}${release}${major}$shared_ext'
17373 shlibpath_overrides_runpath
=yes
17374 shlibpath_var
=DYLD_LIBRARY_PATH
17375 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17377 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17384 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17385 soname_spec
='${libname}${release}${shared_ext}$major'
17386 shlibpath_var
=LD_LIBRARY_PATH
17393 freebsd
* | dragonfly
*)
17394 # DragonFly does not have aout. When/if they implement a new
17395 # versioning mechanism, adjust this.
17396 if test -x /usr
/bin
/objformat
; then
17397 objformat
=`/usr/bin/objformat`
17400 freebsd
[123]*) objformat
=aout
;;
17401 *) objformat
=elf
;;
17404 version_type
=freebsd
-$objformat
17405 case $version_type in
17407 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17412 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17416 shlibpath_var
=LD_LIBRARY_PATH
17419 shlibpath_overrides_runpath
=yes
17421 freebsd3.
[01]* | freebsdelf3.
[01]*)
17422 shlibpath_overrides_runpath
=yes
17423 hardcode_into_libs
=yes
17425 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17426 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17427 shlibpath_overrides_runpath
=no
17428 hardcode_into_libs
=yes
17430 *) # from 4.6 on, and DragonFly
17431 shlibpath_overrides_runpath
=yes
17432 hardcode_into_libs
=yes
17441 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17442 soname_spec
='${libname}${release}${shared_ext}$major'
17443 shlibpath_var
=LD_LIBRARY_PATH
17444 hardcode_into_libs
=yes
17447 hpux9
* | hpux10
* | hpux11
*)
17448 # Give a soname corresponding to the major version so that dld.sl refuses to
17449 # link against other versions.
17456 hardcode_into_libs
=yes
17457 dynamic_linker
="$host_os dld.so"
17458 shlibpath_var
=LD_LIBRARY_PATH
17459 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17460 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17461 soname_spec
='${libname}${release}${shared_ext}$major'
17462 if test "X$HPUX_IA64_MODE" = X32
; then
17463 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17465 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17467 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17471 hardcode_into_libs
=yes
17472 dynamic_linker
="$host_os dld.sl"
17473 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17474 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17475 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17476 soname_spec
='${libname}${release}${shared_ext}$major'
17477 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17478 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17482 dynamic_linker
="$host_os dld.sl"
17483 shlibpath_var
=SHLIB_PATH
17484 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17485 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17486 soname_spec
='${libname}${release}${shared_ext}$major'
17489 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17490 postinstall_cmds
='chmod 555 $lib'
17497 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17498 soname_spec
='${libname}${release}${shared_ext}$major'
17499 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17500 shlibpath_var
=LD_LIBRARY_PATH
17501 shlibpath_overrides_runpath
=no
17502 hardcode_into_libs
=yes
17505 irix5
* | irix6
* | nonstopux
*)
17507 nonstopux
*) version_type
=nonstopux
;;
17509 if test "$lt_cv_prog_gnu_ld" = yes; then
17517 soname_spec
='${libname}${release}${shared_ext}$major'
17518 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17520 irix5
* | nonstopux
*)
17521 libsuff
= shlibsuff
=
17524 case $LD in # libtool.m4 will add one of these switches to LD
17525 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17526 libsuff
= shlibsuff
= libmagic
=32-bit;;
17527 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17528 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17529 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17530 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17531 *) libsuff
= shlibsuff
= libmagic
=never
-match;;
17535 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17536 shlibpath_overrides_runpath
=no
17537 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17538 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17539 hardcode_into_libs
=yes
17542 # No shared lib support for Linux oldld, aout, or coff.
17543 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17547 # This must be Linux ELF.
17548 linux
* | k
*bsd
*-gnu)
17552 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17553 soname_spec
='${libname}${release}${shared_ext}$major'
17554 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17555 shlibpath_var
=LD_LIBRARY_PATH
17556 shlibpath_overrides_runpath
=no
17557 # This implies no fast_install, which is unacceptable.
17558 # Some rework will be needed to allow for fast_install
17559 # before this can be enabled.
17560 hardcode_into_libs
=yes
17562 # Append ld.so.conf contents to the search path
17563 if test -f /etc
/ld.so.conf
; then
17564 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17565 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17568 # We used to test for /lib/ld.so.1 and disable shared libraries on
17569 # powerpc, because MkLinux only supported shared libraries with the
17570 # GNU dynamic linker. Since this was broken with cross compilers,
17571 # most powerpc-linux boxes support dynamic linking these days and
17572 # people can always --disable-shared, the test was removed, and we
17573 # assume the GNU/Linux dynamic linker is in use.
17574 dynamic_linker
='GNU/Linux ld.so'
17581 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17582 soname_spec
='${libname}${release}${shared_ext}$major'
17583 shlibpath_var
=LD_LIBRARY_PATH
17584 shlibpath_overrides_runpath
=no
17585 hardcode_into_libs
=yes
17586 dynamic_linker
='NetBSD ld.elf_so'
17593 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
17594 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17595 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17596 dynamic_linker
='NetBSD (a.out) ld.so'
17598 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17599 soname_spec
='${libname}${release}${shared_ext}$major'
17600 dynamic_linker
='NetBSD ld.elf_so'
17602 shlibpath_var
=LD_LIBRARY_PATH
17603 shlibpath_overrides_runpath
=yes
17604 hardcode_into_libs
=yes
17609 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17610 shlibpath_var
=LD_LIBRARY_PATH
17611 shlibpath_overrides_runpath
=yes
17618 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17619 soname_spec
='${libname}${release}${shared_ext}$major'
17620 shlibpath_var
=LD_LIBRARY_PATH
17621 shlibpath_overrides_runpath
=yes
17626 sys_lib_dlsearch_path_spec
="/usr/lib"
17628 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17630 openbsd3.3
| openbsd3.3.
*) need_version
=yes ;;
17631 *) need_version
=no
;;
17633 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17634 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17635 shlibpath_var
=LD_LIBRARY_PATH
17636 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17638 openbsd2.
[89] | openbsd2.
[89].
*)
17639 shlibpath_overrides_runpath
=no
17642 shlibpath_overrides_runpath
=yes
17646 shlibpath_overrides_runpath
=yes
17651 libname_spec
='$name'
17654 library_names_spec
='$libname${shared_ext} $libname.a'
17655 dynamic_linker
='OS/2 ld.exe'
17656 shlibpath_var
=LIBPATH
17659 osf3
* | osf4
* | osf5
*)
17663 soname_spec
='${libname}${release}${shared_ext}$major'
17664 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17665 shlibpath_var
=LD_LIBRARY_PATH
17666 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17667 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17678 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17679 soname_spec
='${libname}${release}${shared_ext}$major'
17680 shlibpath_var
=LD_LIBRARY_PATH
17681 shlibpath_overrides_runpath
=yes
17682 hardcode_into_libs
=yes
17683 # ldd complains unless libraries are executable
17684 postinstall_cmds
='chmod +x $lib'
17689 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17690 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17691 shlibpath_var
=LD_LIBRARY_PATH
17692 shlibpath_overrides_runpath
=yes
17693 if test "$with_gnu_ld" = yes; then
17701 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17702 soname_spec
='${libname}${release}${shared_ext}$major'
17703 shlibpath_var
=LD_LIBRARY_PATH
17704 case $host_vendor in
17706 shlibpath_overrides_runpath
=no
17708 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17709 runpath_var
=LD_RUN_PATH
17717 shlibpath_overrides_runpath
=no
17718 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17724 if test -d /usr
/nec
;then
17726 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17727 soname_spec
='$libname${shared_ext}.$major'
17728 shlibpath_var
=LD_LIBRARY_PATH
17732 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17733 version_type
=freebsd
-elf
17736 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17737 soname_spec
='${libname}${release}${shared_ext}$major'
17738 shlibpath_var
=LD_LIBRARY_PATH
17739 hardcode_into_libs
=yes
17740 if test "$with_gnu_ld" = yes; then
17741 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17742 shlibpath_overrides_runpath
=no
17744 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17745 shlibpath_overrides_runpath
=yes
17748 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17752 sys_lib_dlsearch_path_spec
='/usr/lib'
17757 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17758 soname_spec
='${libname}${release}${shared_ext}$major'
17759 shlibpath_var
=LD_LIBRARY_PATH
17766 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17767 $as_echo "$dynamic_linker" >&6; }
17768 test "$dynamic_linker" = no
&& can_build_shared
=no
17770 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17771 $as_echo_n "(cached) " >&6
17773 lt_cv_sys_lib_search_path_spec
="$sys_lib_search_path_spec"
17776 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17777 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17778 $as_echo_n "(cached) " >&6
17780 lt_cv_sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec"
17783 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17785 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17786 if test "$GCC" = yes; then
17787 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17790 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17791 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17792 hardcode_action_F77
=
17793 if test -n "$hardcode_libdir_flag_spec_F77" || \
17794 test -n "$runpath_var_F77" || \
17795 test "X$hardcode_automatic_F77" = "Xyes" ; then
17797 # We can hardcode non-existant directories.
17798 if test "$hardcode_direct_F77" != no
&&
17799 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17800 # have to relink, otherwise we might link with an installed library
17801 # when we should be linking with a yet-to-be-installed one
17802 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17803 test "$hardcode_minus_L_F77" != no
; then
17804 # Linking always hardcodes the temporary library directory.
17805 hardcode_action_F77
=relink
17807 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17808 hardcode_action_F77
=immediate
17811 # We cannot hardcode anything, or else we can only hardcode existing
17813 hardcode_action_F77
=unsupported
17815 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17816 $as_echo "$hardcode_action_F77" >&6; }
17818 if test "$hardcode_action_F77" = relink
; then
17819 # Fast installation is not supported
17820 enable_fast_install
=no
17821 elif test "$shlibpath_overrides_runpath" = yes ||
17822 test "$enable_shared" = no
; then
17823 # Fast installation is not necessary
17824 enable_fast_install
=needless
17828 # The else clause should only fire when bootstrapping the
17829 # libtool distribution, otherwise you forgot to ship ltmain.sh
17830 # with your package, and you will get complaints that there are
17831 # no rules to generate ltmain.sh.
17832 if test -f "$ltmain"; then
17833 # See if we are running on zsh, and set the options which allow our commands through
17834 # without removal of \ escapes.
17835 if test -n "${ZSH_VERSION+set}" ; then
17836 setopt NO_GLOB_SUBST
17838 # Now quote all the things that may contain metacharacters while being
17839 # careful not to overquote the AC_SUBSTed values. We take copies of the
17840 # variables and quote the copies for generation of the libtool script.
17841 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17843 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17844 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17845 deplibs_check_method reload_flag reload_cmds need_locks \
17846 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17847 lt_cv_sys_global_symbol_to_c_name_address \
17848 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17849 old_postinstall_cmds old_postuninstall_cmds \
17853 lt_prog_compiler_wl_F77 \
17854 lt_prog_compiler_pic_F77 \
17855 lt_prog_compiler_static_F77 \
17856 lt_prog_compiler_no_builtin_flag_F77 \
17857 export_dynamic_flag_spec_F77 \
17858 thread_safe_flag_spec_F77 \
17859 whole_archive_flag_spec_F77 \
17860 enable_shared_with_static_runtimes_F77 \
17861 old_archive_cmds_F77 \
17862 old_archive_from_new_cmds_F77 \
17863 predep_objects_F77 \
17864 postdep_objects_F77 \
17867 compiler_lib_search_path_F77 \
17868 compiler_lib_search_dirs_F77 \
17870 archive_expsym_cmds_F77 \
17871 postinstall_cmds_F77 \
17872 postuninstall_cmds_F77 \
17873 old_archive_from_expsyms_cmds_F77 \
17874 allow_undefined_flag_F77 \
17875 no_undefined_flag_F77 \
17876 export_symbols_cmds_F77 \
17877 hardcode_libdir_flag_spec_F77 \
17878 hardcode_libdir_flag_spec_ld_F77 \
17879 hardcode_libdir_separator_F77 \
17880 hardcode_automatic_F77 \
17882 module_expsym_cmds_F77 \
17883 lt_cv_prog_compiler_c_o_F77 \
17884 fix_srcfile_path_F77 \
17885 exclude_expsyms_F77 \
17886 include_expsyms_F77
; do
17889 old_archive_cmds_F77
| \
17890 old_archive_from_new_cmds_F77
| \
17891 archive_cmds_F77
| \
17892 archive_expsym_cmds_F77
| \
17893 module_cmds_F77
| \
17894 module_expsym_cmds_F77
| \
17895 old_archive_from_expsyms_cmds_F77
| \
17896 export_symbols_cmds_F77
| \
17897 extract_expsyms_cmds
| reload_cmds
| finish_cmds
| \
17898 postinstall_cmds
| postuninstall_cmds
| \
17899 old_postinstall_cmds
| old_postuninstall_cmds
| \
17900 sys_lib_search_path_spec
| sys_lib_dlsearch_path_spec
)
17901 # Double-quote double-evaled strings.
17902 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17905 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17911 *'\$0 --fallback-echo"')
17912 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17918 cat <<__EOF__ >> "$cfgfile"
17919 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17921 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17923 # Shell to use when invoking shell scripts.
17926 # Whether or not to build shared libraries.
17927 build_libtool_libs=$enable_shared
17929 # Whether or not to build static libraries.
17930 build_old_libs=$enable_static
17932 # Whether or not to add -lc for building shared libraries.
17933 build_libtool_need_lc=$archive_cmds_need_lc_F77
17935 # Whether or not to disallow shared libs when runtime libs are static
17936 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17938 # Whether or not to optimize for fast installation.
17939 fast_install=$enable_fast_install
17942 host_alias=$host_alias
17946 # The build system.
17947 build_alias=$build_alias
17951 # An echo program that does not interpret backslashes.
17956 AR_FLAGS=$lt_AR_FLAGS
17961 # LTCC compiler flags.
17962 LTCFLAGS=$lt_LTCFLAGS
17964 # A language-specific compiler.
17965 CC=$lt_compiler_F77
17967 # Is the compiler the GNU C compiler?
17973 # The linker used to build libraries.
17976 # Whether we need hard or soft links.
17979 # A BSD-compatible nm program.
17982 # A symbol stripping program
17985 # Used to examine libraries when file_magic_cmd begins "file"
17986 MAGIC_CMD=$MAGIC_CMD
17988 # Used on cygwin: DLL creation program.
17991 # Used on cygwin: object dumper.
17994 # Used on cygwin: assembler.
17997 # The name of the directory that contains temporary libtool files.
18000 # How to create reloadable object files.
18001 reload_flag=$lt_reload_flag
18002 reload_cmds=$lt_reload_cmds
18004 # How to pass a linker flag through the compiler.
18005 wl=$lt_lt_prog_compiler_wl_F77
18007 # Object file suffix (normally "o").
18008 objext="$ac_objext"
18010 # Old archive suffix (normally "a").
18013 # Shared library suffix (normally ".so").
18014 shrext_cmds='$shrext_cmds'
18016 # Executable file suffix (normally "").
18019 # Additional compiler flags for building library objects.
18020 pic_flag=$lt_lt_prog_compiler_pic_F77
18023 # What is the maximum length of a command?
18024 max_cmd_len=$lt_cv_sys_max_cmd_len
18026 # Does compiler simultaneously support -c and -o options?
18027 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18029 # Must we lock files when doing compilation?
18030 need_locks=$lt_need_locks
18032 # Do we need the lib prefix for modules?
18033 need_lib_prefix=$need_lib_prefix
18035 # Do we need a version for libraries?
18036 need_version=$need_version
18038 # Whether dlopen is supported.
18039 dlopen_support=$enable_dlopen
18041 # Whether dlopen of programs is supported.
18042 dlopen_self=$enable_dlopen_self
18044 # Whether dlopen of statically linked programs is supported.
18045 dlopen_self_static=$enable_dlopen_self_static
18047 # Compiler flag to prevent dynamic linking.
18048 link_static_flag=$lt_lt_prog_compiler_static_F77
18050 # Compiler flag to turn off builtin functions.
18051 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18053 # Compiler flag to allow reflexive dlopens.
18054 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18056 # Compiler flag to generate shared objects directly from archives.
18057 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18059 # Compiler flag to generate thread-safe objects.
18060 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18062 # Library versioning type.
18063 version_type=$version_type
18065 # Format of library name prefix.
18066 libname_spec=$lt_libname_spec
18068 # List of archive names. First name is the real one, the rest are links.
18069 # The last name is the one that the linker finds with -lNAME.
18070 library_names_spec=$lt_library_names_spec
18072 # The coded name of the library, if different from the real name.
18073 soname_spec=$lt_soname_spec
18075 # Commands used to build and install an old-style archive.
18077 old_archive_cmds=$lt_old_archive_cmds_F77
18078 old_postinstall_cmds=$lt_old_postinstall_cmds
18079 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18081 # Create an old-style archive from a shared archive.
18082 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18084 # Create a temporary old-style archive to link instead of a shared archive.
18085 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18087 # Commands used to build and install a shared archive.
18088 archive_cmds=$lt_archive_cmds_F77
18089 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18090 postinstall_cmds=$lt_postinstall_cmds
18091 postuninstall_cmds=$lt_postuninstall_cmds
18093 # Commands used to build a loadable module (assumed same as above if empty)
18094 module_cmds=$lt_module_cmds_F77
18095 module_expsym_cmds=$lt_module_expsym_cmds_F77
18097 # Commands to strip libraries.
18098 old_striplib=$lt_old_striplib
18099 striplib=$lt_striplib
18101 # Dependencies to place before the objects being linked to create a
18103 predep_objects=$lt_predep_objects_F77
18105 # Dependencies to place after the objects being linked to create a
18107 postdep_objects=$lt_postdep_objects_F77
18109 # Dependencies to place before the objects being linked to create a
18111 predeps=$lt_predeps_F77
18113 # Dependencies to place after the objects being linked to create a
18115 postdeps=$lt_postdeps_F77
18117 # The directories searched by this compiler when creating a shared
18119 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
18121 # The library search path used internally by the compiler when linking
18122 # a shared library.
18123 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18125 # Method to check whether dependent libraries are shared objects.
18126 deplibs_check_method=$lt_deplibs_check_method
18128 # Command to use when deplibs_check_method == file_magic.
18129 file_magic_cmd=$lt_file_magic_cmd
18131 # Flag that allows shared libraries with undefined symbols to be built.
18132 allow_undefined_flag=$lt_allow_undefined_flag_F77
18134 # Flag that forces no undefined symbols.
18135 no_undefined_flag=$lt_no_undefined_flag_F77
18137 # Commands used to finish a libtool library installation in a directory.
18138 finish_cmds=$lt_finish_cmds
18140 # Same as above, but a single script fragment to be evaled but not shown.
18141 finish_eval=$lt_finish_eval
18143 # Take the output of nm and produce a listing of raw symbols and C names.
18144 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18146 # Transform the output of nm in a proper C declaration
18147 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18149 # Transform the output of nm in a C name address pair
18150 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18152 # This is the shared library runtime path variable.
18153 runpath_var=$runpath_var
18155 # This is the shared library path variable.
18156 shlibpath_var=$shlibpath_var
18158 # Is shlibpath searched before the hard-coded library search path?
18159 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18161 # How to hardcode a shared library path into an executable.
18162 hardcode_action=$hardcode_action_F77
18164 # Whether we should hardcode library paths into libraries.
18165 hardcode_into_libs=$hardcode_into_libs
18167 # Flag to hardcode \$libdir into a binary during linking.
18168 # This must work even if \$libdir does not exist.
18169 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18171 # If ld is used when linking, flag to hardcode \$libdir into
18172 # a binary during linking. This must work even if \$libdir does
18174 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18176 # Whether we need a single -rpath flag with a separated argument.
18177 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18179 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18180 # resulting binary.
18181 hardcode_direct=$hardcode_direct_F77
18183 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18184 # resulting binary.
18185 hardcode_minus_L=$hardcode_minus_L_F77
18187 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18188 # the resulting binary.
18189 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18191 # Set to yes if building a shared library automatically hardcodes DIR into the library
18192 # and all subsequent libraries and executables linked against it.
18193 hardcode_automatic=$hardcode_automatic_F77
18195 # Variables whose values should be saved in libtool wrapper scripts and
18196 # restored at relink time.
18197 variables_saved_for_relink="$variables_saved_for_relink"
18199 # Whether libtool must link a program against all its dependency libraries.
18200 link_all_deplibs=$link_all_deplibs_F77
18202 # Compile-time system search path for libraries
18203 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18205 # Run-time system search path for libraries
18206 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18208 # Fix the shell variable \$srcfile for the compiler.
18209 fix_srcfile_path=$lt_fix_srcfile_path
18211 # Set to yes if exported symbols are required.
18212 always_export_symbols=$always_export_symbols_F77
18214 # The commands to list exported symbols.
18215 export_symbols_cmds=$lt_export_symbols_cmds_F77
18217 # The commands to extract the exported symbol list from a shared archive.
18218 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18220 # Symbols that should not be listed in the preloaded symbols.
18221 exclude_expsyms=$lt_exclude_expsyms_F77
18223 # Symbols that must always be exported.
18224 include_expsyms=$lt_include_expsyms_F77
18226 # ### END LIBTOOL TAG CONFIG: $tagname
18232 # If there is no Makefile yet, we rely on a make rule to execute
18233 # `config.status --recheck' to rerun these tests and create the
18234 # libtool script then.
18235 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18236 if test -f "$ltmain_in"; then
18237 test -f Makefile
&& make "$ltmain"
18243 ac_cpp
='$CPP $CPPFLAGS'
18244 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18245 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18246 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18256 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18259 # Source file extension for Java test sources.
18262 # Object file extension for compiled Java test sources.
18266 # Code to be used in simple compile tests
18267 lt_simple_compile_test_code
="class foo {}"
18269 # Code to be used in simple link tests
18270 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }'
18272 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18274 # If no C compiler was specified, use CC.
18277 # If no C compiler flags were specified, use CFLAGS.
18278 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18280 # Allow CC to be a program name with arguments.
18284 # save warnings/boilerplate of simple test code
18285 ac_outfile
=conftest.
$ac_objext
18286 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18287 eval "$ac_compile" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
18288 _lt_compiler_boilerplate
=`cat conftest.err`
18291 ac_outfile
=conftest.
$ac_objext
18292 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18293 eval "$ac_link" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
18294 _lt_linker_boilerplate
=`cat conftest.err`
18298 # Allow CC to be a program name with arguments.
18303 for cc_temp
in $compiler""; do
18305 compile
| *[\\/]compile
| ccache
| *[\\/]ccache
) ;;
18306 distcc
| *[\\/]distcc
| purify
| *[\\/]purify
) ;;
18311 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18314 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18315 archive_cmds_need_lc_GCJ
=no
18317 old_archive_cmds_GCJ
=$old_archive_cmds
18320 lt_prog_compiler_no_builtin_flag_GCJ
=
18322 if test "$GCC" = yes; then
18323 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
18326 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18327 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
18328 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18329 $as_echo_n "(cached) " >&6
18331 lt_cv_prog_compiler_rtti_exceptions
=no
18332 ac_outfile
=conftest.
$ac_objext
18333 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18334 lt_compiler_flag
="-fno-rtti -fno-exceptions"
18335 # Insert the option either (1) after the last *FLAGS variable, or
18336 # (2) before a word containing "conftest.", or (3) at the end.
18337 # Note that $ac_compile itself does not contain backslashes and begins
18338 # with a dollar sign (not a hyphen), so the echo should work correctly.
18339 # The option is referenced via a variable to avoid confusing sed.
18340 lt_compile
=`echo "$ac_compile" | $SED \
18341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18343 -e 's:$: $lt_compiler_flag:'`
18344 (eval echo "\"\$as_me:18344: $lt_compile\"" >&5)
18345 (eval "$lt_compile" 2>conftest.err
)
18347 cat conftest.err
>&5
18348 echo "$as_me:18348: \$? = $ac_status" >&5
18349 if (exit $ac_status) && test -s "$ac_outfile"; then
18350 # The compiler can only warn and ignore the option if not recognized
18351 # So say no if there are warnings other than the usual output.
18352 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18353 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
18354 if test ! -s conftest.er2
|| diff conftest.exp conftest.er2
>/dev
/null
; then
18355 lt_cv_prog_compiler_rtti_exceptions
=yes
18361 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18362 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18364 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
18365 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18372 lt_prog_compiler_wl_GCJ
=
18373 lt_prog_compiler_pic_GCJ
=
18374 lt_prog_compiler_static_GCJ
=
18376 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18377 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18379 if test "$GCC" = yes; then
18380 lt_prog_compiler_wl_GCJ
='-Wl,'
18381 lt_prog_compiler_static_GCJ
='-static'
18385 # All AIX code is PIC.
18386 if test "$host_cpu" = ia64
; then
18387 # AIX 5 now supports IA64 processor
18388 lt_prog_compiler_static_GCJ
='-Bstatic'
18393 # FIXME: we need at least 68020 code to build shared libraries, but
18394 # adding the `-m68020' flag to GCC prevents building anything better,
18396 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
18399 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
18400 # PIC is the default for these OSes.
18403 mingw
* | cygwin
* | pw32
* | os2
*)
18404 # This hack is so that the source file can tell whether it is being
18405 # built for inclusion in a dll (and should export symbols for example).
18406 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18407 # (--disable-auto-import) libraries
18411 darwin
* | rhapsody
*)
18412 # PIC is the default on this platform
18413 # Common symbols not allowed in MH_DYLIB files
18414 lt_prog_compiler_pic_GCJ
='-fno-common'
18418 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18419 # Instead, we relocate shared libraries at runtime.
18423 # Just because we use GCC doesn't mean we suddenly get shared libraries
18424 # on systems that don't support them.
18425 lt_prog_compiler_can_build_shared_GCJ
=no
18430 if test -d /usr
/nec
; then
18431 lt_prog_compiler_pic_GCJ
=-Kconform_pic
18436 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18437 # not for PA HP-UX.
18443 lt_prog_compiler_pic_GCJ
='-fPIC'
18449 lt_prog_compiler_pic_GCJ
='-fPIC'
18453 # PORTME Check for flag to pass linker flags through the system compiler.
18456 lt_prog_compiler_wl_GCJ
='-Wl,'
18457 if test "$host_cpu" = ia64
; then
18458 # AIX 5 now supports IA64 processor
18459 lt_prog_compiler_static_GCJ
='-Bstatic'
18461 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
18465 # PIC is the default on this platform
18466 # Common symbols not allowed in MH_DYLIB files
18467 case $cc_basename in
18469 lt_prog_compiler_pic_GCJ
='-qnocommon'
18470 lt_prog_compiler_wl_GCJ
='-Wl,'
18475 mingw
* | cygwin
* | pw32
* | os2
*)
18476 # This hack is so that the source file can tell whether it is being
18477 # built for inclusion in a dll (and should export symbols for example).
18481 hpux9
* | hpux10
* | hpux11
*)
18482 lt_prog_compiler_wl_GCJ
='-Wl,'
18483 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18484 # not for PA HP-UX.
18490 lt_prog_compiler_pic_GCJ
='+Z'
18493 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18494 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
18497 irix5
* | irix6
* | nonstopux
*)
18498 lt_prog_compiler_wl_GCJ
='-Wl,'
18499 # PIC (with -KPIC) is the default.
18500 lt_prog_compiler_static_GCJ
='-non_shared'
18504 lt_prog_compiler_pic_GCJ
='-KPIC'
18505 lt_prog_compiler_static_GCJ
='-Bstatic'
18508 linux
* | k
*bsd
*-gnu)
18509 case $cc_basename in
18511 lt_prog_compiler_wl_GCJ
='-Wl,'
18512 lt_prog_compiler_pic_GCJ
='-KPIC'
18513 lt_prog_compiler_static_GCJ
='-static'
18515 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
18516 # Portland Group compilers (*not* the Pentium gcc compiler,
18517 # which looks to be a dead project)
18518 lt_prog_compiler_wl_GCJ
='-Wl,'
18519 lt_prog_compiler_pic_GCJ
='-fpic'
18520 lt_prog_compiler_static_GCJ
='-Bstatic'
18523 lt_prog_compiler_wl_GCJ
='-Wl,'
18524 # All Alpha code is PIC.
18525 lt_prog_compiler_static_GCJ
='-non_shared'
18528 case `$CC -V 2>&1 | sed 5q` in
18531 lt_prog_compiler_pic_GCJ
='-KPIC'
18532 lt_prog_compiler_static_GCJ
='-Bstatic'
18533 lt_prog_compiler_wl_GCJ
='-Wl,'
18536 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18537 lt_prog_compiler_pic_GCJ
='-KPIC'
18538 lt_prog_compiler_static_GCJ
='-Bstatic'
18539 lt_prog_compiler_wl_GCJ
=''
18546 osf3
* | osf4
* | osf5
*)
18547 lt_prog_compiler_wl_GCJ
='-Wl,'
18548 # All OSF/1 code is PIC.
18549 lt_prog_compiler_static_GCJ
='-non_shared'
18553 lt_prog_compiler_static_GCJ
='-non_shared'
18557 lt_prog_compiler_pic_GCJ
='-KPIC'
18558 lt_prog_compiler_static_GCJ
='-Bstatic'
18559 case $cc_basename in
18560 f77
* | f90
* | f95
*)
18561 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
18563 lt_prog_compiler_wl_GCJ
='-Wl,';;
18568 lt_prog_compiler_wl_GCJ
='-Qoption ld '
18569 lt_prog_compiler_pic_GCJ
='-PIC'
18570 lt_prog_compiler_static_GCJ
='-Bstatic'
18573 sysv4
| sysv4.2uw2
* | sysv4.3
*)
18574 lt_prog_compiler_wl_GCJ
='-Wl,'
18575 lt_prog_compiler_pic_GCJ
='-KPIC'
18576 lt_prog_compiler_static_GCJ
='-Bstatic'
18580 if test -d /usr
/nec
;then
18581 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
18582 lt_prog_compiler_static_GCJ
='-Bstatic'
18586 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
18587 lt_prog_compiler_wl_GCJ
='-Wl,'
18588 lt_prog_compiler_pic_GCJ
='-KPIC'
18589 lt_prog_compiler_static_GCJ
='-Bstatic'
18593 lt_prog_compiler_wl_GCJ
='-Wl,'
18594 lt_prog_compiler_can_build_shared_GCJ
=no
18598 lt_prog_compiler_pic_GCJ
='-pic'
18599 lt_prog_compiler_static_GCJ
='-Bstatic'
18603 lt_prog_compiler_can_build_shared_GCJ
=no
18608 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18609 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
18612 # Check to make sure the PIC flag actually works.
18614 if test -n "$lt_prog_compiler_pic_GCJ"; then
18616 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18617 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
18618 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
18619 $as_echo_n "(cached) " >&6
18621 lt_cv_prog_compiler_pic_works_GCJ
=no
18622 ac_outfile
=conftest.
$ac_objext
18623 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18624 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
18625 # Insert the option either (1) after the last *FLAGS variable, or
18626 # (2) before a word containing "conftest.", or (3) at the end.
18627 # Note that $ac_compile itself does not contain backslashes and begins
18628 # with a dollar sign (not a hyphen), so the echo should work correctly.
18629 # The option is referenced via a variable to avoid confusing sed.
18630 lt_compile
=`echo "$ac_compile" | $SED \
18631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18633 -e 's:$: $lt_compiler_flag:'`
18634 (eval echo "\"\$as_me:18634: $lt_compile\"" >&5)
18635 (eval "$lt_compile" 2>conftest.err
)
18637 cat conftest.err
>&5
18638 echo "$as_me:18638: \$? = $ac_status" >&5
18639 if (exit $ac_status) && test -s "$ac_outfile"; then
18640 # The compiler can only warn and ignore the option if not recognized
18641 # So say no if there are warnings other than the usual output.
18642 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18643 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
18644 if test ! -s conftest.er2
|| diff conftest.exp conftest.er2
>/dev
/null
; then
18645 lt_cv_prog_compiler_pic_works_GCJ
=yes
18651 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
18652 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
18654 if test x
"$lt_cv_prog_compiler_pic_works_GCJ" = xyes
; then
18655 case $lt_prog_compiler_pic_GCJ in
18657 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
18660 lt_prog_compiler_pic_GCJ
=
18661 lt_prog_compiler_can_build_shared_GCJ
=no
18666 # For platforms which do not support PIC, -DPIC is meaningless:
18668 lt_prog_compiler_pic_GCJ
=
18671 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
18676 # Check to make sure the static flag actually works.
18678 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
18679 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18680 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18681 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
18682 $as_echo_n "(cached) " >&6
18684 lt_cv_prog_compiler_static_works_GCJ
=no
18685 save_LDFLAGS
="$LDFLAGS"
18686 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
18687 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
18688 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
18689 # The linker can only warn and ignore the option if not recognized
18690 # So say no if there are warnings
18691 if test -s conftest.err
; then
18692 # Append any errors to the config.log.
18693 cat conftest.err
1>&5
18694 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18695 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
18696 if diff conftest.exp conftest.er2
>/dev
/null
; then
18697 lt_cv_prog_compiler_static_works_GCJ
=yes
18700 lt_cv_prog_compiler_static_works_GCJ
=yes
18704 LDFLAGS
="$save_LDFLAGS"
18707 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
18708 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
18710 if test x
"$lt_cv_prog_compiler_static_works_GCJ" = xyes
; then
18713 lt_prog_compiler_static_GCJ
=
18717 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18718 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18719 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18720 $as_echo_n "(cached) " >&6
18722 lt_cv_prog_compiler_c_o_GCJ
=no
18723 $rm -r conftest
2>/dev
/null
18727 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18729 lt_compiler_flag
="-o out/conftest2.$ac_objext"
18730 # Insert the option either (1) after the last *FLAGS variable, or
18731 # (2) before a word containing "conftest.", or (3) at the end.
18732 # Note that $ac_compile itself does not contain backslashes and begins
18733 # with a dollar sign (not a hyphen), so the echo should work correctly.
18734 lt_compile
=`echo "$ac_compile" | $SED \
18735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18737 -e 's:$: $lt_compiler_flag:'`
18738 (eval echo "\"\$as_me:18738: $lt_compile\"" >&5)
18739 (eval "$lt_compile" 2>out
/conftest.err
)
18741 cat out
/conftest.err
>&5
18742 echo "$as_me:18742: \$? = $ac_status" >&5
18743 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
18745 # The compiler can only warn and ignore the option if not recognized
18746 # So say no if there are warnings
18747 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out
/conftest.exp
18748 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
18749 if test ! -s out
/conftest.er2
|| diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
18750 lt_cv_prog_compiler_c_o_GCJ
=yes
18755 # SGI C++ compiler will create directory out/ii_files/ for
18756 # template instantiation
18757 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
18758 $rm out
/* && rmdir out
18764 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18765 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18768 hard_links
="nottested"
18769 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
18770 # do not overwrite the value of need_locks provided by the user
18771 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18772 $as_echo_n "checking if we can lock with hard links... " >&6; }
18775 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
18777 ln conftest.a conftest.b
2>&5 || hard_links
=no
18778 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
18779 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
18780 $as_echo "$hard_links" >&6; }
18781 if test "$hard_links" = no
; then
18782 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18783 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18790 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18791 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18794 allow_undefined_flag_GCJ
=
18795 enable_shared_with_static_runtimes_GCJ
=no
18797 archive_expsym_cmds_GCJ
=
18798 old_archive_From_new_cmds_GCJ
=
18799 old_archive_from_expsyms_cmds_GCJ
=
18800 export_dynamic_flag_spec_GCJ
=
18801 whole_archive_flag_spec_GCJ
=
18802 thread_safe_flag_spec_GCJ
=
18803 hardcode_libdir_flag_spec_GCJ
=
18804 hardcode_libdir_flag_spec_ld_GCJ
=
18805 hardcode_libdir_separator_GCJ
=
18806 hardcode_direct_GCJ
=no
18807 hardcode_minus_L_GCJ
=no
18808 hardcode_shlibpath_var_GCJ
=unsupported
18809 link_all_deplibs_GCJ
=unknown
18810 hardcode_automatic_GCJ
=no
18812 module_expsym_cmds_GCJ
=
18813 always_export_symbols_GCJ
=no
18814 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18815 # include_expsyms should be a list of space-separated symbols to be *always*
18816 # included in the symbol list
18817 include_expsyms_GCJ
=
18818 # exclude_expsyms can be an extended regexp of symbols to exclude
18819 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18820 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18821 # as well as any symbol that contains `d'.
18822 exclude_expsyms_GCJ
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18823 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18824 # platforms (ab)use it in PIC code, but their linkers get confused if
18825 # the symbol is explicitly referenced. Since portable code cannot
18826 # rely on this symbol name, it's probably fine to never include it in
18827 # preloaded symbol tables.
18828 # Exclude shared library initialization/finalization symbols.
18829 extract_expsyms_cmds
=
18830 # Just being paranoid about ensuring that cc_basename is set.
18831 for cc_temp
in $compiler""; do
18833 compile
| *[\\/]compile
| ccache
| *[\\/]ccache
) ;;
18834 distcc
| *[\\/]distcc
| purify
| *[\\/]purify
) ;;
18839 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18842 cygwin
* | mingw
* | pw32
*)
18843 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18844 # When not using gcc, we currently assume that we are using
18845 # Microsoft Visual C++.
18846 if test "$GCC" != yes; then
18851 # we just hope/assume this is gcc and not c89 (= MSVC++)
18860 if test "$with_gnu_ld" = yes; then
18861 # If archive_cmds runs LD, not CC, wlarc should be empty
18864 # Set some defaults for GNU ld with shared library support. These
18865 # are reset later if shared libraries are not supported. Putting them
18866 # here allows them to be overridden if necessary.
18867 runpath_var
=LD_RUN_PATH
18868 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
18869 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
18870 # ancient GNU ld didn't support --whole-archive et. al.
18871 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev
/null
; then
18872 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18874 whole_archive_flag_spec_GCJ
=
18876 supports_anon_versioning
=no
18877 case `$LD -v 2>/dev/null` in
18878 *\
[01].
* | *\
2.
[0-9].
* | *\
2.10.
*) ;; # catch versions < 2.11
18879 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
18880 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
18881 *\
2.11.
*) ;; # other 2.11 versions
18882 *) supports_anon_versioning
=yes ;;
18885 # See if GNU ld supports shared libraries.
18888 # On AIX/PPC, the GNU linker is very broken
18889 if test "$host_cpu" != ia64
; then
18893 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18894 *** to be unable to reliably create shared libraries on AIX.
18895 *** Therefore, libtool is disabling shared libraries support. If you
18896 *** really care for shared libraries, you may want to modify your PATH
18897 *** so that a non-GNU linker is found, and then restart.
18904 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)'
18905 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18906 hardcode_minus_L_GCJ
=yes
18908 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18909 # that the semantics of dynamic libraries on AmigaOS, at least up
18910 # to version 4, is to share data among multiple programs linked
18911 # with the same dynamic library. Since this doesn't match the
18912 # behavior of shared libraries on other platforms, we can't use
18918 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
18919 allow_undefined_flag_GCJ
=unsupported
18920 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18921 # support --undefined. This deserves some investigation. FIXME
18922 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18928 cygwin
* | mingw
* | pw32
*)
18929 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18930 # as there is no search path for DLLs.
18931 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18932 allow_undefined_flag_GCJ
=unsupported
18933 always_export_symbols_GCJ
=no
18934 enable_shared_with_static_runtimes_GCJ
=yes
18935 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18937 if $LD --help 2>&1 | grep 'auto-import' > /dev
/null
; then
18938 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18939 # If the export-symbols file already is a .def file (1st line
18940 # is EXPORTS), use it as is; otherwise, prepend...
18941 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18942 cp $export_symbols $output_objdir/$soname.def;
18944 echo EXPORTS > $output_objdir/$soname.def;
18945 cat $export_symbols >> $output_objdir/$soname.def;
18947 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18954 hardcode_direct_GCJ
=no
18955 hardcode_shlibpath_var_GCJ
=no
18956 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
18957 export_dynamic_flag_spec_GCJ
='${wl}-E'
18958 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18959 # Instead, shared libraries are loaded at an image base (0x10000000 by
18960 # default) and relocated if they conflict, which is a slow very memory
18961 # consuming and fragmenting process. To avoid this, we pick a random,
18962 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18963 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18964 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'
18965 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'
18968 gnu
* | linux
* | k
*bsd
*-gnu)
18969 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
18971 case $cc_basename,$host_cpu in
18972 pgcc
*) # Portland Group C compiler
18973 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'
18974 tmp_addflag
=' $pic_flag'
18976 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
18977 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'
18978 tmp_addflag
=' $pic_flag -Mnomain' ;;
18979 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
18980 tmp_addflag
=' -i_dynamic' ;;
18981 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
18982 tmp_addflag
=' -i_dynamic -nofor_main' ;;
18983 ifc
* | ifort
*) # Intel Fortran compiler
18984 tmp_addflag
=' -nofor_main' ;;
18986 case `$CC -V 2>&1 | sed 5q` in
18987 *Sun\ C
*) # Sun C 5.9
18988 whole_archive_flag_spec_GCJ
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18989 tmp_sharedflag
='-G' ;;
18990 *Sun\ F
*) # Sun Fortran 8.3
18991 tmp_sharedflag
='-G' ;;
18993 tmp_sharedflag
='-shared' ;;
18995 archive_cmds_GCJ
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18997 if test $supports_anon_versioning = yes; then
18998 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
18999 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19000 $echo "local: *; };" >> $output_objdir/$libname.ver~
19001 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19003 link_all_deplibs_GCJ
=no
19009 netbsd
* | netbsdelf
*-gnu)
19010 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
19011 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19014 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19015 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19020 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev
/null
; then
19024 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19025 *** create shared libraries on Solaris systems. Therefore, libtool
19026 *** is disabling shared libraries support. We urge you to upgrade GNU
19027 *** binutils to release 2.9.1 or newer. Another option is to modify
19028 *** your PATH or compiler configuration so that the native linker is
19029 *** used, and then restart.
19032 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
19033 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19034 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19040 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
19041 case `$LD -v 2>&1` in
19042 *\
[01].
* | *\
2.
[0-9].
* | *\
2.1[0-5].
*)
19046 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19047 *** reliably create shared libraries on SCO systems. Therefore, libtool
19048 *** is disabling shared libraries support. We urge you to upgrade GNU
19049 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19050 *** your PATH or compiler configuration so that the native linker is
19051 *** used, and then restart.
19056 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
19057 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19058 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19059 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19068 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19070 hardcode_direct_GCJ
=yes
19071 hardcode_shlibpath_var_GCJ
=no
19075 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev
/null
; then
19076 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19077 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19084 if test "$ld_shlibs_GCJ" = no
; then
19086 hardcode_libdir_flag_spec_GCJ
=
19087 export_dynamic_flag_spec_GCJ
=
19088 whole_archive_flag_spec_GCJ
=
19091 # PORTME fill in a description of your system's linker (not GNU ld)
19094 allow_undefined_flag_GCJ
=unsupported
19095 always_export_symbols_GCJ
=yes
19096 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'
19097 # Note: this linker hardcodes the directories in LIBPATH if there
19098 # are no directories specified by -L.
19099 hardcode_minus_L_GCJ
=yes
19100 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19101 # Neither direct hardcoding nor static linking is supported with a
19103 hardcode_direct_GCJ
=unsupported
19108 if test "$host_cpu" = ia64
; then
19109 # On IA64, the linker does run time linking by default, so we don't
19110 # have to do anything special.
19111 aix_use_runtimelinking
=no
19112 exp_sym_flag
='-Bexport'
19115 # If we're using GNU nm, then we don't want the "-C" option.
19116 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19117 if $NM -V 2>&1 | grep 'GNU' > /dev
/null
; then
19118 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'
19120 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'
19122 aix_use_runtimelinking
=no
19124 # Test if we are trying to use run time linking or normal
19125 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19126 # need to do runtime linking.
19127 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19128 for ld_flag
in $LDFLAGS; do
19129 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19130 aix_use_runtimelinking
=yes
19137 exp_sym_flag
='-bexport'
19138 no_entry_flag
='-bnoentry'
19141 # When large executables or shared objects are built, AIX ld can
19142 # have problems creating the table of contents. If linking a library
19143 # or program results in "error TOC overflow" add -mminimal-toc to
19144 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19145 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19147 archive_cmds_GCJ
=''
19148 hardcode_direct_GCJ
=yes
19149 hardcode_libdir_separator_GCJ
=':'
19150 link_all_deplibs_GCJ
=yes
19152 if test "$GCC" = yes; then
19153 case $host_os in aix4.
[012]|aix4.
[012].
*)
19154 # We only want to do this on AIX 4.2 and lower, the check
19155 # below for broken collect2 doesn't work under 4.3+
19156 collect2name
=`${CC} -print-prog-name=collect2`
19157 if test -f "$collect2name" && \
19158 strings "$collect2name" | grep resolve_lib_name
>/dev
/null
19160 # We have reworked collect2
19163 # We have old collect2
19164 hardcode_direct_GCJ
=unsupported
19165 # It fails to find uninstalled libraries when the uninstalled
19166 # path is not listed in the libpath. Setting hardcode_minus_L
19167 # to unsupported forces relinking
19168 hardcode_minus_L_GCJ
=yes
19169 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
19170 hardcode_libdir_separator_GCJ
=
19174 shared_flag
='-shared'
19175 if test "$aix_use_runtimelinking" = yes; then
19176 shared_flag
="$shared_flag "'${wl}-G'
19180 if test "$host_cpu" = ia64
; then
19181 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19182 # chokes on -Wl,-G. The following line is correct:
19185 if test "$aix_use_runtimelinking" = yes; then
19186 shared_flag
='${wl}-G'
19188 shared_flag
='${wl}-bM:SRE'
19193 # It seems that -bexpall does not export symbols beginning with
19194 # underscore (_), so it is better to generate a list of symbols to export.
19195 always_export_symbols_GCJ
=yes
19196 if test "$aix_use_runtimelinking" = yes; then
19197 # Warning - without using the other runtime loading flags (-brtl),
19198 # -berok will link without error, but may produce a broken library.
19199 allow_undefined_flag_GCJ
='-berok'
19200 # Determine the default libpath from the value encoded in an empty executable.
19201 cat >conftest.
$ac_ext <<_ACEOF
19204 cat confdefs.h
>>conftest.
$ac_ext
19205 cat >>conftest.
$ac_ext <<_ACEOF
19206 /* end confdefs.h. */
19216 rm -f conftest.
$ac_objext conftest
$ac_exeext
19217 if { (ac_try
="$ac_link"
19218 case "(($ac_try" in
19219 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
19220 *) ac_try_echo=$ac_try;;
19222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19223 $as_echo "$ac_try_echo") >&5
19224 (eval "$ac_link") 2>conftest.er1
19226 grep -v '^ *+' conftest.er1 >conftest.err
19228 cat conftest.err >&5
19229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); } && {
19231 test -z "$ac_c_werror_flag" ||
19232 test ! -s conftest.err
19233 } && test -s conftest$ac_exeext && {
19234 test "$cross_compiling" = yes ||
19235 $as_test_x conftest$ac_exeext
19238 lt_aix_libpath_sed='
19239 /Import File Strings/,/^$/ {
19245 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null
| $SED -n -e "$lt_aix_libpath_sed"`
19246 # Check for a 64-bit object if we didn't find anything.
19247 if test -z "$aix_libpath"; then
19248 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null
| $SED -n -e "$lt_aix_libpath_sed"`
19251 $as_echo "$as_me: failed program was:" >&5
19252 sed 's/^/| /' conftest.$ac_ext >&5
19257 rm -rf conftest.dSYM
19258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19259 conftest$ac_exeext conftest.$ac_ext
19260 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19262 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19263 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"
19265 if test "$host_cpu" = ia64; then
19266 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19267 allow_undefined_flag_GCJ="-z nodefs"
19268 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"
19270 # Determine the default libpath from the value encoded in an empty executable.
19271 cat >conftest.$ac_ext <<_ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h. */
19286 rm -f conftest.$ac_objext conftest$ac_exeext
19287 if { (ac_try="$ac_link"
19288 case "(($ac_try" in
19289 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
19290 *) ac_try_echo
=$ac_try;;
19292 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19293 $as_echo "$ac_try_echo") >&5
19294 (eval "$ac_link") 2>conftest.er1
19296 grep -v '^ *+' conftest.er1
>conftest.err
19298 cat conftest.err
>&5
19299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); } && {
19301 test -z "$ac_c_werror_flag" ||
19302 test ! -s conftest.err
19303 } && test -s conftest
$ac_exeext && {
19304 test "$cross_compiling" = yes ||
19305 $as_test_x conftest
$ac_exeext
19308 lt_aix_libpath_sed
='
19309 /Import File Strings/,/^$/ {
19315 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19316 # Check for a 64-bit object if we didn't find anything.
19317 if test -z "$aix_libpath"; then
19318 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19321 $as_echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.
$ac_ext >&5
19327 rm -rf conftest.dSYM
19328 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19329 conftest
$ac_exeext conftest.
$ac_ext
19330 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19332 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
19333 # Warning - without using the other run time loading flags,
19334 # -berok will link without error, but may produce a broken library.
19335 no_undefined_flag_GCJ
=' ${wl}-bernotok'
19336 allow_undefined_flag_GCJ
=' ${wl}-berok'
19337 # Exported symbols can be pulled into shared objects from archives
19338 whole_archive_flag_spec_GCJ
='$convenience'
19339 archive_cmds_need_lc_GCJ
=yes
19340 # This is similar to how AIX traditionally builds its shared libraries.
19341 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'
19347 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)'
19348 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
19349 hardcode_minus_L_GCJ
=yes
19350 # see comment about different semantics on the GNU ld section
19355 export_dynamic_flag_spec_GCJ
=-rdynamic
19358 cygwin
* | mingw
* | pw32
*)
19359 # When not using gcc, we currently assume that we are using
19360 # Microsoft Visual C++.
19361 # hardcode_libdir_flag_spec is actually meaningless, as there is
19362 # no search path for DLLs.
19363 hardcode_libdir_flag_spec_GCJ
=' '
19364 allow_undefined_flag_GCJ
=unsupported
19365 # Tell ltmain to make .lib files, not .a files.
19367 # Tell ltmain to make .dll files, not .so files.
19369 # FIXME: Setting linknames here is a bad hack.
19370 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19371 # The linker will automatically build a .lib file if we build a DLL.
19372 old_archive_From_new_cmds_GCJ
='true'
19373 # FIXME: Should let the user specify the lib program.
19374 old_archive_cmds_GCJ
='lib -OUT:$oldlib$oldobjs$old_deplibs'
19375 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
19376 enable_shared_with_static_runtimes_GCJ
=yes
19379 darwin
* | rhapsody
*)
19381 rhapsody
* | darwin1.
[012])
19382 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
19385 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19386 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19388 case ${MACOSX_DEPLOYMENT_TARGET} in
19390 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19393 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
19399 archive_cmds_need_lc_GCJ
=no
19400 hardcode_direct_GCJ
=no
19401 hardcode_automatic_GCJ
=yes
19402 hardcode_shlibpath_var_GCJ
=unsupported
19403 whole_archive_flag_spec_GCJ
=''
19404 link_all_deplibs_GCJ
=yes
19405 if test "$GCC" = yes ; then
19406 output_verbose_link_cmd
='echo'
19407 archive_cmds_GCJ
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19408 module_cmds_GCJ
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19409 archive_expsym_cmds_GCJ
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
19410 module_expsym_cmds_GCJ
="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
19412 case $cc_basename in
19414 output_verbose_link_cmd
='echo'
19415 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19416 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19417 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19418 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19419 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}'
19429 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19430 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
19431 hardcode_shlibpath_var_GCJ
=no
19438 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19439 # support. Future versions do this automatically, but an explicit c++rt0.o
19440 # does not break anything, and helps significantly (at the cost of a little
19443 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19444 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
19445 hardcode_direct_GCJ
=yes
19446 hardcode_shlibpath_var_GCJ
=no
19449 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19451 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19452 hardcode_direct_GCJ
=yes
19453 hardcode_minus_L_GCJ
=yes
19454 hardcode_shlibpath_var_GCJ
=no
19457 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19458 freebsd
* | dragonfly
*)
19459 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19460 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
19461 hardcode_direct_GCJ
=yes
19462 hardcode_shlibpath_var_GCJ
=no
19466 if test "$GCC" = yes; then
19467 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'
19469 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'
19471 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
19472 hardcode_libdir_separator_GCJ
=:
19473 hardcode_direct_GCJ
=yes
19475 # hardcode_minus_L: Not really in the search PATH,
19476 # but as the default location of the library.
19477 hardcode_minus_L_GCJ
=yes
19478 export_dynamic_flag_spec_GCJ
='${wl}-E'
19482 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
19483 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19485 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19487 if test "$with_gnu_ld" = no
; then
19488 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
19489 hardcode_libdir_separator_GCJ
=:
19491 hardcode_direct_GCJ
=yes
19492 export_dynamic_flag_spec_GCJ
='${wl}-E'
19494 # hardcode_minus_L: Not really in the search PATH,
19495 # but as the default location of the library.
19496 hardcode_minus_L_GCJ
=yes
19501 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
19504 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19507 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19510 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19516 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19519 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19522 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19526 if test "$with_gnu_ld" = no
; then
19527 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
19528 hardcode_libdir_separator_GCJ
=:
19532 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
19533 hardcode_direct_GCJ
=no
19534 hardcode_shlibpath_var_GCJ
=no
19537 hardcode_direct_GCJ
=yes
19538 export_dynamic_flag_spec_GCJ
='${wl}-E'
19540 # hardcode_minus_L: Not really in the search PATH,
19541 # but as the default location of the library.
19542 hardcode_minus_L_GCJ
=yes
19548 irix5
* | irix6
* | nonstopux
*)
19549 if test "$GCC" = yes; then
19550 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'
19552 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'
19553 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
19555 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
19556 hardcode_libdir_separator_GCJ
=:
19557 link_all_deplibs_GCJ
=yes
19560 netbsd
* | netbsdelf
*-gnu)
19561 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
19562 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19564 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19566 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
19567 hardcode_direct_GCJ
=yes
19568 hardcode_shlibpath_var_GCJ
=no
19572 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19573 hardcode_direct_GCJ
=yes
19574 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
19575 hardcode_libdir_separator_GCJ
=:
19576 hardcode_shlibpath_var_GCJ
=no
19580 if test -f /usr
/libexec
/ld.so
; then
19581 hardcode_direct_GCJ
=yes
19582 hardcode_shlibpath_var_GCJ
=no
19583 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19584 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19585 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19586 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
19587 export_dynamic_flag_spec_GCJ
='${wl}-E'
19590 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
19591 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19592 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
19595 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19596 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
19606 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
19607 hardcode_minus_L_GCJ
=yes
19608 allow_undefined_flag_GCJ
=unsupported
19609 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'
19610 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19614 if test "$GCC" = yes; then
19615 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
19616 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'
19618 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
19619 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'
19621 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
19622 hardcode_libdir_separator_GCJ
=:
19625 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
19626 if test "$GCC" = yes; then
19627 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
19628 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'
19629 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
19631 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
19632 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'
19633 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~
19634 $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'
19636 # Both c and cxx compiler support -rpath directly
19637 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
19639 hardcode_libdir_separator_GCJ
=:
19643 no_undefined_flag_GCJ
=' -z text'
19644 if test "$GCC" = yes; then
19646 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19647 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19648 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19651 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19652 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19653 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19655 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
19656 hardcode_shlibpath_var_GCJ
=no
19658 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19660 # The compiler driver will combine and reorder linker options,
19661 # but understands `-z linker_flag'. GCC discards it without `$wl',
19662 # but is careful enough not to reorder.
19663 # Supported since Solaris 2.6 (maybe 2.5.1?)
19664 if test "$GCC" = yes; then
19665 whole_archive_flag_spec_GCJ
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19667 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract'
19671 link_all_deplibs_GCJ
=yes
19675 if test "x$host_vendor" = xsequent
; then
19676 # Use $CC to link under sequent, because it throws in some extra .o
19677 # files that make .init and .fini sections work.
19678 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19680 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19682 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
19683 hardcode_direct_GCJ
=yes
19684 hardcode_minus_L_GCJ
=yes
19685 hardcode_shlibpath_var_GCJ
=no
19689 case $host_vendor in
19691 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19692 hardcode_direct_GCJ
=yes # is this really true???
19695 ## LD is ld it makes a PLAMLIB
19696 ## CC just makes a GrossModule.
19697 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19698 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
19699 hardcode_direct_GCJ
=no
19702 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19703 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
19706 runpath_var
='LD_RUN_PATH'
19707 hardcode_shlibpath_var_GCJ
=no
19711 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19712 hardcode_shlibpath_var_GCJ
=no
19713 export_dynamic_flag_spec_GCJ
='-Bexport'
19717 if test -d /usr
/nec
; then
19718 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19719 hardcode_shlibpath_var_GCJ
=no
19720 runpath_var
=LD_RUN_PATH
19721 hardcode_runpath_var
=yes
19726 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19727 no_undefined_flag_GCJ
='${wl}-z,text'
19728 archive_cmds_need_lc_GCJ
=no
19729 hardcode_shlibpath_var_GCJ
=no
19730 runpath_var
='LD_RUN_PATH'
19732 if test "$GCC" = yes; then
19733 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19734 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19736 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19737 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19741 sysv5
* | sco3.2v5
* | sco5v6
*)
19742 # Note: We can NOT use -z defs as we might desire, because we do not
19743 # link with -lc, and that would cause any symbols used from libc to
19744 # always be unresolved, which means just about no library would
19745 # ever link correctly. If we're not using GNU ld we use -z text
19746 # though, which does catch some bad symbols but isn't as heavy-handed
19748 no_undefined_flag_GCJ
='${wl}-z,text'
19749 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
19750 archive_cmds_need_lc_GCJ
=no
19751 hardcode_shlibpath_var_GCJ
=no
19752 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19753 hardcode_libdir_separator_GCJ
=':'
19754 link_all_deplibs_GCJ
=yes
19755 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
19756 runpath_var
='LD_RUN_PATH'
19758 if test "$GCC" = yes; then
19759 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19760 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19762 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19763 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19768 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19769 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
19770 hardcode_shlibpath_var_GCJ
=no
19779 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19780 $as_echo "$ld_shlibs_GCJ" >&6; }
19781 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
19784 # Do we need to explicitly link libc?
19786 case "x$archive_cmds_need_lc_GCJ" in
19788 # Assume -lc should be added
19789 archive_cmds_need_lc_GCJ
=yes
19791 if test "$enable_shared" = yes && test "$GCC" = yes; then
19792 case $archive_cmds_GCJ in
19794 # FIXME: we may have to deal with multi-command sequences.
19797 # Test whether the compiler implicitly links with -lc since on some
19798 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19799 # to ld, don't add -lc before -lgcc.
19800 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19801 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19803 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19806 (eval $ac_compile) 2>&5
19808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); } 2>conftest.err
; then
19812 libobjs
=conftest.
$ac_objext
19814 wl
=$lt_prog_compiler_wl_GCJ
19815 pic_flag
=$lt_prog_compiler_pic_GCJ
19821 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
19822 allow_undefined_flag_GCJ
=
19823 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19824 (eval $archive_cmds_GCJ 2\
>\
&1 \
| grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
19826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); }
19829 archive_cmds_need_lc_GCJ
=no
19831 archive_cmds_need_lc_GCJ
=yes
19833 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
19835 cat conftest.err
1>&5
19838 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19839 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
19846 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19847 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19848 library_names_spec
=
19849 libname_spec
='lib$name'
19853 postuninstall_cmds
=
19857 shlibpath_overrides_runpath
=unknown
19859 dynamic_linker
="$host_os ld.so"
19860 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
19862 need_lib_prefix
=unknown
19863 hardcode_into_libs
=no
19865 # when you set need_version to no, make sure it does not cause -set_version
19866 # flags to be left without arguments
19867 need_version
=unknown
19872 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
19873 shlibpath_var
=LIBPATH
19875 # AIX 3 has no versioning support, so we append a major version to the name.
19876 soname_spec
='${libname}${release}${shared_ext}$major'
19883 hardcode_into_libs
=yes
19884 if test "$host_cpu" = ia64
; then
19885 # AIX 5 supports IA64
19886 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19887 shlibpath_var
=LD_LIBRARY_PATH
19889 # With GCC up to 2.95.x, collect2 would create an import file
19890 # for dependence libraries. The import file would start with
19891 # the line `#! .'. This would cause the generated library to
19892 # depend on `.', always an invalid library. This was fixed in
19893 # development snapshots of GCC prior to 3.0.
19895 aix4
| aix4.
[01] | aix4.
[01].
*)
19896 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19898 echo '#endif'; } | ${CC} -E - | grep yes > /dev
/null
; then
19901 can_build_shared
=no
19905 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19906 # soname into executable. Probably we can add versioning support to
19907 # collect2, so additional links can be useful in future.
19908 if test "$aix_use_runtimelinking" = yes; then
19909 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19910 # instead of lib<name>.a to let people know that these are not
19911 # typical AIX shared libraries.
19912 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19914 # We preserve .a as extension for shared libraries through AIX4.2
19915 # and later when we are not doing run time linking.
19916 library_names_spec
='${libname}${release}.a $libname.a'
19917 soname_spec
='${libname}${release}${shared_ext}$major'
19919 shlibpath_var
=LIBPATH
19924 library_names_spec
='$libname.ixlibrary $libname.a'
19925 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19926 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'
19930 library_names_spec
='${libname}${shared_ext}'
19931 dynamic_linker
="$host_os ld.so"
19932 shlibpath_var
=LIBRARY_PATH
19938 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19939 soname_spec
='${libname}${release}${shared_ext}$major'
19940 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
19941 shlibpath_var
=LD_LIBRARY_PATH
19942 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19943 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
19944 # the default ld.so.conf also contains /usr/contrib/lib and
19945 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19946 # libtool to hard-code these into programs
19949 cygwin
* | mingw
* | pw32
*)
19950 version_type
=windows
19955 case $GCC,$host_os in
19956 yes,cygwin
* | yes,mingw
* | yes,pw32
*)
19957 library_names_spec
='$libname.dll.a'
19958 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19959 postinstall_cmds
='base_file=`basename \${file}`~
19960 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19961 dldir=$destdir/`dirname \$dlpath`~
19962 test -d \$dldir || mkdir -p \$dldir~
19963 $install_prog $dir/$dlname \$dldir/$dlname~
19964 chmod a+x \$dldir/$dlname'
19965 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19966 dlpath=$dir/\$dldll~
19968 shlibpath_overrides_runpath
=yes
19972 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19973 soname_spec
='`echo ${libname} | sed -e 's
/^lib
/cyg
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
19974 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
19977 # MinGW DLLs use traditional 'lib' prefix
19978 soname_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
19979 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19980 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev
/null
; then
19981 # It is most probably a Windows format PATH printed by
19982 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19983 # path with ; separators, and with drive letters. We can handle the
19984 # drive letters (cygwin fileutils understands them), so leave them,
19985 # especially as we might pass files found there to a mingw objdump,
19986 # which wouldn't understand a cygwinified path. Ahh.
19987 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19989 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19993 # pw32 DLLs use 'pw' prefix rather than 'lib'
19994 library_names_spec
='`echo ${libname} | sed -e 's
/^lib
/pw
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
20000 library_names_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext} $libname.lib'
20003 dynamic_linker
='Win32 ld.exe'
20004 # FIXME: first we should search . and the directory the executable is in
20008 darwin
* | rhapsody
*)
20009 dynamic_linker
="$host_os dyld"
20010 version_type
=darwin
20013 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20014 soname_spec
='${libname}${release}${major}$shared_ext'
20015 shlibpath_overrides_runpath
=yes
20016 shlibpath_var
=DYLD_LIBRARY_PATH
20017 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20019 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20026 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20027 soname_spec
='${libname}${release}${shared_ext}$major'
20028 shlibpath_var
=LD_LIBRARY_PATH
20035 freebsd
* | dragonfly
*)
20036 # DragonFly does not have aout. When/if they implement a new
20037 # versioning mechanism, adjust this.
20038 if test -x /usr
/bin
/objformat
; then
20039 objformat
=`/usr/bin/objformat`
20042 freebsd
[123]*) objformat
=aout
;;
20043 *) objformat
=elf
;;
20046 version_type
=freebsd
-$objformat
20047 case $version_type in
20049 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20054 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20058 shlibpath_var
=LD_LIBRARY_PATH
20061 shlibpath_overrides_runpath
=yes
20063 freebsd3.
[01]* | freebsdelf3.
[01]*)
20064 shlibpath_overrides_runpath
=yes
20065 hardcode_into_libs
=yes
20067 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20068 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20069 shlibpath_overrides_runpath
=no
20070 hardcode_into_libs
=yes
20072 *) # from 4.6 on, and DragonFly
20073 shlibpath_overrides_runpath
=yes
20074 hardcode_into_libs
=yes
20083 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20084 soname_spec
='${libname}${release}${shared_ext}$major'
20085 shlibpath_var
=LD_LIBRARY_PATH
20086 hardcode_into_libs
=yes
20089 hpux9
* | hpux10
* | hpux11
*)
20090 # Give a soname corresponding to the major version so that dld.sl refuses to
20091 # link against other versions.
20098 hardcode_into_libs
=yes
20099 dynamic_linker
="$host_os dld.so"
20100 shlibpath_var
=LD_LIBRARY_PATH
20101 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20102 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20103 soname_spec
='${libname}${release}${shared_ext}$major'
20104 if test "X$HPUX_IA64_MODE" = X32
; then
20105 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20107 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20109 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20113 hardcode_into_libs
=yes
20114 dynamic_linker
="$host_os dld.sl"
20115 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20116 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20117 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20118 soname_spec
='${libname}${release}${shared_ext}$major'
20119 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20120 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20124 dynamic_linker
="$host_os dld.sl"
20125 shlibpath_var
=SHLIB_PATH
20126 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20127 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20128 soname_spec
='${libname}${release}${shared_ext}$major'
20131 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20132 postinstall_cmds
='chmod 555 $lib'
20139 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20140 soname_spec
='${libname}${release}${shared_ext}$major'
20141 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20142 shlibpath_var
=LD_LIBRARY_PATH
20143 shlibpath_overrides_runpath
=no
20144 hardcode_into_libs
=yes
20147 irix5
* | irix6
* | nonstopux
*)
20149 nonstopux
*) version_type
=nonstopux
;;
20151 if test "$lt_cv_prog_gnu_ld" = yes; then
20159 soname_spec
='${libname}${release}${shared_ext}$major'
20160 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20162 irix5
* | nonstopux
*)
20163 libsuff
= shlibsuff
=
20166 case $LD in # libtool.m4 will add one of these switches to LD
20167 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20168 libsuff
= shlibsuff
= libmagic
=32-bit;;
20169 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20170 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20171 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20172 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20173 *) libsuff
= shlibsuff
= libmagic
=never
-match;;
20177 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20178 shlibpath_overrides_runpath
=no
20179 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20180 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20181 hardcode_into_libs
=yes
20184 # No shared lib support for Linux oldld, aout, or coff.
20185 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20189 # This must be Linux ELF.
20190 linux
* | k
*bsd
*-gnu)
20194 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20195 soname_spec
='${libname}${release}${shared_ext}$major'
20196 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20197 shlibpath_var
=LD_LIBRARY_PATH
20198 shlibpath_overrides_runpath
=no
20199 # This implies no fast_install, which is unacceptable.
20200 # Some rework will be needed to allow for fast_install
20201 # before this can be enabled.
20202 hardcode_into_libs
=yes
20204 # Append ld.so.conf contents to the search path
20205 if test -f /etc
/ld.so.conf
; then
20206 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20207 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20210 # We used to test for /lib/ld.so.1 and disable shared libraries on
20211 # powerpc, because MkLinux only supported shared libraries with the
20212 # GNU dynamic linker. Since this was broken with cross compilers,
20213 # most powerpc-linux boxes support dynamic linking these days and
20214 # people can always --disable-shared, the test was removed, and we
20215 # assume the GNU/Linux dynamic linker is in use.
20216 dynamic_linker
='GNU/Linux ld.so'
20223 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20224 soname_spec
='${libname}${release}${shared_ext}$major'
20225 shlibpath_var
=LD_LIBRARY_PATH
20226 shlibpath_overrides_runpath
=no
20227 hardcode_into_libs
=yes
20228 dynamic_linker
='NetBSD ld.elf_so'
20235 if echo __ELF__
| $CC -E - | grep __ELF__
>/dev
/null
; then
20236 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20237 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20238 dynamic_linker
='NetBSD (a.out) ld.so'
20240 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20241 soname_spec
='${libname}${release}${shared_ext}$major'
20242 dynamic_linker
='NetBSD ld.elf_so'
20244 shlibpath_var
=LD_LIBRARY_PATH
20245 shlibpath_overrides_runpath
=yes
20246 hardcode_into_libs
=yes
20251 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20252 shlibpath_var
=LD_LIBRARY_PATH
20253 shlibpath_overrides_runpath
=yes
20260 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20261 soname_spec
='${libname}${release}${shared_ext}$major'
20262 shlibpath_var
=LD_LIBRARY_PATH
20263 shlibpath_overrides_runpath
=yes
20268 sys_lib_dlsearch_path_spec
="/usr/lib"
20270 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20272 openbsd3.3
| openbsd3.3.
*) need_version
=yes ;;
20273 *) need_version
=no
;;
20275 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20276 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20277 shlibpath_var
=LD_LIBRARY_PATH
20278 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20280 openbsd2.
[89] | openbsd2.
[89].
*)
20281 shlibpath_overrides_runpath
=no
20284 shlibpath_overrides_runpath
=yes
20288 shlibpath_overrides_runpath
=yes
20293 libname_spec
='$name'
20296 library_names_spec
='$libname${shared_ext} $libname.a'
20297 dynamic_linker
='OS/2 ld.exe'
20298 shlibpath_var
=LIBPATH
20301 osf3
* | osf4
* | osf5
*)
20305 soname_spec
='${libname}${release}${shared_ext}$major'
20306 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20307 shlibpath_var
=LD_LIBRARY_PATH
20308 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20309 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20320 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20321 soname_spec
='${libname}${release}${shared_ext}$major'
20322 shlibpath_var
=LD_LIBRARY_PATH
20323 shlibpath_overrides_runpath
=yes
20324 hardcode_into_libs
=yes
20325 # ldd complains unless libraries are executable
20326 postinstall_cmds
='chmod +x $lib'
20331 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20332 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20333 shlibpath_var
=LD_LIBRARY_PATH
20334 shlibpath_overrides_runpath
=yes
20335 if test "$with_gnu_ld" = yes; then
20343 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20344 soname_spec
='${libname}${release}${shared_ext}$major'
20345 shlibpath_var
=LD_LIBRARY_PATH
20346 case $host_vendor in
20348 shlibpath_overrides_runpath
=no
20350 export_dynamic_flag_spec
='${wl}-Blargedynsym'
20351 runpath_var
=LD_RUN_PATH
20359 shlibpath_overrides_runpath
=no
20360 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20366 if test -d /usr
/nec
;then
20368 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20369 soname_spec
='$libname${shared_ext}.$major'
20370 shlibpath_var
=LD_LIBRARY_PATH
20374 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20375 version_type
=freebsd
-elf
20378 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20379 soname_spec
='${libname}${release}${shared_ext}$major'
20380 shlibpath_var
=LD_LIBRARY_PATH
20381 hardcode_into_libs
=yes
20382 if test "$with_gnu_ld" = yes; then
20383 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20384 shlibpath_overrides_runpath
=no
20386 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20387 shlibpath_overrides_runpath
=yes
20390 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20394 sys_lib_dlsearch_path_spec
='/usr/lib'
20399 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20400 soname_spec
='${libname}${release}${shared_ext}$major'
20401 shlibpath_var
=LD_LIBRARY_PATH
20408 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20409 $as_echo "$dynamic_linker" >&6; }
20410 test "$dynamic_linker" = no
&& can_build_shared
=no
20412 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20413 $as_echo_n "(cached) " >&6
20415 lt_cv_sys_lib_search_path_spec
="$sys_lib_search_path_spec"
20418 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
20419 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20420 $as_echo_n "(cached) " >&6
20422 lt_cv_sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec"
20425 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
20427 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
20428 if test "$GCC" = yes; then
20429 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20432 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20433 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20434 hardcode_action_GCJ
=
20435 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20436 test -n "$runpath_var_GCJ" || \
20437 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20439 # We can hardcode non-existant directories.
20440 if test "$hardcode_direct_GCJ" != no
&&
20441 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20442 # have to relink, otherwise we might link with an installed library
20443 # when we should be linking with a yet-to-be-installed one
20444 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20445 test "$hardcode_minus_L_GCJ" != no
; then
20446 # Linking always hardcodes the temporary library directory.
20447 hardcode_action_GCJ
=relink
20449 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20450 hardcode_action_GCJ
=immediate
20453 # We cannot hardcode anything, or else we can only hardcode existing
20455 hardcode_action_GCJ
=unsupported
20457 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20458 $as_echo "$hardcode_action_GCJ" >&6; }
20460 if test "$hardcode_action_GCJ" = relink
; then
20461 # Fast installation is not supported
20462 enable_fast_install
=no
20463 elif test "$shlibpath_overrides_runpath" = yes ||
20464 test "$enable_shared" = no
; then
20465 # Fast installation is not necessary
20466 enable_fast_install
=needless
20470 # The else clause should only fire when bootstrapping the
20471 # libtool distribution, otherwise you forgot to ship ltmain.sh
20472 # with your package, and you will get complaints that there are
20473 # no rules to generate ltmain.sh.
20474 if test -f "$ltmain"; then
20475 # See if we are running on zsh, and set the options which allow our commands through
20476 # without removal of \ escapes.
20477 if test -n "${ZSH_VERSION+set}" ; then
20478 setopt NO_GLOB_SUBST
20480 # Now quote all the things that may contain metacharacters while being
20481 # careful not to overquote the AC_SUBSTed values. We take copies of the
20482 # variables and quote the copies for generation of the libtool script.
20483 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20485 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20486 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20487 deplibs_check_method reload_flag reload_cmds need_locks \
20488 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20489 lt_cv_sys_global_symbol_to_c_name_address \
20490 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20491 old_postinstall_cmds old_postuninstall_cmds \
20495 lt_prog_compiler_wl_GCJ \
20496 lt_prog_compiler_pic_GCJ \
20497 lt_prog_compiler_static_GCJ \
20498 lt_prog_compiler_no_builtin_flag_GCJ \
20499 export_dynamic_flag_spec_GCJ \
20500 thread_safe_flag_spec_GCJ \
20501 whole_archive_flag_spec_GCJ \
20502 enable_shared_with_static_runtimes_GCJ \
20503 old_archive_cmds_GCJ \
20504 old_archive_from_new_cmds_GCJ \
20505 predep_objects_GCJ \
20506 postdep_objects_GCJ \
20509 compiler_lib_search_path_GCJ \
20510 compiler_lib_search_dirs_GCJ \
20512 archive_expsym_cmds_GCJ \
20513 postinstall_cmds_GCJ \
20514 postuninstall_cmds_GCJ \
20515 old_archive_from_expsyms_cmds_GCJ \
20516 allow_undefined_flag_GCJ \
20517 no_undefined_flag_GCJ \
20518 export_symbols_cmds_GCJ \
20519 hardcode_libdir_flag_spec_GCJ \
20520 hardcode_libdir_flag_spec_ld_GCJ \
20521 hardcode_libdir_separator_GCJ \
20522 hardcode_automatic_GCJ \
20524 module_expsym_cmds_GCJ \
20525 lt_cv_prog_compiler_c_o_GCJ \
20526 fix_srcfile_path_GCJ \
20527 exclude_expsyms_GCJ \
20528 include_expsyms_GCJ
; do
20531 old_archive_cmds_GCJ
| \
20532 old_archive_from_new_cmds_GCJ
| \
20533 archive_cmds_GCJ
| \
20534 archive_expsym_cmds_GCJ
| \
20535 module_cmds_GCJ
| \
20536 module_expsym_cmds_GCJ
| \
20537 old_archive_from_expsyms_cmds_GCJ
| \
20538 export_symbols_cmds_GCJ
| \
20539 extract_expsyms_cmds
| reload_cmds
| finish_cmds
| \
20540 postinstall_cmds
| postuninstall_cmds
| \
20541 old_postinstall_cmds
| old_postuninstall_cmds
| \
20542 sys_lib_search_path_spec
| sys_lib_dlsearch_path_spec
)
20543 # Double-quote double-evaled strings.
20544 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20547 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20553 *'\$0 --fallback-echo"')
20554 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20560 cat <<__EOF__ >> "$cfgfile"
20561 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20563 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20565 # Shell to use when invoking shell scripts.
20568 # Whether or not to build shared libraries.
20569 build_libtool_libs=$enable_shared
20571 # Whether or not to build static libraries.
20572 build_old_libs=$enable_static
20574 # Whether or not to add -lc for building shared libraries.
20575 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20577 # Whether or not to disallow shared libs when runtime libs are static
20578 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20580 # Whether or not to optimize for fast installation.
20581 fast_install=$enable_fast_install
20584 host_alias=$host_alias
20588 # The build system.
20589 build_alias=$build_alias
20593 # An echo program that does not interpret backslashes.
20598 AR_FLAGS=$lt_AR_FLAGS
20603 # LTCC compiler flags.
20604 LTCFLAGS=$lt_LTCFLAGS
20606 # A language-specific compiler.
20607 CC=$lt_compiler_GCJ
20609 # Is the compiler the GNU C compiler?
20615 # The linker used to build libraries.
20618 # Whether we need hard or soft links.
20621 # A BSD-compatible nm program.
20624 # A symbol stripping program
20627 # Used to examine libraries when file_magic_cmd begins "file"
20628 MAGIC_CMD=$MAGIC_CMD
20630 # Used on cygwin: DLL creation program.
20633 # Used on cygwin: object dumper.
20636 # Used on cygwin: assembler.
20639 # The name of the directory that contains temporary libtool files.
20642 # How to create reloadable object files.
20643 reload_flag=$lt_reload_flag
20644 reload_cmds=$lt_reload_cmds
20646 # How to pass a linker flag through the compiler.
20647 wl=$lt_lt_prog_compiler_wl_GCJ
20649 # Object file suffix (normally "o").
20650 objext="$ac_objext"
20652 # Old archive suffix (normally "a").
20655 # Shared library suffix (normally ".so").
20656 shrext_cmds='$shrext_cmds'
20658 # Executable file suffix (normally "").
20661 # Additional compiler flags for building library objects.
20662 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20665 # What is the maximum length of a command?
20666 max_cmd_len=$lt_cv_sys_max_cmd_len
20668 # Does compiler simultaneously support -c and -o options?
20669 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20671 # Must we lock files when doing compilation?
20672 need_locks=$lt_need_locks
20674 # Do we need the lib prefix for modules?
20675 need_lib_prefix=$need_lib_prefix
20677 # Do we need a version for libraries?
20678 need_version=$need_version
20680 # Whether dlopen is supported.
20681 dlopen_support=$enable_dlopen
20683 # Whether dlopen of programs is supported.
20684 dlopen_self=$enable_dlopen_self
20686 # Whether dlopen of statically linked programs is supported.
20687 dlopen_self_static=$enable_dlopen_self_static
20689 # Compiler flag to prevent dynamic linking.
20690 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20692 # Compiler flag to turn off builtin functions.
20693 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20695 # Compiler flag to allow reflexive dlopens.
20696 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20698 # Compiler flag to generate shared objects directly from archives.
20699 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20701 # Compiler flag to generate thread-safe objects.
20702 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20704 # Library versioning type.
20705 version_type=$version_type
20707 # Format of library name prefix.
20708 libname_spec=$lt_libname_spec
20710 # List of archive names. First name is the real one, the rest are links.
20711 # The last name is the one that the linker finds with -lNAME.
20712 library_names_spec=$lt_library_names_spec
20714 # The coded name of the library, if different from the real name.
20715 soname_spec=$lt_soname_spec
20717 # Commands used to build and install an old-style archive.
20719 old_archive_cmds=$lt_old_archive_cmds_GCJ
20720 old_postinstall_cmds=$lt_old_postinstall_cmds
20721 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20723 # Create an old-style archive from a shared archive.
20724 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20726 # Create a temporary old-style archive to link instead of a shared archive.
20727 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20729 # Commands used to build and install a shared archive.
20730 archive_cmds=$lt_archive_cmds_GCJ
20731 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20732 postinstall_cmds=$lt_postinstall_cmds
20733 postuninstall_cmds=$lt_postuninstall_cmds
20735 # Commands used to build a loadable module (assumed same as above if empty)
20736 module_cmds=$lt_module_cmds_GCJ
20737 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20739 # Commands to strip libraries.
20740 old_striplib=$lt_old_striplib
20741 striplib=$lt_striplib
20743 # Dependencies to place before the objects being linked to create a
20745 predep_objects=$lt_predep_objects_GCJ
20747 # Dependencies to place after the objects being linked to create a
20749 postdep_objects=$lt_postdep_objects_GCJ
20751 # Dependencies to place before the objects being linked to create a
20753 predeps=$lt_predeps_GCJ
20755 # Dependencies to place after the objects being linked to create a
20757 postdeps=$lt_postdeps_GCJ
20759 # The directories searched by this compiler when creating a shared
20761 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
20763 # The library search path used internally by the compiler when linking
20764 # a shared library.
20765 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20767 # Method to check whether dependent libraries are shared objects.
20768 deplibs_check_method=$lt_deplibs_check_method
20770 # Command to use when deplibs_check_method == file_magic.
20771 file_magic_cmd=$lt_file_magic_cmd
20773 # Flag that allows shared libraries with undefined symbols to be built.
20774 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20776 # Flag that forces no undefined symbols.
20777 no_undefined_flag=$lt_no_undefined_flag_GCJ
20779 # Commands used to finish a libtool library installation in a directory.
20780 finish_cmds=$lt_finish_cmds
20782 # Same as above, but a single script fragment to be evaled but not shown.
20783 finish_eval=$lt_finish_eval
20785 # Take the output of nm and produce a listing of raw symbols and C names.
20786 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20788 # Transform the output of nm in a proper C declaration
20789 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20791 # Transform the output of nm in a C name address pair
20792 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20794 # This is the shared library runtime path variable.
20795 runpath_var=$runpath_var
20797 # This is the shared library path variable.
20798 shlibpath_var=$shlibpath_var
20800 # Is shlibpath searched before the hard-coded library search path?
20801 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20803 # How to hardcode a shared library path into an executable.
20804 hardcode_action=$hardcode_action_GCJ
20806 # Whether we should hardcode library paths into libraries.
20807 hardcode_into_libs=$hardcode_into_libs
20809 # Flag to hardcode \$libdir into a binary during linking.
20810 # This must work even if \$libdir does not exist.
20811 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20813 # If ld is used when linking, flag to hardcode \$libdir into
20814 # a binary during linking. This must work even if \$libdir does
20816 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20818 # Whether we need a single -rpath flag with a separated argument.
20819 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20821 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20822 # resulting binary.
20823 hardcode_direct=$hardcode_direct_GCJ
20825 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20826 # resulting binary.
20827 hardcode_minus_L=$hardcode_minus_L_GCJ
20829 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20830 # the resulting binary.
20831 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20833 # Set to yes if building a shared library automatically hardcodes DIR into the library
20834 # and all subsequent libraries and executables linked against it.
20835 hardcode_automatic=$hardcode_automatic_GCJ
20837 # Variables whose values should be saved in libtool wrapper scripts and
20838 # restored at relink time.
20839 variables_saved_for_relink="$variables_saved_for_relink"
20841 # Whether libtool must link a program against all its dependency libraries.
20842 link_all_deplibs=$link_all_deplibs_GCJ
20844 # Compile-time system search path for libraries
20845 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20847 # Run-time system search path for libraries
20848 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20850 # Fix the shell variable \$srcfile for the compiler.
20851 fix_srcfile_path=$lt_fix_srcfile_path
20853 # Set to yes if exported symbols are required.
20854 always_export_symbols=$always_export_symbols_GCJ
20856 # The commands to list exported symbols.
20857 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20859 # The commands to extract the exported symbol list from a shared archive.
20860 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20862 # Symbols that should not be listed in the preloaded symbols.
20863 exclude_expsyms=$lt_exclude_expsyms_GCJ
20865 # Symbols that must always be exported.
20866 include_expsyms=$lt_include_expsyms_GCJ
20868 # ### END LIBTOOL TAG CONFIG: $tagname
20874 # If there is no Makefile yet, we rely on a make rule to execute
20875 # `config.status --recheck' to rerun these tests and create the
20876 # libtool script then.
20877 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20878 if test -f "$ltmain_in"; then
20879 test -f Makefile
&& make "$ltmain"
20885 ac_cpp
='$CPP $CPPFLAGS'
20886 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20887 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20888 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20900 # Source file extension for RC test sources.
20903 # Object file extension for compiled RC test sources.
20907 # Code to be used in simple compile tests
20908 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20910 # Code to be used in simple link tests
20911 lt_simple_link_test_code
="$lt_simple_compile_test_code"
20913 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20915 # If no C compiler was specified, use CC.
20918 # If no C compiler flags were specified, use CFLAGS.
20919 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
20921 # Allow CC to be a program name with arguments.
20925 # save warnings/boilerplate of simple test code
20926 ac_outfile
=conftest.
$ac_objext
20927 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
20928 eval "$ac_compile" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
20929 _lt_compiler_boilerplate
=`cat conftest.err`
20932 ac_outfile
=conftest.
$ac_objext
20933 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
20934 eval "$ac_link" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
20935 _lt_linker_boilerplate
=`cat conftest.err`
20939 # Allow CC to be a program name with arguments.
20944 for cc_temp
in $compiler""; do
20946 compile
| *[\\/]compile
| ccache
| *[\\/]ccache
) ;;
20947 distcc
| *[\\/]distcc
| purify
| *[\\/]purify
) ;;
20952 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20954 lt_cv_prog_compiler_c_o_RC
=yes
20956 # The else clause should only fire when bootstrapping the
20957 # libtool distribution, otherwise you forgot to ship ltmain.sh
20958 # with your package, and you will get complaints that there are
20959 # no rules to generate ltmain.sh.
20960 if test -f "$ltmain"; then
20961 # See if we are running on zsh, and set the options which allow our commands through
20962 # without removal of \ escapes.
20963 if test -n "${ZSH_VERSION+set}" ; then
20964 setopt NO_GLOB_SUBST
20966 # Now quote all the things that may contain metacharacters while being
20967 # careful not to overquote the AC_SUBSTed values. We take copies of the
20968 # variables and quote the copies for generation of the libtool script.
20969 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20971 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20972 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20973 deplibs_check_method reload_flag reload_cmds need_locks \
20974 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20975 lt_cv_sys_global_symbol_to_c_name_address \
20976 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20977 old_postinstall_cmds old_postuninstall_cmds \
20981 lt_prog_compiler_wl_RC \
20982 lt_prog_compiler_pic_RC \
20983 lt_prog_compiler_static_RC \
20984 lt_prog_compiler_no_builtin_flag_RC \
20985 export_dynamic_flag_spec_RC \
20986 thread_safe_flag_spec_RC \
20987 whole_archive_flag_spec_RC \
20988 enable_shared_with_static_runtimes_RC \
20989 old_archive_cmds_RC \
20990 old_archive_from_new_cmds_RC \
20991 predep_objects_RC \
20992 postdep_objects_RC \
20995 compiler_lib_search_path_RC \
20996 compiler_lib_search_dirs_RC \
20998 archive_expsym_cmds_RC \
20999 postinstall_cmds_RC \
21000 postuninstall_cmds_RC \
21001 old_archive_from_expsyms_cmds_RC \
21002 allow_undefined_flag_RC \
21003 no_undefined_flag_RC \
21004 export_symbols_cmds_RC \
21005 hardcode_libdir_flag_spec_RC \
21006 hardcode_libdir_flag_spec_ld_RC \
21007 hardcode_libdir_separator_RC \
21008 hardcode_automatic_RC \
21010 module_expsym_cmds_RC \
21011 lt_cv_prog_compiler_c_o_RC \
21012 fix_srcfile_path_RC \
21013 exclude_expsyms_RC \
21014 include_expsyms_RC
; do
21017 old_archive_cmds_RC
| \
21018 old_archive_from_new_cmds_RC
| \
21019 archive_cmds_RC
| \
21020 archive_expsym_cmds_RC
| \
21022 module_expsym_cmds_RC
| \
21023 old_archive_from_expsyms_cmds_RC
| \
21024 export_symbols_cmds_RC
| \
21025 extract_expsyms_cmds
| reload_cmds
| finish_cmds
| \
21026 postinstall_cmds
| postuninstall_cmds
| \
21027 old_postinstall_cmds
| old_postuninstall_cmds
| \
21028 sys_lib_search_path_spec
| sys_lib_dlsearch_path_spec
)
21029 # Double-quote double-evaled strings.
21030 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21033 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21039 *'\$0 --fallback-echo"')
21040 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21046 cat <<__EOF__ >> "$cfgfile"
21047 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21049 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21051 # Shell to use when invoking shell scripts.
21054 # Whether or not to build shared libraries.
21055 build_libtool_libs=$enable_shared
21057 # Whether or not to build static libraries.
21058 build_old_libs=$enable_static
21060 # Whether or not to add -lc for building shared libraries.
21061 build_libtool_need_lc=$archive_cmds_need_lc_RC
21063 # Whether or not to disallow shared libs when runtime libs are static
21064 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21066 # Whether or not to optimize for fast installation.
21067 fast_install=$enable_fast_install
21070 host_alias=$host_alias
21074 # The build system.
21075 build_alias=$build_alias
21079 # An echo program that does not interpret backslashes.
21084 AR_FLAGS=$lt_AR_FLAGS
21089 # LTCC compiler flags.
21090 LTCFLAGS=$lt_LTCFLAGS
21092 # A language-specific compiler.
21095 # Is the compiler the GNU C compiler?
21101 # The linker used to build libraries.
21104 # Whether we need hard or soft links.
21107 # A BSD-compatible nm program.
21110 # A symbol stripping program
21113 # Used to examine libraries when file_magic_cmd begins "file"
21114 MAGIC_CMD=$MAGIC_CMD
21116 # Used on cygwin: DLL creation program.
21119 # Used on cygwin: object dumper.
21122 # Used on cygwin: assembler.
21125 # The name of the directory that contains temporary libtool files.
21128 # How to create reloadable object files.
21129 reload_flag=$lt_reload_flag
21130 reload_cmds=$lt_reload_cmds
21132 # How to pass a linker flag through the compiler.
21133 wl=$lt_lt_prog_compiler_wl_RC
21135 # Object file suffix (normally "o").
21136 objext="$ac_objext"
21138 # Old archive suffix (normally "a").
21141 # Shared library suffix (normally ".so").
21142 shrext_cmds='$shrext_cmds'
21144 # Executable file suffix (normally "").
21147 # Additional compiler flags for building library objects.
21148 pic_flag=$lt_lt_prog_compiler_pic_RC
21151 # What is the maximum length of a command?
21152 max_cmd_len=$lt_cv_sys_max_cmd_len
21154 # Does compiler simultaneously support -c and -o options?
21155 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21157 # Must we lock files when doing compilation?
21158 need_locks=$lt_need_locks
21160 # Do we need the lib prefix for modules?
21161 need_lib_prefix=$need_lib_prefix
21163 # Do we need a version for libraries?
21164 need_version=$need_version
21166 # Whether dlopen is supported.
21167 dlopen_support=$enable_dlopen
21169 # Whether dlopen of programs is supported.
21170 dlopen_self=$enable_dlopen_self
21172 # Whether dlopen of statically linked programs is supported.
21173 dlopen_self_static=$enable_dlopen_self_static
21175 # Compiler flag to prevent dynamic linking.
21176 link_static_flag=$lt_lt_prog_compiler_static_RC
21178 # Compiler flag to turn off builtin functions.
21179 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21181 # Compiler flag to allow reflexive dlopens.
21182 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21184 # Compiler flag to generate shared objects directly from archives.
21185 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21187 # Compiler flag to generate thread-safe objects.
21188 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21190 # Library versioning type.
21191 version_type=$version_type
21193 # Format of library name prefix.
21194 libname_spec=$lt_libname_spec
21196 # List of archive names. First name is the real one, the rest are links.
21197 # The last name is the one that the linker finds with -lNAME.
21198 library_names_spec=$lt_library_names_spec
21200 # The coded name of the library, if different from the real name.
21201 soname_spec=$lt_soname_spec
21203 # Commands used to build and install an old-style archive.
21205 old_archive_cmds=$lt_old_archive_cmds_RC
21206 old_postinstall_cmds=$lt_old_postinstall_cmds
21207 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21209 # Create an old-style archive from a shared archive.
21210 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21212 # Create a temporary old-style archive to link instead of a shared archive.
21213 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21215 # Commands used to build and install a shared archive.
21216 archive_cmds=$lt_archive_cmds_RC
21217 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21218 postinstall_cmds=$lt_postinstall_cmds
21219 postuninstall_cmds=$lt_postuninstall_cmds
21221 # Commands used to build a loadable module (assumed same as above if empty)
21222 module_cmds=$lt_module_cmds_RC
21223 module_expsym_cmds=$lt_module_expsym_cmds_RC
21225 # Commands to strip libraries.
21226 old_striplib=$lt_old_striplib
21227 striplib=$lt_striplib
21229 # Dependencies to place before the objects being linked to create a
21231 predep_objects=$lt_predep_objects_RC
21233 # Dependencies to place after the objects being linked to create a
21235 postdep_objects=$lt_postdep_objects_RC
21237 # Dependencies to place before the objects being linked to create a
21239 predeps=$lt_predeps_RC
21241 # Dependencies to place after the objects being linked to create a
21243 postdeps=$lt_postdeps_RC
21245 # The directories searched by this compiler when creating a shared
21247 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
21249 # The library search path used internally by the compiler when linking
21250 # a shared library.
21251 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21253 # Method to check whether dependent libraries are shared objects.
21254 deplibs_check_method=$lt_deplibs_check_method
21256 # Command to use when deplibs_check_method == file_magic.
21257 file_magic_cmd=$lt_file_magic_cmd
21259 # Flag that allows shared libraries with undefined symbols to be built.
21260 allow_undefined_flag=$lt_allow_undefined_flag_RC
21262 # Flag that forces no undefined symbols.
21263 no_undefined_flag=$lt_no_undefined_flag_RC
21265 # Commands used to finish a libtool library installation in a directory.
21266 finish_cmds=$lt_finish_cmds
21268 # Same as above, but a single script fragment to be evaled but not shown.
21269 finish_eval=$lt_finish_eval
21271 # Take the output of nm and produce a listing of raw symbols and C names.
21272 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21274 # Transform the output of nm in a proper C declaration
21275 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21277 # Transform the output of nm in a C name address pair
21278 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21280 # This is the shared library runtime path variable.
21281 runpath_var=$runpath_var
21283 # This is the shared library path variable.
21284 shlibpath_var=$shlibpath_var
21286 # Is shlibpath searched before the hard-coded library search path?
21287 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21289 # How to hardcode a shared library path into an executable.
21290 hardcode_action=$hardcode_action_RC
21292 # Whether we should hardcode library paths into libraries.
21293 hardcode_into_libs=$hardcode_into_libs
21295 # Flag to hardcode \$libdir into a binary during linking.
21296 # This must work even if \$libdir does not exist.
21297 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21299 # If ld is used when linking, flag to hardcode \$libdir into
21300 # a binary during linking. This must work even if \$libdir does
21302 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21304 # Whether we need a single -rpath flag with a separated argument.
21305 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21307 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21308 # resulting binary.
21309 hardcode_direct=$hardcode_direct_RC
21311 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21312 # resulting binary.
21313 hardcode_minus_L=$hardcode_minus_L_RC
21315 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21316 # the resulting binary.
21317 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21319 # Set to yes if building a shared library automatically hardcodes DIR into the library
21320 # and all subsequent libraries and executables linked against it.
21321 hardcode_automatic=$hardcode_automatic_RC
21323 # Variables whose values should be saved in libtool wrapper scripts and
21324 # restored at relink time.
21325 variables_saved_for_relink="$variables_saved_for_relink"
21327 # Whether libtool must link a program against all its dependency libraries.
21328 link_all_deplibs=$link_all_deplibs_RC
21330 # Compile-time system search path for libraries
21331 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21333 # Run-time system search path for libraries
21334 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21336 # Fix the shell variable \$srcfile for the compiler.
21337 fix_srcfile_path=$lt_fix_srcfile_path
21339 # Set to yes if exported symbols are required.
21340 always_export_symbols=$always_export_symbols_RC
21342 # The commands to list exported symbols.
21343 export_symbols_cmds=$lt_export_symbols_cmds_RC
21345 # The commands to extract the exported symbol list from a shared archive.
21346 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21348 # Symbols that should not be listed in the preloaded symbols.
21349 exclude_expsyms=$lt_exclude_expsyms_RC
21351 # Symbols that must always be exported.
21352 include_expsyms=$lt_include_expsyms_RC
21354 # ### END LIBTOOL TAG CONFIG: $tagname
21360 # If there is no Makefile yet, we rely on a make rule to execute
21361 # `config.status --recheck' to rerun these tests and create the
21362 # libtool script then.
21363 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21364 if test -f "$ltmain_in"; then
21365 test -f Makefile
&& make "$ltmain"
21371 ac_cpp
='$CPP $CPPFLAGS'
21372 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21373 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21374 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21381 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21382 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21383 { (exit 1); exit 1; }; }
21387 # Append the new tag name to the list of available tags.
21388 if test -n "$tagname" ; then
21389 available_tags
="$available_tags $tagname"
21395 # Now substitute the updated list of available tags.
21396 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21397 mv "${ofile}T" "$ofile"
21401 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21402 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21403 { (exit 1); exit 1; }; }
21409 # This can be used to rebuild libtool when needed
21410 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
21412 # Always use our own libtool.
21413 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
21415 # Prevent multiple expansion
21437 LIBTOOL
="$LIBTOOL --silent"
21442 cat >>confdefs.h
<<_ACEOF
21447 cat >>confdefs.h
<<_ACEOF
21454 cat >>confdefs.h
<<_ACEOF
21459 cat >>confdefs.h
<<_ACEOF
21463 if test "${ac_cv_header_windows_h+set}" = set; then
21464 { $as_echo "$as_me:$LINENO: checking for windows.h" >&5
21465 $as_echo_n "checking for windows.h... " >&6; }
21466 if test "${ac_cv_header_windows_h+set}" = set; then
21467 $as_echo_n "(cached) " >&6
21469 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21470 $as_echo "$ac_cv_header_windows_h" >&6; }
21472 # Is the header compilable?
21473 { $as_echo "$as_me:$LINENO: checking windows.h usability" >&5
21474 $as_echo_n "checking windows.h usability... " >&6; }
21475 cat >conftest.
$ac_ext <<_ACEOF
21478 cat confdefs.h
>>conftest.
$ac_ext
21479 cat >>conftest.
$ac_ext <<_ACEOF
21480 /* end confdefs.h. */
21481 $ac_includes_default
21482 #include <windows.h>
21484 rm -f conftest.
$ac_objext
21485 if { (ac_try
="$ac_compile"
21486 case "(($ac_try" in
21487 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
21488 *) ac_try_echo=$ac_try;;
21490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21491 $as_echo "$ac_try_echo") >&5
21492 (eval "$ac_compile") 2>conftest.er1
21494 grep -v '^ *+' conftest.er1 >conftest.err
21496 cat conftest.err >&5
21497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); } && {
21499 test -z "$ac_c_werror_flag" ||
21500 test ! -s conftest.err
21501 } && test -s conftest.$ac_objext; then
21502 ac_header_compiler=yes
21504 $as_echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21507 ac_header_compiler=no
21510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21511 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21512 $as_echo "$ac_header_compiler" >&6; }
21514 # Is the header present?
21515 { $as_echo "$as_me:$LINENO: checking windows.h presence" >&5
21516 $as_echo_n "checking windows.h presence... " >&6; }
21517 cat >conftest.$ac_ext <<_ACEOF
21520 cat confdefs.h >>conftest.$ac_ext
21521 cat >>conftest.$ac_ext <<_ACEOF
21522 /* end confdefs.h. */
21523 #include <windows.h>
21525 if { (ac_try="$ac_cpp conftest.$ac_ext"
21526 case "(($ac_try" in
21527 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
21528 *) ac_try_echo
=$ac_try;;
21530 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21531 $as_echo "$ac_try_echo") >&5
21532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21534 grep -v '^ *+' conftest.er1
>conftest.err
21536 cat conftest.err
>&5
21537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); } >/dev
/null
&& {
21539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21540 test ! -s conftest.err
21542 ac_header_preproc
=yes
21544 $as_echo "$as_me: failed program was:" >&5
21545 sed 's/^/| /' conftest.
$ac_ext >&5
21547 ac_header_preproc
=no
21550 rm -f conftest.err conftest.
$ac_ext
21551 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21552 $as_echo "$ac_header_preproc" >&6; }
21554 # So? What about this header?
21555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21557 { $as_echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
21558 $as_echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21559 { $as_echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
21560 $as_echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
21561 ac_header_preproc
=yes
21564 { $as_echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
21565 $as_echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
21566 { $as_echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
21567 $as_echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
21568 { $as_echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
21569 $as_echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
21570 { $as_echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
21571 $as_echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
21572 { $as_echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21573 $as_echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
21574 { $as_echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
21575 $as_echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
21579 { $as_echo "$as_me:$LINENO: checking for windows.h" >&5
21580 $as_echo_n "checking for windows.h... " >&6; }
21581 if test "${ac_cv_header_windows_h+set}" = set; then
21582 $as_echo_n "(cached) " >&6
21584 ac_cv_header_windows_h
=$ac_header_preproc
21586 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21587 $as_echo "$ac_cv_header_windows_h" >&6; }
21590 if test "x$ac_cv_header_windows_h" = x
""yes; then
21593 { { $as_echo "$as_me:$LINENO: error: ** MinGW and no windows.h. I give up." >&5
21594 $as_echo "$as_me: error: ** MinGW and no windows.h. I give up." >&2;}
21595 { (exit 1); exit 1; }; }
21599 if test "${ac_cv_header_winsock2_h+set}" = set; then
21600 { $as_echo "$as_me:$LINENO: checking for winsock2.h" >&5
21601 $as_echo_n "checking for winsock2.h... " >&6; }
21602 if test "${ac_cv_header_winsock2_h+set}" = set; then
21603 $as_echo_n "(cached) " >&6
21605 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
21606 $as_echo "$ac_cv_header_winsock2_h" >&6; }
21608 # Is the header compilable?
21609 { $as_echo "$as_me:$LINENO: checking winsock2.h usability" >&5
21610 $as_echo_n "checking winsock2.h usability... " >&6; }
21611 cat >conftest.
$ac_ext <<_ACEOF
21614 cat confdefs.h
>>conftest.
$ac_ext
21615 cat >>conftest.
$ac_ext <<_ACEOF
21616 /* end confdefs.h. */
21617 $ac_includes_default
21618 #include <winsock2.h>
21620 rm -f conftest.
$ac_objext
21621 if { (ac_try
="$ac_compile"
21622 case "(($ac_try" in
21623 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
21624 *) ac_try_echo=$ac_try;;
21626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21627 $as_echo "$ac_try_echo") >&5
21628 (eval "$ac_compile") 2>conftest.er1
21630 grep -v '^ *+' conftest.er1 >conftest.err
21632 cat conftest.err >&5
21633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); } && {
21635 test -z "$ac_c_werror_flag" ||
21636 test ! -s conftest.err
21637 } && test -s conftest.$ac_objext; then
21638 ac_header_compiler=yes
21640 $as_echo "$as_me: failed program was:" >&5
21641 sed 's/^/| /' conftest.$ac_ext >&5
21643 ac_header_compiler=no
21646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21647 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21648 $as_echo "$ac_header_compiler" >&6; }
21650 # Is the header present?
21651 { $as_echo "$as_me:$LINENO: checking winsock2.h presence" >&5
21652 $as_echo_n "checking winsock2.h presence... " >&6; }
21653 cat >conftest.$ac_ext <<_ACEOF
21656 cat confdefs.h >>conftest.$ac_ext
21657 cat >>conftest.$ac_ext <<_ACEOF
21658 /* end confdefs.h. */
21659 #include <winsock2.h>
21661 if { (ac_try="$ac_cpp conftest.$ac_ext"
21662 case "(($ac_try" in
21663 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
21664 *) ac_try_echo
=$ac_try;;
21666 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21667 $as_echo "$ac_try_echo") >&5
21668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21670 grep -v '^ *+' conftest.er1
>conftest.err
21672 cat conftest.err
>&5
21673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); } >/dev
/null
&& {
21675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21676 test ! -s conftest.err
21678 ac_header_preproc
=yes
21680 $as_echo "$as_me: failed program was:" >&5
21681 sed 's/^/| /' conftest.
$ac_ext >&5
21683 ac_header_preproc
=no
21686 rm -f conftest.err conftest.
$ac_ext
21687 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21688 $as_echo "$ac_header_preproc" >&6; }
21690 # So? What about this header?
21691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21693 { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
21694 $as_echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21695 { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
21696 $as_echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
21697 ac_header_preproc
=yes
21700 { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
21701 $as_echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
21702 { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
21703 $as_echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
21704 { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
21705 $as_echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
21706 { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
21707 $as_echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
21708 { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
21709 $as_echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
21710 { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
21711 $as_echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
21715 { $as_echo "$as_me:$LINENO: checking for winsock2.h" >&5
21716 $as_echo_n "checking for winsock2.h... " >&6; }
21717 if test "${ac_cv_header_winsock2_h+set}" = set; then
21718 $as_echo_n "(cached) " >&6
21720 ac_cv_header_winsock2_h
=$ac_header_preproc
21722 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
21723 $as_echo "$ac_cv_header_winsock2_h" >&6; }
21726 if test "x$ac_cv_header_winsock2_h" = x
""yes; then
21729 { { $as_echo "$as_me:$LINENO: error: ** MinGW and no winsock2.h. I give up." >&5
21730 $as_echo "$as_me: error: ** MinGW and no winsock2.h. I give up." >&2;}
21731 { (exit 1); exit 1; }; }
21736 cat >>confdefs.h
<<_ACEOF
21737 #define HAVE_WINSOCK2_H 1
21741 cat >>confdefs.h
<<_ACEOF
21742 #define HAVE_WINSOCK_H 1
21745 LIBS
="$LIBS -lws2_32 -liphlpapi"
21749 CPPFLAGS
="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
21752 CPPFLAGS
="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2"
21758 if test "$is_mingw" = "yes"; then
21768 # backwards support for IRC_CFLAGS
21769 CFLAGS
="$IRC_CFLAGS $CFLAGS -Wall"
21771 if test "$libexecdir" = '${exec_prefix}/libexec' &&
21772 test "$localstatedir" = '${prefix}/var'; then
21773 libexecdir
='${bindir}'
21774 localstatedir
='${prefix}'
21777 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
21778 $as_echo_n "checking for pid_t... " >&6; }
21779 if test "${ac_cv_type_pid_t+set}" = set; then
21780 $as_echo_n "(cached) " >&6
21782 ac_cv_type_pid_t
=no
21783 cat >conftest.
$ac_ext <<_ACEOF
21786 cat confdefs.h
>>conftest.
$ac_ext
21787 cat >>conftest.
$ac_ext <<_ACEOF
21788 /* end confdefs.h. */
21789 $ac_includes_default
21793 if (sizeof (pid_t))
21799 rm -f conftest.
$ac_objext
21800 if { (ac_try
="$ac_compile"
21801 case "(($ac_try" in
21802 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
21803 *) ac_try_echo=$ac_try;;
21805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21806 $as_echo "$ac_try_echo") >&5
21807 (eval "$ac_compile") 2>conftest.er1
21809 grep -v '^ *+' conftest.er1 >conftest.err
21811 cat conftest.err >&5
21812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); } && {
21814 test -z "$ac_c_werror_flag" ||
21815 test ! -s conftest.err
21816 } && test -s conftest.$ac_objext; then
21817 cat >conftest.$ac_ext <<_ACEOF
21820 cat confdefs.h >>conftest.$ac_ext
21821 cat >>conftest.$ac_ext <<_ACEOF
21822 /* end confdefs.h. */
21823 $ac_includes_default
21827 if (sizeof ((pid_t)))
21833 rm -f conftest.$ac_objext
21834 if { (ac_try="$ac_compile"
21835 case "(($ac_try" in
21836 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
21837 *) ac_try_echo
=$ac_try;;
21839 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21840 $as_echo "$ac_try_echo") >&5
21841 (eval "$ac_compile") 2>conftest.er1
21843 grep -v '^ *+' conftest.er1
>conftest.err
21845 cat conftest.err
>&5
21846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); } && {
21848 test -z "$ac_c_werror_flag" ||
21849 test ! -s conftest.err
21850 } && test -s conftest.
$ac_objext; then
21853 $as_echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.
$ac_ext >&5
21856 ac_cv_type_pid_t
=yes
21859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21861 $as_echo "$as_me: failed program was:" >&5
21862 sed 's/^/| /' conftest.
$ac_ext >&5
21867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21869 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21870 $as_echo "$ac_cv_type_pid_t" >&6; }
21871 if test "x$ac_cv_type_pid_t" = x
""yes; then
21875 cat >>confdefs.h
<<_ACEOF
21881 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
21882 $as_echo_n "checking for size_t... " >&6; }
21883 if test "${ac_cv_type_size_t+set}" = set; then
21884 $as_echo_n "(cached) " >&6
21886 ac_cv_type_size_t
=no
21887 cat >conftest.
$ac_ext <<_ACEOF
21890 cat confdefs.h
>>conftest.
$ac_ext
21891 cat >>conftest.
$ac_ext <<_ACEOF
21892 /* end confdefs.h. */
21893 $ac_includes_default
21897 if (sizeof (size_t))
21903 rm -f conftest.
$ac_objext
21904 if { (ac_try
="$ac_compile"
21905 case "(($ac_try" in
21906 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
21907 *) ac_try_echo=$ac_try;;
21909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21910 $as_echo "$ac_try_echo") >&5
21911 (eval "$ac_compile") 2>conftest.er1
21913 grep -v '^ *+' conftest.er1 >conftest.err
21915 cat conftest.err >&5
21916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); } && {
21918 test -z "$ac_c_werror_flag" ||
21919 test ! -s conftest.err
21920 } && test -s conftest.$ac_objext; then
21921 cat >conftest.$ac_ext <<_ACEOF
21924 cat confdefs.h >>conftest.$ac_ext
21925 cat >>conftest.$ac_ext <<_ACEOF
21926 /* end confdefs.h. */
21927 $ac_includes_default
21931 if (sizeof ((size_t)))
21937 rm -f conftest.$ac_objext
21938 if { (ac_try="$ac_compile"
21939 case "(($ac_try" in
21940 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
21941 *) ac_try_echo
=$ac_try;;
21943 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21944 $as_echo "$ac_try_echo") >&5
21945 (eval "$ac_compile") 2>conftest.er1
21947 grep -v '^ *+' conftest.er1
>conftest.err
21949 cat conftest.err
>&5
21950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); } && {
21952 test -z "$ac_c_werror_flag" ||
21953 test ! -s conftest.err
21954 } && test -s conftest.
$ac_objext; then
21957 $as_echo "$as_me: failed program was:" >&5
21958 sed 's/^/| /' conftest.
$ac_ext >&5
21960 ac_cv_type_size_t
=yes
21963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21965 $as_echo "$as_me: failed program was:" >&5
21966 sed 's/^/| /' conftest.
$ac_ext >&5
21971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21973 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21974 $as_echo "$ac_cv_type_size_t" >&6; }
21975 if test "x$ac_cv_type_size_t" = x
""yes; then
21979 cat >>confdefs.h
<<_ACEOF
21980 #define size_t unsigned int
21985 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
21986 $as_echo_n "checking for ssize_t... " >&6; }
21987 if test "${ac_cv_type_ssize_t+set}" = set; then
21988 $as_echo_n "(cached) " >&6
21990 ac_cv_type_ssize_t
=no
21991 cat >conftest.
$ac_ext <<_ACEOF
21994 cat confdefs.h
>>conftest.
$ac_ext
21995 cat >>conftest.
$ac_ext <<_ACEOF
21996 /* end confdefs.h. */
21997 $ac_includes_default
22001 if (sizeof (ssize_t))
22007 rm -f conftest.
$ac_objext
22008 if { (ac_try
="$ac_compile"
22009 case "(($ac_try" in
22010 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
22011 *) ac_try_echo=$ac_try;;
22013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22014 $as_echo "$ac_try_echo") >&5
22015 (eval "$ac_compile") 2>conftest.er1
22017 grep -v '^ *+' conftest.er1 >conftest.err
22019 cat conftest.err >&5
22020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } && {
22022 test -z "$ac_c_werror_flag" ||
22023 test ! -s conftest.err
22024 } && test -s conftest.$ac_objext; then
22025 cat >conftest.$ac_ext <<_ACEOF
22028 cat confdefs.h >>conftest.$ac_ext
22029 cat >>conftest.$ac_ext <<_ACEOF
22030 /* end confdefs.h. */
22031 $ac_includes_default
22035 if (sizeof ((ssize_t)))
22041 rm -f conftest.$ac_objext
22042 if { (ac_try="$ac_compile"
22043 case "(($ac_try" in
22044 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
22045 *) ac_try_echo
=$ac_try;;
22047 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22048 $as_echo "$ac_try_echo") >&5
22049 (eval "$ac_compile") 2>conftest.er1
22051 grep -v '^ *+' conftest.er1
>conftest.err
22053 cat conftest.err
>&5
22054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055 (exit $ac_status); } && {
22056 test -z "$ac_c_werror_flag" ||
22057 test ! -s conftest.err
22058 } && test -s conftest.
$ac_objext; then
22061 $as_echo "$as_me: failed program was:" >&5
22062 sed 's/^/| /' conftest.
$ac_ext >&5
22064 ac_cv_type_ssize_t
=yes
22067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22069 $as_echo "$as_me: failed program was:" >&5
22070 sed 's/^/| /' conftest.
$ac_ext >&5
22075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22077 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22078 $as_echo "$ac_cv_type_ssize_t" >&6; }
22079 if test "x$ac_cv_type_ssize_t" = x
""yes; then
22083 cat >>confdefs.h
<<_ACEOF
22084 #define ssize_t int
22089 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22090 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22091 if test "${ac_cv_type_uid_t+set}" = set; then
22092 $as_echo_n "(cached) " >&6
22094 cat >conftest.
$ac_ext <<_ACEOF
22097 cat confdefs.h
>>conftest.
$ac_ext
22098 cat >>conftest.
$ac_ext <<_ACEOF
22099 /* end confdefs.h. */
22100 #include <sys/types.h>
22103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22104 $EGREP "uid_t" >/dev
/null
2>&1; then
22105 ac_cv_type_uid_t
=yes
22107 ac_cv_type_uid_t
=no
22112 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22113 $as_echo "$ac_cv_type_uid_t" >&6; }
22114 if test $ac_cv_type_uid_t = no
; then
22116 cat >>confdefs.h
<<\_ACEOF
22121 cat >>confdefs.h
<<\_ACEOF
22129 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22130 $as_echo_n "checking for ANSI C header files... " >&6; }
22131 if test "${ac_cv_header_stdc+set}" = set; then
22132 $as_echo_n "(cached) " >&6
22134 cat >conftest.
$ac_ext <<_ACEOF
22137 cat confdefs.h
>>conftest.
$ac_ext
22138 cat >>conftest.
$ac_ext <<_ACEOF
22139 /* end confdefs.h. */
22140 #include <stdlib.h>
22141 #include <stdarg.h>
22142 #include <string.h>
22153 rm -f conftest.
$ac_objext
22154 if { (ac_try
="$ac_compile"
22155 case "(($ac_try" in
22156 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
22157 *) ac_try_echo=$ac_try;;
22159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22160 $as_echo "$ac_try_echo") >&5
22161 (eval "$ac_compile") 2>conftest.er1
22163 grep -v '^ *+' conftest.er1 >conftest.err
22165 cat conftest.err >&5
22166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); } && {
22168 test -z "$ac_c_werror_flag" ||
22169 test ! -s conftest.err
22170 } && test -s conftest.$ac_objext; then
22171 ac_cv_header_stdc=yes
22173 $as_echo "$as_me: failed program was:" >&5
22174 sed 's/^/| /' conftest.$ac_ext >&5
22176 ac_cv_header_stdc=no
22179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22181 if test $ac_cv_header_stdc = yes; then
22182 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22183 cat >conftest.$ac_ext <<_ACEOF
22186 cat confdefs.h >>conftest.$ac_ext
22187 cat >>conftest.$ac_ext <<_ACEOF
22188 /* end confdefs.h. */
22189 #include <string.h>
22192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22193 $EGREP "memchr" >/dev/null 2>&1; then
22196 ac_cv_header_stdc=no
22202 if test $ac_cv_header_stdc = yes; then
22203 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22204 cat >conftest.$ac_ext <<_ACEOF
22207 cat confdefs.h >>conftest.$ac_ext
22208 cat >>conftest.$ac_ext <<_ACEOF
22209 /* end confdefs.h. */
22210 #include <stdlib.h>
22213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22214 $EGREP "free" >/dev/null 2>&1; then
22217 ac_cv_header_stdc=no
22223 if test $ac_cv_header_stdc = yes; then
22224 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22225 if test "$cross_compiling" = yes; then
22228 cat >conftest.$ac_ext <<_ACEOF
22231 cat confdefs.h >>conftest.$ac_ext
22232 cat >>conftest.$ac_ext <<_ACEOF
22233 /* end confdefs.h. */
22235 #include <stdlib.h>
22236 #if ((' ' & 0x0FF) == 0x020)
22237 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22238 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22240 # define ISLOWER(c) \
22241 (('a' <= (c) && (c) <= 'i') \
22242 || ('j' <= (c) && (c) <= 'r') \
22243 || ('s' <= (c) && (c) <= 'z'))
22244 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22247 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22252 for (i = 0; i < 256; i++)
22253 if (XOR (islower (i), ISLOWER (i))
22254 || toupper (i) != TOUPPER (i))
22259 rm -f conftest$ac_exeext
22260 if { (ac_try="$ac_link"
22261 case "(($ac_try" in
22262 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
22263 *) ac_try_echo
=$ac_try;;
22265 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22266 $as_echo "$ac_try_echo") >&5
22267 (eval "$ac_link") 2>&5
22269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22271 { (case "(($ac_try" in
22272 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
22273 *) ac_try_echo=$ac_try;;
22275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22276 $as_echo "$ac_try_echo") >&5
22277 (eval "$ac_try") 2>&5
22279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280 (exit $ac_status); }; }; then
22283 $as_echo "$as_me: program exited with status $ac_status" >&5
22284 $as_echo "$as_me: failed program was:" >&5
22285 sed 's/^/| /' conftest.$ac_ext >&5
22287 ( exit $ac_status )
22288 ac_cv_header_stdc=no
22290 rm -rf conftest.dSYM
22291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22297 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22298 $as_echo "$ac_cv_header_stdc" >&6; }
22299 if test $ac_cv_header_stdc = yes; then
22301 cat >>confdefs.h <<\_ACEOF
22302 #define STDC_HEADERS 1
22328 for ac_header in crypt.h unistd.h sys/socket.h sys/stat.h sys/time.h time.h netinet/in.h arpa/inet.h errno.h sys/uio.h spawn.h sys/poll.h sys/epoll.h sys/select.h sys/devpoll.h sys/event.h port.h signal.h sys/signalfd.h sys/timerfd.h
22330 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22332 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22333 $as_echo_n "checking for $ac_header... " >&6; }
22334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22335 $as_echo_n "(cached) " >&6
22337 ac_res=`eval 'as_val=${'$as_ac_Header'}
22338 $as_echo "$as_val"'`
22339 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22340 $as_echo "$ac_res" >&6; }
22342 # Is the header compilable?
22343 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22344 $as_echo_n "checking $ac_header usability... " >&6; }
22345 cat >conftest.$ac_ext <<_ACEOF
22348 cat confdefs.h >>conftest.$ac_ext
22349 cat >>conftest.$ac_ext <<_ACEOF
22350 /* end confdefs.h. */
22351 $ac_includes_default
22352 #include <$ac_header>
22354 rm -f conftest.$ac_objext
22355 if { (ac_try="$ac_compile"
22356 case "(($ac_try" in
22357 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
22358 *) ac_try_echo
=$ac_try;;
22360 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22361 $as_echo "$ac_try_echo") >&5
22362 (eval "$ac_compile") 2>conftest.er1
22364 grep -v '^ *+' conftest.er1
>conftest.err
22366 cat conftest.err
>&5
22367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 (exit $ac_status); } && {
22369 test -z "$ac_c_werror_flag" ||
22370 test ! -s conftest.err
22371 } && test -s conftest.
$ac_objext; then
22372 ac_header_compiler
=yes
22374 $as_echo "$as_me: failed program was:" >&5
22375 sed 's/^/| /' conftest.
$ac_ext >&5
22377 ac_header_compiler
=no
22380 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22381 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22382 $as_echo "$ac_header_compiler" >&6; }
22384 # Is the header present?
22385 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22386 $as_echo_n "checking $ac_header presence... " >&6; }
22387 cat >conftest.
$ac_ext <<_ACEOF
22390 cat confdefs.h
>>conftest.
$ac_ext
22391 cat >>conftest.
$ac_ext <<_ACEOF
22392 /* end confdefs.h. */
22393 #include <$ac_header>
22395 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22396 case "(($ac_try" in
22397 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
22398 *) ac_try_echo=$ac_try;;
22400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22401 $as_echo "$ac_try_echo") >&5
22402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22404 grep -v '^ *+' conftest.er1 >conftest.err
22406 cat conftest.err >&5
22407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408 (exit $ac_status); } >/dev/null && {
22409 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22410 test ! -s conftest.err
22412 ac_header_preproc=yes
22414 $as_echo "$as_me: failed program was:" >&5
22415 sed 's/^/| /' conftest.$ac_ext >&5
22417 ac_header_preproc=no
22420 rm -f conftest.err conftest.$ac_ext
22421 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22422 $as_echo "$ac_header_preproc" >&6; }
22424 # So? What about this header?
22425 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22428 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22430 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22431 ac_header_preproc=yes
22434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22435 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22437 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22439 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22441 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22443 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22445 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22449 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22450 $as_echo_n "checking for $ac_header... " >&6; }
22451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22452 $as_echo_n "(cached) " >&6
22454 eval "$as_ac_Header=\$ac_header_preproc"
22456 ac_res=`eval 'as_val=${'$as_ac_Header'}
22457 $as_echo "$as_val"'`
22458 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22459 $as_echo "$ac_res" >&6; }
22462 as_val=`eval 'as_val=${'$as_ac_Header'}
22463 $as_echo "$as_val"'`
22464 if test "x$as_val" = x""yes; then
22465 cat >>confdefs.h <<_ACEOF
22466 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22473 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22474 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22475 if test "${ac_cv_header_time+set}" = set; then
22476 $as_echo_n "(cached) " >&6
22478 cat >conftest.$ac_ext <<_ACEOF
22481 cat confdefs.h >>conftest.$ac_ext
22482 cat >>conftest.$ac_ext <<_ACEOF
22483 /* end confdefs.h. */
22484 #include <sys/types.h>
22485 #include <sys/time.h>
22491 if ((struct tm *) 0)
22497 rm -f conftest.$ac_objext
22498 if { (ac_try="$ac_compile"
22499 case "(($ac_try" in
22500 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
22501 *) ac_try_echo
=$ac_try;;
22503 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22504 $as_echo "$ac_try_echo") >&5
22505 (eval "$ac_compile") 2>conftest.er1
22507 grep -v '^ *+' conftest.er1
>conftest.err
22509 cat conftest.err
>&5
22510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); } && {
22512 test -z "$ac_c_werror_flag" ||
22513 test ! -s conftest.err
22514 } && test -s conftest.
$ac_objext; then
22515 ac_cv_header_time
=yes
22517 $as_echo "$as_me: failed program was:" >&5
22518 sed 's/^/| /' conftest.
$ac_ext >&5
22520 ac_cv_header_time
=no
22523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22525 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22526 $as_echo "$ac_cv_header_time" >&6; }
22527 if test $ac_cv_header_time = yes; then
22529 cat >>confdefs.h
<<\_ACEOF
22530 #define TIME_WITH_SYS_TIME 1
22537 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
22538 $as_echo_n "checking for library containing socket... " >&6; }
22539 if test "${ac_cv_search_socket+set}" = set; then
22540 $as_echo_n "(cached) " >&6
22542 ac_func_search_save_LIBS
=$LIBS
22543 cat >conftest.
$ac_ext <<_ACEOF
22546 cat confdefs.h
>>conftest.
$ac_ext
22547 cat >>conftest.
$ac_ext <<_ACEOF
22548 /* end confdefs.h. */
22550 /* Override any GCC internal prototype to avoid an error.
22551 Use char because int might match the return type of a GCC
22552 builtin and then its argument prototype would still apply. */
22565 for ac_lib
in '' socket
; do
22566 if test -z "$ac_lib"; then
22567 ac_res
="none required"
22570 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22572 rm -f conftest.
$ac_objext conftest
$ac_exeext
22573 if { (ac_try
="$ac_link"
22574 case "(($ac_try" in
22575 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
22576 *) ac_try_echo=$ac_try;;
22578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22579 $as_echo "$ac_try_echo") >&5
22580 (eval "$ac_link") 2>conftest.er1
22582 grep -v '^ *+' conftest.er1 >conftest.err
22584 cat conftest.err >&5
22585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586 (exit $ac_status); } && {
22587 test -z "$ac_c_werror_flag" ||
22588 test ! -s conftest.err
22589 } && test -s conftest$ac_exeext && {
22590 test "$cross_compiling" = yes ||
22591 $as_test_x conftest$ac_exeext
22593 ac_cv_search_socket=$ac_res
22595 $as_echo "$as_me: failed program was:" >&5
22596 sed 's/^/| /' conftest.$ac_ext >&5
22601 rm -rf conftest.dSYM
22602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22604 if test "${ac_cv_search_socket+set}" = set; then
22608 if test "${ac_cv_search_socket+set}" = set; then
22611 ac_cv_search_socket=no
22613 rm conftest.$ac_ext
22614 LIBS=$ac_func_search_save_LIBS
22616 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
22617 $as_echo "$ac_cv_search_socket" >&6; }
22618 ac_res=$ac_cv_search_socket
22619 if test "$ac_res" != no; then
22620 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22626 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
22627 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
22628 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
22629 $as_echo_n "(cached) " >&6
22631 cat >conftest.$ac_ext <<_ACEOF
22634 cat confdefs.h >>conftest.$ac_ext
22635 cat >>conftest.$ac_ext <<_ACEOF
22636 /* end confdefs.h. */
22638 #ifdef HAVE_SYS_TYPES_H
22639 #include <sys/types.h>
22641 #ifdef HAVE_SYS_SOCKET_H
22642 #include <sys/socket.h>
22644 #ifdef HAVE_WINSOCK2_H
22645 #include <winsock2.h>
22652 static struct sockaddr ac_aggr;
22653 if (ac_aggr.sa_len)
22659 rm -f conftest.$ac_objext
22660 if { (ac_try="$ac_compile"
22661 case "(($ac_try" in
22662 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
22663 *) ac_try_echo
=$ac_try;;
22665 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22666 $as_echo "$ac_try_echo") >&5
22667 (eval "$ac_compile") 2>conftest.er1
22669 grep -v '^ *+' conftest.er1
>conftest.err
22671 cat conftest.err
>&5
22672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673 (exit $ac_status); } && {
22674 test -z "$ac_c_werror_flag" ||
22675 test ! -s conftest.err
22676 } && test -s conftest.
$ac_objext; then
22677 ac_cv_member_struct_sockaddr_sa_len
=yes
22679 $as_echo "$as_me: failed program was:" >&5
22680 sed 's/^/| /' conftest.
$ac_ext >&5
22682 cat >conftest.
$ac_ext <<_ACEOF
22685 cat confdefs.h
>>conftest.
$ac_ext
22686 cat >>conftest.
$ac_ext <<_ACEOF
22687 /* end confdefs.h. */
22689 #ifdef HAVE_SYS_TYPES_H
22690 #include <sys/types.h>
22692 #ifdef HAVE_SYS_SOCKET_H
22693 #include <sys/socket.h>
22695 #ifdef HAVE_WINSOCK2_H
22696 #include <winsock2.h>
22703 static struct sockaddr ac_aggr;
22704 if (sizeof ac_aggr.sa_len)
22710 rm -f conftest.
$ac_objext
22711 if { (ac_try
="$ac_compile"
22712 case "(($ac_try" in
22713 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
22714 *) ac_try_echo=$ac_try;;
22716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22717 $as_echo "$ac_try_echo") >&5
22718 (eval "$ac_compile") 2>conftest.er1
22720 grep -v '^ *+' conftest.er1 >conftest.err
22722 cat conftest.err >&5
22723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724 (exit $ac_status); } && {
22725 test -z "$ac_c_werror_flag" ||
22726 test ! -s conftest.err
22727 } && test -s conftest.$ac_objext; then
22728 ac_cv_member_struct_sockaddr_sa_len=yes
22730 $as_echo "$as_me: failed program was:" >&5
22731 sed 's/^/| /' conftest.$ac_ext >&5
22733 ac_cv_member_struct_sockaddr_sa_len=no
22736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22741 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
22742 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
22743 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
22745 cat >>confdefs.h <<\_ACEOF
22746 #define SOCKADDR_IN_HAS_LEN 1
22752 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
22753 $as_echo_n "checking for socklen_t... " >&6; }
22754 if test "${ac_cv_type_socklen_t+set}" = set; then
22755 $as_echo_n "(cached) " >&6
22757 ac_cv_type_socklen_t=no
22758 cat >conftest.$ac_ext <<_ACEOF
22761 cat confdefs.h >>conftest.$ac_ext
22762 cat >>conftest.$ac_ext <<_ACEOF
22763 /* end confdefs.h. */
22764 #include <sys/types.h>
22765 #include <sys/socket.h>
22770 if (sizeof (socklen_t))
22776 rm -f conftest.$ac_objext
22777 if { (ac_try="$ac_compile"
22778 case "(($ac_try" in
22779 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
22780 *) ac_try_echo
=$ac_try;;
22782 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22783 $as_echo "$ac_try_echo") >&5
22784 (eval "$ac_compile") 2>conftest.er1
22786 grep -v '^ *+' conftest.er1
>conftest.err
22788 cat conftest.err
>&5
22789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790 (exit $ac_status); } && {
22791 test -z "$ac_c_werror_flag" ||
22792 test ! -s conftest.err
22793 } && test -s conftest.
$ac_objext; then
22794 cat >conftest.
$ac_ext <<_ACEOF
22797 cat confdefs.h
>>conftest.
$ac_ext
22798 cat >>conftest.
$ac_ext <<_ACEOF
22799 /* end confdefs.h. */
22800 #include <sys/types.h>
22801 #include <sys/socket.h>
22806 if (sizeof ((socklen_t)))
22812 rm -f conftest.
$ac_objext
22813 if { (ac_try
="$ac_compile"
22814 case "(($ac_try" in
22815 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
22816 *) ac_try_echo=$ac_try;;
22818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22819 $as_echo "$ac_try_echo") >&5
22820 (eval "$ac_compile") 2>conftest.er1
22822 grep -v '^ *+' conftest.er1 >conftest.err
22824 cat conftest.err >&5
22825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826 (exit $ac_status); } && {
22827 test -z "$ac_c_werror_flag" ||
22828 test ! -s conftest.err
22829 } && test -s conftest.$ac_objext; then
22832 $as_echo "$as_me: failed program was:" >&5
22833 sed 's/^/| /' conftest.$ac_ext >&5
22835 ac_cv_type_socklen_t=yes
22838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22840 $as_echo "$as_me: failed program was:" >&5
22841 sed 's/^/| /' conftest.$ac_ext >&5
22846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22848 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22849 $as_echo "$ac_cv_type_socklen_t" >&6; }
22850 if test "x$ac_cv_type_socklen_t" = x""yes; then
22851 rb_cv_socklen_t=socklen_t
22854 { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
22855 $as_echo_n "checking for socklen_t equivalent... " >&6; }
22856 if test "${rb_cv_socklen_t+set}" = set; then
22857 $as_echo_n "(cached) " >&6
22860 # Systems have either "struct sockaddr *" or
22861 # "void *" as the second argument to getpeername
22863 for arg2 in "struct sockaddr" void; do
22864 for t in int size_t unsigned long "unsigned long"; do
22865 cat >conftest.$ac_ext <<_ACEOF
22868 cat confdefs.h >>conftest.$ac_ext
22869 cat >>conftest.$ac_ext <<_ACEOF
22870 /* end confdefs.h. */
22872 #ifdef HAVE_SYS_TYPES_H
22873 #include <sys/types.h>
22875 #ifdef HAVE_SYS_SOCKET_H
22876 #include <sys/socket.h>
22878 #ifdef HAVE_WINSOCK2_H
22879 #include <winsock2.h>
22881 int getpeername (int, $arg2 *, $t *);
22888 getpeername(0,0,&len);
22894 rm -f conftest.$ac_objext
22895 if { (ac_try="$ac_compile"
22896 case "(($ac_try" in
22897 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
22898 *) ac_try_echo
=$ac_try;;
22900 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22901 $as_echo "$ac_try_echo") >&5
22902 (eval "$ac_compile") 2>conftest.er1
22904 grep -v '^ *+' conftest.er1
>conftest.err
22906 cat conftest.err
>&5
22907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908 (exit $ac_status); } && {
22909 test -z "$ac_c_werror_flag" ||
22910 test ! -s conftest.err
22911 } && test -s conftest.
$ac_objext; then
22913 rb_cv_socklen_t
="$t"
22917 $as_echo "$as_me: failed program was:" >&5
22918 sed 's/^/| /' conftest.
$ac_ext >&5
22923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22927 if test "x$rb_cv_socklen_t" = x
; then
22928 { $as_echo "$as_me:$LINENO: WARNING: Cannot find a type to use in place of socklen_t using int" >&5
22929 $as_echo "$as_me: WARNING: Cannot find a type to use in place of socklen_t using int" >&2;}
22930 rb_cv_socklen_t
=int
22935 { $as_echo "$as_me:$LINENO: result: $rb_cv_socklen_t" >&5
22936 $as_echo "$rb_cv_socklen_t" >&6; }
22940 rb_socklen_t
=$rb_cv_socklen_t
22946 # Check whether --enable-ipv6 was given.
22947 if test "${enable_ipv6+set}" = set; then
22948 enableval
=$enable_ipv6; ipv6
=$enableval
22954 if test x
$ipv6 != xyes
; then
22960 { $as_echo "$as_me:$LINENO: checking for INET6 protocol support" >&5
22961 $as_echo_n "checking for INET6 protocol support... " >&6; }
22962 if test "${rb_cv_proto_inet6+set}" = set; then
22963 $as_echo_n "(cached) " >&6
22966 cat >conftest.
$ac_ext <<_ACEOF
22969 cat confdefs.h
>>conftest.
$ac_ext
22970 cat >>conftest.
$ac_ext <<_ACEOF
22971 /* end confdefs.h. */
22973 #include <sys/types.h>
22974 #include <sys/socket.h>
22977 #error Missing PF_INET6
22980 #error Mlssing AF_INET6
22984 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22985 case "(($ac_try" in
22986 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
22987 *) ac_try_echo=$ac_try;;
22989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22990 $as_echo "$ac_try_echo") >&5
22991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22993 grep -v '^ *+' conftest.er1 >conftest.err
22995 cat conftest.err >&5
22996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997 (exit $ac_status); } >/dev/null && {
22998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22999 test ! -s conftest.err
23002 rb_cv_proto_inet6=yes
23005 $as_echo "$as_me: failed program was:" >&5
23006 sed 's/^/| /' conftest.$ac_ext >&5
23009 rb_cv_proto_inet6=no
23013 rm -f conftest.err conftest.$ac_ext
23016 { $as_echo "$as_me:$LINENO: result: $rb_cv_proto_inet6" >&5
23017 $as_echo "$rb_cv_proto_inet6" >&6; }
23019 if test "X$rb_cv_proto_inet6" = "Xyes"; then :
23023 { $as_echo "$as_me:$LINENO: Disabling IPv6 support: PF_INET6 not found" >&5
23024 $as_echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;}
23030 if test "X$have_v6" = "Xyes"; then
23032 rb_have_sockaddr_in6=
23033 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
23034 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
23035 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
23036 $as_echo_n "(cached) " >&6
23038 ac_cv_type_struct_sockaddr_in6=no
23039 cat >conftest.$ac_ext <<_ACEOF
23042 cat confdefs.h >>conftest.$ac_ext
23043 cat >>conftest.$ac_ext <<_ACEOF
23044 /* end confdefs.h. */
23046 #include <sys/types.h>
23047 #include <sys/socket.h>
23048 #include <netinet/in.h>
23054 if (sizeof (struct sockaddr_in6))
23060 rm -f conftest.$ac_objext
23061 if { (ac_try="$ac_compile"
23062 case "(($ac_try" in
23063 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
23064 *) ac_try_echo
=$ac_try;;
23066 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23067 $as_echo "$ac_try_echo") >&5
23068 (eval "$ac_compile") 2>conftest.er1
23070 grep -v '^ *+' conftest.er1
>conftest.err
23072 cat conftest.err
>&5
23073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); } && {
23075 test -z "$ac_c_werror_flag" ||
23076 test ! -s conftest.err
23077 } && test -s conftest.
$ac_objext; then
23078 cat >conftest.
$ac_ext <<_ACEOF
23081 cat confdefs.h
>>conftest.
$ac_ext
23082 cat >>conftest.
$ac_ext <<_ACEOF
23083 /* end confdefs.h. */
23085 #include <sys/types.h>
23086 #include <sys/socket.h>
23087 #include <netinet/in.h>
23093 if (sizeof ((struct sockaddr_in6)))
23099 rm -f conftest.
$ac_objext
23100 if { (ac_try
="$ac_compile"
23101 case "(($ac_try" in
23102 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
23103 *) ac_try_echo=$ac_try;;
23105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23106 $as_echo "$ac_try_echo") >&5
23107 (eval "$ac_compile") 2>conftest.er1
23109 grep -v '^ *+' conftest.er1 >conftest.err
23111 cat conftest.err >&5
23112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113 (exit $ac_status); } && {
23114 test -z "$ac_c_werror_flag" ||
23115 test ! -s conftest.err
23116 } && test -s conftest.$ac_objext; then
23119 $as_echo "$as_me: failed program was:" >&5
23120 sed 's/^/| /' conftest.$ac_ext >&5
23122 ac_cv_type_struct_sockaddr_in6=yes
23125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23127 $as_echo "$as_me: failed program was:" >&5
23128 sed 's/^/| /' conftest.$ac_ext >&5
23133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23135 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
23136 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
23137 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
23139 cat >>confdefs.h <<_ACEOF
23140 #define HAVE_STRUCT_SOCKADDR_IN6 1
23144 rb_have_sockaddr_in6=yes
23148 rb_have_sockaddr_in6=no
23153 if test "X$rb_have_sockaddr_in6" = "Xyes"; then :
23157 { $as_echo "$as_me:$LINENO: Disabling IPv6 support: struct sockaddr_in6 not found" >&5
23158 $as_echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;}
23167 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
23168 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
23169 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
23170 $as_echo_n "(cached) " >&6
23172 ac_cv_type_struct_sockaddr_storage=no
23173 cat >conftest.$ac_ext <<_ACEOF
23176 cat confdefs.h >>conftest.$ac_ext
23177 cat >>conftest.$ac_ext <<_ACEOF
23178 /* end confdefs.h. */
23180 #include <sys/types.h>
23181 #include <sys/socket.h>
23187 if (sizeof (struct sockaddr_storage))
23193 rm -f conftest.$ac_objext
23194 if { (ac_try="$ac_compile"
23195 case "(($ac_try" in
23196 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
23197 *) ac_try_echo
=$ac_try;;
23199 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23200 $as_echo "$ac_try_echo") >&5
23201 (eval "$ac_compile") 2>conftest.er1
23203 grep -v '^ *+' conftest.er1
>conftest.err
23205 cat conftest.err
>&5
23206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); } && {
23208 test -z "$ac_c_werror_flag" ||
23209 test ! -s conftest.err
23210 } && test -s conftest.
$ac_objext; then
23211 cat >conftest.
$ac_ext <<_ACEOF
23214 cat confdefs.h
>>conftest.
$ac_ext
23215 cat >>conftest.
$ac_ext <<_ACEOF
23216 /* end confdefs.h. */
23218 #include <sys/types.h>
23219 #include <sys/socket.h>
23225 if (sizeof ((struct sockaddr_storage)))
23231 rm -f conftest.
$ac_objext
23232 if { (ac_try
="$ac_compile"
23233 case "(($ac_try" in
23234 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
23235 *) ac_try_echo=$ac_try;;
23237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23238 $as_echo "$ac_try_echo") >&5
23239 (eval "$ac_compile") 2>conftest.er1
23241 grep -v '^ *+' conftest.er1 >conftest.err
23243 cat conftest.err >&5
23244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245 (exit $ac_status); } && {
23246 test -z "$ac_c_werror_flag" ||
23247 test ! -s conftest.err
23248 } && test -s conftest.$ac_objext; then
23251 $as_echo "$as_me: failed program was:" >&5
23252 sed 's/^/| /' conftest.$ac_ext >&5
23254 ac_cv_type_struct_sockaddr_storage=yes
23257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23259 $as_echo "$as_me: failed program was:" >&5
23260 sed 's/^/| /' conftest.$ac_ext >&5
23265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23267 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
23268 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
23269 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
23271 cat >>confdefs.h <<_ACEOF
23272 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
23276 rb_have_sockaddr_storage=yes
23283 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
23284 $as_echo_n "checking for library containing crypt... " >&6; }
23285 if test "${ac_cv_search_crypt+set}" = set; then
23286 $as_echo_n "(cached) " >&6
23288 ac_func_search_save_LIBS=$LIBS
23289 cat >conftest.$ac_ext <<_ACEOF
23292 cat confdefs.h >>conftest.$ac_ext
23293 cat >>conftest.$ac_ext <<_ACEOF
23294 /* end confdefs.h. */
23296 /* Override any GCC internal prototype to avoid an error.
23297 Use char because int might match the return type of a GCC
23298 builtin and then its argument prototype would still apply. */
23311 for ac_lib in '' crypt descrypt; do
23312 if test -z "$ac_lib"; then
23313 ac_res="none required"
23316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23318 rm -f conftest.$ac_objext conftest$ac_exeext
23319 if { (ac_try="$ac_link"
23320 case "(($ac_try" in
23321 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
23322 *) ac_try_echo
=$ac_try;;
23324 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23325 $as_echo "$ac_try_echo") >&5
23326 (eval "$ac_link") 2>conftest.er1
23328 grep -v '^ *+' conftest.er1
>conftest.err
23330 cat conftest.err
>&5
23331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332 (exit $ac_status); } && {
23333 test -z "$ac_c_werror_flag" ||
23334 test ! -s conftest.err
23335 } && test -s conftest
$ac_exeext && {
23336 test "$cross_compiling" = yes ||
23337 $as_test_x conftest
$ac_exeext
23339 ac_cv_search_crypt
=$ac_res
23341 $as_echo "$as_me: failed program was:" >&5
23342 sed 's/^/| /' conftest.
$ac_ext >&5
23347 rm -rf conftest.dSYM
23348 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23350 if test "${ac_cv_search_crypt+set}" = set; then
23354 if test "${ac_cv_search_crypt+set}" = set; then
23357 ac_cv_search_crypt
=no
23359 rm conftest.
$ac_ext
23360 LIBS
=$ac_func_search_save_LIBS
23362 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
23363 $as_echo "$ac_cv_search_crypt" >&6; }
23364 ac_res
=$ac_cv_search_crypt
23365 if test "$ac_res" != no
; then
23366 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23372 CRYPT_LIB
=$ac_cv_search_crypt
23374 if test "$CRYPT_LIB" = "none required"; then
23376 elif test "$CRYPT_LIB" = no
; then
23379 cat >>confdefs.h
<<\_ACEOF
23380 #define NEED_CRYPT 1
23386 if test x
"$need_crypt" = "xyes"; then
23388 NEED_CRYPT_FALSE
='#'
23390 NEED_CRYPT_TRUE
='#'
23398 if test "${ac_cv_header_stdarg_h+set}" = set; then
23399 { $as_echo "$as_me:$LINENO: checking for stdarg.h" >&5
23400 $as_echo_n "checking for stdarg.h... " >&6; }
23401 if test "${ac_cv_header_stdarg_h+set}" = set; then
23402 $as_echo_n "(cached) " >&6
23404 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
23405 $as_echo "$ac_cv_header_stdarg_h" >&6; }
23407 # Is the header compilable?
23408 { $as_echo "$as_me:$LINENO: checking stdarg.h usability" >&5
23409 $as_echo_n "checking stdarg.h usability... " >&6; }
23410 cat >conftest.
$ac_ext <<_ACEOF
23413 cat confdefs.h
>>conftest.
$ac_ext
23414 cat >>conftest.
$ac_ext <<_ACEOF
23415 /* end confdefs.h. */
23416 $ac_includes_default
23417 #include <stdarg.h>
23419 rm -f conftest.
$ac_objext
23420 if { (ac_try
="$ac_compile"
23421 case "(($ac_try" in
23422 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
23423 *) ac_try_echo=$ac_try;;
23425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23426 $as_echo "$ac_try_echo") >&5
23427 (eval "$ac_compile") 2>conftest.er1
23429 grep -v '^ *+' conftest.er1 >conftest.err
23431 cat conftest.err >&5
23432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433 (exit $ac_status); } && {
23434 test -z "$ac_c_werror_flag" ||
23435 test ! -s conftest.err
23436 } && test -s conftest.$ac_objext; then
23437 ac_header_compiler=yes
23439 $as_echo "$as_me: failed program was:" >&5
23440 sed 's/^/| /' conftest.$ac_ext >&5
23442 ac_header_compiler=no
23445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23446 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23447 $as_echo "$ac_header_compiler" >&6; }
23449 # Is the header present?
23450 { $as_echo "$as_me:$LINENO: checking stdarg.h presence" >&5
23451 $as_echo_n "checking stdarg.h presence... " >&6; }
23452 cat >conftest.$ac_ext <<_ACEOF
23455 cat confdefs.h >>conftest.$ac_ext
23456 cat >>conftest.$ac_ext <<_ACEOF
23457 /* end confdefs.h. */
23458 #include <stdarg.h>
23460 if { (ac_try="$ac_cpp conftest.$ac_ext"
23461 case "(($ac_try" in
23462 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
23463 *) ac_try_echo
=$ac_try;;
23465 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23466 $as_echo "$ac_try_echo") >&5
23467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23469 grep -v '^ *+' conftest.er1
>conftest.err
23471 cat conftest.err
>&5
23472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); } >/dev
/null
&& {
23474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23475 test ! -s conftest.err
23477 ac_header_preproc
=yes
23479 $as_echo "$as_me: failed program was:" >&5
23480 sed 's/^/| /' conftest.
$ac_ext >&5
23482 ac_header_preproc
=no
23485 rm -f conftest.err conftest.
$ac_ext
23486 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23487 $as_echo "$ac_header_preproc" >&6; }
23489 # So? What about this header?
23490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23492 { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
23493 $as_echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23494 { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
23495 $as_echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
23496 ac_header_preproc
=yes
23499 { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
23500 $as_echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
23501 { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
23502 $as_echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
23503 { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
23504 $as_echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
23505 { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
23506 $as_echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
23507 { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
23508 $as_echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
23509 { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
23510 $as_echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
23514 { $as_echo "$as_me:$LINENO: checking for stdarg.h" >&5
23515 $as_echo_n "checking for stdarg.h... " >&6; }
23516 if test "${ac_cv_header_stdarg_h+set}" = set; then
23517 $as_echo_n "(cached) " >&6
23519 ac_cv_header_stdarg_h
=$ac_header_preproc
23521 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
23522 $as_echo "$ac_cv_header_stdarg_h" >&6; }
23525 if test "x$ac_cv_header_stdarg_h" = x
""yes; then
23528 { { $as_echo "$as_me:$LINENO: error: ** stdarg.h could not be found - libratbox will not compile without it **" >&5
23529 $as_echo "$as_me: error: ** stdarg.h could not be found - libratbox will not compile without it **" >&2;}
23530 { (exit 1); exit 1; }; }
23535 { $as_echo "$as_me:$LINENO: checking for sa_family_t" >&5
23536 $as_echo_n "checking for sa_family_t... " >&6; }
23537 if test "${ac_cv_type_sa_family_t+set}" = set; then
23538 $as_echo_n "(cached) " >&6
23540 ac_cv_type_sa_family_t
=no
23541 cat >conftest.
$ac_ext <<_ACEOF
23544 cat confdefs.h
>>conftest.
$ac_ext
23545 cat >>conftest.
$ac_ext <<_ACEOF
23546 /* end confdefs.h. */
23547 #include <sys/types.h>
23548 #include <sys/socket.h>
23553 if (sizeof (sa_family_t))
23559 rm -f conftest.
$ac_objext
23560 if { (ac_try
="$ac_compile"
23561 case "(($ac_try" in
23562 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
23563 *) ac_try_echo=$ac_try;;
23565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23566 $as_echo "$ac_try_echo") >&5
23567 (eval "$ac_compile") 2>conftest.er1
23569 grep -v '^ *+' conftest.er1 >conftest.err
23571 cat conftest.err >&5
23572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573 (exit $ac_status); } && {
23574 test -z "$ac_c_werror_flag" ||
23575 test ! -s conftest.err
23576 } && test -s conftest.$ac_objext; then
23577 cat >conftest.$ac_ext <<_ACEOF
23580 cat confdefs.h >>conftest.$ac_ext
23581 cat >>conftest.$ac_ext <<_ACEOF
23582 /* end confdefs.h. */
23583 #include <sys/types.h>
23584 #include <sys/socket.h>
23589 if (sizeof ((sa_family_t)))
23595 rm -f conftest.$ac_objext
23596 if { (ac_try="$ac_compile"
23597 case "(($ac_try" in
23598 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
23599 *) ac_try_echo
=$ac_try;;
23601 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23602 $as_echo "$ac_try_echo") >&5
23603 (eval "$ac_compile") 2>conftest.er1
23605 grep -v '^ *+' conftest.er1
>conftest.err
23607 cat conftest.err
>&5
23608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609 (exit $ac_status); } && {
23610 test -z "$ac_c_werror_flag" ||
23611 test ! -s conftest.err
23612 } && test -s conftest.
$ac_objext; then
23615 $as_echo "$as_me: failed program was:" >&5
23616 sed 's/^/| /' conftest.
$ac_ext >&5
23618 ac_cv_type_sa_family_t
=yes
23621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23623 $as_echo "$as_me: failed program was:" >&5
23624 sed 's/^/| /' conftest.
$ac_ext >&5
23629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23631 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
23632 $as_echo "$ac_cv_type_sa_family_t" >&6; }
23633 if test "x$ac_cv_type_sa_family_t" = x
""yes; then
23637 cat >>confdefs.h
<<\_ACEOF
23638 #define sa_family_t u_int16_t
23666 for ac_func
in socketpair gettimeofday writev sendmsg gmtime_r strtok_r
usleep posix_spawn strlcpy strlcat strnlen fstat signalfd
select poll kevent port_create epoll_ctl arc4random getrusage timerfd_create
23668 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23669 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23670 $as_echo_n "checking for $ac_func... " >&6; }
23671 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23672 $as_echo_n "(cached) " >&6
23674 cat >conftest.
$ac_ext <<_ACEOF
23677 cat confdefs.h
>>conftest.
$ac_ext
23678 cat >>conftest.
$ac_ext <<_ACEOF
23679 /* end confdefs.h. */
23680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23682 #define $ac_func innocuous_$ac_func
23684 /* System header to define __stub macros and hopefully few prototypes,
23685 which can conflict with char $ac_func (); below.
23686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23687 <limits.h> exists even on freestanding compilers. */
23690 # include <limits.h>
23692 # include <assert.h>
23697 /* Override any GCC internal prototype to avoid an error.
23698 Use char because int might match the return type of a GCC
23699 builtin and then its argument prototype would still apply. */
23704 /* The GNU C library defines this for functions which it implements
23705 to always fail with ENOSYS. Some functions are actually named
23706 something starting with __ and the normal name is an alias. */
23707 #if defined __stub_$ac_func || defined __stub___$ac_func
23714 return $ac_func ();
23719 rm -f conftest.
$ac_objext conftest
$ac_exeext
23720 if { (ac_try
="$ac_link"
23721 case "(($ac_try" in
23722 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
23723 *) ac_try_echo=$ac_try;;
23725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23726 $as_echo "$ac_try_echo") >&5
23727 (eval "$ac_link") 2>conftest.er1
23729 grep -v '^ *+' conftest.er1 >conftest.err
23731 cat conftest.err >&5
23732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733 (exit $ac_status); } && {
23734 test -z "$ac_c_werror_flag" ||
23735 test ! -s conftest.err
23736 } && test -s conftest$ac_exeext && {
23737 test "$cross_compiling" = yes ||
23738 $as_test_x conftest$ac_exeext
23740 eval "$as_ac_var=yes"
23742 $as_echo "$as_me: failed program was:" >&5
23743 sed 's/^/| /' conftest.$ac_ext >&5
23745 eval "$as_ac_var=no"
23748 rm -rf conftest.dSYM
23749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23750 conftest$ac_exeext conftest.$ac_ext
23752 ac_res=`eval 'as_val=${'$as_ac_var'}
23753 $as_echo "$as_val"'`
23754 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23755 $as_echo "$ac_res" >&6; }
23756 as_val=`eval 'as_val=${'$as_ac_var'}
23757 $as_echo "$as_val"'`
23758 if test "x$as_val" = x""yes; then
23759 cat >>confdefs.h <<_ACEOF
23760 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23767 { $as_echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
23768 $as_echo_n "checking for library containing nanosleep... " >&6; }
23769 if test "${ac_cv_search_nanosleep+set}" = set; then
23770 $as_echo_n "(cached) " >&6
23772 ac_func_search_save_LIBS=$LIBS
23773 cat >conftest.$ac_ext <<_ACEOF
23776 cat confdefs.h >>conftest.$ac_ext
23777 cat >>conftest.$ac_ext <<_ACEOF
23778 /* end confdefs.h. */
23780 /* Override any GCC internal prototype to avoid an error.
23781 Use char because int might match the return type of a GCC
23782 builtin and then its argument prototype would still apply. */
23790 return nanosleep ();
23795 for ac_lib in '' rt posix4; do
23796 if test -z "$ac_lib"; then
23797 ac_res="none required"
23800 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23802 rm -f conftest.$ac_objext conftest$ac_exeext
23803 if { (ac_try="$ac_link"
23804 case "(($ac_try" in
23805 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
23806 *) ac_try_echo
=$ac_try;;
23808 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23809 $as_echo "$ac_try_echo") >&5
23810 (eval "$ac_link") 2>conftest.er1
23812 grep -v '^ *+' conftest.er1
>conftest.err
23814 cat conftest.err
>&5
23815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816 (exit $ac_status); } && {
23817 test -z "$ac_c_werror_flag" ||
23818 test ! -s conftest.err
23819 } && test -s conftest
$ac_exeext && {
23820 test "$cross_compiling" = yes ||
23821 $as_test_x conftest
$ac_exeext
23823 ac_cv_search_nanosleep
=$ac_res
23825 $as_echo "$as_me: failed program was:" >&5
23826 sed 's/^/| /' conftest.
$ac_ext >&5
23831 rm -rf conftest.dSYM
23832 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23834 if test "${ac_cv_search_nanosleep+set}" = set; then
23838 if test "${ac_cv_search_nanosleep+set}" = set; then
23841 ac_cv_search_nanosleep
=no
23843 rm conftest.
$ac_ext
23844 LIBS
=$ac_func_search_save_LIBS
23846 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
23847 $as_echo "$ac_cv_search_nanosleep" >&6; }
23848 ac_res
=$ac_cv_search_nanosleep
23849 if test "$ac_res" != no
; then
23850 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23852 cat >>confdefs.h
<<\_ACEOF
23853 #define HAVE_NANOSLEEP 1
23858 { $as_echo "$as_me:$LINENO: checking for library containing timer_create" >&5
23859 $as_echo_n "checking for library containing timer_create... " >&6; }
23860 if test "${ac_cv_search_timer_create+set}" = set; then
23861 $as_echo_n "(cached) " >&6
23863 ac_func_search_save_LIBS
=$LIBS
23864 cat >conftest.
$ac_ext <<_ACEOF
23867 cat confdefs.h
>>conftest.
$ac_ext
23868 cat >>conftest.
$ac_ext <<_ACEOF
23869 /* end confdefs.h. */
23871 /* Override any GCC internal prototype to avoid an error.
23872 Use char because int might match the return type of a GCC
23873 builtin and then its argument prototype would still apply. */
23877 char timer_create ();
23881 return timer_create ();
23886 for ac_lib
in '' rt
; do
23887 if test -z "$ac_lib"; then
23888 ac_res
="none required"
23891 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23893 rm -f conftest.
$ac_objext conftest
$ac_exeext
23894 if { (ac_try
="$ac_link"
23895 case "(($ac_try" in
23896 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
23897 *) ac_try_echo=$ac_try;;
23899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23900 $as_echo "$ac_try_echo") >&5
23901 (eval "$ac_link") 2>conftest.er1
23903 grep -v '^ *+' conftest.er1 >conftest.err
23905 cat conftest.err >&5
23906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907 (exit $ac_status); } && {
23908 test -z "$ac_c_werror_flag" ||
23909 test ! -s conftest.err
23910 } && test -s conftest$ac_exeext && {
23911 test "$cross_compiling" = yes ||
23912 $as_test_x conftest$ac_exeext
23914 ac_cv_search_timer_create=$ac_res
23916 $as_echo "$as_me: failed program was:" >&5
23917 sed 's/^/| /' conftest.$ac_ext >&5
23922 rm -rf conftest.dSYM
23923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23925 if test "${ac_cv_search_timer_create+set}" = set; then
23929 if test "${ac_cv_search_timer_create+set}" = set; then
23932 ac_cv_search_timer_create=no
23934 rm conftest.$ac_ext
23935 LIBS=$ac_func_search_save_LIBS
23937 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_timer_create" >&5
23938 $as_echo "$ac_cv_search_timer_create" >&6; }
23939 ac_res=$ac_cv_search_timer_create
23940 if test "$ac_res" != no; then
23941 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23943 cat >>confdefs.h <<\_ACEOF
23944 #define HAVE_TIMER_CREATE 1
23949 { $as_echo "$as_me:$LINENO: checking for a working timer_create(CLOCK_REALTIME)" >&5
23950 $as_echo_n "checking for a working timer_create(CLOCK_REALTIME)... " >&6; }
23951 if test "${rb__cv_timer_create_works+set}" = set; then
23952 $as_echo_n "(cached) " >&6
23954 if test "$cross_compiling" = yes; then
23955 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23957 { { $as_echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
23958 See \
`config.log' for more details." >&5
23959 $as_echo "$as_me: error: cannot run test program while cross compiling
23960 See \`config.log
' for more details." >&2;}
23961 { (exit 1); exit 1; }; }; }
23963 cat >conftest.$ac_ext <<_ACEOF
23966 cat confdefs.h >>conftest.$ac_ext
23967 cat >>conftest.$ac_ext <<_ACEOF
23968 /* end confdefs.h. */
23973 #ifdef HAVE_SIGNAL_H
23974 #include <signal.h>
23976 #ifdef HAVE_UNISTD_H
23977 #include <unistd.h>
23979 int main(int argc, char *argv[])
23981 #if HAVE_TIMER_CREATE
23982 struct sigevent ev;
23984 ev.sigev_notify = SIGEV_SIGNAL;
23985 ev.sigev_signo = SIGVTALRM;
23986 if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) {
23996 rm -f conftest$ac_exeext
23997 if { (ac_try="$ac_link"
23998 case "(($ac_try" in
23999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24000 *) ac_try_echo=$ac_try;;
24002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24003 $as_echo "$ac_try_echo") >&5
24004 (eval "$ac_link") 2>&5
24006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
24008 { (case "(($ac_try" in
24009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24010 *) ac_try_echo=$ac_try;;
24012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24013 $as_echo "$ac_try_echo") >&5
24014 (eval "$ac_try") 2>&5
24016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); }; }; then
24018 rb__cv_timer_create_works=yes
24020 $as_echo "$as_me: program exited with status $ac_status" >&5
24021 $as_echo "$as_me: failed program was:" >&5
24022 sed 's
/^
/| /' conftest.$ac_ext >&5
24024 ( exit $ac_status )
24025 rb__cv_timer_create_works=no
24027 rm -rf conftest.dSYM
24028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24034 { $as_echo "$as_me:$LINENO: result: $rb__cv_timer_create_works" >&5
24035 $as_echo "$rb__cv_timer_create_works" >&6; }
24036 case $rb__cv_timer_create_works in
24038 cat >>confdefs.h <<\_ACEOF
24039 #define USE_TIMER_CREATE 1
24044 { $as_echo "$as_me:$LINENO: checking for a working timerfd_create(CLOCK_REALTIME)" >&5
24045 $as_echo_n "checking for a working timerfd_create(CLOCK_REALTIME)... " >&6; }
24046 if test "${rb__cv_timerfd_create_works+set}" = set; then
24047 $as_echo_n "(cached) " >&6
24049 if test "$cross_compiling" = yes; then
24050 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24051 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
24052 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24053 See \`config.log
' for more details." >&5
24054 $as_echo "$as_me: error: cannot run test program while cross compiling
24055 See \`config.log' for more details.
" >&2;}
24056 { (exit 1); exit 1; }; }; }
24058 cat >conftest.$ac_ext <<_ACEOF
24061 cat confdefs.h >>conftest.$ac_ext
24062 cat >>conftest.$ac_ext <<_ACEOF
24063 /* end confdefs.h. */
24068 #ifdef HAVE_SIGNAL_H
24069 #include <signal.h>
24071 #ifdef HAVE_UNISTD_H
24072 #include <unistd.h>
24074 #ifdef HAVE_SYS_TIMERFD_H
24075 #include <sys/timerfd.h>
24077 int main(int argc, char *argv[])
24079 #if defined(HAVE_TIMERFD_CREATE) && defined(HAVE_SYS_TIMERFD_H)
24080 if (timerfd_create(CLOCK_REALTIME, 0) < 0) {
24090 rm -f conftest$ac_exeext
24091 if { (ac_try="$ac_link"
24092 case "(($ac_try" in
24093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24094 *) ac_try_echo=$ac_try;;
24096 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24097 $as_echo "$ac_try_echo") >&5
24098 (eval "$ac_link") 2>&5
24100 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24102 { (case "(($ac_try" in
24103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24104 *) ac_try_echo=$ac_try;;
24106 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24107 $as_echo "$ac_try_echo") >&5
24108 (eval "$ac_try") 2>&5
24110 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24111 (exit $ac_status); }; }; then
24112 rb__cv_timerfd_create_works=yes
24114 $as_echo "$as_me: program exited with status
$ac_status" >&5
24115 $as_echo "$as_me: failed program was
:" >&5
24116 sed 's/^/| /' conftest.$ac_ext >&5
24118 ( exit $ac_status )
24119 rb__cv_timerfd_create_works=no
24121 rm -rf conftest.dSYM
24122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24128 { $as_echo "$as_me:$LINENO: result
: $rb__cv_timerfd_create_works" >&5
24129 $as_echo "$rb__cv_timerfd_create_works" >&6; }
24130 case $rb__cv_timerfd_create_works in
24132 cat >>confdefs.h <<\_ACEOF
24133 #define USE_TIMERFD_CREATE 1
24139 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24140 # for constant arguments. Useless!
24141 { $as_echo "$as_me:$LINENO: checking
for working alloca.h
" >&5
24142 $as_echo_n "checking
for working alloca.h...
" >&6; }
24143 if test "${ac_cv_working_alloca_h+set}" = set; then
24144 $as_echo_n "(cached
) " >&6
24146 cat >conftest.$ac_ext <<_ACEOF
24149 cat confdefs.h >>conftest.$ac_ext
24150 cat >>conftest.$ac_ext <<_ACEOF
24151 /* end confdefs.h. */
24152 #include <alloca.h>
24156 char *p = (char *) alloca (2 * sizeof (int));
24162 rm -f conftest.$ac_objext conftest$ac_exeext
24163 if { (ac_try="$ac_link"
24164 case "(($ac_try" in
24165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24166 *) ac_try_echo=$ac_try;;
24168 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24169 $as_echo "$ac_try_echo") >&5
24170 (eval "$ac_link") 2>conftest.er1
24172 grep -v '^ *+' conftest.er1 >conftest.err
24174 cat conftest.err >&5
24175 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24176 (exit $ac_status); } && {
24177 test -z "$ac_c_werror_flag" ||
24178 test ! -s conftest.err
24179 } && test -s conftest$ac_exeext && {
24180 test "$cross_compiling" = yes ||
24181 $as_test_x conftest$ac_exeext
24183 ac_cv_working_alloca_h=yes
24185 $as_echo "$as_me: failed program was
:" >&5
24186 sed 's/^/| /' conftest.$ac_ext >&5
24188 ac_cv_working_alloca_h=no
24191 rm -rf conftest.dSYM
24192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24193 conftest$ac_exeext conftest.$ac_ext
24195 { $as_echo "$as_me:$LINENO: result
: $ac_cv_working_alloca_h" >&5
24196 $as_echo "$ac_cv_working_alloca_h" >&6; }
24197 if test $ac_cv_working_alloca_h = yes; then
24199 cat >>confdefs.h <<\_ACEOF
24200 #define HAVE_ALLOCA_H 1
24205 { $as_echo "$as_me:$LINENO: checking
for alloca
" >&5
24206 $as_echo_n "checking
for alloca...
" >&6; }
24207 if test "${ac_cv_func_alloca_works+set}" = set; then
24208 $as_echo_n "(cached
) " >&6
24210 cat >conftest.$ac_ext <<_ACEOF
24213 cat confdefs.h >>conftest.$ac_ext
24214 cat >>conftest.$ac_ext <<_ACEOF
24215 /* end confdefs.h. */
24217 # define alloca __builtin_alloca
24220 # include <malloc.h>
24221 # define alloca _alloca
24223 # ifdef HAVE_ALLOCA_H
24224 # include <alloca.h>
24229 # ifndef alloca /* predefined by HP cc +Olibcalls */
24240 char *p = (char *) alloca (1);
24246 rm -f conftest.$ac_objext conftest$ac_exeext
24247 if { (ac_try="$ac_link"
24248 case "(($ac_try" in
24249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24250 *) ac_try_echo=$ac_try;;
24252 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24253 $as_echo "$ac_try_echo") >&5
24254 (eval "$ac_link") 2>conftest.er1
24256 grep -v '^ *+' conftest.er1 >conftest.err
24258 cat conftest.err >&5
24259 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24260 (exit $ac_status); } && {
24261 test -z "$ac_c_werror_flag" ||
24262 test ! -s conftest.err
24263 } && test -s conftest$ac_exeext && {
24264 test "$cross_compiling" = yes ||
24265 $as_test_x conftest$ac_exeext
24267 ac_cv_func_alloca_works=yes
24269 $as_echo "$as_me: failed program was
:" >&5
24270 sed 's/^/| /' conftest.$ac_ext >&5
24272 ac_cv_func_alloca_works=no
24275 rm -rf conftest.dSYM
24276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24277 conftest$ac_exeext conftest.$ac_ext
24279 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_alloca_works" >&5
24280 $as_echo "$ac_cv_func_alloca_works" >&6; }
24282 if test $ac_cv_func_alloca_works = yes; then
24284 cat >>confdefs.h <<\_ACEOF
24285 #define HAVE_ALLOCA 1
24289 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24290 # that cause trouble. Some versions do not even contain alloca or
24291 # contain a buggy version. If you still want to use their alloca,
24292 # use ar to extract alloca.o from them instead of compiling alloca.c.
24294 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24296 cat >>confdefs.h <<\_ACEOF
24301 { $as_echo "$as_me:$LINENO: checking whether \
`alloca.c' needs Cray hooks" >&5
24302 $as_echo_n "checking whether \`alloca.c
' needs Cray hooks... " >&6; }
24303 if test "${ac_cv_os_cray+set}" = set; then
24304 $as_echo_n "(cached) " >&6
24306 cat >conftest.$ac_ext <<_ACEOF
24309 cat confdefs.h >>conftest.$ac_ext
24310 cat >>conftest.$ac_ext <<_ACEOF
24311 /* end confdefs.h. */
24312 #if defined CRAY && ! defined CRAY2
24319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24320 $EGREP "webecray" >/dev/null 2>&1; then
24328 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24329 $as_echo "$ac_cv_os_cray" >&6; }
24330 if test $ac_cv_os_cray = yes; then
24331 for ac_func in _getb67 GETB67 getb67; do
24332 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24333 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24334 $as_echo_n "checking for $ac_func... " >&6; }
24335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24336 $as_echo_n "(cached) " >&6
24338 cat >conftest.$ac_ext <<_ACEOF
24341 cat confdefs.h >>conftest.$ac_ext
24342 cat >>conftest.$ac_ext <<_ACEOF
24343 /* end confdefs.h. */
24344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24346 #define $ac_func innocuous_$ac_func
24348 /* System header to define __stub macros and hopefully few prototypes,
24349 which can conflict with char $ac_func (); below.
24350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24351 <limits.h> exists even on freestanding compilers. */
24354 # include <limits.h>
24356 # include <assert.h>
24361 /* Override any GCC internal prototype to avoid an error.
24362 Use char because int might match the return type of a GCC
24363 builtin and then its argument prototype would still apply. */
24368 /* The GNU C library defines this for functions which it implements
24369 to always fail with ENOSYS. Some functions are actually named
24370 something starting with __ and the normal name is an alias. */
24371 #if defined __stub_$ac_func || defined __stub___$ac_func
24378 return $ac_func ();
24383 rm -f conftest.$ac_objext conftest$ac_exeext
24384 if { (ac_try="$ac_link"
24385 case "(($ac_try" in
24386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24387 *) ac_try_echo=$ac_try;;
24389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24390 $as_echo "$ac_try_echo") >&5
24391 (eval "$ac_link") 2>conftest.er1
24393 grep -v '^
*+' conftest.er1 >conftest.err
24395 cat conftest.err >&5
24396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24397 (exit $ac_status); } && {
24398 test -z "$ac_c_werror_flag" ||
24399 test ! -s conftest.err
24400 } && test -s conftest$ac_exeext && {
24401 test "$cross_compiling" = yes ||
24402 $as_test_x conftest$ac_exeext
24404 eval "$as_ac_var=yes"
24406 $as_echo "$as_me: failed program was:" >&5
24407 sed 's
/^
/| /' conftest.$ac_ext >&5
24409 eval "$as_ac_var=no"
24412 rm -rf conftest.dSYM
24413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24414 conftest$ac_exeext conftest.$ac_ext
24416 ac_res=`eval 'as_val
=${'$as_ac_var'}
24417 $as_echo "$as_val"'`
24418 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24419 $as_echo "$ac_res" >&6; }
24420 as_val=`eval 'as_val
=${'$as_ac_var'}
24421 $as_echo "$as_val"'`
24422 if test "x$as_val" = x""yes; then
24424 cat >>confdefs.h <<_ACEOF
24425 #define CRAY_STACKSEG_END $ac_func
24434 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24435 $as_echo_n "checking stack direction for C alloca... " >&6; }
24436 if test "${ac_cv_c_stack_direction+set}" = set; then
24437 $as_echo_n "(cached) " >&6
24439 if test "$cross_compiling" = yes; then
24440 ac_cv_c_stack_direction=0
24442 cat >conftest.$ac_ext <<_ACEOF
24445 cat confdefs.h >>conftest.$ac_ext
24446 cat >>conftest.$ac_ext <<_ACEOF
24447 /* end confdefs.h. */
24448 $ac_includes_default
24450 find_stack_direction ()
24452 static char *addr = 0;
24457 return find_stack_direction ();
24460 return (&dummy > addr) ? 1 : -1;
24466 return find_stack_direction () < 0;
24469 rm -f conftest$ac_exeext
24470 if { (ac_try="$ac_link"
24471 case "(($ac_try" in
24472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24473 *) ac_try_echo=$ac_try;;
24475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24476 $as_echo "$ac_try_echo") >&5
24477 (eval "$ac_link") 2>&5
24479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
24481 { (case "(($ac_try" in
24482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24483 *) ac_try_echo=$ac_try;;
24485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24486 $as_echo "$ac_try_echo") >&5
24487 (eval "$ac_try") 2>&5
24489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24490 (exit $ac_status); }; }; then
24491 ac_cv_c_stack_direction=1
24493 $as_echo "$as_me: program exited with status $ac_status" >&5
24494 $as_echo "$as_me: failed program was:" >&5
24495 sed 's
/^
/| /' conftest.$ac_ext >&5
24497 ( exit $ac_status )
24498 ac_cv_c_stack_direction=-1
24500 rm -rf conftest.dSYM
24501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24506 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24507 $as_echo "$ac_cv_c_stack_direction" >&6; }
24509 cat >>confdefs.h <<_ACEOF
24510 #define STACK_DIRECTION $ac_cv_c_stack_direction
24517 for ac_header in vfork.h
24519 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24521 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24522 $as_echo_n "checking for $ac_header... " >&6; }
24523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24524 $as_echo_n "(cached) " >&6
24526 ac_res=`eval 'as_val
=${'$as_ac_Header'}
24527 $as_echo "$as_val"'`
24528 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24529 $as_echo "$ac_res" >&6; }
24531 # Is the header compilable?
24532 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24533 $as_echo_n "checking $ac_header usability... " >&6; }
24534 cat >conftest.$ac_ext <<_ACEOF
24537 cat confdefs.h >>conftest.$ac_ext
24538 cat >>conftest.$ac_ext <<_ACEOF
24539 /* end confdefs.h. */
24540 $ac_includes_default
24541 #include <$ac_header>
24543 rm -f conftest.$ac_objext
24544 if { (ac_try="$ac_compile"
24545 case "(($ac_try" in
24546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24547 *) ac_try_echo=$ac_try;;
24549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24550 $as_echo "$ac_try_echo") >&5
24551 (eval "$ac_compile") 2>conftest.er1
24553 grep -v '^
*+' conftest.er1 >conftest.err
24555 cat conftest.err >&5
24556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557 (exit $ac_status); } && {
24558 test -z "$ac_c_werror_flag" ||
24559 test ! -s conftest.err
24560 } && test -s conftest.$ac_objext; then
24561 ac_header_compiler=yes
24563 $as_echo "$as_me: failed program was:" >&5
24564 sed 's
/^
/| /' conftest.$ac_ext >&5
24566 ac_header_compiler=no
24569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24570 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24571 $as_echo "$ac_header_compiler" >&6; }
24573 # Is the header present?
24574 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24575 $as_echo_n "checking $ac_header presence... " >&6; }
24576 cat >conftest.$ac_ext <<_ACEOF
24579 cat confdefs.h >>conftest.$ac_ext
24580 cat >>conftest.$ac_ext <<_ACEOF
24581 /* end confdefs.h. */
24582 #include <$ac_header>
24584 if { (ac_try="$ac_cpp conftest.$ac_ext"
24585 case "(($ac_try" in
24586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24587 *) ac_try_echo=$ac_try;;
24589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24590 $as_echo "$ac_try_echo") >&5
24591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24593 grep -v '^
*+' conftest.er1 >conftest.err
24595 cat conftest.err >&5
24596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597 (exit $ac_status); } >/dev/null && {
24598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24599 test ! -s conftest.err
24601 ac_header_preproc=yes
24603 $as_echo "$as_me: failed program was:" >&5
24604 sed 's
/^
/| /' conftest.$ac_ext >&5
24606 ac_header_preproc=no
24609 rm -f conftest.err conftest.$ac_ext
24610 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24611 $as_echo "$ac_header_preproc" >&6; }
24613 # So? What about this header?
24614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24617 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
24619 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
24620 ac_header_preproc=yes
24623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24624 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24626 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24628 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24630 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
24632 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
24633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24634 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24638 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24639 $as_echo_n "checking for $ac_header... " >&6; }
24640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24641 $as_echo_n "(cached) " >&6
24643 eval "$as_ac_Header=\$ac_header_preproc"
24645 ac_res=`eval 'as_val
=${'$as_ac_Header'}
24646 $as_echo "$as_val"'`
24647 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24648 $as_echo "$ac_res" >&6; }
24651 as_val=`eval 'as_val
=${'$as_ac_Header'}
24652 $as_echo "$as_val"'`
24653 if test "x$as_val" = x""yes; then
24654 cat >>confdefs.h <<_ACEOF
24655 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24664 for ac_func in fork vfork
24666 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24667 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24668 $as_echo_n "checking for $ac_func... " >&6; }
24669 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24670 $as_echo_n "(cached) " >&6
24672 cat >conftest.$ac_ext <<_ACEOF
24675 cat confdefs.h >>conftest.$ac_ext
24676 cat >>conftest.$ac_ext <<_ACEOF
24677 /* end confdefs.h. */
24678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24680 #define $ac_func innocuous_$ac_func
24682 /* System header to define __stub macros and hopefully few prototypes,
24683 which can conflict with char $ac_func (); below.
24684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24685 <limits.h> exists even on freestanding compilers. */
24688 # include <limits.h>
24690 # include <assert.h>
24695 /* Override any GCC internal prototype to avoid an error.
24696 Use char because int might match the return type of a GCC
24697 builtin and then its argument prototype would still apply. */
24702 /* The GNU C library defines this for functions which it implements
24703 to always fail with ENOSYS. Some functions are actually named
24704 something starting with __ and the normal name is an alias. */
24705 #if defined __stub_$ac_func || defined __stub___$ac_func
24712 return $ac_func ();
24717 rm -f conftest.$ac_objext conftest$ac_exeext
24718 if { (ac_try="$ac_link"
24719 case "(($ac_try" in
24720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24721 *) ac_try_echo=$ac_try;;
24723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24724 $as_echo "$ac_try_echo") >&5
24725 (eval "$ac_link") 2>conftest.er1
24727 grep -v '^
*+' conftest.er1 >conftest.err
24729 cat conftest.err >&5
24730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731 (exit $ac_status); } && {
24732 test -z "$ac_c_werror_flag" ||
24733 test ! -s conftest.err
24734 } && test -s conftest$ac_exeext && {
24735 test "$cross_compiling" = yes ||
24736 $as_test_x conftest$ac_exeext
24738 eval "$as_ac_var=yes"
24740 $as_echo "$as_me: failed program was:" >&5
24741 sed 's
/^
/| /' conftest.$ac_ext >&5
24743 eval "$as_ac_var=no"
24746 rm -rf conftest.dSYM
24747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24748 conftest$ac_exeext conftest.$ac_ext
24750 ac_res=`eval 'as_val
=${'$as_ac_var'}
24751 $as_echo "$as_val"'`
24752 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24753 $as_echo "$ac_res" >&6; }
24754 as_val=`eval 'as_val
=${'$as_ac_var'}
24755 $as_echo "$as_val"'`
24756 if test "x$as_val" = x""yes; then
24757 cat >>confdefs.h <<_ACEOF
24758 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24764 if test "x$ac_cv_func_fork" = xyes; then
24765 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
24766 $as_echo_n "checking for working fork... " >&6; }
24767 if test "${ac_cv_func_fork_works+set}" = set; then
24768 $as_echo_n "(cached) " >&6
24770 if test "$cross_compiling" = yes; then
24771 ac_cv_func_fork_works=cross
24773 cat >conftest.$ac_ext <<_ACEOF
24776 cat confdefs.h >>conftest.$ac_ext
24777 cat >>conftest.$ac_ext <<_ACEOF
24778 /* end confdefs.h. */
24779 $ac_includes_default
24784 /* By Ruediger Kuhlmann. */
24785 return fork () < 0;
24791 rm -f conftest$ac_exeext
24792 if { (ac_try="$ac_link"
24793 case "(($ac_try" in
24794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24795 *) ac_try_echo=$ac_try;;
24797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24798 $as_echo "$ac_try_echo") >&5
24799 (eval "$ac_link") 2>&5
24801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
24803 { (case "(($ac_try" in
24804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24805 *) ac_try_echo=$ac_try;;
24807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24808 $as_echo "$ac_try_echo") >&5
24809 (eval "$ac_try") 2>&5
24811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812 (exit $ac_status); }; }; then
24813 ac_cv_func_fork_works=yes
24815 $as_echo "$as_me: program exited with status $ac_status" >&5
24816 $as_echo "$as_me: failed program was:" >&5
24817 sed 's
/^
/| /' conftest.$ac_ext >&5
24819 ( exit $ac_status )
24820 ac_cv_func_fork_works=no
24822 rm -rf conftest.dSYM
24823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24828 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24829 $as_echo "$ac_cv_func_fork_works" >&6; }
24832 ac_cv_func_fork_works=$ac_cv_func_fork
24834 if test "x$ac_cv_func_fork_works" = xcross; then
24836 *-*-amigaos* | *-*-msdosdjgpp*)
24837 # Override, as these systems have only a dummy fork() stub
24838 ac_cv_func_fork_works=no
24841 ac_cv_func_fork_works=yes
24844 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24845 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24847 ac_cv_func_vfork_works=$ac_cv_func_vfork
24848 if test "x$ac_cv_func_vfork" = xyes; then
24849 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
24850 $as_echo_n "checking for working vfork... " >&6; }
24851 if test "${ac_cv_func_vfork_works+set}" = set; then
24852 $as_echo_n "(cached) " >&6
24854 if test "$cross_compiling" = yes; then
24855 ac_cv_func_vfork_works=cross
24857 cat >conftest.$ac_ext <<_ACEOF
24860 cat confdefs.h >>conftest.$ac_ext
24861 cat >>conftest.$ac_ext <<_ACEOF
24862 /* end confdefs.h. */
24863 /* Thanks to Paul Eggert for this test. */
24864 $ac_includes_default
24865 #include <sys/wait.h>
24866 #ifdef HAVE_VFORK_H
24867 # include <vfork.h>
24869 /* On some sparc systems, changes by the child to local and incoming
24870 argument registers are propagated back to the parent. The compiler
24871 is told about this with #include <vfork.h>, but some compilers
24872 (e.g. gcc -O) don't grok
<vfork.h
>. Test
for this by using a
24873 static variable whose address is put into a register that is
24874 clobbered by the vfork.
*/
24877 sparc_address_test
(int arg
)
24879 sparc_address_test
(arg
) int arg
;
24882 static pid_t child
;
24900 pid_t parent
= getpid
();
24903 sparc_address_test
(0);
24908 /* Here is another
test for sparc vfork register problems. This
24909 test uses lots of
local variables
, at least as many
local
24910 variables as main has allocated so far including compiler
24911 temporaries.
4 locals are enough
for gcc
1.40.3 on a Solaris
24912 4.1.3 sparc
, but we use
8 to be safe. A buggy compiler should
24913 reuse the register of parent
for one of the
local variables
,
24914 since it will think that parent can
't possibly be used any more
24915 in this routine. Assigning to the local variable will thus
24916 munge parent in the parent process. */
24918 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24919 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24920 /* Convince the compiler that p..p7 are live; otherwise, it might
24921 use the same hardware register for all 8 local variables. */
24922 if (p != p1 || p != p2 || p != p3 || p != p4
24923 || p != p5 || p != p6 || p != p7)
24926 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24927 from child
file descriptors. If the child closes a descriptor
24928 before it execs or exits
, this munges the parent
's descriptor
24929 as well. Test for this by closing stdout in the child. */
24930 _exit(close(fileno(stdout)) != 0);
24935 while (wait(&status) != child)
24938 /* Was there some problem with vforking? */
24941 /* Did the child fail? (This shouldn't happen.
) */
24944 /* Did the vfork
/compiler bug occur?
*/
24945 || parent
!= getpid
()
24947 /* Did the
file descriptor bug occur?
*/
24948 || fstat
(fileno
(stdout
), &st
) != 0
24953 rm -f conftest
$ac_exeext
24954 if { (ac_try
="$ac_link"
24955 case "(($ac_try" in
24956 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
24957 *) ac_try_echo=$ac_try;;
24959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24960 $as_echo "$ac_try_echo") >&5
24961 (eval "$ac_link") 2>&5
24963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24965 { (case "(($ac_try" in
24966 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
24967 *) ac_try_echo
=$ac_try;;
24969 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24970 $as_echo "$ac_try_echo") >&5
24971 (eval "$ac_try") 2>&5
24973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974 (exit $ac_status); }; }; then
24975 ac_cv_func_vfork_works
=yes
24977 $as_echo "$as_me: program exited with status $ac_status" >&5
24978 $as_echo "$as_me: failed program was:" >&5
24979 sed 's/^/| /' conftest.
$ac_ext >&5
24981 ( exit $ac_status )
24982 ac_cv_func_vfork_works
=no
24984 rm -rf conftest.dSYM
24985 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
24990 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24991 $as_echo "$ac_cv_func_vfork_works" >&6; }
24994 if test "x$ac_cv_func_fork_works" = xcross
; then
24995 ac_cv_func_vfork_works
=$ac_cv_func_vfork
24996 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24997 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25000 if test "x$ac_cv_func_vfork_works" = xyes
; then
25002 cat >>confdefs.h
<<\_ACEOF
25003 #define HAVE_WORKING_VFORK 1
25008 cat >>confdefs.h
<<\_ACEOF
25013 if test "x$ac_cv_func_fork_works" = xyes
; then
25015 cat >>confdefs.h
<<\_ACEOF
25016 #define HAVE_WORKING_FORK 1
25023 for ac_header
in stdlib.h unistd.h
25025 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25026 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25027 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25028 $as_echo_n "checking for $ac_header... " >&6; }
25029 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25030 $as_echo_n "(cached) " >&6
25032 ac_res
=`eval 'as_val=${'$as_ac_Header'}
25033 $as_echo "$as_val"'`
25034 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25035 $as_echo "$ac_res" >&6; }
25037 # Is the header compilable?
25038 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25039 $as_echo_n "checking $ac_header usability... " >&6; }
25040 cat >conftest.
$ac_ext <<_ACEOF
25043 cat confdefs.h
>>conftest.
$ac_ext
25044 cat >>conftest.
$ac_ext <<_ACEOF
25045 /* end confdefs.h. */
25046 $ac_includes_default
25047 #include <$ac_header>
25049 rm -f conftest.
$ac_objext
25050 if { (ac_try
="$ac_compile"
25051 case "(($ac_try" in
25052 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
25053 *) ac_try_echo=$ac_try;;
25055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25056 $as_echo "$ac_try_echo") >&5
25057 (eval "$ac_compile") 2>conftest.er1
25059 grep -v '^ *+' conftest.er1 >conftest.err
25061 cat conftest.err >&5
25062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063 (exit $ac_status); } && {
25064 test -z "$ac_c_werror_flag" ||
25065 test ! -s conftest.err
25066 } && test -s conftest.$ac_objext; then
25067 ac_header_compiler=yes
25069 $as_echo "$as_me: failed program was:" >&5
25070 sed 's/^/| /' conftest.$ac_ext >&5
25072 ac_header_compiler=no
25075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25076 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25077 $as_echo "$ac_header_compiler" >&6; }
25079 # Is the header present?
25080 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25081 $as_echo_n "checking $ac_header presence... " >&6; }
25082 cat >conftest.$ac_ext <<_ACEOF
25085 cat confdefs.h >>conftest.$ac_ext
25086 cat >>conftest.$ac_ext <<_ACEOF
25087 /* end confdefs.h. */
25088 #include <$ac_header>
25090 if { (ac_try="$ac_cpp conftest.$ac_ext"
25091 case "(($ac_try" in
25092 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
25093 *) ac_try_echo
=$ac_try;;
25095 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25096 $as_echo "$ac_try_echo") >&5
25097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25099 grep -v '^ *+' conftest.er1
>conftest.err
25101 cat conftest.err
>&5
25102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25103 (exit $ac_status); } >/dev
/null
&& {
25104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25105 test ! -s conftest.err
25107 ac_header_preproc
=yes
25109 $as_echo "$as_me: failed program was:" >&5
25110 sed 's/^/| /' conftest.
$ac_ext >&5
25112 ac_header_preproc
=no
25115 rm -f conftest.err conftest.
$ac_ext
25116 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25117 $as_echo "$ac_header_preproc" >&6; }
25119 # So? What about this header?
25120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25123 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25125 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25126 ac_header_preproc
=yes
25129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25130 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25132 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25134 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25136 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25138 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25140 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25144 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25145 $as_echo_n "checking for $ac_header... " >&6; }
25146 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25147 $as_echo_n "(cached) " >&6
25149 eval "$as_ac_Header=\$ac_header_preproc"
25151 ac_res
=`eval 'as_val=${'$as_ac_Header'}
25152 $as_echo "$as_val"'`
25153 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25154 $as_echo "$ac_res" >&6; }
25157 as_val
=`eval 'as_val=${'$as_ac_Header'}
25158 $as_echo "$as_val"'`
25159 if test "x$as_val" = x
""yes; then
25160 cat >>confdefs.h
<<_ACEOF
25161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25169 for ac_func
in getpagesize
25171 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25172 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25173 $as_echo_n "checking for $ac_func... " >&6; }
25174 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25175 $as_echo_n "(cached) " >&6
25177 cat >conftest.
$ac_ext <<_ACEOF
25180 cat confdefs.h
>>conftest.
$ac_ext
25181 cat >>conftest.
$ac_ext <<_ACEOF
25182 /* end confdefs.h. */
25183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25185 #define $ac_func innocuous_$ac_func
25187 /* System header to define __stub macros and hopefully few prototypes,
25188 which can conflict with char $ac_func (); below.
25189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25190 <limits.h> exists even on freestanding compilers. */
25193 # include <limits.h>
25195 # include <assert.h>
25200 /* Override any GCC internal prototype to avoid an error.
25201 Use char because int might match the return type of a GCC
25202 builtin and then its argument prototype would still apply. */
25207 /* The GNU C library defines this for functions which it implements
25208 to always fail with ENOSYS. Some functions are actually named
25209 something starting with __ and the normal name is an alias. */
25210 #if defined __stub_$ac_func || defined __stub___$ac_func
25217 return $ac_func ();
25222 rm -f conftest.
$ac_objext conftest
$ac_exeext
25223 if { (ac_try
="$ac_link"
25224 case "(($ac_try" in
25225 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
25226 *) ac_try_echo=$ac_try;;
25228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25229 $as_echo "$ac_try_echo") >&5
25230 (eval "$ac_link") 2>conftest.er1
25232 grep -v '^ *+' conftest.er1 >conftest.err
25234 cat conftest.err >&5
25235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236 (exit $ac_status); } && {
25237 test -z "$ac_c_werror_flag" ||
25238 test ! -s conftest.err
25239 } && test -s conftest$ac_exeext && {
25240 test "$cross_compiling" = yes ||
25241 $as_test_x conftest$ac_exeext
25243 eval "$as_ac_var=yes"
25245 $as_echo "$as_me: failed program was:" >&5
25246 sed 's/^/| /' conftest.$ac_ext >&5
25248 eval "$as_ac_var=no"
25251 rm -rf conftest.dSYM
25252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25253 conftest$ac_exeext conftest.$ac_ext
25255 ac_res=`eval 'as_val=${'$as_ac_var'}
25256 $as_echo "$as_val"'`
25257 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25258 $as_echo "$ac_res" >&6; }
25259 as_val=`eval 'as_val=${'$as_ac_var'}
25260 $as_echo "$as_val"'`
25261 if test "x$as_val" = x""yes; then
25262 cat >>confdefs.h <<_ACEOF
25263 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25269 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
25270 $as_echo_n "checking for working mmap... " >&6; }
25271 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
25272 $as_echo_n "(cached) " >&6
25274 if test "$cross_compiling" = yes; then
25275 ac_cv_func_mmap_fixed_mapped=no
25277 cat >conftest.$ac_ext <<_ACEOF
25280 cat confdefs.h >>conftest.$ac_ext
25281 cat >>conftest.$ac_ext <<_ACEOF
25282 /* end confdefs.h. */
25283 $ac_includes_default
25284 /* malloc might have been renamed as rpl_malloc. */
25287 /* Thanks to Mike Haertel and Jim Avera for this test.
25288 Here is a matrix of mmap possibilities:
25289 mmap private not fixed
25290 mmap private fixed at somewhere currently unmapped
25291 mmap private fixed at somewhere already mapped
25292 mmap shared not fixed
25293 mmap shared fixed at somewhere currently unmapped
25294 mmap shared fixed at somewhere already mapped
25295 For private mappings, we should verify that changes cannot be read()
25296 back from the file, nor mmap's back from the file at a different
25297 address. (There have been systems where private was not correctly
25298 implemented like the infamous i386 svr4.0, and systems where the
25299 VM page cache was not coherent with the file system buffer cache
25300 like early versions of FreeBSD and possibly contemporary NetBSD.)
25301 For shared mappings, we should conversely verify that changes get
25302 propagated back to all the places they're supposed to be.
25304 Grep wants private fixed already mapped.
25305 The main things grep needs to know about mmap are:
25306 * does it exist and is it safe to write into the mmap'd area
25307 * how to use it (BSD variants) */
25310 #include <sys/mman.h>
25312 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
25316 /* This mess was copied from the GNU getpagesize.h. */
25317 #ifndef HAVE_GETPAGESIZE
25318 /* Assume that all systems that can run configure have sys/param.h. */
25319 # ifndef HAVE_SYS_PARAM_H
25320 # define HAVE_SYS_PARAM_H 1
25323 # ifdef _SC_PAGESIZE
25324 # define getpagesize() sysconf(_SC_PAGESIZE)
25325 # else /* no _SC_PAGESIZE */
25326 # ifdef HAVE_SYS_PARAM_H
25327 # include <sys/param.h>
25328 # ifdef EXEC_PAGESIZE
25329 # define getpagesize() EXEC_PAGESIZE
25330 # else /* no EXEC_PAGESIZE */
25332 # define getpagesize() NBPG * CLSIZE
25335 # endif /* no CLSIZE */
25336 # else /* no NBPG */
25338 # define getpagesize() NBPC
25339 # else /* no NBPC */
25341 # define getpagesize() PAGESIZE
25342 # endif /* PAGESIZE */
25343 # endif /* no NBPC */
25344 # endif /* no NBPG */
25345 # endif /* no EXEC_PAGESIZE */
25346 # else /* no HAVE_SYS_PARAM_H */
25347 # define getpagesize() 8192 /* punt totally */
25348 # endif /* no HAVE_SYS_PARAM_H */
25349 # endif /* no _SC_PAGESIZE */
25351 #endif /* no HAVE_GETPAGESIZE */
25356 char *data, *data2, *data3;
25360 pagesize = getpagesize ();
25362 /* First, make a file with some known garbage in it. */
25363 data = (char *) malloc (pagesize);
25366 for (i = 0; i < pagesize; ++i)
25367 *(data + i) = rand ();
25369 fd = creat ("conftest.mmap", 0600);
25372 if (write (fd, data, pagesize) != pagesize)
25376 /* Next, try to mmap the file at a fixed address which already has
25377 something else allocated at it. If we can, also make sure that
25378 we see the same garbage. */
25379 fd = open ("conftest.mmap", O_RDWR);
25382 data2 = (char *) malloc (2 * pagesize);
25385 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
25386 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25387 MAP_PRIVATE | MAP_FIXED, fd, 0L))
25389 for (i = 0; i < pagesize; ++i)
25390 if (*(data + i) != *(data2 + i))
25393 /* Finally, make sure that changes to the mapped area do not
25394 percolate back to the file as seen by read(). (This is a bug on
25395 some variants of i386 svr4.0.) */
25396 for (i = 0; i < pagesize; ++i)
25397 *(data2 + i) = *(data2 + i) + 1;
25398 data3 = (char *) malloc (pagesize);
25401 if (read (fd, data3, pagesize) != pagesize)
25403 for (i = 0; i < pagesize; ++i)
25404 if (*(data + i) != *(data3 + i))
25410 rm -f conftest$ac_exeext
25411 if { (ac_try="$ac_link"
25412 case "(($ac_try" in
25413 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
25414 *) ac_try_echo
=$ac_try;;
25416 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25417 $as_echo "$ac_try_echo") >&5
25418 (eval "$ac_link") 2>&5
25420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25421 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25422 { (case "(($ac_try" in
25423 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
25424 *) ac_try_echo=$ac_try;;
25426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25427 $as_echo "$ac_try_echo") >&5
25428 (eval "$ac_try") 2>&5
25430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431 (exit $ac_status); }; }; then
25432 ac_cv_func_mmap_fixed_mapped=yes
25434 $as_echo "$as_me: program exited with status $ac_status" >&5
25435 $as_echo "$as_me: failed program was:" >&5
25436 sed 's/^/| /' conftest.$ac_ext >&5
25438 ( exit $ac_status )
25439 ac_cv_func_mmap_fixed_mapped=no
25441 rm -rf conftest.dSYM
25442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25447 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
25448 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
25449 if test $ac_cv_func_mmap_fixed_mapped = yes; then
25451 cat >>confdefs.h <<\_ACEOF
25452 #define HAVE_MMAP 1
25456 rm -f conftest.mmap
25459 { $as_echo "$as_me:$LINENO: checking for /dev/poll" >&5
25460 $as_echo_n "checking for /dev/poll... " >&6; }
25461 if test -c "/dev/poll"; then
25462 { $as_echo "$as_me:$LINENO: result: yes" >&5
25463 $as_echo "yes" >&6; }
25465 cat >>confdefs.h <<\_ACEOF
25466 #define HAVE_DEVPOLL 1
25470 { $as_echo "$as_me:$LINENO: result: no" >&5
25471 $as_echo "no" >&6; }
25475 if test "$is_mingw" = "yes"; then
25477 cat >>confdefs.h <<\_ACEOF
25478 #define HAVE_WIN32 1
25484 { $as_echo "$as_me:$LINENO: checking for OpenSSL" >&5
25485 $as_echo_n "checking for OpenSSL... " >&6; }
25486 # Check whether --enable-openssl was given.
25487 if test "${enable_openssl+set}" = set; then
25488 enableval=$enable_openssl; cf_enable_openssl=$enableval
25490 cf_enable_openssl="auto"
25494 if test "$cf_enable_openssl" != "no" ; then
25495 cf_openssl_basedir=""
25496 if test "$cf_enable_openssl" != "auto" &&
25497 test "$cf_enable_openssl" != "yes" ; then
25498 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
25500 for dirs in /usr/local/ssl /usr/pkg /usr/local \
25501 /usr/local/openssl ; do
25502 if test -f "${dirs}/include/openssl/opensslv.h" ; then
25503 cf_openssl_basedir="${dirs}"
25509 if test ! -z "$cf_openssl_basedir"; then
25510 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
25511 SSL_CFLAGS="-I${cf_openssl_basedir}/include"
25512 SSL_LIBS="-L${cf_openssl_basedir}/lib"
25514 cf_openssl_basedir=""
25517 if test -f "/usr/include/openssl/opensslv.h" ; then
25518 cf_openssl_basedir="/usr"
25522 if test ! -z "$cf_openssl_basedir"; then
25523 { $as_echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
25524 $as_echo "$cf_openssl_basedir" >&6; }
25525 cf_enable_openssl="yes"
25527 { $as_echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5
25528 $as_echo "not found. Specify a correct path?" >&6; }
25529 cf_enable_openssl="no"
25531 unset cf_openssl_basedir
25533 { $as_echo "$as_me:$LINENO: result: disabled" >&5
25534 $as_echo "disabled" >&6; }
25537 save_CPPFLAGS="$CPPFLAGS"
25538 CPPFLAGS="$CPPFLAGS $SSL_CFLAGS"
25540 LIBS="$LIBS $SSL_LIBS"
25541 if test "$cf_enable_openssl" != no; then
25542 { $as_echo "$as_me:$LINENO: checking for OpenSSL 0.9.7 or above" >&5
25543 $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
25544 if test "$cross_compiling" = yes; then
25545 cf_enable_openssl=no
25547 cat >conftest.$ac_ext <<_ACEOF
25550 cat confdefs.h >>conftest.$ac_ext
25551 cat >>conftest.$ac_ext <<_ACEOF
25552 /* end confdefs.h. */
25553 #include <openssl/opensslv.h>
25554 #include <stdlib.h>
25558 if (OPENSSL_VERSION_NUMBER >= 0x00907000)
25559 exit(0); else exit(1);
25564 rm -f conftest$ac_exeext
25565 if { (ac_try="$ac_link"
25566 case "(($ac_try" in
25567 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
25568 *) ac_try_echo
=$ac_try;;
25570 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25571 $as_echo "$ac_try_echo") >&5
25572 (eval "$ac_link") 2>&5
25574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25575 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25576 { (case "(($ac_try" in
25577 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
25578 *) ac_try_echo=$ac_try;;
25580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25581 $as_echo "$ac_try_echo") >&5
25582 (eval "$ac_try") 2>&5
25584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585 (exit $ac_status); }; }; then
25586 cf_enable_openssl=yes
25588 $as_echo "$as_me: program exited with status $ac_status" >&5
25589 $as_echo "$as_me: failed program was:" >&5
25590 sed 's/^/| /' conftest.$ac_ext >&5
25592 ( exit $ac_status )
25593 cf_enable_openssl=no
25595 rm -rf conftest.dSYM
25596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25601 if test "$cf_enable_openssl" != no; then
25602 { $as_echo "$as_me:$LINENO: result: found" >&5
25603 $as_echo "found" >&6; }
25605 { $as_echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5
25606 $as_echo "no - OpenSSL support disabled" >&6; }
25612 if test "$cf_enable_openssl" != no; then
25613 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
25614 { $as_echo "$as_me:$LINENO: checking for RAND_status in -lcrypto" >&5
25615 $as_echo_n "checking for RAND_status in -lcrypto... " >&6; }
25616 if test "${ac_cv_lib_crypto_RAND_status+set}" = set; then
25617 $as_echo_n "(cached) " >&6
25619 ac_check_lib_save_LIBS=$LIBS
25620 LIBS="-lcrypto $LIBS"
25621 cat >conftest.$ac_ext <<_ACEOF
25624 cat confdefs.h >>conftest.$ac_ext
25625 cat >>conftest.$ac_ext <<_ACEOF
25626 /* end confdefs.h. */
25628 /* Override any GCC internal prototype to avoid an error.
25629 Use char because int might match the return type of a GCC
25630 builtin and then its argument prototype would still apply. */
25634 char RAND_status ();
25638 return RAND_status ();
25643 rm -f conftest.$ac_objext conftest$ac_exeext
25644 if { (ac_try="$ac_link"
25645 case "(($ac_try" in
25646 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
25647 *) ac_try_echo
=$ac_try;;
25649 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25650 $as_echo "$ac_try_echo") >&5
25651 (eval "$ac_link") 2>conftest.er1
25653 grep -v '^ *+' conftest.er1
>conftest.err
25655 cat conftest.err
>&5
25656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25657 (exit $ac_status); } && {
25658 test -z "$ac_c_werror_flag" ||
25659 test ! -s conftest.err
25660 } && test -s conftest
$ac_exeext && {
25661 test "$cross_compiling" = yes ||
25662 $as_test_x conftest
$ac_exeext
25664 ac_cv_lib_crypto_RAND_status
=yes
25666 $as_echo "$as_me: failed program was:" >&5
25667 sed 's/^/| /' conftest.
$ac_ext >&5
25669 ac_cv_lib_crypto_RAND_status
=no
25672 rm -rf conftest.dSYM
25673 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25674 conftest
$ac_exeext conftest.
$ac_ext
25675 LIBS
=$ac_check_lib_save_LIBS
25677 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RAND_status" >&5
25678 $as_echo "$ac_cv_lib_crypto_RAND_status" >&6; }
25679 if test "x$ac_cv_lib_crypto_RAND_status" = x
""yes; then
25680 cf_enable_openssl
=yes
25682 cf_enable_openssl
=no
25687 if test "$cf_enable_openssl" != no
; then
25688 CPPFLAGS
="$CPPFLAGS $SSL_LIBS"
25689 { $as_echo "$as_me:$LINENO: checking for SSL_read in -lssl" >&5
25690 $as_echo_n "checking for SSL_read in -lssl... " >&6; }
25691 if test "${ac_cv_lib_ssl_SSL_read+set}" = set; then
25692 $as_echo_n "(cached) " >&6
25694 ac_check_lib_save_LIBS
=$LIBS
25695 LIBS
="-lssl -lcrypto $LIBS"
25696 cat >conftest.
$ac_ext <<_ACEOF
25699 cat confdefs.h
>>conftest.
$ac_ext
25700 cat >>conftest.
$ac_ext <<_ACEOF
25701 /* end confdefs.h. */
25703 /* Override any GCC internal prototype to avoid an error.
25704 Use char because int might match the return type of a GCC
25705 builtin and then its argument prototype would still apply. */
25713 return SSL_read ();
25718 rm -f conftest.
$ac_objext conftest
$ac_exeext
25719 if { (ac_try
="$ac_link"
25720 case "(($ac_try" in
25721 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
25722 *) ac_try_echo=$ac_try;;
25724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25725 $as_echo "$ac_try_echo") >&5
25726 (eval "$ac_link") 2>conftest.er1
25728 grep -v '^ *+' conftest.er1 >conftest.err
25730 cat conftest.err >&5
25731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732 (exit $ac_status); } && {
25733 test -z "$ac_c_werror_flag" ||
25734 test ! -s conftest.err
25735 } && test -s conftest$ac_exeext && {
25736 test "$cross_compiling" = yes ||
25737 $as_test_x conftest$ac_exeext
25739 ac_cv_lib_ssl_SSL_read=yes
25741 $as_echo "$as_me: failed program was:" >&5
25742 sed 's/^/| /' conftest.$ac_ext >&5
25744 ac_cv_lib_ssl_SSL_read=no
25747 rm -rf conftest.dSYM
25748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25749 conftest$ac_exeext conftest.$ac_ext
25750 LIBS=$ac_check_lib_save_LIBS
25752 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_read" >&5
25753 $as_echo "$ac_cv_lib_ssl_SSL_read" >&6; }
25754 if test "x$ac_cv_lib_ssl_SSL_read" = x""yes; then
25755 SSL_LIBS="$SSL_LIBS -lssl -lcrypto"
25757 cf_enable_openssl=no
25764 { $as_echo "$as_me:$LINENO: checking for GnuTLS" >&5
25765 $as_echo_n "checking for GnuTLS... " >&6; }
25766 # Check whether --enable-gnutls was given.
25767 if test "${enable_gnutls+set}" = set; then
25768 enableval=$enable_gnutls; cf_enable_gnutls=$enableval
25770 cf_enable_gnutls="auto"
25774 if test "$cf_enable_gnutls" != no; then
25777 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
25778 if test -n "$ac_tool_prefix"; then
25779 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25780 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25781 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
25782 $as_echo_n "checking for $ac_word... " >&6; }
25783 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25784 $as_echo_n "(cached) " >&6
25786 case $PKG_CONFIG in
25788 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25792 for as_dir in $PATH
25795 test -z "$as_dir" && as_dir=.
25796 for ac_exec_ext in '' $ac_executable_extensions; do
25797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25798 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25799 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25809 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25810 if test -n "$PKG_CONFIG"; then
25811 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25812 $as_echo "$PKG_CONFIG" >&6; }
25814 { $as_echo "$as_me:$LINENO: result: no" >&5
25815 $as_echo "no" >&6; }
25820 if test -z "$ac_cv_path_PKG_CONFIG"; then
25821 ac_pt_PKG_CONFIG=$PKG_CONFIG
25822 # Extract the first word of "pkg-config", so it can be a program name with args.
25823 set dummy pkg-config; ac_word=$2
25824 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
25825 $as_echo_n "checking for $ac_word... " >&6; }
25826 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
25827 $as_echo_n "(cached) " >&6
25829 case $ac_pt_PKG_CONFIG in
25831 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
25834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25835 for as_dir in $PATH
25838 test -z "$as_dir" && as_dir=.
25839 for ac_exec_ext in '' $ac_executable_extensions; do
25840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25841 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25842 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25852 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
25853 if test -n "$ac_pt_PKG_CONFIG"; then
25854 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
25855 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
25857 { $as_echo "$as_me:$LINENO: result: no" >&5
25858 $as_echo "no" >&6; }
25861 if test "x$ac_pt_PKG_CONFIG" = x; then
25864 case $cross_compiling:$ac_tool_warned in
25866 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
25867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25868 ac_tool_warned=yes ;;
25870 PKG_CONFIG=$ac_pt_PKG_CONFIG
25873 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
25877 if test -n "$PKG_CONFIG"; then
25878 _pkg_min_version=0.9.0
25879 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
25880 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
25881 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
25882 { $as_echo "$as_me:$LINENO: result: yes" >&5
25883 $as_echo "yes" >&6; }
25885 { $as_echo "$as_me:$LINENO: result: no" >&5
25886 $as_echo "no" >&6; }
25893 { $as_echo "$as_me:$LINENO: checking for GNUTLS" >&5
25894 $as_echo_n "checking for GNUTLS... " >&6; }
25896 if test -n "$PKG_CONFIG"; then
25897 if test -n "$GNUTLS_CFLAGS"; then
25898 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
25900 if test -n "$PKG_CONFIG" && \
25901 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnutls\"") >&5
25902 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
25904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905 (exit $ac_status); }; then
25906 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev
/null
`
25914 if test -n "$PKG_CONFIG"; then
25915 if test -n "$GNUTLS_LIBS"; then
25916 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
25918 if test -n "$PKG_CONFIG" && \
25919 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnutls\"") >&5
25920 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
25922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25923 (exit $ac_status); }; then
25924 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev
/null
`
25935 if test $pkg_failed = yes; then
25937 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25938 _pkg_short_errors_supported=yes
25940 _pkg_short_errors_supported=no
25942 if test $_pkg_short_errors_supported = yes; then
25943 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls"`
25945 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls"`
25947 # Put the nasty error message in config.log where it belongs
25948 echo "$GNUTLS_PKG_ERRORS" >&5
25950 { $as_echo "$as_me:$LINENO: result: no" >&5
25951 $as_echo "no" >&6; }
25952 cf_enable_gnutls="no"
25953 elif test $pkg_failed = untried; then
25954 cf_enable_gnutls="no"
25956 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
25957 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
25958 { $as_echo "$as_me:$LINENO: result: yes" >&5
25959 $as_echo "yes" >&6; }
25961 cf_enable_gnutls="yes"
25966 if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes"; then
25967 cf_enable_gnutls="no"
25970 if test x"$cf_enable_openssl" != xno; then
25972 cat >>confdefs.h <<\_ACEOF
25973 #define HAVE_OPENSSL 1
25979 elif test x"$cf_enable_gnutls" != xno; then
25981 cat >>confdefs.h <<\_ACEOF
25982 #define HAVE_GNUTLS 1
25993 CPPFLAGS="$save_CPPFLAGS"
26001 # Check whether --enable-assert was given.
26002 if test "${enable_assert+set}" = set; then
26003 enableval=$enable_assert; assert=$enableval
26009 if test "$assert" = no; then
26011 cat >>confdefs.h <<\_ACEOF
26015 elif test "$assert" = soft; then
26017 cat >>confdefs.h <<\_ACEOF
26018 #define SOFT_ASSERT 1
26022 cat >>confdefs.h <<\_ACEOF
26026 elif test "$assert" = yes; then
26030 { $as_echo "$as_me:$LINENO: checking if you want to do a profile build" >&5
26031 $as_echo_n "checking if you want to do a profile build... " >&6; }
26032 # Check whether --enable-profile was given.
26033 if test "${enable_profile+set}" = set; then
26034 enableval=$enable_profile; profile=$enableval
26040 if test "$profile" = yes; then
26041 if test "$ac_cv_c_compiler_gnu" = yes; then
26042 CFLAGS="$CFLAGS -pg -static"
26043 { $as_echo "$as_me:$LINENO: result: yes, adding -pg -static" >&5
26044 $as_echo "yes, adding -pg -static" >&6; }
26046 cat >>confdefs.h <<\_ACEOF
26047 #define RATBOX_PROFILE 1
26051 { $as_echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5
26052 $as_echo "no, profile builds only work with gcc" >&6; }
26055 { $as_echo "$as_me:$LINENO: result: no" >&5
26056 $as_echo "no" >&6; }
26059 # Check whether --enable-balloc was given.
26060 if test "${enable_balloc+set}" = set; then
26061 enableval=$enable_balloc; balloc=$enableval
26067 if test "$balloc" = no; then
26069 cat >>confdefs.h <<\_ACEOF
26075 # Check whether --enable-warnings was given.
26076 if test "${enable_warnings+set}" = set; then
26077 enableval=$enable_warnings; CFLAGS="$CFLAGS -Wall -Werror -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -W -Wno-unused -Wunused-function -Wunused-variable"
26090 if test "$prefix" = "NONE"; then
26092 cat >>confdefs.h <<_ACEOF
26093 #define RB_PREFIX "$ac_default_prefix"
26100 prefix=`echo $prefix | sed 's/\/$//'`
26102 cat >>confdefs.h <<_ACEOF
26103 #define RB_PREFIX "$prefix"
26111 ac_config_commands="$ac_config_commands include/librb-config.h"
26115 ac_config_files="$ac_config_files src/Makefile Makefile libratbox.pc"
26118 cat >confcache <<\_ACEOF
26119 # This file is a shell script that caches the results of configure
26120 # tests run on this system so they can be shared between configure
26121 # scripts and configure runs, see configure's option --config-cache.
26122 # It is not useful on other systems. If it contains results you don't
26123 # want to keep, you may remove or edit it.
26125 # config.status only pays attention to the cache file if you give it
26126 # the --recheck option to rerun configure.
26128 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
26129 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26130 # following values.
26134 # The following way of writing the cache mishandles newlines in values,
26135 # but we know of no workaround that is simple, portable, and efficient.
26136 # So, we kill variables containing newlines.
26137 # Ultrix sh set writes to stderr and can't be redirected directly,
26138 # and sets the high bit in the cache file unless we assign to the vars.
26140 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26141 eval ac_val
=\$
$ac_var
26145 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
26146 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26149 _
| IFS
| as_nl
) ;; #(
26150 BASH_ARGV
| BASH_SOURCE
) eval $ac_var= ;; #(
26151 *) $as_unset $ac_var ;;
26157 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26158 *${as_nl}ac_space
=\
*)
26159 # `set' does not quote correctly, so add quotes (double-quote
26160 # substitution turns \\\\ into \\, and sed turns \\ into \).
26163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26166 # `set' quotes correctly as required by POSIX, so do not add quotes.
26167 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26176 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26178 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26180 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26181 if test -w "$cache_file"; then
26182 test "x$cache_file" != "x/dev/null" &&
26183 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26184 $as_echo "$as_me: updating cache $cache_file" >&6;}
26185 cat confcache
>$cache_file
26187 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26188 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26193 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26194 # Let make expand exec_prefix.
26195 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26197 DEFS
=-DHAVE_CONFIG_H
26201 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26202 # 1. Remove the extension, and $U if already installed.
26203 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26204 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
26205 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26206 # will be set to the directory where LIBOBJS objects are built.
26207 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26208 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26210 LIBOBJS
=$ac_libobjs
26212 LTLIBOBJS
=$ac_ltlibobjs
26215 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26216 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26217 Usually this means the macro was only invoked conditionally." >&5
26218 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
26219 Usually this means the macro was only invoked conditionally." >&2;}
26220 { (exit 1); exit 1; }; }
26222 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26223 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26224 Usually this means the macro was only invoked conditionally." >&5
26225 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26226 Usually this means the macro was only invoked conditionally." >&2;}
26227 { (exit 1); exit 1; }; }
26229 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26230 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26231 Usually this means the macro was only invoked conditionally." >&5
26232 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26233 Usually this means the macro was only invoked conditionally." >&2;}
26234 { (exit 1); exit 1; }; }
26236 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26237 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26238 Usually this means the macro was only invoked conditionally." >&5
26239 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26240 Usually this means the macro was only invoked conditionally." >&2;}
26241 { (exit 1); exit 1; }; }
26243 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
26244 { { $as_echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
26245 Usually this means the macro was only invoked conditionally." >&5
26246 $as_echo "$as_me: error: conditional \"MINGW\" was never defined.
26247 Usually this means the macro was only invoked conditionally." >&2;}
26248 { (exit 1); exit 1; }; }
26250 if test -z "${NEED_CRYPT_TRUE}" && test -z "${NEED_CRYPT_FALSE}"; then
26251 { { $as_echo "$as_me:$LINENO: error: conditional \"NEED_CRYPT\" was never defined.
26252 Usually this means the macro was only invoked conditionally." >&5
26253 $as_echo "$as_me: error: conditional \"NEED_CRYPT\" was never defined.
26254 Usually this means the macro was only invoked conditionally." >&2;}
26255 { (exit 1); exit 1; }; }
26258 : ${CONFIG_STATUS=./config.status}
26260 ac_clean_files_save
=$ac_clean_files
26261 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26262 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26263 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26264 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26266 # Generated by $as_me.
26267 # Run this file to recreate the current configuration.
26268 # Compiler output produced by configure, useful for debugging
26269 # configure, is in config.log if it exists.
26272 ac_cs_recheck=false
26274 SHELL=\${CONFIG_SHELL-$SHELL}
26277 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
26278 ## --------------------- ##
26279 ## M4sh Initialization. ##
26280 ## --------------------- ##
26282 # Be more Bourne compatible
26283 DUALCASE
=1; export DUALCASE
# for MKS sh
26284 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26287 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26288 # is contrary to our usage. Disable this feature.
26289 alias -g '${1+"$@"}'='"$@"'
26290 setopt NO_GLOB_SUBST
26292 case `(set -o) 2>/dev/null` in
26293 *posix
*) set -o posix
;;
26302 # Avoid depending upon Character Ranges.
26303 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26304 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26305 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26306 as_cr_digits
='0123456789'
26307 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26312 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26313 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26314 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26315 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26316 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26317 as_echo='printf %s
\n'
26318 as_echo_n='printf %s
'
26320 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26321 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
26322 as_echo_n='/usr
/ucb
/echo -n'
26324 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26325 as_echo_n_body='eval
26329 expr "X$arg" : "X\\(.*\\)$as_nl";
26330 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26332 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26334 export as_echo_n_body
26335 as_echo_n='sh
-c $as_echo_n_body as_echo
'
26337 export as_echo_body
26338 as_echo='sh
-c $as_echo_body as_echo
'
26341 # The user is always right.
26342 if test "${PATH_SEPARATOR+set}" != set; then
26344 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26345 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26350 # Support unset when possible.
26351 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26359 # We need space, tab and new line, in precisely that order. Quoting is
26360 # there to prevent editors from complaining about space-tab.
26361 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26362 # splitting by setting IFS to empty value.)
26365 # Find who we are. Look in the path if we contain no directory separator.
26367 *[\\/]* ) as_myself=$0 ;;
26368 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26369 for as_dir in $PATH
26372 test -z "$as_dir" && as_dir=.
26373 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26379 # We did not find ourselves, most probably we were run as `sh COMMAND'
26380 # in which case we are not to be found in the path.
26381 if test "x$as_myself" = x
; then
26384 if test ! -f "$as_myself"; then
26385 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26386 { (exit 1); exit 1; }
26389 # Work around bugs in pre-3.0 UWIN ksh.
26390 for as_var
in ENV MAIL MAILPATH
26391 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26403 # Required to use basename.
26404 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26405 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26411 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26412 as_basename
=basename
26418 # Name of the executable.
26419 as_me
=`$as_basename -- "$0" ||
26420 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26421 X"$0" : 'X\(//\)$' \| \
26422 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26424 sed '/^.*\/\([^/][^/]*\)\/*$/{
26443 as_lineno_1
=$LINENO
26444 as_lineno_2
=$LINENO
26445 test "x$as_lineno_1" != "x$as_lineno_2" &&
26446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26449 # uniformly replaced by the line number. The first 'sed' inserts a
26450 # line-number line after each line using $LINENO; the second 'sed'
26451 # does the real work. The second script uses 'N' to pair each
26452 # line-number line with the line containing $LINENO, and appends
26453 # trailing '-' during substitution so that $LINENO is not a special
26454 # case at line end.
26455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26456 # scripts with optimization help from Paolo Bonzini. Blame Lee
26457 # E. McMahon (1931-1989) for sed's syntax. :-)
26469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26472 ' >$as_me.lineno
&&
26473 chmod +x
"$as_me.lineno" ||
26474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26475 { (exit 1); exit 1; }; }
26477 # Don't try to exec as it changes $[0], causing all sort of problems
26478 # (the dirname of $[0] is not the place where we might find the
26479 # original and so on. Autoconf is especially sensitive to this).
26480 .
"./$as_me.lineno"
26481 # Exit status is that of the last command.
26486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26492 ECHO_C
= ECHO_N
= ECHO_T
=
26493 case `echo -n x` in
26495 case `echo 'x\c'` in
26496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26509 rm -f conf$$ conf$$.exe conf$$.
file
26510 if test -d conf$$.dir
; then
26511 rm -f conf$$.dir
/conf$$.
file
26514 mkdir conf$$.dir
2>/dev
/null
26516 if (echo >conf$$.
file) 2>/dev
/null
; then
26517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26519 # ... but there are two gotchas:
26520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26522 # In both cases, we have to default to `cp -p'.
26523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
26525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26534 rmdir conf$$.dir
2>/dev
/null
26536 if mkdir -p .
2>/dev
/null
; then
26539 test -d .
/-p && rmdir .
/-p
26543 if test -x / >/dev
/null
2>&1; then
26544 as_test_x
='test -x'
26546 if ls -dL / >/dev
/null
2>&1; then
26553 if test -d "$1"; then
26559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26560 ???[sx]*):;;*)false;;esac;fi
26564 as_executable_p
=$as_test_x
26566 # Sed expression to map a string onto a valid CPP name.
26567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26569 # Sed expression to map a string onto a valid variable name.
26570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26575 # Save the log message, to keep $[0] and so on meaningful, and to
26576 # report actual input values of CONFIG_FILES etc. instead of their
26577 # values after options handling.
26579 This file was extended by libratbox $as_me devel, which was
26580 generated by GNU Autoconf 2.63. Invocation command line was
26582 CONFIG_FILES = $CONFIG_FILES
26583 CONFIG_HEADERS = $CONFIG_HEADERS
26584 CONFIG_LINKS = $CONFIG_LINKS
26585 CONFIG_COMMANDS = $CONFIG_COMMANDS
26588 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26593 case $ac_config_files in *"
26594 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
26597 case $ac_config_headers in *"
26598 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
26602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26603 # Files that config.status was made for.
26604 config_files="$ac_config_files"
26605 config_headers="$ac_config_headers"
26606 config_commands="$ac_config_commands"
26610 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
26612 \`$as_me' instantiates files from templates according to the
26613 current configuration.
26615 Usage: $0 [OPTION]... [FILE]...
26617 -h, --help print this help, then exit
26618 -V, --version print version number and configuration settings, then exit
26619 -q, --quiet, --silent
26620 do not print progress messages
26621 -d, --debug don't remove temporary files
26622 --recheck update $as_me by reconfiguring in the same conditions
26623 --file=FILE[:TEMPLATE]
26624 instantiate the configuration file FILE
26625 --header=FILE[:TEMPLATE]
26626 instantiate the configuration header FILE
26628 Configuration files:
26631 Configuration headers:
26634 Configuration commands:
26637 Report bugs to <bug-autoconf@gnu.org>."
26640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26642 libratbox config.status devel
26643 configured by $0, generated by GNU Autoconf 2.63,
26644 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26646 Copyright (C) 2008 Free Software Foundation, Inc.
26647 This config.status script is free software; the Free Software Foundation
26648 gives unlimited permission to copy, distribute and modify it."
26655 test -n "\$AWK" || AWK=awk
26658 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
26659 # The default lists apply if the user does not specify any file.
26665 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26666 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26677 # Handling of the options.
26678 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26680 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26681 $as_echo "$ac_cs_version"; exit ;;
26682 --debug | --debu | --deb | --de | --d | -d )
26684 --file | --fil | --fi | --f )
26687 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26689 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
26690 ac_need_defaults
=false
;;
26691 --header | --heade | --head | --hea )
26694 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26696 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
26697 ac_need_defaults
=false
;;
26699 # Conflict between --help and --header
26700 { $as_echo "$as_me: error: ambiguous option: $1
26701 Try \`$0 --help' for more information." >&2
26702 { (exit 1); exit 1; }; };;
26703 --help | --hel | -h )
26704 $as_echo "$ac_cs_usage"; exit ;;
26705 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26706 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26709 # This is an error.
26710 -*) { $as_echo "$as_me: error: unrecognized option: $1
26711 Try \`$0 --help' for more information." >&2
26712 { (exit 1); exit 1; }; } ;;
26714 *) ac_config_targets
="$ac_config_targets $1"
26715 ac_need_defaults
=false
;;
26721 ac_configure_extra_args
=
26723 if $ac_cs_silent; then
26725 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26730 if \$ac_cs_recheck; then
26731 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26733 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26734 CONFIG_SHELL='$SHELL'
26735 export CONFIG_SHELL
26740 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
26744 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26745 ## Running $as_me. ##
26751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26755 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26757 if test x$ac_cv_header_stdc = xyes; then
26760 if test x$ac_cv_header_stdlib_h = xyes; then
26761 rb_header_stdlib_h=yes
26763 if test x$ac_cv_header_string_h = xyes; then
26764 rb_header_string_h=yes
26766 if test x$ac_cv_header_memory_h = xyes; then
26767 rb_header_memory_h=yes
26769 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
26770 rb_alloca_h="$ac_cv_working_alloca_h"
26772 rb_alloc_h="$ac_cv_header_alloca_h"
26774 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
26775 rb_sockaddr_sa_len=yes
26777 if test x$ac_cv_header_sys_socket_h = xyes; then
26778 rb_sys_socket_h=yes
26780 if test x$ac_cv_header_sys_types_h = xyes; then
26783 if test x$ac_cv_header_sys_stat_h = xyes; then
26786 if test x$ac_cv_header_sys_time_h = xyes; then
26789 if test x$ac_cv_header_time = xyes; then
26793 if test x$ac_cv_header_stdint_h = xyes; then
26796 if test x$ac_cv_header_inttypes_h = xyes; then
26799 if test x$ac_cv_header_netinet_in_h = xyes; then
26800 rb_netinet_in_h=yes
26803 if test x$ac_cv_header_crypt_h = xyes; then
26806 if test x$ac_cv_header_errno_h = xyes; then
26809 if test x$ac_cv_header_unistd_h = xyes; then
26812 if test x$ac_cv_header_windows_h = xyes; then
26815 if test x$ac_cv_header_winsock2_h = xyes; then
26819 rb_socklen_t=$rb_socklen_t
26821 if test "x$rb_have_sockaddr_storage" = "xyes"; then
26822 rb_sockaddr_storage="yes"
26824 rb_sockaddr_storage="no"
26827 rb_have_ipv6="$have_v6"
26839 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
26841 # Handling of arguments.
26842 for ac_config_target
in $ac_config_targets
26844 case $ac_config_target in
26845 "include/libratbox_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/libratbox_config.h" ;;
26846 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
26847 "include/librb-config.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS include/librb-config.h" ;;
26848 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
26849 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
26850 "libratbox.pc") CONFIG_FILES
="$CONFIG_FILES libratbox.pc" ;;
26852 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26853 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26854 { (exit 1); exit 1; }; };;
26859 # If the user did not use the arguments to specify the items to instantiate,
26860 # then the envvar interface is used. Set only those that are not.
26861 # We use the long form for the default assignment because of an extremely
26862 # bizarre bug on SunOS 4.1.3.
26863 if $ac_need_defaults; then
26864 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26865 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26866 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26869 # Have a temporary directory for convenience. Make it in the build tree
26870 # simply because there is no reason against having it here, and in addition,
26871 # creating and moving files from /tmp can sometimes cause problems.
26872 # Hook for its removal unless debugging.
26873 # Note that there is a small window in which the directory will not be cleaned:
26874 # after its creation but before its name has been assigned to `$tmp'.
26878 trap 'exit_status=$?
26879 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26881 trap '{ (exit 1); exit 1; }' 1 2 13 15
26883 # Create a (secure) tmp directory for tmp files.
26886 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26887 test -n "$tmp" && test -d "$tmp"
26890 tmp
=.
/conf$$
-$RANDOM
26891 (umask 077 && mkdir "$tmp")
26894 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26895 { (exit 1); exit 1; }
26898 # Set up the scripts for CONFIG_FILES section.
26899 # No need to generate them if there are no CONFIG_FILES.
26900 # This happens for instance with `./config.status config.h'.
26901 if test -n "$CONFIG_FILES"; then
26905 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26906 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26909 ac_cs_awk_cr
=$ac_cr
26912 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26917 echo "cat >conf$$subs.awk <<_ACEOF" &&
26918 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26920 } >conf$$subs.sh ||
26921 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26922 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26923 { (exit 1); exit 1; }; }
26924 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26926 for ac_last_try in false false false false false :; do
26927 . ./conf$$subs.sh ||
26928 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26929 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26930 { (exit 1); exit 1; }; }
26932 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
26933 if test $ac_delim_n = $ac_delim_num; then
26935 elif $ac_last_try; then
26936 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26937 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26938 { (exit 1); exit 1; }; }
26940 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26943 rm -f conf$$subs.sh
26945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26946 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26950 s/^/S["/; s
/!.
*/"]=/
26960 s/\(.\{148\}\).*/\1/
26962 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26967 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26974 s/\(.\{148\}\).*/\1/
26976 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26980 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26985 ' <conf$$subs.awk | sed '
26990 ' >>$CONFIG_STATUS || ac_write_fail=1
26991 rm -f conf$$subs.awk
26992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26994 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26995 for (key in S) S_is_set[key] = 1
27001 nfields = split(line, field, "@
")
27003 len = length(field[1])
27004 for (i = 2; i < nfields; i++) {
27006 keylen = length(key)
27007 if (S_is_set[key]) {
27009 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27010 len += length(value) + length(field[++i])
27021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27022 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27023 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
27026 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
27027 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
27028 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
27029 { (exit 1); exit 1; }; }
27032 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27033 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
27034 # trailing colons and then remove the whole line if VPATH becomes empty
27035 # (actually we leave an empty line to preserve line numbers).
27036 if test "x
$srcdir" = x.; then
27037 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27038 s/:*\$(srcdir):*/:/
27039 s/:*\${srcdir}:*/:/
27041 s/^\([^=]*=[ ]*\):*/\1/
27047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27048 fi # test -n "$CONFIG_FILES"
27050 # Set up the scripts for CONFIG_HEADERS section.
27051 # No need to generate them if there are no CONFIG_HEADERS.
27052 # This happens for instance with `./config.status Makefile'.
27053 if test -n "$CONFIG_HEADERS"; then
27054 cat >"$tmp/defines.
awk" <<\_ACAWK ||
27058 # Transform confdefs.h into an awk script `defines.awk', embedded as
27059 # here-document in config.status, that substitutes the proper values into
27060 # config.h.in to produce config.h.
27062 # Create a delimiter string that does not exist in confdefs.h, to ease
27063 # handling of long lines.
27065 for ac_last_try in false false :; do
27066 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
27067 if test -z "$ac_t"; then
27069 elif $ac_last_try; then
27070 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
27071 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
27072 { (exit 1); exit 1; }; }
27074 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27078 # For the awk script, D is an array of macro values keyed by name,
27079 # likewise P contains macro parameters if any. Preserve backslash
27080 # newline sequences.
27082 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27084 s/.\{148\}/&'"$ac_delim"'/g
27087 s/^[ ]*#[ ]*define[ ][ ]*/ /
27094 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
27096 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
27100 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
27101 D["\
1"]=" \
3\\\\\\n
"\\/p
27103 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
27108 s/.\{148\}/&'"$ac_delim"'/g
27113 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
27116 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
27118 ' <confdefs.h | sed '
27119 s/'"$ac_delim"'/"\\\
27120 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27123 for (key in D) D_is_set[key] = 1
27126 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27128 split(line, arg, " ")
27129 if (arg[1] == "#") {
27133 defundef
= substr
(arg
[1], 2)
27136 split(mac1
, mac2
, "(") #)
27138 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27139 if (D_is_set
[macro
]) {
27140 # Preserve the white space surrounding the "#".
27141 print prefix
"define", macro P
[macro
] D
[macro
]
27144 # Replace #undef with comments. This is necessary, for example,
27145 # in the case of _POSIX_SOURCE, which is predefined and required
27146 # on some systems where configure will not decide to define it.
27147 if (defundef
== "undef") {
27148 print
"/*", prefix defundef
, macro
, "*/"
27156 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
27157 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27158 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27159 { (exit 1); exit 1; }; }
27160 fi # test -n "$CONFIG_HEADERS"
27163 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27168 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27170 case $ac_mode$ac_tag in
27172 :L
* | :C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
27173 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
27174 { (exit 1); exit 1; }; };;
27175 :[FH
]-) ac_tag
=-:-;;
27176 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27193 -) ac_f
="$tmp/stdin";;
27194 *) # Look for the file first in the build tree, then in the source tree
27195 # (if the path is not absolute). The absolute path cannot be DOS-style,
27196 # because $ac_f cannot contain `:'.
27200 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27202 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27203 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27204 { (exit 1); exit 1; }; };;
27206 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27207 ac_file_inputs
="$ac_file_inputs '$ac_f'"
27210 # Let's still pretend it is `configure' which instantiates (i.e., don't
27211 # use $as_me), people would be surprised to read:
27212 # /* config.h. Generated by config.status. */
27213 configure_input
='Generated from '`
27214 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27216 if test x
"$ac_file" != x
-; then
27217 configure_input
="$ac_file. $configure_input"
27218 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27219 $as_echo "$as_me: creating $ac_file" >&6;}
27221 # Neutralize special characters interpreted by sed in replacement strings.
27222 case $configure_input in #(
27223 *\
&* | *\
|* | *\\* )
27224 ac_sed_conf_input
=`$as_echo "$configure_input" |
27225 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27226 *) ac_sed_conf_input
=$configure_input;;
27230 *:-:* | *:-) cat >"$tmp/stdin" \
27231 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27232 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27233 { (exit 1); exit 1; }; } ;;
27238 ac_dir
=`$as_dirname -- "$ac_file" ||
27239 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27240 X"$ac_file" : 'X\(//\)[^/]' \| \
27241 X"$ac_file" : 'X\(//\)$' \| \
27242 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27243 $as_echo X"$ac_file" |
27244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27248 /^X\(\/\/\)[^/].*/{
27263 -*) as_dir
=.
/$as_dir;;
27265 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27269 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27270 *) as_qdir
=$as_dir;;
27272 as_dirs
="'$as_qdir' $as_dirs"
27273 as_dir
=`$as_dirname -- "$as_dir" ||
27274 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27275 X"$as_dir" : 'X\(//\)[^/]' \| \
27276 X"$as_dir" : 'X\(//\)$' \| \
27277 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27278 $as_echo X"$as_dir" |
27279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27283 /^X\(\/\/\)[^/].*/{
27296 test -d "$as_dir" && break
27298 test -z "$as_dirs" || eval "mkdir $as_dirs"
27299 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27300 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27301 { (exit 1); exit 1; }; }; }
27305 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27307 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27308 # A ".." for each directory in $ac_dir_suffix.
27309 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27310 case $ac_top_builddir_sub in
27311 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27312 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27315 ac_abs_top_builddir
=$ac_pwd
27316 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27317 # for backward compatibility:
27318 ac_top_builddir
=$ac_top_build_prefix
27321 .
) # We are building in place.
27323 ac_top_srcdir
=$ac_top_builddir_sub
27324 ac_abs_top_srcdir
=$ac_pwd ;;
27325 [\\/]* | ?
:[\\/]* ) # Absolute name.
27326 ac_srcdir
=$srcdir$ac_dir_suffix;
27327 ac_top_srcdir
=$srcdir
27328 ac_abs_top_srcdir
=$srcdir ;;
27329 *) # Relative name.
27330 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27331 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27332 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27334 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27344 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27345 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27347 ac_MKDIR_P
=$MKDIR_P
27349 [\\/$
]* | ?
:[\\/]* ) ;;
27350 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
27354 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
27355 # If the template does not know about datarootdir, expand it.
27356 # FIXME: This hack should be removed a few years after 2.60.
27357 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27370 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27371 *datarootdir
*) ac_datarootdir_seen
=yes;;
27372 *@datadir@
*|*@docdir@
*|*@infodir@
*|*@localedir@
*|*@mandir@
*)
27373 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27374 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27377 ac_datarootdir_hack='
27378 s&@datadir@&$datadir&g
27379 s&@docdir@&$docdir&g
27380 s&@infodir@&$infodir&g
27381 s&@localedir@&$localedir&g
27382 s&@mandir@&$mandir&g
27383 s&\\\${datarootdir}&$datarootdir&g' ;;
27387 # Neutralize VPATH when `$srcdir' = `.'.
27388 # Shell code in configure.ac might set extrasub.
27389 # FIXME: do we really want to maintain this feature?
27390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27391 ac_sed_extra="$ac_vpsub
27394 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
27396 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
27397 s
|@configure_input@
|$ac_sed_conf_input|;t t
27398 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27399 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27400 s
&@srcdir@
&$ac_srcdir&;t t
27401 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27402 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27403 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27404 s
&@builddir@
&$ac_builddir&;t t
27405 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27406 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27407 s
&@INSTALL@
&$ac_INSTALL&;t t
27408 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
27409 $ac_datarootdir_hack
27411 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
27412 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
27413 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
27414 { (exit 1); exit 1; }; }
27416 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27417 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27418 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27419 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27420 which seems to be undefined. Please make sure it is defined." >&5
27421 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27422 which seems to be undefined. Please make sure it is defined." >&2;}
27426 -) cat "$tmp/out" && rm -f "$tmp/out";;
27427 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27429 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27430 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27431 { (exit 1); exit 1; }; }
27437 if test x"$ac_file" != x-; then
27439 $as_echo "/* $configure_input */" \
27440 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27441 } >"$tmp/config.h" \
27442 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27443 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27444 { (exit 1); exit 1; }; }
27445 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27446 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27447 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27450 mv "$tmp/config.h" "$ac_file" \
27451 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27452 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27453 { (exit 1); exit 1; }; }
27456 $as_echo "/* $configure_input */" \
27457 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27458 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27459 $as_echo "$as_me: error: could not create -" >&2;}
27460 { (exit 1); exit 1; }; }
27462 # Compute "$ac_file"'s index
in $config_headers.
27465 for _am_header
in $config_headers :; do
27466 case $_am_header in
27467 $_am_arg | $_am_arg:* )
27470 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
27473 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27474 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27475 X"$_am_arg" : 'X\(//\)[^/]' \| \
27476 X"$_am_arg" : 'X\(//\)$' \| \
27477 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27478 $as_echo X"$_am_arg" |
27479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27483 /^X\(\/\/\)[^/].*/{
27495 s/.*/./; q'`/stamp
-h$_am_stamp_count
27498 :C
) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27499 $as_echo "$as_me: executing $ac_file commands" >&6;}
27504 case $ac_file$ac_mode in
27505 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
27506 # are listed without --file. Let's play safe and only enable the eval
27507 # if we detect the quoting.
27508 case $CONFIG_FILES in
27509 *\'*) eval set x
"$CONFIG_FILES" ;;
27510 *) set x
$CONFIG_FILES ;;
27515 # Strip MF so we end up with the name of the file.
27516 mf
=`echo "$mf" | sed -e 's/:.*$//'`
27517 # Check whether this is an Automake generated Makefile or not.
27518 # We used to match only the files named `Makefile.in', but
27519 # some people rename them; so instead we look at the file content.
27520 # Grep'ing the first line is not enough: some people post-process
27521 # each Makefile.in and add a new line on top of each file to say so.
27522 # Grep'ing the whole file is not good either: AIX grep has a line
27523 # limit of 2048, but all sed's we know have understand at least 4000.
27524 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X
>/dev
/null
2>&1; then
27525 dirpart
=`$as_dirname -- "$mf" ||
27526 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27527 X"$mf" : 'X\(//\)[^/]' \| \
27528 X"$mf" : 'X\(//\)$' \| \
27529 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27535 /^X\(\/\/\)[^/].*/{
27551 # Extract the definition of DEPDIR, am__include, and am__quote
27552 # from the Makefile without running `make'.
27553 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
27554 test -z "$DEPDIR" && continue
27555 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
27556 test -z "am__include" && continue
27557 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
27558 # When using ansi2knr, U may be empty or an underscore; expand it
27559 U
=`sed -n 's/^U = //p' < "$mf"`
27560 # Find all dependency output files, they are included files with
27561 # $(DEPDIR) in their names. We invoke sed twice because it is the
27562 # simplest approach to changing $(DEPDIR) to its actual value in the
27564 for file in `sed -n "
27565 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27566 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27567 # Make sure the directory exists.
27568 test -f "$dirpart/$file" && continue
27569 fdir
=`$as_dirname -- "$file" ||
27570 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27571 X"$file" : 'X\(//\)[^/]' \| \
27572 X"$file" : 'X\(//\)$' \| \
27573 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27574 $as_echo X"$file" |
27575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27579 /^X\(\/\/\)[^/].*/{
27592 { as_dir
=$dirpart/$fdir
27594 -*) as_dir
=.
/$as_dir;;
27596 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27600 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27601 *) as_qdir
=$as_dir;;
27603 as_dirs
="'$as_qdir' $as_dirs"
27604 as_dir
=`$as_dirname -- "$as_dir" ||
27605 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27606 X"$as_dir" : 'X\(//\)[^/]' \| \
27607 X"$as_dir" : 'X\(//\)$' \| \
27608 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27609 $as_echo X"$as_dir" |
27610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27614 /^X\(\/\/\)[^/].*/{
27627 test -d "$as_dir" && break
27629 test -z "$as_dirs" || eval "mkdir $as_dirs"
27630 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27631 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27632 { (exit 1); exit 1; }; }; }
27633 # echo "creating $dirpart/$file"
27634 echo '# dummy' > "$dirpart/$file"
27638 "include/librb-config.h":C
)
27639 outfile
=include
/librb
-config.h.tmp
27640 cat > $outfile <<\_______EOF
27642 * librb
-config.h
: libratbox config
file. Please modify configure.ac
27645 #ifndef __LIBRB_CONFIG_H
27646 #define __LIBRB_CONFIG_H
27650 if test "x$rb_have_ipv6" = "xyes"; then
27651 echo "#define RB_IPV6 1" >> $outfile
27654 if test "x$rb_windows_h" = "xyes"; then
27655 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
27656 echo '#include <windows.h>' >> $outfile
27657 echo '#include <winsock2.h>' >> $outfile
27658 echo '#include <iphlpapi.h>' >> $outfile
27661 if test "x$rb_alloca_h" = "xyes"; then
27662 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
27665 if test "x$rb_header_stdc" = "xyes"; then
27666 echo '#include <stdlib.h>' >> $outfile
27667 echo '#include <stddef.h>' >> $outfile
27668 elif test "x$rb_header_stdlib" = "xyes"; then
27669 echo '#include <stdlib.h>' >> $outfile
27672 if test "x$rb_header_string_h" = "xyes"; then
27673 echo '#include <string.h>' >> $outfile
27676 if test "x$rb_stdint_h" = "xyes"; then
27677 echo '#include <stdint.h>' >> $outfile
27680 if test "x$rb_inttypes_h" = "xyes"; then
27681 echo '#include <inttypes.h>' >> $outfile
27684 if test "x$rb_sys_types_h" = "xyes"; then
27685 echo '#include <sys/types.h>' >> $outfile
27687 if test "x$rb_sys_time_h" = "xyes"; then
27688 echo '#include <sys/time.h>' >> $outfile
27690 if test "x$rb_sys_stat_h" = "xyes"; then
27691 echo '#include <sys/stat.h>' >> $outfile
27693 if test "x$rb_time_h" = "xyes"; then
27694 echo '#include <time.h>' >> $outfile
27697 if test "x$rb_sys_socket_h" = "xyes"; then
27698 echo '#include <sys/socket.h>' >> $outfile
27701 if test "x$rb_netinet_in_h" = "xyes"; then
27702 echo '#include <netinet/in.h>' >> $outfile
27705 if test "x$rb_arpa_inet_h" = "xyes"; then
27706 echo '#include <arpa/inet.h>' >> $outfile
27709 if test "x$rb_unistd_h" = "xyes"; then
27710 echo '#include <unistd.h>' >> $outfile
27713 if test "x$rb_crypt_h" = "xyes"; then
27714 echo '#include <crypt.h>' >> $outfile
27717 if test "x$rb_errno_h" = "xyes"; then
27718 echo '#include <errno.h>' >> $outfile
27721 echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
27724 if test "x$rb_sockaddr_sa_len" = "xyes"; then
27725 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
27728 if test "x$rb_sockaddr_storage" = "xyes"; then
27729 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
27731 echo 'struct rb_sockaddr_storage { uint8_t _padding[128]; };' >> $outfile
27734 cat >> $outfile <<\_______EOF
27735 #endif /* __LIBRB_CONFIG_H */
27738 if cmp -s $outfile include
/librb
-config.h
; then
27739 { $as_echo "$as_me:$LINENO: include/librb-config.h is unchanged" >&5
27740 $as_echo "$as_me: include/librb-config.h is unchanged" >&6;}
27741 ${rb_rm} -f $outfile
27743 ${rb_mv} $outfile include
/librb
-config.h
27752 { (exit 0); exit 0; }
27754 chmod +x
$CONFIG_STATUS
27755 ac_clean_files
=$ac_clean_files_save
27757 test $ac_write_fail = 0 ||
27758 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27759 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27760 { (exit 1); exit 1; }; }
27763 # configure is writing to config.log, and then calls config.status.
27764 # config.status does its own redirection, appending to config.log.
27765 # Unfortunately, on DOS this fails, as config.log is still kept open
27766 # by configure, so config.status won't be able to write to it; its
27767 # output is simply discarded. So we exec the FD to /dev/null,
27768 # effectively closing config.log, so it can be properly (re)opened and
27769 # appended to by config.status. When coming back to configure, we
27770 # need to make the FD available again.
27771 if test "$no_create" != yes; then
27773 ac_config_status_args
=
27774 test "$silent" = yes &&
27775 ac_config_status_args
="$ac_config_status_args --quiet"
27777 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27779 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27780 # would make configure fail if this is the last instruction.
27781 $ac_cs_success || { (exit 1); exit 1; }
27783 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27784 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27785 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27791 echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
27794 echo "Installing into: $prefix"
27796 echo "IPv6 support ................... $have_v6"
27797 echo "Assert debugging ............... $assert"
27798 echo "Block allocator ................ $balloc"
27799 echo "SSL Type........................ $SSL_TYPE"