2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libffi 3.99999.
5 # Report bugs to <http://github.com/atgreen/libffi/issues>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (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 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
176 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 PATH=/empty FPATH=/empty; export PATH FPATH
180 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
181 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
182 test \$(( 1 + 1 )) = 2 || exit 1"
183 if (eval "$as_required") 2>/dev
/null
; then :
188 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
193 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
196 test -z "$as_dir" && as_dir
=.
200 for as_base
in sh bash ksh sh5
; do
201 # Try only shells that exist, to save several forks.
202 as_shell
=$as_dir/$as_base
203 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
205 CONFIG_SHELL
=$as_shell as_have_required
=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
214 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
216 CONFIG_SHELL
=$SHELL as_have_required
=yes
221 if test "x$CONFIG_SHELL" != x
; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
227 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 if test x
$as_have_required = xno
; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x
${ZSH_VERSION+set} = xset
; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org and
240 $0: http://github.com/atgreen/libffi/issues about your
241 $0: system, including any error possibly output before this
242 $0: message. Then install a modern shell, or manually run
243 $0: the script under such a shell if you do have one."
249 SHELL
=${CONFIG_SHELL-/bin/sh}
251 # Unset more variables known to interfere with behavior of common tools.
252 CLICOLOR_FORCE
= GREP_OPTIONS
=
253 unset CLICOLOR_FORCE GREP_OPTIONS
255 ## --------------------- ##
256 ## M4sh Shell Functions. ##
257 ## --------------------- ##
260 # Portably unset VAR.
263 { eval $1=; unset $1;}
267 # as_fn_set_status STATUS
268 # -----------------------
269 # Set $? to STATUS, without forking.
277 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
287 # Create "$as_dir" as a directory, including parents if necessary.
292 -*) as_dir
=.
/$as_dir;;
294 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
298 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 as_dirs
="'$as_qdir' $as_dirs"
302 as_dir
=`$as_dirname -- "$as_dir" ||
303 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
304 X"$as_dir" : 'X\(//\)[^/]' \| \
305 X"$as_dir" : 'X\(//\)$' \| \
306 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
307 $as_echo X"$as_dir" |
308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
325 test -d "$as_dir" && break
327 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
328 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
332 # as_fn_append VAR VALUE
333 # ----------------------
334 # Append the text in VALUE to the end of the definition contained in VAR. Take
335 # advantage of any shell optimizations that allow amortized linear growth over
336 # repeated appends, instead of the typical quadratic growth present in naive
338 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
339 eval 'as_fn_append ()
352 # Perform arithmetic evaluation on the ARGs, and store the result in the
353 # global $as_val. Take advantage of shells that can avoid forks. The arguments
354 # must be portable across $(()) and expr.
355 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
363 as_val
=`expr "$@" || test $? -eq 1`
368 # as_fn_error ERROR [LINENO LOG_FD]
369 # ---------------------------------
370 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
371 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
372 # script with status $?, using 1 if that was 0.
375 as_status
=$?
; test $as_status -eq 0 && as_status
=1
377 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
378 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
380 $as_echo "$as_me: error: $1" >&2
381 as_fn_exit
$as_status
384 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
385 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
391 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
397 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
403 as_me
=`$as_basename -- "$0" ||
404 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
405 X"$0" : 'X\(//\)$' \| \
406 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
408 sed '/^.*\/\([^/][^/]*\)\/*$/{
422 # Avoid depending upon Character Ranges.
423 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
424 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
425 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
426 as_cr_digits
='0123456789'
427 as_cr_alnum
=$as_cr_Letters$as_cr_digits
430 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
431 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
432 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
433 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
434 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 chmod +x
"$as_me.lineno" ||
451 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
457 # Exit status is that of the last command.
461 ECHO_C
= ECHO_N
= ECHO_T
=
462 case `echo -n x` in #(((((
464 case `echo 'xy\c'` in
465 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
467 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
474 rm -f conf$$ conf$$.exe conf$$.
file
475 if test -d conf$$.dir
; then
476 rm -f conf$$.dir
/conf$$.
file
479 mkdir conf$$.dir
2>/dev
/null
481 if (echo >conf$$.
file) 2>/dev
/null
; then
482 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
484 # ... but there are two gotchas:
485 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
486 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
487 # In both cases, we have to default to `cp -p'.
488 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
490 elif ln conf$$.
file conf$$
2>/dev
/null
; then
498 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
499 rmdir conf$$.dir
2>/dev
/null
501 if mkdir
-p .
2>/dev
/null
; then
502 as_mkdir_p
='mkdir -p "$as_dir"'
504 test -d .
/-p && rmdir .
/-p
508 if test -x / >/dev
/null
2>&1; then
511 if ls -dL / >/dev
/null
2>&1; then
518 if test -d "$1"; then
524 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
525 ???[sx]*):;;*)false;;esac;fi
529 as_executable_p
=$as_test_x
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 SHELL
=${CONFIG_SHELL-/bin/sh}
540 exec 7<&0 </dev
/null
6>&1
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
550 ac_default_prefix
=/usr
/local
552 ac_config_libobj_dir
=.
559 # Identity of this package.
560 PACKAGE_NAME
='libffi'
561 PACKAGE_TARNAME
='libffi'
562 PACKAGE_VERSION
='3.99999'
563 PACKAGE_STRING
='libffi 3.99999'
564 PACKAGE_BUGREPORT
='http://github.com/atgreen/libffi/issues'
567 # Factoring default headers for most tests.
568 ac_includes_default
="\
570 #ifdef HAVE_SYS_TYPES_H
571 # include <sys/types.h>
573 #ifdef HAVE_SYS_STAT_H
574 # include <sys/stat.h>
580 # ifdef HAVE_STDLIB_H
585 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
590 #ifdef HAVE_STRINGS_H
591 # include <strings.h>
593 #ifdef HAVE_INTTYPES_H
594 # include <inttypes.h>
603 ac_subst_vars
='am__EXEEXT_FALSE
607 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE
608 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE
609 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE
610 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE
611 LIBAT_BUILD_VERSIONED_SHLIB_FALSE
612 LIBAT_BUILD_VERSIONED_SHLIB_TRUE
622 FFI_EXEC_TRAMPOLINE_TABLE
623 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
624 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
625 HAVE_LONG_DOUBLE_VARIANT
633 MAINTAINER_MODE_FALSE
655 am__fastdepCCAS_FALSE
695 INSTALL_STRIP_PROGRAM
750 program_transform_name
763 enable_option_checking
765 enable_generated_files_in_srcdir
766 enable_dependency_tracking
773 enable_maintainer_mode
781 ac_precious_vars
='build_alias
791 # Initialize some variables set by options.
793 ac_init_version
=false
794 ac_unrecognized_opts
=
796 # The variables have the same names as the options, with
797 # dashes changed to underlines.
805 program_transform_name
=s
,x
,x
,
813 # Installation directory options.
814 # These are left unexpanded so users can "make install exec_prefix=/foo"
815 # and all the variables that are supposed to be based on exec_prefix
816 # by default will actually change.
817 # Use braces instead of parens because sh, perl, etc. also accept them.
818 # (The list follows the same order as the GNU Coding Standards.)
819 bindir
='${exec_prefix}/bin'
820 sbindir
='${exec_prefix}/sbin'
821 libexecdir
='${exec_prefix}/libexec'
822 datarootdir
='${prefix}/share'
823 datadir
='${datarootdir}'
824 sysconfdir
='${prefix}/etc'
825 sharedstatedir
='${prefix}/com'
826 localstatedir
='${prefix}/var'
827 includedir
='${prefix}/include'
828 oldincludedir
='/usr/include'
829 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
830 infodir
='${datarootdir}/info'
835 libdir
='${exec_prefix}/lib'
836 localedir
='${datarootdir}/locale'
837 mandir
='${datarootdir}/man'
843 # If the previous option needs an argument, assign it.
844 if test -n "$ac_prev"; then
845 eval $ac_prev=\
$ac_option
851 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
855 # Accept the important Cygnus configure options, so we can diagnose typos.
857 case $ac_dashdash$ac_option in
861 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
863 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
866 -build |
--build |
--buil |
--bui |
--bu)
867 ac_prev
=build_alias
;;
868 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
869 build_alias
=$ac_optarg ;;
871 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
872 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
873 ac_prev
=cache_file
;;
874 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
875 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
876 cache_file
=$ac_optarg ;;
879 cache_file
=config.cache
;;
881 -datadir |
--datadir |
--datadi |
--datad)
883 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
884 datadir
=$ac_optarg ;;
886 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
887 |
--dataroo |
--dataro |
--datar)
888 ac_prev
=datarootdir
;;
889 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
890 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
891 datarootdir
=$ac_optarg ;;
893 -disable-* |
--disable-*)
894 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
897 as_fn_error
"invalid feature name: $ac_useropt"
898 ac_useropt_orig
=$ac_useropt
899 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
904 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
905 ac_unrecognized_sep
=', ';;
907 eval enable_
$ac_useropt=no
;;
909 -docdir |
--docdir |
--docdi |
--doc |
--do)
911 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
914 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
916 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
919 -enable-* |
--enable-*)
920 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
923 as_fn_error
"invalid feature name: $ac_useropt"
924 ac_useropt_orig
=$ac_useropt
925 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
930 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
931 ac_unrecognized_sep
=', ';;
933 eval enable_
$ac_useropt=\
$ac_optarg ;;
935 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
936 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
937 |
--exec |
--exe |
--ex)
938 ac_prev
=exec_prefix
;;
939 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
940 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
941 |
--exec=* |
--exe=* |
--ex=*)
942 exec_prefix
=$ac_optarg ;;
944 -gas |
--gas |
--ga |
--g)
945 # Obsolete; use --with-gas.
948 -help |
--help |
--hel |
--he |
-h)
950 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
951 ac_init_help
=recursive
;;
952 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
953 ac_init_help
=short
;;
955 -host |
--host |
--hos |
--ho)
956 ac_prev
=host_alias
;;
957 -host=* |
--host=* |
--hos=* |
--ho=*)
958 host_alias
=$ac_optarg ;;
960 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
962 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
964 htmldir
=$ac_optarg ;;
966 -includedir |
--includedir |
--includedi |
--included |
--include \
967 |
--includ |
--inclu |
--incl |
--inc)
968 ac_prev
=includedir
;;
969 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
970 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
971 includedir
=$ac_optarg ;;
973 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
975 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
976 infodir
=$ac_optarg ;;
978 -libdir |
--libdir |
--libdi |
--libd)
980 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
983 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
984 |
--libexe |
--libex |
--libe)
985 ac_prev
=libexecdir
;;
986 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
987 |
--libexe=* |
--libex=* |
--libe=*)
988 libexecdir
=$ac_optarg ;;
990 -localedir |
--localedir |
--localedi |
--localed |
--locale)
992 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
993 localedir
=$ac_optarg ;;
995 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
996 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
997 ac_prev
=localstatedir
;;
998 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
999 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1000 localstatedir
=$ac_optarg ;;
1002 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1004 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1005 mandir
=$ac_optarg ;;
1007 -nfp |
--nfp |
--nf)
1008 # Obsolete; use --without-fp.
1011 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1012 |
--no-cr |
--no-c |
-n)
1015 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1016 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1019 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1020 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1021 |
--oldin |
--oldi |
--old |
--ol |
--o)
1022 ac_prev
=oldincludedir
;;
1023 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1024 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1025 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1026 oldincludedir
=$ac_optarg ;;
1028 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1030 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1031 prefix
=$ac_optarg ;;
1033 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1034 |
--program-pre |
--program-pr |
--program-p)
1035 ac_prev
=program_prefix
;;
1036 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1037 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1038 program_prefix
=$ac_optarg ;;
1040 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1041 |
--program-suf |
--program-su |
--program-s)
1042 ac_prev
=program_suffix
;;
1043 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1044 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1045 program_suffix
=$ac_optarg ;;
1047 -program-transform-name |
--program-transform-name \
1048 |
--program-transform-nam |
--program-transform-na \
1049 |
--program-transform-n |
--program-transform- \
1050 |
--program-transform |
--program-transfor \
1051 |
--program-transfo |
--program-transf \
1052 |
--program-trans |
--program-tran \
1053 |
--progr-tra |
--program-tr |
--program-t)
1054 ac_prev
=program_transform_name
;;
1055 -program-transform-name=* |
--program-transform-name=* \
1056 |
--program-transform-nam=* |
--program-transform-na=* \
1057 |
--program-transform-n=* |
--program-transform-=* \
1058 |
--program-transform=* |
--program-transfor=* \
1059 |
--program-transfo=* |
--program-transf=* \
1060 |
--program-trans=* |
--program-tran=* \
1061 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1062 program_transform_name
=$ac_optarg ;;
1064 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1066 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1067 pdfdir
=$ac_optarg ;;
1069 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1071 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1074 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1075 |
-silent |
--silent |
--silen |
--sile |
--sil)
1078 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1080 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1082 sbindir
=$ac_optarg ;;
1084 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1085 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1086 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1088 ac_prev
=sharedstatedir
;;
1089 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1090 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1091 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1093 sharedstatedir
=$ac_optarg ;;
1095 -site |
--site |
--sit)
1097 -site=* |
--site=* |
--sit=*)
1100 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1102 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1103 srcdir
=$ac_optarg ;;
1105 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1106 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1107 ac_prev
=sysconfdir
;;
1108 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1109 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1110 sysconfdir
=$ac_optarg ;;
1112 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1113 ac_prev
=target_alias
;;
1114 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1115 target_alias
=$ac_optarg ;;
1117 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1120 -version |
--version |
--versio |
--versi |
--vers |
-V)
1121 ac_init_version
=: ;;
1124 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1127 as_fn_error
"invalid package name: $ac_useropt"
1128 ac_useropt_orig
=$ac_useropt
1129 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1134 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135 ac_unrecognized_sep
=', ';;
1137 eval with_
$ac_useropt=\
$ac_optarg ;;
1139 -without-* |
--without-*)
1140 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1143 as_fn_error
"invalid package name: $ac_useropt"
1144 ac_useropt_orig
=$ac_useropt
1145 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1150 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151 ac_unrecognized_sep
=', ';;
1153 eval with_
$ac_useropt=no
;;
1156 # Obsolete; use --with-x.
1159 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1160 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1161 ac_prev
=x_includes
;;
1162 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1163 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1164 x_includes
=$ac_optarg ;;
1166 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1167 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1168 ac_prev
=x_libraries
;;
1169 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1170 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1171 x_libraries
=$ac_optarg ;;
1173 -*) as_fn_error
"unrecognized option: \`$ac_option'
1174 Try \`$0 --help' for more information."
1178 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 case $ac_envvar in #(
1181 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1182 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1184 eval $ac_envvar=\
$ac_optarg
1185 export $ac_envvar ;;
1188 # FIXME: should be removed in autoconf 3.0.
1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1198 if test -n "$ac_prev"; then
1199 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1200 as_fn_error
"missing argument to $ac_option"
1203 if test -n "$ac_unrecognized_opts"; then
1204 case $enable_option_checking in
1206 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211 # Check all directory arguments for consistency.
1212 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213 datadir sysconfdir sharedstatedir localstatedir includedir \
1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215 libdir localedir mandir
1217 eval ac_val
=\$
$ac_var
1218 # Remove trailing slashes.
1221 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222 eval $ac_var=\
$ac_val;;
1224 # Be sure to have absolute directory names.
1226 [\\/$
]* | ?
:[\\/]* ) continue;;
1227 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1229 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1237 target
=$target_alias
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x
; then
1241 if test "x$build_alias" = x
; then
1242 cross_compiling
=maybe
1243 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1244 If a cross compiler is detected then cross compile mode will be used." >&2
1245 elif test "x$build_alias" != "x$host_alias"; then
1251 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1253 test "$silent" = yes && exec 6>/dev
/null
1256 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di
=`ls -di .` &&
1258 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1259 as_fn_error
"working directory cannot be determined"
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 as_fn_error
"pwd does not report name of working directory"
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted
=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir
=`$as_dirname -- "$as_myself" ||
1269 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273 $as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1296 ac_srcdir_defaulted
=no
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1300 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1302 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1314 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316 for ac_var
in $ac_precious_vars; do
1317 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1319 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1324 # Report the --help message.
1326 if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1330 \`configure' configures libffi 3.99999 to adapt to many kinds of systems.
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE. See below for descriptions of some of the useful variables.
1337 Defaults for the options are specified in brackets.
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350 Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1361 For better control, use the options below.
1363 Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1388 --program-prefix=PREFIX prepend PREFIX to installed program names
1389 --program-suffix=SUFFIX append SUFFIX to installed program names
1390 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1393 --build=BUILD configure
for building on BUILD
[guessed
]
1394 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1395 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1399 if test -n "$ac_init_help"; then
1400 case $ac_init_help in
1401 short | recursive
) echo "Configuration of libffi 3.99999:";;
1406 --disable-option-checking ignore unrecognized
--enable/--with options
1407 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1408 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1409 --enable-multilib build many library versions
(default
)
1410 --enable-generated-files-in-srcdir
1411 put copies of generated files
in source dir intended
1412 for creating
source tarballs
for users without
1413 texinfo bison or flex
1414 --disable-dependency-tracking speeds up one-time build
1415 --enable-dependency-tracking do not reject slow dependency extractors
1416 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1417 --enable-static[=PKGS
] build static libraries
[default
=yes]
1418 --enable-fast-install[=PKGS
]
1419 optimize
for fast installation
[default
=yes]
1420 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1421 --enable-maintainer-mode enable make rules and dependencies not useful
1422 (and sometimes confusing
) to the casual installer
1423 --enable-pax_emutramp enable pax emulated trampolines
, for we can
't use PROT_EXEC
1424 --enable-debug debugging mode
1425 --disable-structs omit code for struct support
1426 --disable-raw-api make the raw api unavailable
1427 --enable-purify-safety purify-safe mode
1428 --enable-symvers=STYLE enables symbol versioning of the shared library
1432 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1433 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1434 --with-pic try to use only PIC/non-PIC objects [default=use
1436 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1438 Some influential environment variables:
1439 CC C compiler command
1440 CFLAGS C compiler flags
1441 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1442 nonstandard directory <lib dir>
1443 LIBS libraries to pass to the linker, e.g. -l<library>
1444 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1445 you have headers in a nonstandard directory <include dir>
1446 CXX C++ compiler command
1447 CXXFLAGS C++ compiler flags
1448 CCAS assembler compiler command (defaults to CC)
1449 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1451 CXXCPP C++ preprocessor
1453 Use these variables to override the choices made by `configure' or to
help
1454 it to
find libraries and programs with nonstandard names
/locations.
1456 Report bugs to
<http
://github.com
/atgreen
/libffi
/issues
>.
1461 if test "$ac_init_help" = "recursive"; then
1462 # If there are subdirs, report their specific --help.
1463 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1464 test -d "$ac_dir" ||
1465 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1470 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1472 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1473 # A ".." for each directory in $ac_dir_suffix.
1474 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1475 case $ac_top_builddir_sub in
1476 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1477 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1480 ac_abs_top_builddir
=$ac_pwd
1481 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1482 # for backward compatibility:
1483 ac_top_builddir
=$ac_top_build_prefix
1486 .
) # We are building in place.
1488 ac_top_srcdir
=$ac_top_builddir_sub
1489 ac_abs_top_srcdir
=$ac_pwd ;;
1490 [\\/]* | ?
:[\\/]* ) # Absolute name.
1491 ac_srcdir
=$srcdir$ac_dir_suffix;
1492 ac_top_srcdir
=$srcdir
1493 ac_abs_top_srcdir
=$srcdir ;;
1495 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1497 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1499 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1501 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1502 # Check for guested configure.
1503 if test -f "$ac_srcdir/configure.gnu"; then
1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506 elif test -f "$ac_srcdir/configure"; then
1508 $SHELL "$ac_srcdir/configure" --help=recursive
1510 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1512 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1516 test -n "$ac_init_help" && exit $ac_status
1517 if $ac_init_version; then
1519 libffi configure
3.99999
1520 generated by GNU Autoconf
2.64
1522 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1523 This configure
script is free software
; the Free Software Foundation
1524 gives unlimited permission to copy
, distribute and modify it.
1529 ## ------------------------ ##
1530 ## Autoconf initialization. ##
1531 ## ------------------------ ##
1533 # ac_fn_c_try_compile LINENO
1534 # --------------------------
1535 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1536 ac_fn_c_try_compile
()
1538 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1539 rm -f conftest.
$ac_objext
1540 if { { ac_try
="$ac_compile"
1542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_compile") 2>conftest.err
1549 if test -s conftest.err; then
1550 grep -v '^ *+' conftest.err >conftest.er1
1551 cat conftest.er1 >&5
1552 mv -f conftest.er1 conftest.err
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && {
1556 test -z "$ac_c_werror_flag" ||
1557 test ! -s conftest.err
1558 } && test -s conftest.$ac_objext; then :
1561 $as_echo "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.$ac_ext >&5
1566 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1569 } # ac_fn_c_try_compile
1571 # ac_fn_cxx_try_compile LINENO
1572 # ----------------------------
1573 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1574 ac_fn_cxx_try_compile ()
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 rm -f conftest.$ac_objext
1578 if { { ac_try="$ac_compile"
1580 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1581 *) ac_try_echo
=$ac_try;;
1583 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_compile") 2>conftest.err
1587 if test -s conftest.err
; then
1588 grep -v '^ *+' conftest.err
>conftest.er1
1589 cat conftest.er1
>&5
1590 mv -f conftest.er1 conftest.err
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && {
1594 test -z "$ac_cxx_werror_flag" ||
1595 test ! -s conftest.err
1596 } && test -s conftest.
$ac_objext; then :
1599 $as_echo "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.
$ac_ext >&5
1604 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1607 } # ac_fn_cxx_try_compile
1609 # ac_fn_c_try_link LINENO
1610 # -----------------------
1611 # Try to link conftest.$ac_ext, and return whether this succeeded.
1614 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1615 rm -f conftest.
$ac_objext conftest
$ac_exeext
1616 if { { ac_try
="$ac_link"
1618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_link") 2>conftest.err
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } && {
1632 test -z "$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 } && test -s conftest$ac_exeext && {
1635 test "$cross_compiling" = yes ||
1636 $as_test_x conftest$ac_exeext
1640 $as_echo "$as_me: failed program was:" >&5
1641 sed 's/^/| /' conftest.$ac_ext >&5
1645 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1646 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1647 # interfere with the next link command; also delete a directory that is
1648 # left behind by Apple's compiler. We do this before executing the actions.
1649 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1650 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1653 } # ac_fn_c_try_link
1655 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1656 # -------------------------------------------------------
1657 # Tests whether HEADER exists and can be compiled using the include files in
1658 # INCLUDES, setting the cache variable VAR accordingly.
1659 ac_fn_c_check_header_compile ()
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663 $as_echo_n "checking for $2... " >&6; }
1664 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1665 $as_echo_n "(cached) " >&6
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1672 if ac_fn_c_try_compile "$LINENO"; then :
1677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1682 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684 } # ac_fn_c_check_header_compile
1686 # ac_fn_c_try_cpp LINENO
1687 # ----------------------
1688 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_cpp conftest.$ac_ext"
1694 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1695 *) ac_try_echo
=$ac_try;;
1697 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1701 if test -s conftest.err
; then
1702 grep -v '^ *+' conftest.err
>conftest.er1
1703 cat conftest.er1
>&5
1704 mv -f conftest.er1 conftest.err
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } >/dev
/null
&& {
1708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.
$ac_ext >&5
1718 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1723 # ac_fn_c_try_run LINENO
1724 # ----------------------
1725 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1726 # that executables *can* be run.
1729 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1730 if { { ac_try
="$ac_link"
1732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_link") 2>&5
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1741 { { case "(($ac_try" in
1742 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1743 *) ac_try_echo
=$ac_try;;
1745 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_try") 2>&5
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; }; }; then :
1753 $as_echo "$as_me: program exited with status $ac_status" >&5
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.
$ac_ext >&5
1757 ac_retval
=$ac_status
1759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1765 # ac_fn_c_check_func LINENO FUNC VAR
1766 # ----------------------------------
1767 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1768 ac_fn_c_check_func
()
1770 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1774 $as_echo_n "(cached) " >&6
1776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1778 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1780 #define $2 innocuous_$2
1782 /* System header to define __stub macros and hopefully few prototypes,
1783 which can conflict with char $2 (); below.
1784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1785 <limits.h> exists even on freestanding compilers. */
1788 # include <limits.h>
1790 # include <assert.h>
1795 /* Override any GCC internal prototype to avoid an error.
1796 Use char because int might match the return type of a GCC
1797 builtin and then its argument prototype would still apply. */
1802 /* The GNU C library defines this for functions which it implements
1803 to always fail with ENOSYS. Some functions are actually named
1804 something starting with __ and the normal name is an alias. */
1805 #if defined __stub_$2 || defined __stub___$2
1817 if ac_fn_c_try_link
"$LINENO"; then :
1822 rm -f core conftest.err conftest.
$ac_objext \
1823 conftest
$ac_exeext conftest.
$ac_ext
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1830 } # ac_fn_c_check_func
1832 # ac_fn_cxx_try_cpp LINENO
1833 # ------------------------
1834 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_cxx_try_cpp
()
1837 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1838 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1847 if test -s conftest.err; then
1848 grep -v '^ *+' conftest.err >conftest.er1
1849 cat conftest.er1 >&5
1850 mv -f conftest.er1 conftest.err
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } >/dev/null && {
1854 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1855 test ! -s conftest.err
1859 $as_echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1864 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1867 } # ac_fn_cxx_try_cpp
1869 # ac_fn_cxx_try_link LINENO
1870 # -------------------------
1871 # Try to link conftest.$ac_ext, and return whether this succeeded.
1872 ac_fn_cxx_try_link ()
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 rm -f conftest.$ac_objext conftest$ac_exeext
1876 if { { ac_try="$ac_link"
1878 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1879 *) ac_try_echo
=$ac_try;;
1881 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882 $as_echo "$ac_try_echo"; } >&5
1883 (eval "$ac_link") 2>conftest.err
1885 if test -s conftest.err
; then
1886 grep -v '^ *+' conftest.err
>conftest.er1
1887 cat conftest.er1
>&5
1888 mv -f conftest.er1 conftest.err
1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891 test $ac_status = 0; } && {
1892 test -z "$ac_cxx_werror_flag" ||
1893 test ! -s conftest.err
1894 } && test -s conftest
$ac_exeext && {
1895 test "$cross_compiling" = yes ||
1896 $as_test_x conftest
$ac_exeext
1900 $as_echo "$as_me: failed program was:" >&5
1901 sed 's/^/| /' conftest.
$ac_ext >&5
1905 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1906 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1907 # interfere with the next link command; also delete a directory that is
1908 # left behind by Apple's compiler. We do this before executing the actions.
1909 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1910 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1913 } # ac_fn_cxx_try_link
1915 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1916 # --------------------------------------------
1917 # Tries to find the compile-time value of EXPR in a program that includes
1918 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1920 ac_fn_c_compute_int
()
1922 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1923 if test "$cross_compiling" = yes; then
1924 # Depending upon the size, compute the lo and hi bounds.
1925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1931 static int test_array [1 - 2 * !(($2) >= 0)];
1938 if ac_fn_c_try_compile
"$LINENO"; then :
1941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1947 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1954 if ac_fn_c_try_compile
"$LINENO"; then :
1955 ac_hi
=$ac_mid; break
1957 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
1958 if test $ac_lo -le $ac_mid; then
1962 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
1964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1973 static int test_array [1 - 2 * !(($2) < 0)];
1980 if ac_fn_c_try_compile
"$LINENO"; then :
1983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1989 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1996 if ac_fn_c_try_compile
"$LINENO"; then :
1997 ac_lo
=$ac_mid; break
1999 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2000 if test $ac_mid -le $ac_hi; then
2004 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2014 # Binary search between lo and hi bounds.
2015 while test "x$ac_lo" != "x$ac_hi"; do
2016 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2023 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2030 if ac_fn_c_try_compile
"$LINENO"; then :
2033 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2038 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2045 static long int longval () { return $2; }
2046 static unsigned long int ulongval () { return $2; }
2053 FILE *f = fopen ("conftest.val", "w");
2058 long int i = longval ();
2061 fprintf (f, "%ld", i);
2065 unsigned long int i = ulongval ();
2068 fprintf (f, "%lu", i);
2070 /* Do not output a trailing newline, as this causes \r\n confusion
2071 on some platforms. */
2072 return ferror (f) || fclose (f) != 0;
2078 if ac_fn_c_try_run
"$LINENO"; then :
2079 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2083 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2084 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2088 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2091 } # ac_fn_c_compute_int
2093 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2094 # -------------------------------------------------------
2095 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2096 # the include files in INCLUDES and setting the cache variable VAR
2098 ac_fn_c_check_header_mongrel
()
2100 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2101 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2103 $as_echo_n "checking for $2... " >&6; }
2104 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2105 $as_echo_n "(cached) " >&6
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109 $as_echo "$ac_res" >&6; }
2111 # Is the header compilable?
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2113 $as_echo_n "checking $2 usability... " >&6; }
2114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2119 if ac_fn_c_try_compile
"$LINENO"; then :
2120 ac_header_compiler
=yes
2122 ac_header_compiler
=no
2124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2126 $as_echo "$ac_header_compiler" >&6; }
2128 # Is the header present?
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2130 $as_echo_n "checking $2 presence... " >&6; }
2131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2135 if ac_fn_c_try_cpp
"$LINENO"; then :
2136 ac_header_preproc
=yes
2138 ac_header_preproc
=no
2140 rm -f conftest.err conftest.
$ac_ext
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2142 $as_echo "$ac_header_preproc" >&6; }
2144 # So? What about this header?
2145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2148 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2150 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2154 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2156 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2158 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2160 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2162 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2164 ## ------------------------------------------------------ ##
2165 ## Report this to http://github.com/atgreen/libffi/issues ##
2166 ## ------------------------------------------------------ ##
2168 ) |
sed "s/^/$as_me: WARNING: /" >&2
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2172 $as_echo_n "checking for $2... " >&6; }
2173 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2174 $as_echo_n "(cached) " >&6
2176 eval "$3=\$ac_header_compiler"
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2180 $as_echo "$ac_res" >&6; }
2182 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2184 } # ac_fn_c_check_header_mongrel
2185 cat >config.log
<<_ACEOF
2186 This file contains any messages produced by compilers while
2187 running configure, to aid debugging if configure makes a mistake.
2189 It was created by libffi $as_me 3.99999, which was
2190 generated by GNU Autoconf 2.64. Invocation command line was
2202 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2203 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2204 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2205 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2206 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2208 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2209 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2211 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2212 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2213 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2214 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2215 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2216 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2217 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2225 test -z "$as_dir" && as_dir
=.
2226 $as_echo "PATH: $as_dir"
2242 # Keep a trace of the command line.
2243 # Strip out --no-create and --no-recursion so they do not pile up.
2244 # Strip out --silent because we don't want to record it for future runs.
2245 # Also quote any args containing shell meta-characters.
2246 # Make two passes to allow for proper duplicate-argument suppression.
2250 ac_must_keep_next
=false
2256 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2257 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2258 |
-silent |
--silent |
--silen |
--sile |
--sil)
2261 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2264 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2266 as_fn_append ac_configure_args1
" '$ac_arg'"
2267 if test $ac_must_keep_next = true
; then
2268 ac_must_keep_next
=false
# Got value, back to normal.
2271 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2272 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2273 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2274 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2275 case "$ac_configure_args0 " in
2276 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2279 -* ) ac_must_keep_next
=true
;;
2282 as_fn_append ac_configure_args
" '$ac_arg'"
2287 { ac_configure_args0
=; unset ac_configure_args0
;}
2288 { ac_configure_args1
=; unset ac_configure_args1
;}
2290 # When interrupted or exit'd, cleanup temporary files, and complete
2291 # config.log. We remove comments because anyway the quotes in there
2292 # would cause problems or look ugly.
2293 # WARNING: Use '\'' to represent an apostrophe within the trap.
2294 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2295 trap 'exit_status=$?
2296 # Save into config.log some information that might help in debugging.
2301 ## ---------------- ##
2302 ## Cache variables. ##
2303 ## ---------------- ##
2306 # The following way of writing the cache mishandles newlines in values,
2308 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2309 eval ac_val=\$$ac_var
2313 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2314 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2317 _ | IFS | as_nl) ;; #(
2318 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2319 *) { eval $ac_var=; unset $ac_var;} ;;
2324 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2325 *${as_nl}ac_space=\ *)
2327 "s/'\''/'\''\\\\'\'''\''/g;
2328 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2331 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2339 ## ----------------- ##
2340 ## Output variables. ##
2341 ## ----------------- ##
2344 for ac_var in $ac_subst_vars
2346 eval ac_val=\$$ac_var
2348 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2350 $as_echo "$ac_var='\''$ac_val'\''"
2354 if test -n "$ac_subst_files"; then
2356 ## ------------------- ##
2357 ## File substitutions. ##
2358 ## ------------------- ##
2361 for ac_var
in $ac_subst_files
2363 eval ac_val
=\$
$ac_var
2365 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2367 $as_echo "$ac_var='\''$ac_val'\''"
2372 if test -s confdefs.h; then
2382 test "$ac_signal" != 0 &&
2383 $as_echo "$as_me: caught signal $ac_signal"
2384 $as_echo "$as_me: exit $exit_status"
2386 rm -f core *.core core.conftest.* &&
2387 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2390 for ac_signal
in 1 2 13 15; do
2391 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2395 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2396 rm -f -r conftest
* confdefs.h
2398 $as_echo "/* confdefs.h */" > confdefs.h
2400 # Predefined preprocessor variables.
2402 cat >>confdefs.h
<<_ACEOF
2403 #define PACKAGE_NAME "$PACKAGE_NAME"
2406 cat >>confdefs.h
<<_ACEOF
2407 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2410 cat >>confdefs.h
<<_ACEOF
2411 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2414 cat >>confdefs.h
<<_ACEOF
2415 #define PACKAGE_STRING "$PACKAGE_STRING"
2418 cat >>confdefs.h
<<_ACEOF
2419 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2422 cat >>confdefs.h
<<_ACEOF
2423 #define PACKAGE_URL "$PACKAGE_URL"
2427 # Let the site file select an alternate cache file if it wants to.
2428 # Prefer an explicitly selected file to automatically selected ones.
2431 if test -n "$CONFIG_SITE"; then
2432 ac_site_file1
=$CONFIG_SITE
2433 elif test "x$prefix" != xNONE
; then
2434 ac_site_file1
=$prefix/share
/config.site
2435 ac_site_file2
=$prefix/etc
/config.site
2437 ac_site_file1
=$ac_default_prefix/share
/config.site
2438 ac_site_file2
=$ac_default_prefix/etc
/config.site
2440 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2442 test "x$ac_site_file" = xNONE
&& continue
2443 if test -r "$ac_site_file"; then
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2445 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2446 sed 's/^/| /' "$ac_site_file" >&5
2451 if test -r "$cache_file"; then
2452 # Some versions of bash will fail to source /dev/null (special
2453 # files actually), so we avoid doing that.
2454 if test -f "$cache_file"; then
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2456 $as_echo "$as_me: loading cache $cache_file" >&6;}
2458 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2459 *) .
"./$cache_file";;
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2464 $as_echo "$as_me: creating cache $cache_file" >&6;}
2468 # Check that the precious variables saved in the cache have kept the same
2470 ac_cache_corrupted
=false
2471 for ac_var
in $ac_precious_vars; do
2472 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2473 eval ac_new_set
=\
$ac_env_${ac_var}_set
2474 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2475 eval ac_new_val
=\
$ac_env_${ac_var}_value
2476 case $ac_old_set,$ac_new_set in
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2479 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2480 ac_cache_corrupted
=: ;;
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2483 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2484 ac_cache_corrupted
=: ;;
2487 if test "x$ac_old_val" != "x$ac_new_val"; then
2488 # differences in whitespace do not lead to failure.
2489 ac_old_val_w
=`echo x $ac_old_val`
2490 ac_new_val_w
=`echo x $ac_new_val`
2491 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2493 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2494 ac_cache_corrupted
=:
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2497 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2498 eval $ac_var=\
$ac_old_val
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2501 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2503 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2506 # Pass precious variables to config.status.
2507 if test "$ac_new_set" = set; then
2509 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2510 *) ac_arg
=$ac_var=$ac_new_val ;;
2512 case " $ac_configure_args " in
2513 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2514 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2518 if $ac_cache_corrupted; then
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2522 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2523 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2525 ## -------------------- ##
2526 ## Main body of script. ##
2527 ## -------------------- ##
2530 ac_cpp
='$CPP $CPPFLAGS'
2531 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2532 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2533 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2539 ac_config_headers
="$ac_config_headers fficonfig.h"
2542 # Default to --enable-multilib
2543 # Check whether --enable-multilib was given.
2544 if test "${enable_multilib+set}" = set; then :
2545 enableval
=$enable_multilib; case "$enableval" in
2546 yes) multilib
=yes ;;
2548 *) as_fn_error
"bad value $enableval for multilib option" "$LINENO" 5 ;;
2555 # We may get other options which we leave undocumented:
2556 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2557 # See config-ml.in if you want the gory details.
2559 if test "$srcdir" = "."; then
2560 if test "$with_target_subdir" != "."; then
2561 multi_basedir
="$srcdir/$with_multisrctop../.."
2563 multi_basedir
="$srcdir/$with_multisrctop.."
2566 multi_basedir
="$srcdir/.."
2570 # Even if the default multilib is not a cross compilation,
2571 # it may be that some of the other multilibs are.
2572 if test $cross_compiling = no
&& test $multilib = yes \
2573 && test "x${with_multisubdir}" != x
; then
2574 cross_compiling
=maybe
2577 ac_config_commands
="$ac_config_commands default-1"
2581 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2582 for ac_t
in install-sh
install.sh shtool
; do
2583 if test -f "$ac_dir/$ac_t"; then
2585 ac_install_sh
="$ac_aux_dir/$ac_t -c"
2590 if test -z "$ac_aux_dir"; then
2591 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2594 # These three variables are undocumented and unsupported,
2595 # and are intended to be withdrawn in a future Autoconf release.
2596 # They can cause serious problems if a builder's source tree is in a directory
2597 # whose full name contains unusual characters.
2598 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2599 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2600 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2603 # Make sure we can run config.sub.
2604 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2605 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2608 $as_echo_n "checking build system type... " >&6; }
2609 if test "${ac_cv_build+set}" = set; then :
2610 $as_echo_n "(cached) " >&6
2612 ac_build_alias
=$build_alias
2613 test "x$ac_build_alias" = x
&&
2614 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2615 test "x$ac_build_alias" = x
&&
2616 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
2617 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2618 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2622 $as_echo "$ac_cv_build" >&6; }
2623 case $ac_cv_build in
2625 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
2628 ac_save_IFS
=$IFS; IFS
='-'
2634 # Remember, the first character of IFS is used to create $*,
2635 # except with old shells:
2638 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2642 $as_echo_n "checking host system type... " >&6; }
2643 if test "${ac_cv_host+set}" = set; then :
2644 $as_echo_n "(cached) " >&6
2646 if test "x$host_alias" = x
; then
2647 ac_cv_host
=$ac_cv_build
2649 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2650 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2655 $as_echo "$ac_cv_host" >&6; }
2658 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
2661 ac_save_IFS
=$IFS; IFS
='-'
2667 # Remember, the first character of IFS is used to create $*,
2668 # except with old shells:
2671 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2675 $as_echo_n "checking target system type... " >&6; }
2676 if test "${ac_cv_target+set}" = set; then :
2677 $as_echo_n "(cached) " >&6
2679 if test "x$target_alias" = x
; then
2680 ac_cv_target
=$ac_cv_host
2682 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2683 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2688 $as_echo "$ac_cv_target" >&6; }
2689 case $ac_cv_target in
2691 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
2693 target
=$ac_cv_target
2694 ac_save_IFS
=$IFS; IFS
='-'
2700 # Remember, the first character of IFS is used to create $*,
2701 # except with old shells:
2704 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2707 # The aliases save the names the user supplied, while $host etc.
2708 # will get canonicalized.
2709 test -n "$target_alias" &&
2710 test "$program_prefix$program_suffix$program_transform_name" = \
2712 program_prefix
=${target_alias}-
2714 target_alias
=${target_alias-$host_alias}
2716 am__api_version
='1.11'
2718 # Find a good install program. We prefer a C program (faster),
2719 # so one script is as good as another. But avoid the broken or
2720 # incompatible versions:
2721 # SysV /etc/install, /usr/sbin/install
2722 # SunOS /usr/etc/install
2723 # IRIX /sbin/install
2725 # AmigaOS /C/install, which installs bootblocks on floppy discs
2726 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2727 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2728 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2729 # OS/2's system install, which has a completely different semantic
2730 # ./install, which can be erroneously created by make from ./install.sh.
2731 # Reject install programs that cannot install multiple files.
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2733 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2734 if test -z "$INSTALL"; then
2735 if test "${ac_cv_path_install+set}" = set; then :
2736 $as_echo_n "(cached) " >&6
2738 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2742 test -z "$as_dir" && as_dir
=.
2743 # Account for people who put trailing slashes in PATH elements.
2744 case $as_dir/ in #((
2745 .
/ | .
// |
/[cC
]/* | \
2746 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2747 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2750 # OSF1 and SCO ODT 3.0 have their own names for install.
2751 # Don't use installbsd from OSF since it installs stuff as root
2753 for ac_prog
in ginstall scoinst
install; do
2754 for ac_exec_ext
in '' $ac_executable_extensions; do
2755 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2756 if test $ac_prog = install &&
2757 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2758 # AIX install. It has an incompatible calling convention.
2760 elif test $ac_prog = install &&
2761 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2762 # program-specific install script used by HP pwplus--don't use.
2765 rm -rf conftest.one conftest.two conftest.dir
2766 echo one
> conftest.one
2767 echo two
> conftest.two
2769 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2770 test -s conftest.one
&& test -s conftest.two
&&
2771 test -s conftest.dir
/conftest.one
&&
2772 test -s conftest.dir
/conftest.two
2774 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2787 rm -rf conftest.one conftest.two conftest.dir
2790 if test "${ac_cv_path_install+set}" = set; then
2791 INSTALL
=$ac_cv_path_install
2793 # As a last resort, use the slow shell script. Don't cache a
2794 # value for INSTALL within a source directory, because that will
2795 # break other packages using the cache if that directory is
2796 # removed, or if the value is a relative name.
2797 INSTALL
=$ac_install_sh
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2801 $as_echo "$INSTALL" >&6; }
2803 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2804 # It thinks the first close brace ends the variable substitution.
2805 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2807 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2809 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2812 $as_echo_n "checking whether build environment is sane... " >&6; }
2815 echo timestamp
> conftest.
file
2816 # Reject unsafe characters in $srcdir or the absolute working directory
2817 # name. Accept space and tab only in the latter.
2821 *[\\\"\
#\$\&\'\`$am_lf]*)
2822 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
2825 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2826 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2829 # Do `set' in a subshell so we don't clobber the current shell's
2830 # arguments. Must try -L first in case configure is actually a
2831 # symlink; some systems play weird games with the mod time of symlinks
2832 # (eg FreeBSD returns the mod time of the symlink's containing
2835 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2836 if test "$*" = "X"; then
2838 set X
`ls -t "$srcdir/configure" conftest.file`
2841 if test "$*" != "X $srcdir/configure conftest.file" \
2842 && test "$*" != "X conftest.file $srcdir/configure"; then
2844 # If neither matched, then we have a broken ls. This can happen
2845 # if, for instance, CONFIG_SHELL is bash and it inherits a
2846 # broken ls alias from the environment. This has actually
2847 # happened. Such a system could not be considered "sane".
2848 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
2849 alias in your environment" "$LINENO" 5
2852 test "$2" = conftest.
file
2858 as_fn_error
"newly created file is older than distributed files!
2859 Check your system clock" "$LINENO" 5
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2862 $as_echo "yes" >&6; }
2863 test "$program_prefix" != NONE
&&
2864 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2865 # Use a double $ so make ignores it.
2866 test "$program_suffix" != NONE
&&
2867 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2868 # Double any \ or $.
2869 # By default was `s,x,x', remove it if useless.
2870 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2871 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2873 # expand $ac_aux_dir to an absolute path
2874 am_aux_dir
=`cd $ac_aux_dir && pwd`
2876 if test x
"${MISSING+set}" != xset
; then
2879 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2881 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2884 # Use eval to expand $SHELL
2885 if eval "$MISSING --run true"; then
2886 am_missing_run
="$MISSING --run "
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2890 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2893 if test x
"${install_sh}" != xset
; then
2896 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2898 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2902 # Installed binaries are usually stripped using `strip' when the user
2903 # run `make install-strip'. However `strip' might not be the right
2904 # tool to use in cross-compilation environments, therefore Automake
2905 # will honor the `STRIP' environment variable to overrule this program.
2906 if test "$cross_compiling" != no
; then
2907 if test -n "$ac_tool_prefix"; then
2908 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2909 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if test "${ac_cv_prog_STRIP+set}" = set; then :
2913 $as_echo_n "(cached) " >&6
2915 if test -n "$STRIP"; then
2916 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2922 test -z "$as_dir" && as_dir
=.
2923 for ac_exec_ext
in '' $ac_executable_extensions; do
2924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 STRIP
=$ac_cv_prog_STRIP
2936 if test -n "$STRIP"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2938 $as_echo "$STRIP" >&6; }
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2946 if test -z "$ac_cv_prog_STRIP"; then
2948 # Extract the first word of "strip", so it can be a program name with args.
2949 set dummy strip
; ac_word
=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2953 $as_echo_n "(cached) " >&6
2955 if test -n "$ac_ct_STRIP"; then
2956 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2958 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2962 test -z "$as_dir" && as_dir
=.
2963 for ac_exec_ext
in '' $ac_executable_extensions; do
2964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2965 ac_cv_prog_ac_ct_STRIP
="strip"
2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2976 if test -n "$ac_ct_STRIP"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2978 $as_echo "$ac_ct_STRIP" >&6; }
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2984 if test "x$ac_ct_STRIP" = x
; then
2987 case $cross_compiling:$ac_tool_warned in
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2991 ac_tool_warned
=yes ;;
2996 STRIP
="$ac_cv_prog_STRIP"
3000 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3003 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3004 if test -z "$MKDIR_P"; then
3005 if test "${ac_cv_path_mkdir+set}" = set; then :
3006 $as_echo_n "(cached) " >&6
3008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3009 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3012 test -z "$as_dir" && as_dir
=.
3013 for ac_prog
in mkdir gmkdir
; do
3014 for ac_exec_ext
in '' $ac_executable_extensions; do
3015 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3016 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3017 'mkdir (GNU coreutils) '* | \
3018 'mkdir (coreutils) '* | \
3019 'mkdir (fileutils) '4.1*)
3020 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3030 if test "${ac_cv_path_mkdir+set}" = set; then
3031 MKDIR_P
="$ac_cv_path_mkdir -p"
3033 # As a last resort, use the slow shell script. Don't cache a
3034 # value for MKDIR_P within a source directory, because that will
3035 # break other packages using the cache if that directory is
3036 # removed, or if the value is a relative name.
3037 test -d .
/--version && rmdir .
/--version
3038 MKDIR_P
="$ac_install_sh -d"
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3042 $as_echo "$MKDIR_P" >&6; }
3046 [\\/$
]* | ?
:[\\/]*) ;;
3047 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3050 for ac_prog
in gawk mawk nawk
awk
3052 # Extract the first word of "$ac_prog", so it can be a program name with args.
3053 set dummy
$ac_prog; ac_word
=$2
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055 $as_echo_n "checking for $ac_word... " >&6; }
3056 if test "${ac_cv_prog_AWK+set}" = set; then :
3057 $as_echo_n "(cached) " >&6
3059 if test -n "$AWK"; then
3060 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3066 test -z "$as_dir" && as_dir
=.
3067 for ac_exec_ext
in '' $ac_executable_extensions; do
3068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3069 ac_cv_prog_AWK
="$ac_prog"
3070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 if test -n "$AWK"; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3082 $as_echo "$AWK" >&6; }
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 $as_echo "no" >&6; }
3089 test -n "$AWK" && break
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3093 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3095 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3096 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3097 $as_echo_n "(cached) " >&6
3099 cat >conftest.
make <<\_ACEOF
3102 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3104 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3105 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3107 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3109 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3113 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3115 $as_echo "yes" >&6; }
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3120 SET_MAKE
="MAKE=${MAKE-make}"
3123 rm -rf .tst
2>/dev
/null
3124 mkdir .tst
2>/dev
/null
3125 if test -d .tst
; then
3130 rmdir .tst
2>/dev
/null
3132 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3133 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3134 # is not polluted with repeated "-I."
3135 am__isrc
=' -I$(srcdir)'
3136 # test to see if srcdir already configured
3137 if test -f $srcdir/config.status
; then
3138 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3142 # test whether we have cygpath
3143 if test -z "$CYGPATH_W"; then
3144 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3145 CYGPATH_W
='cygpath -w'
3152 # Define the identity of the package.
3157 cat >>confdefs.h
<<_ACEOF
3158 #define PACKAGE "$PACKAGE"
3162 cat >>confdefs.h
<<_ACEOF
3163 #define VERSION "$VERSION"
3166 # Some tools Automake needs.
3168 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3171 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3174 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3177 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3180 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3182 # We need awk for the "check" target. The system "awk" is bad on
3184 # Always define AMTAR for backward compatibility. Yes, it's still used
3185 # in the wild :-( We should find a proper way to deprecate it ...
3188 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3195 # See if makeinfo has been installed and is modern enough
3196 # that we can use it.
3198 # Extract the first word of "makeinfo", so it can be a program name with args.
3199 set dummy makeinfo
; ac_word
=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
3203 $as_echo_n "(cached) " >&6
3205 if test -n "$MAKEINFO"; then
3206 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
3208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3212 test -z "$as_dir" && as_dir
=.
3213 for ac_exec_ext
in '' $ac_executable_extensions; do
3214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3215 ac_cv_prog_MAKEINFO
="makeinfo"
3216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3225 MAKEINFO
=$ac_cv_prog_MAKEINFO
3226 if test -n "$MAKEINFO"; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
3228 $as_echo "$MAKEINFO" >&6; }
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3235 if test -n "$MAKEINFO"; then
3236 # Found it, now check the version.
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
3238 $as_echo_n "checking for modern makeinfo... " >&6; }
3239 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
3240 $as_echo_n "(cached) " >&6
3242 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
3243 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3245 case $ac_prog_version in
3246 '') gcc_cv_prog_makeinfo_modern
=no
;;
3247 4.
[4-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
3248 *) gcc_cv_prog_makeinfo_modern
=no
;;
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
3253 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
3255 gcc_cv_prog_makeinfo_modern
=no
3257 if test $gcc_cv_prog_makeinfo_modern = no
; then
3258 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3261 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3263 BUILD_INFO_FALSE
='#'
3270 # We would like our source tree to be readonly. However when releases or
3271 # pre-releases are generated, the flex/bison generated files as well as the
3272 # various formats of manuals need to be included along with the rest of the
3273 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
3276 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
3277 # Check whether --enable-generated-files-in-srcdir was given.
3278 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3279 enableval
=$enable_generated_files_in_srcdir; case "$enableval" in
3280 yes) enable_generated_files_in_srcdir
=yes ;;
3281 no
) enable_generated_files_in_srcdir
=no
;;
3282 *) as_fn_error
"Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3285 enable_generated_files_in_srcdir
=no
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
3289 $as_echo "$enable_generated_files_in_srcdir" >&6; }
3290 if test "$enable_generated_files_in_srcdir" = yes; then
3299 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3300 # We must force CC to /not/ be precious variables; otherwise
3301 # the wrong, non-multilib-adjusted value will be used in multilibs.
3302 # As a side effect, we have to subst CFLAGS ourselves.
3303 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3304 # defaults of its own if none are provided.
3310 ac_cpp
='$CPP $CPPFLAGS'
3311 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3314 if test -n "$ac_tool_prefix"; then
3315 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3316 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318 $as_echo_n "checking for $ac_word... " >&6; }
3319 if test "${ac_cv_prog_CC+set}" = set; then :
3320 $as_echo_n "(cached) " >&6
3322 if test -n "$CC"; then
3323 ac_cv_prog_CC
="$CC" # Let the user override the test.
3325 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3329 test -z "$as_dir" && as_dir
=.
3330 for ac_exec_ext
in '' $ac_executable_extensions; do
3331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3332 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3343 if test -n "$CC"; then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3345 $as_echo "$CC" >&6; }
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3353 if test -z "$ac_cv_prog_CC"; then
3355 # Extract the first word of "gcc", so it can be a program name with args.
3356 set dummy gcc
; ac_word
=$2
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358 $as_echo_n "checking for $ac_word... " >&6; }
3359 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3360 $as_echo_n "(cached) " >&6
3362 if test -n "$ac_ct_CC"; then
3363 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3365 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3369 test -z "$as_dir" && as_dir
=.
3370 for ac_exec_ext
in '' $ac_executable_extensions; do
3371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3372 ac_cv_prog_ac_ct_CC
="gcc"
3373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3383 if test -n "$ac_ct_CC"; then
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3385 $as_echo "$ac_ct_CC" >&6; }
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3391 if test "x$ac_ct_CC" = x
; then
3394 case $cross_compiling:$ac_tool_warned in
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3398 ac_tool_warned
=yes ;;
3406 if test -z "$CC"; then
3407 if test -n "$ac_tool_prefix"; then
3408 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3409 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if test "${ac_cv_prog_CC+set}" = set; then :
3413 $as_echo_n "(cached) " >&6
3415 if test -n "$CC"; then
3416 ac_cv_prog_CC
="$CC" # Let the user override the test.
3418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3422 test -z "$as_dir" && as_dir
=.
3423 for ac_exec_ext
in '' $ac_executable_extensions; do
3424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3436 if test -n "$CC"; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3438 $as_echo "$CC" >&6; }
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3447 if test -z "$CC"; then
3448 # Extract the first word of "cc", so it can be a program name with args.
3449 set dummy cc
; ac_word
=$2
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451 $as_echo_n "checking for $ac_word... " >&6; }
3452 if test "${ac_cv_prog_CC+set}" = set; then :
3453 $as_echo_n "(cached) " >&6
3455 if test -n "$CC"; then
3456 ac_cv_prog_CC
="$CC" # Let the user override the test.
3459 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3463 test -z "$as_dir" && as_dir
=.
3464 for ac_exec_ext
in '' $ac_executable_extensions; do
3465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3466 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3467 ac_prog_rejected
=yes
3471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 if test $ac_prog_rejected = yes; then
3479 # We found a bogon in the path, so make sure we never use it.
3480 set dummy
$ac_cv_prog_CC
3482 if test $# != 0; then
3483 # We chose a different compiler from the bogus one.
3484 # However, it has the same basename, so the bogon will be chosen
3485 # first if we set CC to just the basename; use the full file name.
3487 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3493 if test -n "$CC"; then
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3495 $as_echo "$CC" >&6; }
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498 $as_echo "no" >&6; }
3503 if test -z "$CC"; then
3504 if test -n "$ac_tool_prefix"; then
3505 for ac_prog
in cl.exe
3507 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3508 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 $as_echo_n "checking for $ac_word... " >&6; }
3511 if test "${ac_cv_prog_CC+set}" = set; then :
3512 $as_echo_n "(cached) " >&6
3514 if test -n "$CC"; then
3515 ac_cv_prog_CC
="$CC" # Let the user override the test.
3517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3521 test -z "$as_dir" && as_dir
=.
3522 for ac_exec_ext
in '' $ac_executable_extensions; do
3523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3524 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3535 if test -n "$CC"; then
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3537 $as_echo "$CC" >&6; }
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3544 test -n "$CC" && break
3547 if test -z "$CC"; then
3549 for ac_prog
in cl.exe
3551 # Extract the first word of "$ac_prog", so it can be a program name with args.
3552 set dummy
$ac_prog; ac_word
=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3556 $as_echo_n "(cached) " >&6
3558 if test -n "$ac_ct_CC"; then
3559 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3565 test -z "$as_dir" && as_dir
=.
3566 for ac_exec_ext
in '' $ac_executable_extensions; do
3567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568 ac_cv_prog_ac_ct_CC
="$ac_prog"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3578 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3579 if test -n "$ac_ct_CC"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3581 $as_echo "$ac_ct_CC" >&6; }
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3588 test -n "$ac_ct_CC" && break
3591 if test "x$ac_ct_CC" = x
; then
3594 case $cross_compiling:$ac_tool_warned in
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3598 ac_tool_warned
=yes ;;
3607 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609 as_fn_error
"no acceptable C compiler found in \$PATH
3610 See \`config.log' for more details." "$LINENO" 5; }
3612 # Provide some information about the compiler.
3613 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3616 for ac_option
in --version -v -V -qversion; do
3617 { { ac_try
="$ac_compiler $ac_option >&5"
3619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3620 *) ac_try_echo=$ac_try;;
3622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3623 $as_echo "$ac_try_echo"; } >&5
3624 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3626 if test -s conftest.err; then
3628 ... rest of stderr output deleted ...
3629 10q' conftest.err >conftest.er1
3630 cat conftest.er1 >&5
3631 rm -f conftest.er1 conftest.err
3633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634 test $ac_status = 0; }
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3648 ac_clean_files_save=$ac_clean_files
3649 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3650 # Try to create an executable without -o first, disregard a.out.
3651 # It will help us diagnose broken compilers, and finding out an intuition
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3654 $as_echo_n "checking for C compiler default output file name... " >&6; }
3655 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3657 # The possible output files:
3658 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3661 for ac_file in $ac_files
3664 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3665 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3670 if { { ac_try="$ac_link_default"
3672 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3673 *) ac_try_echo
=$ac_try;;
3675 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3676 $as_echo "$ac_try_echo"; } >&5
3677 (eval "$ac_link_default") 2>&5
3679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3680 test $ac_status = 0; }; then :
3681 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3682 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3683 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3684 # so that the user can short-circuit this test for compilers unknown to
3686 for ac_file
in $ac_files ''
3688 test -f "$ac_file" ||
continue
3690 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3693 # We found the default executable, but exeext='' is most
3697 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3699 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3701 # We set ac_cv_exeext here because the later test for it is not
3702 # safe: cross compilers may not add the suffix if given an `-o'
3703 # argument, so we may need to know it at that point already.
3704 # Even if this section looks crufty: it has the advantage of
3711 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3717 $as_echo "$ac_file" >&6; }
3718 if test -z "$ac_file"; then :
3719 $as_echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.
$ac_ext >&5
3722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3724 { as_fn_set_status
77
3725 as_fn_error
"C compiler cannot create executables
3726 See \`config.log' for more details." "$LINENO" 5; }; }
3728 ac_exeext
=$ac_cv_exeext
3730 # Check that the compiler produces executables we can run. If not, either
3731 # the compiler is broken, or we cross compile.
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3733 $as_echo_n "checking whether the C compiler works... " >&6; }
3734 # If not cross compiling, check that we can run a simple program.
3735 if test "$cross_compiling" != yes; then
3736 if { ac_try
='./$ac_file'
3737 { { case "(($ac_try" in
3738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3739 *) ac_try_echo=$ac_try;;
3741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3742 $as_echo "$ac_try_echo"; } >&5
3743 (eval "$ac_try") 2>&5
3745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3746 test $ac_status = 0; }; }; then
3749 if test "$cross_compiling" = maybe; then
3752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3754 as_fn_error "cannot run C compiled programs.
3755 If you meant to cross compile
, use \
`--host'.
3756 See \`config.log
' for more details." "$LINENO" 5; }
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3761 $as_echo "yes" >&6; }
3763 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3764 ac_clean_files=$ac_clean_files_save
3765 # Check that the compiler produces executables we can run. If not, either
3766 # the compiler is broken, or we cross compile.
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3768 $as_echo_n "checking whether we are cross compiling... " >&6; }
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3770 $as_echo "$cross_compiling" >&6; }
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3773 $as_echo_n "checking for suffix of executables... " >&6; }
3774 if { { ac_try="$ac_link"
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780 $as_echo "$ac_try_echo"; } >&5
3781 (eval "$ac_link") 2>&5
3783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784 test $ac_status = 0; }; then :
3785 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3786 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3787 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3789 for ac_file
in conftest.exe conftest conftest.
*; do
3790 test -f "$ac_file" ||
continue
3792 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3793 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3801 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3802 See \`config.log' for more details." "$LINENO" 5; }
3804 rm -f conftest
$ac_cv_exeext
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3806 $as_echo "$ac_cv_exeext" >&6; }
3808 rm -f conftest.
$ac_ext
3809 EXEEXT
=$ac_cv_exeext
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3812 $as_echo_n "checking for suffix of object files... " >&6; }
3813 if test "${ac_cv_objext+set}" = set; then :
3814 $as_echo_n "(cached) " >&6
3816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3827 rm -f conftest.o conftest.obj
3828 if { { ac_try
="$ac_compile"
3830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3834 $as_echo "$ac_try_echo"; } >&5
3835 (eval "$ac_compile") 2>&5
3837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3838 test $ac_status = 0; }; then :
3839 for ac_file in conftest.o conftest.obj conftest.*; do
3840 test -f "$ac_file" || continue;
3842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3843 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3848 $as_echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3853 as_fn_error "cannot compute suffix of object files
: cannot compile
3854 See \
`config.log' for more details." "$LINENO" 5; }
3856 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3859 $as_echo "$ac_cv_objext" >&6; }
3860 OBJEXT=$ac_cv_objext
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3863 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3864 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3865 $as_echo_n "(cached) " >&6
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h. */
3881 if ac_fn_c_try_compile "$LINENO"; then :
3886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3891 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3892 if test $ac_compiler_gnu = yes; then
3897 ac_test_CFLAGS=${CFLAGS+set}
3898 ac_save_CFLAGS=$CFLAGS
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3900 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3901 if test "${ac_cv_prog_cc_g+set}" = set; then :
3902 $as_echo_n "(cached) " >&6
3904 ac_save_c_werror_flag=$ac_c_werror_flag
3905 ac_c_werror_flag=yes
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h. */
3919 if ac_fn_c_try_compile "$LINENO"; then :
3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h. */
3934 if ac_fn_c_try_compile "$LINENO"; then :
3937 ac_c_werror_flag=$ac_save_c_werror_flag
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3950 if ac_fn_c_try_compile "$LINENO"; then :
3953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3958 ac_c_werror_flag=$ac_save_c_werror_flag
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3961 $as_echo "$ac_cv_prog_cc_g" >&6; }
3962 if test "$ac_test_CFLAGS" = set; then
3963 CFLAGS=$ac_save_CFLAGS
3964 elif test $ac_cv_prog_cc_g = yes; then
3965 if test "$GCC" = yes; then
3971 if test "$GCC" = yes; then
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3978 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3979 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
3982 ac_cv_prog_cc_c89=no
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h. */
3988 #include <sys/types.h>
3989 #include <sys/stat.h>
3990 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3991 struct buf { int x; };
3992 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3993 static char *e (p, i)
3999 static char *f (char * (*g) (char **, int), char **p, ...)
4004 s = g (p, va_arg (v,int));
4009 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4010 function prototypes and stuff, but not '\xHH' hex character constants.
4011 These don't provoke an error unfortunately, instead are silently treated
4012 as 'x'. The following induces an error, until -std is added to get
4013 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4014 array size at least. It's necessary to write '\x00'==0 to get something
4015 that's true only with -std. */
4016 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4018 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4019 inside strings and character constants. */
4021 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4023 int test (int i, double x);
4024 struct s1 {int (*f) (int a);};
4025 struct s2 {int (*f) (double a);};
4026 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4032 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4037 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4038 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4040 CC="$ac_save_CC $ac_arg"
4041 if ac_fn_c_try_compile "$LINENO"; then :
4042 ac_cv_prog_cc_c89=$ac_arg
4044 rm -f core conftest.err conftest.$ac_objext
4045 test "x$ac_cv_prog_cc_c89" != "xno" && break
4047 rm -f conftest.$ac_ext
4052 case "x$ac_cv_prog_cc_c89" in
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4055 $as_echo "none needed" >&6; } ;;
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4058 $as_echo "unsupported" >&6; } ;;
4060 CC="$CC $ac_cv_prog_cc_c89"
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4062 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4064 if test "x$ac_cv_prog_cc_c89" != xno; then :
4069 ac_cpp='$CPP $CPPFLAGS'
4070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4073 DEPDIR="${am__leading_dot}deps"
4075 ac_config_commands="$ac_config_commands depfiles"
4078 am_make=${MAKE-make}
4079 cat > confinc << 'END'
4081 @echo this is the am__doit target
4084 # If we don't find an include directive, just comment out the code.
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4086 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4090 # First try GNU make style include.
4091 echo "include confinc" > confmf
4092 # Ignore all kinds of additional output from `make'.
4093 case `$am_make -s -f confmf 2> /dev/null` in #(
4094 *the\ am__doit\ target*)
4100 # Now try BSD make style include.
4101 if test "$am__include" = "#"; then
4102 echo '.include
"confinc"' > confmf
4103 case `$am_make -s -f confmf 2> /dev/null` in #(
4104 *the\ am__doit\ target*)
4105 am__include=.include
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4114 $as_echo "$_am_result" >&6; }
4115 rm -f confinc confmf
4117 # Check whether --enable-dependency-tracking was given.
4118 if test "${enable_dependency_tracking+set}" = set; then :
4119 enableval=$enable_dependency_tracking;
4122 if test "x$enable_dependency_tracking" != xno; then
4123 am_depcomp="$ac_aux_dir/depcomp"
4127 if test "x$enable_dependency_tracking" != xno
; then
4137 depcc
="$CC" am_compiler_list
=
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4140 $as_echo_n "checking dependency style of $depcc... " >&6; }
4141 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4142 $as_echo_n "(cached) " >&6
4144 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4145 # We make a subdir and do the tests there. Otherwise we can end up
4146 # making bogus files that we don't know about and never remove. For
4147 # instance it was reported that on HP-UX the gcc test will end up
4148 # making a dummy file named `D' -- because `-MD' means `put the output
4152 # Copy depcomp to subdir because otherwise we won't find it if we're
4153 # using a relative directory.
4154 cp "$am_depcomp" conftest.dir
4156 # We will build objects and dependencies in a subdirectory because
4157 # it helps to detect inapplicable dependency modes. For instance
4158 # both Tru64's cc and ICC support -MD to output dependencies as a
4159 # side effect of compilation, but ICC will put the dependencies in
4160 # the current directory while Tru64 will put them in the object
4164 am_cv_CC_dependencies_compiler_type
=none
4165 if test "$am_compiler_list" = ""; then
4166 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4169 case " $depcc " in #(
4170 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4173 for depmode
in $am_compiler_list; do
4174 # Setup a source with many dependencies, because some compilers
4175 # like to wrap large dependency lists on column 80 (with \), and
4176 # we should not choose a depcomp mode which is confused by this.
4178 # We need to recreate these files for each test, as the compiler may
4179 # overwrite some of them when testing with obscure command lines.
4180 # This happens at least with the AIX C compiler.
4182 for i
in 1 2 3 4 5 6; do
4183 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4184 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4185 # Solaris 8's {/usr,}/bin/sh.
4186 touch sub
/conftst
$i.h
4188 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4190 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4191 # mode. It turns out that the SunPro C++ compiler does not properly
4192 # handle `-M -o', and we need to detect this. Also, some Intel
4193 # versions had trouble with output in subdirs
4194 am__obj
=sub
/conftest.
${OBJEXT-o}
4195 am__minus_obj
="-o $am__obj"
4198 # This depmode causes a compiler race in universal mode.
4199 test "$am__universal" = false ||
continue
4202 # after this tag, mechanisms are not by side-effect, so they'll
4203 # only be used when explicitly requested
4204 if test "x$enable_dependency_tracking" = xyes
; then
4210 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4211 # This compiler won't grok `-c -o', but also, the minuso test has
4212 # not run yet. These depmodes are late enough in the game, and
4213 # so weak that their functioning should not be impacted.
4214 am__obj
=conftest.
${OBJEXT-o}
4219 if depmode
=$depmode \
4220 source=sub
/conftest.c object
=$am__obj \
4221 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4222 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4223 >/dev
/null
2>conftest.err
&&
4224 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4225 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4226 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4227 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4228 # icc doesn't choke on unknown options, it will just issue warnings
4229 # or remarks (even with -Werror). So we grep stderr for any message
4230 # that says an option was ignored or not supported.
4231 # When given -MP, icc 7.0 and 7.1 complain thusly:
4232 # icc: Command line warning: ignoring option '-M'; no argument required
4233 # The diagnosis changed in icc 8.0:
4234 # icc: Command line remark: option '-MP' not supported
4235 if (grep 'ignoring option' conftest.err ||
4236 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4237 am_cv_CC_dependencies_compiler_type
=$depmode
4246 am_cv_CC_dependencies_compiler_type
=none
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4251 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4252 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4255 test "x$enable_dependency_tracking" != xno \
4256 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4258 am__fastdepCC_FALSE
='#'
4260 am__fastdepCC_TRUE
='#'
4261 am__fastdepCC_FALSE
=
4266 ac_cpp
='$CXXCPP $CPPFLAGS'
4267 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4270 if test -z "$CXX"; then
4271 if test -n "$CCC"; then
4274 if test -n "$ac_tool_prefix"; then
4275 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4278 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4280 $as_echo_n "checking for $ac_word... " >&6; }
4281 if test "${ac_cv_prog_CXX+set}" = set; then :
4282 $as_echo_n "(cached) " >&6
4284 if test -n "$CXX"; then
4285 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4291 test -z "$as_dir" && as_dir
=.
4292 for ac_exec_ext
in '' $ac_executable_extensions; do
4293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4294 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 if test -n "$CXX"; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4307 $as_echo "$CXX" >&6; }
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4314 test -n "$CXX" && break
4317 if test -z "$CXX"; then
4319 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4321 # Extract the first word of "$ac_prog", so it can be a program name with args.
4322 set dummy
$ac_prog; ac_word
=$2
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324 $as_echo_n "checking for $ac_word... " >&6; }
4325 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4326 $as_echo_n "(cached) " >&6
4328 if test -n "$ac_ct_CXX"; then
4329 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4335 test -z "$as_dir" && as_dir
=.
4336 for ac_exec_ext
in '' $ac_executable_extensions; do
4337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4338 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4349 if test -n "$ac_ct_CXX"; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4351 $as_echo "$ac_ct_CXX" >&6; }
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 $as_echo "no" >&6; }
4358 test -n "$ac_ct_CXX" && break
4361 if test "x$ac_ct_CXX" = x
; then
4364 case $cross_compiling:$ac_tool_warned in
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4368 ac_tool_warned
=yes ;;
4376 # Provide some information about the compiler.
4377 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4380 for ac_option
in --version -v -V -qversion; do
4381 { { ac_try
="$ac_compiler $ac_option >&5"
4383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4387 $as_echo "$ac_try_echo"; } >&5
4388 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4390 if test -s conftest.err; then
4392 ... rest of stderr output deleted ...
4393 10q' conftest.err >conftest.er1
4394 cat conftest.er1 >&5
4395 rm -f conftest.er1 conftest.err
4397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4398 test $ac_status = 0; }
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4402 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4403 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4404 $as_echo_n "(cached) " >&6
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4420 if ac_fn_cxx_try_compile "$LINENO"; then :
4425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4426 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4430 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4431 if test $ac_compiler_gnu = yes; then
4436 ac_test_CXXFLAGS=${CXXFLAGS+set}
4437 ac_save_CXXFLAGS=$CXXFLAGS
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4439 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4440 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4443 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4444 ac_cxx_werror_flag=yes
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4458 if ac_fn_cxx_try_compile "$LINENO"; then :
4459 ac_cv_prog_cxx_g=yes
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4473 if ac_fn_cxx_try_compile "$LINENO"; then :
4476 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h. */
4489 if ac_fn_cxx_try_compile "$LINENO"; then :
4490 ac_cv_prog_cxx_g=yes
4492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4497 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4500 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4501 if test "$ac_test_CXXFLAGS" = set; then
4502 CXXFLAGS=$ac_save_CXXFLAGS
4503 elif test $ac_cv_prog_cxx_g = yes; then
4504 if test "$GXX" = yes; then
4510 if test "$GXX" = yes; then
4517 ac_cpp='$CPP $CPPFLAGS'
4518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522 depcc="$CXX" am_compiler_list=
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4525 $as_echo_n "checking dependency style of $depcc... " >&6; }
4526 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4527 $as_echo_n "(cached) " >&6
4529 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4530 # We make a subdir and do the tests there. Otherwise we can end up
4531 # making bogus files that we don't know about and never remove. For
4532 # instance it was reported that on HP-UX the gcc test will end up
4533 # making a dummy file named `D
' -- because `-MD' means
`put the output
4537 # Copy depcomp to subdir because otherwise we won't find it if we're
4538 # using a relative directory.
4539 cp "$am_depcomp" conftest.dir
4541 # We will build objects and dependencies in a subdirectory because
4542 # it helps to detect inapplicable dependency modes. For instance
4543 # both Tru64's cc and ICC support -MD to output dependencies as a
4544 # side effect of compilation, but ICC will put the dependencies in
4545 # the current directory while Tru64 will put them in the object
4549 am_cv_CXX_dependencies_compiler_type=none
4550 if test "$am_compiler_list" = ""; then
4551 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4554 case " $depcc " in #(
4555 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4558 for depmode in $am_compiler_list; do
4559 # Setup a source with many dependencies, because some compilers
4560 # like to wrap large dependency lists on column 80 (with \), and
4561 # we should not choose a depcomp mode which is confused by this.
4563 # We need to recreate these files for each test, as the compiler may
4564 # overwrite some of them when testing with obscure command lines.
4565 # This happens at least with the AIX C compiler.
4567 for i in 1 2 3 4 5 6; do
4568 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4569 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
4570 # Solaris 8's
{/usr
,}/bin
/sh.
4571 touch sub
/conftst
$i.h
4573 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4575 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4576 # mode. It turns out that the SunPro C++ compiler does not properly
4577 # handle `-M -o', and we need to detect this. Also, some Intel
4578 # versions had trouble with output in subdirs
4579 am__obj
=sub
/conftest.
${OBJEXT-o}
4580 am__minus_obj
="-o $am__obj"
4583 # This depmode causes a compiler race in universal mode.
4584 test "$am__universal" = false ||
continue
4587 # after this tag, mechanisms are not by side-effect, so they'll
4588 # only be used when explicitly requested
4589 if test "x$enable_dependency_tracking" = xyes
; then
4595 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4596 # This compiler won't grok `-c -o', but also, the minuso test has
4597 # not run yet. These depmodes are late enough in the game, and
4598 # so weak that their functioning should not be impacted.
4599 am__obj
=conftest.
${OBJEXT-o}
4604 if depmode
=$depmode \
4605 source=sub
/conftest.c object
=$am__obj \
4606 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4607 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4608 >/dev
/null
2>conftest.err
&&
4609 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4610 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4611 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4612 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4613 # icc doesn't choke on unknown options, it will just issue warnings
4614 # or remarks (even with -Werror). So we grep stderr for any message
4615 # that says an option was ignored or not supported.
4616 # When given -MP, icc 7.0 and 7.1 complain thusly:
4617 # icc: Command line warning: ignoring option '-M'; no argument required
4618 # The diagnosis changed in icc 8.0:
4619 # icc: Command line remark: option '-MP' not supported
4620 if (grep 'ignoring option' conftest.err ||
4621 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4622 am_cv_CXX_dependencies_compiler_type
=$depmode
4631 am_cv_CXX_dependencies_compiler_type
=none
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4636 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4637 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
4640 test "x$enable_dependency_tracking" != xno \
4641 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
4642 am__fastdepCXX_TRUE
=
4643 am__fastdepCXX_FALSE
='#'
4645 am__fastdepCXX_TRUE
='#'
4646 am__fastdepCXX_FALSE
=
4656 # By default we simply use the C compiler to build assembly code.
4658 test "${CCAS+set}" = set || CCAS
=$CC
4659 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
4663 depcc
="$CCAS" am_compiler_list
=
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4666 $as_echo_n "checking dependency style of $depcc... " >&6; }
4667 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4668 $as_echo_n "(cached) " >&6
4670 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4671 # We make a subdir and do the tests there. Otherwise we can end up
4672 # making bogus files that we don't know about and never remove. For
4673 # instance it was reported that on HP-UX the gcc test will end up
4674 # making a dummy file named `D' -- because `-MD' means `put the output
4678 # Copy depcomp to subdir because otherwise we won't find it if we're
4679 # using a relative directory.
4680 cp "$am_depcomp" conftest.dir
4682 # We will build objects and dependencies in a subdirectory because
4683 # it helps to detect inapplicable dependency modes. For instance
4684 # both Tru64's cc and ICC support -MD to output dependencies as a
4685 # side effect of compilation, but ICC will put the dependencies in
4686 # the current directory while Tru64 will put them in the object
4690 am_cv_CCAS_dependencies_compiler_type
=none
4691 if test "$am_compiler_list" = ""; then
4692 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4697 for depmode
in $am_compiler_list; do
4698 # Setup a source with many dependencies, because some compilers
4699 # like to wrap large dependency lists on column 80 (with \), and
4700 # we should not choose a depcomp mode which is confused by this.
4702 # We need to recreate these files for each test, as the compiler may
4703 # overwrite some of them when testing with obscure command lines.
4704 # This happens at least with the AIX C compiler.
4706 for i
in 1 2 3 4 5 6; do
4707 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4708 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4709 # Solaris 8's {/usr,}/bin/sh.
4710 touch sub
/conftst
$i.h
4712 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4714 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4715 # mode. It turns out that the SunPro C++ compiler does not properly
4716 # handle `-M -o', and we need to detect this. Also, some Intel
4717 # versions had trouble with output in subdirs
4718 am__obj
=sub
/conftest.
${OBJEXT-o}
4719 am__minus_obj
="-o $am__obj"
4722 # This depmode causes a compiler race in universal mode.
4723 test "$am__universal" = false ||
continue
4726 # after this tag, mechanisms are not by side-effect, so they'll
4727 # only be used when explicitly requested
4728 if test "x$enable_dependency_tracking" = xyes
; then
4734 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4735 # This compiler won't grok `-c -o', but also, the minuso test has
4736 # not run yet. These depmodes are late enough in the game, and
4737 # so weak that their functioning should not be impacted.
4738 am__obj
=conftest.
${OBJEXT-o}
4743 if depmode
=$depmode \
4744 source=sub
/conftest.c object
=$am__obj \
4745 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4746 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4747 >/dev
/null
2>conftest.err
&&
4748 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4749 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4750 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4751 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4752 # icc doesn't choke on unknown options, it will just issue warnings
4753 # or remarks (even with -Werror). So we grep stderr for any message
4754 # that says an option was ignored or not supported.
4755 # When given -MP, icc 7.0 and 7.1 complain thusly:
4756 # icc: Command line warning: ignoring option '-M'; no argument required
4757 # The diagnosis changed in icc 8.0:
4758 # icc: Command line remark: option '-MP' not supported
4759 if (grep 'ignoring option' conftest.err ||
4760 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4761 am_cv_CCAS_dependencies_compiler_type
=$depmode
4770 am_cv_CCAS_dependencies_compiler_type
=none
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4775 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4776 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
4779 test "x$enable_dependency_tracking" != xno \
4780 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
4781 am__fastdepCCAS_TRUE
=
4782 am__fastdepCCAS_FALSE
='#'
4784 am__fastdepCCAS_TRUE
='#'
4785 am__fastdepCCAS_FALSE
=
4789 if test "x$CC" != xcc
; then
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4791 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4794 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4796 set dummy
$CC; ac_cc
=`$as_echo "$2" |
4797 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4798 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4799 $as_echo_n "(cached) " >&6
4801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4812 # Make sure it works both with $CC and with simple cc.
4813 # We do the test twice because some compilers refuse to overwrite an
4814 # existing .o file with -o, though they will create one.
4815 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4817 if { { case "(($ac_try" in
4818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4819 *) ac_try_echo=$ac_try;;
4821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4822 $as_echo "$ac_try_echo"; } >&5
4823 (eval "$ac_try") 2>&5
4825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4826 test $ac_status = 0; } &&
4827 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4829 *) ac_try_echo
=$ac_try;;
4831 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4832 $as_echo "$ac_try_echo"; } >&5
4833 (eval "$ac_try") 2>&5
4835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4836 test $ac_status = 0; };
4838 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
4839 if test "x$CC" != xcc
; then
4840 # Test first that cc exists at all.
4841 if { ac_try
='cc -c conftest.$ac_ext >&5'
4842 { { case "(($ac_try" in
4843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4844 *) ac_try_echo=$ac_try;;
4846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4847 $as_echo "$ac_try_echo"; } >&5
4848 (eval "$ac_try") 2>&5
4850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4851 test $ac_status = 0; }; }; then
4852 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4854 if { { case "(($ac_try" in
4855 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4856 *) ac_try_echo
=$ac_try;;
4858 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4859 $as_echo "$ac_try_echo"; } >&5
4860 (eval "$ac_try") 2>&5
4862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4863 test $ac_status = 0; } &&
4864 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4866 *) ac_try_echo=$ac_try;;
4868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4869 $as_echo "$ac_try_echo"; } >&5
4870 (eval "$ac_try") 2>&5
4872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4873 test $ac_status = 0; };
4878 # cc exists but doesn't like -o.
4879 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4884 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4886 rm -f core conftest*
4889 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4891 $as_echo "yes" >&6; }
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894 $as_echo "no" >&6; }
4896 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4900 # FIXME: we rely on the cache variable name because
4901 # there is no other way.
4903 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4904 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4905 if test "$am_t" != yes; then
4906 # Losing compiler, so override with the script.
4907 # FIXME: It is wrong to rewrite CC.
4908 # But if we don't then we get into trouble of one sort or another.
4909 # A longer-term fix would be to have automake use am__CC in this case,
4910 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4911 CC="$am_aux_dir/compile $CC"
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
4918 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
4923 macro_version='2.2.7a'
4924 macro_revision='1.3134'
4938 ltmain="$ac_aux_dir/ltmain.sh"
4940 # Backslashify metacharacters that are still active within
4941 # double-quoted strings.
4942 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
4944 # Same as above, but do not quote variable references.
4945 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
4947 # Sed substitution to delay expansion of an escaped shell variable in a
4948 # double_quote_subst'ed string.
4949 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4951 # Sed substitution to delay expansion of an escaped single quote.
4952 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4954 # Sed substitution to avoid accidental globbing in evaled expressions
4955 no_glob_subst='s/\*/\\\*/g'
4957 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4958 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4959 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print
strings" >&5
4962 $as_echo_n "checking how to print
strings...
" >&6; }
4963 # Test print first, because it will be a builtin if present.
4964 if test "X
`print -r -- -n 2>/dev/null`" = X-n && \
4965 test "X
`print -r -- $ECHO 2>/dev/null`" = "X
$ECHO"; then
4967 elif test "X
`printf %s $ECHO 2>/dev/null`" = "X
$ECHO"; then
4970 # Use this function as a fallback that always works.
4971 func_fallback_echo ()
4973 eval 'cat <<_LTECHO_EOF
4977 ECHO='func_fallback_echo'
4980 # func_echo_all arg...
4981 # Invoke $ECHO with all args, space-separated.
4988 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: printf" >&5
4989 $as_echo "printf" >&6; } ;;
4990 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: print
-r" >&5
4991 $as_echo "print
-r" >&6; } ;;
4992 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: cat" >&5
4993 $as_echo "cat" >&6; } ;;
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
5010 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
5011 if test "${ac_cv_path_SED+set}" = set; then :
5012 $as_echo_n "(cached
) " >&6
5014 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5015 for ac_i in 1 2 3 4 5 6 7; do
5016 ac_script="$ac_script$as_nl$ac_script"
5018 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5019 { ac_script=; unset ac_script;}
5020 if test -z "$SED"; then
5021 ac_path_SED_found=false
5022 # Loop through the user's path and test for each of PROGNAME-LIST
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 test -z "$as_dir" && as_dir=.
5028 for ac_prog in sed gsed; do
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5031 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5032 # Check for GNU ac_path_SED and select it if it is found.
5033 # Check for GNU $ac_path_SED
5034 case `"$ac_path_SED" --version 2>&1` in
5036 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5039 $as_echo_n 0123456789 >"conftest.
in"
5042 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5043 mv "conftest.tmp
" "conftest.
in"
5044 cp "conftest.
in" "conftest.
nl"
5045 $as_echo '' >> "conftest.
nl"
5046 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5047 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5048 as_fn_arith $ac_count + 1 && ac_count=$as_val
5049 if test $ac_count -gt ${ac_path_SED_max-0}; then
5050 # Best one so far, save it but keep looking for a better one
5051 ac_cv_path_SED="$ac_path_SED"
5052 ac_path_SED_max=$ac_count
5054 # 10*(2^10) chars as input seems more than enough
5055 test $ac_count -gt 10 && break
5057 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5060 $ac_path_SED_found && break 3
5065 if test -z "$ac_cv_path_SED"; then
5066 as_fn_error "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
5074 $as_echo "$ac_cv_path_SED" >&6; }
5075 SED="$ac_cv_path_SED"
5078 test -z "$SED" && SED=sed
5079 Xsed="$SED -e 1s
/^X
//"
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
5092 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
5093 if test "${ac_cv_path_GREP+set}" = set; then :
5094 $as_echo_n "(cached
) " >&6
5096 if test -z "$GREP"; then
5097 ac_path_GREP_found=false
5098 # Loop through the user's path and test for each of PROGNAME-LIST
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5103 test -z "$as_dir" && as_dir=.
5104 for ac_prog in grep ggrep; do
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5107 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5108 # Check for GNU ac_path_GREP and select it if it is found.
5109 # Check for GNU $ac_path_GREP
5110 case `"$ac_path_GREP" --version 2>&1` in
5112 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5115 $as_echo_n 0123456789 >"conftest.
in"
5118 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5119 mv "conftest.tmp
" "conftest.
in"
5120 cp "conftest.
in" "conftest.
nl"
5121 $as_echo 'GREP' >> "conftest.
nl"
5122 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5123 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5124 as_fn_arith $ac_count + 1 && ac_count=$as_val
5125 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5126 # Best one so far, save it but keep looking for a better one
5127 ac_cv_path_GREP="$ac_path_GREP"
5128 ac_path_GREP_max=$ac_count
5130 # 10*(2^10) chars as input seems more than enough
5131 test $ac_count -gt 10 && break
5133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5136 $ac_path_GREP_found && break 3
5141 if test -z "$ac_cv_path_GREP"; then
5142 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5145 ac_cv_path_GREP=$GREP
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
5150 $as_echo "$ac_cv_path_GREP" >&6; }
5151 GREP="$ac_cv_path_GREP"
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
5155 $as_echo_n "checking
for egrep...
" >&6; }
5156 if test "${ac_cv_path_EGREP+set}" = set; then :
5157 $as_echo_n "(cached
) " >&6
5159 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5160 then ac_cv_path_EGREP="$GREP -E"
5162 if test -z "$EGREP"; then
5163 ac_path_EGREP_found=false
5164 # Loop through the user's path and test for each of PROGNAME-LIST
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5169 test -z "$as_dir" && as_dir=.
5170 for ac_prog in egrep; do
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5173 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5174 # Check for GNU ac_path_EGREP and select it if it is found.
5175 # Check for GNU $ac_path_EGREP
5176 case `"$ac_path_EGREP" --version 2>&1` in
5178 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5181 $as_echo_n 0123456789 >"conftest.
in"
5184 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5185 mv "conftest.tmp
" "conftest.
in"
5186 cp "conftest.
in" "conftest.
nl"
5187 $as_echo 'EGREP' >> "conftest.
nl"
5188 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5189 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5190 as_fn_arith $ac_count + 1 && ac_count=$as_val
5191 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5192 # Best one so far, save it but keep looking for a better one
5193 ac_cv_path_EGREP="$ac_path_EGREP"
5194 ac_path_EGREP_max=$ac_count
5196 # 10*(2^10) chars as input seems more than enough
5197 test $ac_count -gt 10 && break
5199 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5202 $ac_path_EGREP_found && break 3
5207 if test -z "$ac_cv_path_EGREP"; then
5208 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5211 ac_cv_path_EGREP=$EGREP
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
5217 $as_echo "$ac_cv_path_EGREP" >&6; }
5218 EGREP="$ac_cv_path_EGREP"
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for fgrep
" >&5
5222 $as_echo_n "checking
for fgrep...
" >&6; }
5223 if test "${ac_cv_path_FGREP+set}" = set; then :
5224 $as_echo_n "(cached
) " >&6
5226 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5227 then ac_cv_path_FGREP="$GREP -F"
5229 if test -z "$FGREP"; then
5230 ac_path_FGREP_found=false
5231 # Loop through the user's path and test for each of PROGNAME-LIST
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5236 test -z "$as_dir" && as_dir=.
5237 for ac_prog in fgrep; do
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5240 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5241 # Check for GNU ac_path_FGREP and select it if it is found.
5242 # Check for GNU $ac_path_FGREP
5243 case `"$ac_path_FGREP" --version 2>&1` in
5245 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5248 $as_echo_n 0123456789 >"conftest.
in"
5251 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5252 mv "conftest.tmp
" "conftest.
in"
5253 cp "conftest.
in" "conftest.
nl"
5254 $as_echo 'FGREP' >> "conftest.
nl"
5255 "$ac_path_FGREP" FGREP < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5256 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5257 as_fn_arith $ac_count + 1 && ac_count=$as_val
5258 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5259 # Best one so far, save it but keep looking for a better one
5260 ac_cv_path_FGREP="$ac_path_FGREP"
5261 ac_path_FGREP_max=$ac_count
5263 # 10*(2^10) chars as input seems more than enough
5264 test $ac_count -gt 10 && break
5266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5269 $ac_path_FGREP_found && break 3
5274 if test -z "$ac_cv_path_FGREP"; then
5275 as_fn_error "no acceptable fgrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5278 ac_cv_path_FGREP=$FGREP
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_FGREP" >&5
5284 $as_echo "$ac_cv_path_FGREP" >&6; }
5285 FGREP="$ac_cv_path_FGREP"
5288 test -z "$GREP" && GREP=grep
5308 # Check whether --with-gnu-ld was given.
5309 if test "${with_gnu_ld+set}" = set; then :
5310 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5316 if test "$GCC" = yes; then
5317 # Check if gcc -print-prog-name=ld gives a path.
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld used by
$CC" >&5
5319 $as_echo_n "checking
for ld used by
$CC...
" >&6; }
5322 # gcc leaves a trailing carriage return which upsets mingw
5323 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5325 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5328 # Accept absolute paths.
5330 re_direlt='/[^/][^/]*/\.\./'
5331 # Canonicalize the pathname of ld
5332 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5333 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5334 ac_prog=`$ECHO $ac_prog| $SED "s
%$re_direlt%/%"`
5336 test -z "$LD" && LD="$ac_prog"
5339 # If it fails, then pretend we aren't using GCC.
5343 # If it is relative, then search for the first ld in PATH.
5347 elif test "$with_gnu_ld" = yes; then
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for GNU ld
" >&5
5349 $as_echo_n "checking
for GNU ld...
" >&6; }
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for non-GNU ld
" >&5
5352 $as_echo_n "checking
for non-GNU ld...
" >&6; }
5354 if test "${lt_cv_path_LD+set}" = set; then :
5355 $as_echo_n "(cached
) " >&6
5357 if test -z "$LD"; then
5358 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5359 for ac_dir in $PATH; do
5361 test -z "$ac_dir" && ac_dir=.
5362 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5363 lt_cv_path_LD="$ac_dir/$ac_prog"
5364 # Check to see if the program is GNU ld. I'd rather use --version,
5365 # but apparently some variants of GNU ld only accept -v.
5366 # Break only if it was the GNU/non-GNU ld that we prefer.
5367 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5368 *GNU* | *'with BFD'*)
5369 test "$with_gnu_ld" != no && break
5372 test "$with_gnu_ld" != yes && break
5379 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5384 if test -n "$LD"; then
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
5386 $as_echo "$LD" >&6; }
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5389 $as_echo "no
" >&6; }
5391 test -z "$LD" && as_fn_error "no acceptable ld found
in \
$PATH" "$LINENO" 5
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if the linker
($LD) is GNU ld
" >&5
5393 $as_echo_n "checking
if the linker
($LD) is GNU ld...
" >&6; }
5394 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5395 $as_echo_n "(cached
) " >&6
5397 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5398 case `$LD -v 2>&1 </dev/null` in
5399 *GNU* | *'with BFD'*)
5400 lt_cv_prog_gnu_ld=yes
5403 lt_cv_prog_gnu_ld=no
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_gnu_ld" >&5
5408 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5409 with_gnu_ld=$lt_cv_prog_gnu_ld
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for BSD- or MS-compatible name lister
(nm
)" >&5
5420 $as_echo_n "checking
for BSD- or MS-compatible name lister
(nm
)...
" >&6; }
5421 if test "${lt_cv_path_NM+set}" = set; then :
5422 $as_echo_n "(cached
) " >&6
5424 if test -n "$NM"; then
5425 # Let the user override the test.
5428 lt_nm_to_check="${ac_tool_prefix}nm
"
5429 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5430 lt_nm_to_check="$lt_nm_to_check nm
"
5432 for lt_tmp_nm in $lt_nm_to_check; do
5433 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5434 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5436 test -z "$ac_dir" && ac_dir=.
5437 tmp_nm="$ac_dir/$lt_tmp_nm"
5438 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5439 # Check to see if the nm accepts a BSD-compat flag.
5440 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5441 # nm: unknown option "B
" ignored
5442 # Tru64's nm complains that /dev/null is an invalid object file
5443 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5444 */dev/null* | *'Invalid file or object type'*)
5445 lt_cv_path_NM="$tmp_nm -B"
5449 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5451 lt_cv_path_NM="$tmp_nm -p"
5455 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5456 continue # so that we can try to find one that supports BSD flags
5465 : ${lt_cv_path_NM=no}
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_NM" >&5
5469 $as_echo "$lt_cv_path_NM" >&6; }
5470 if test "$lt_cv_path_NM" != "no
"; then
5473 # Didn't find any BSD compatible name lister, look for dumpbin.
5474 if test -n "$DUMPBIN"; then :
5475 # Let the user override the test.
5477 if test -n "$ac_tool_prefix"; then
5478 for ac_prog in dumpbin "link
-dump"
5480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5481 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5483 $as_echo_n "checking
for $ac_word...
" >&6; }
5484 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5485 $as_echo_n "(cached
) " >&6
5487 if test -n "$DUMPBIN"; then
5488 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
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_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5498 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5507 DUMPBIN=$ac_cv_prog_DUMPBIN
5508 if test -n "$DUMPBIN"; then
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DUMPBIN" >&5
5510 $as_echo "$DUMPBIN" >&6; }
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5513 $as_echo "no
" >&6; }
5517 test -n "$DUMPBIN" && break
5520 if test -z "$DUMPBIN"; then
5521 ac_ct_DUMPBIN=$DUMPBIN
5522 for ac_prog in dumpbin "link
-dump"
5524 # Extract the first word of "$ac_prog", so it can be a program name with args.
5525 set dummy $ac_prog; ac_word=$2
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5527 $as_echo_n "checking
for $ac_word...
" >&6; }
5528 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5529 $as_echo_n "(cached
) " >&6
5531 if test -n "$ac_ct_DUMPBIN"; then
5532 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5541 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5542 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5551 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5552 if test -n "$ac_ct_DUMPBIN"; then
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DUMPBIN" >&5
5554 $as_echo "$ac_ct_DUMPBIN" >&6; }
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5557 $as_echo "no
" >&6; }
5561 test -n "$ac_ct_DUMPBIN" && break
5564 if test "x
$ac_ct_DUMPBIN" = x; then
5567 case $cross_compiling:$ac_tool_warned in
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5570 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5571 ac_tool_warned=yes ;;
5573 DUMPBIN=$ac_ct_DUMPBIN
5577 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5579 DUMPBIN="$DUMPBIN -symbols"
5587 if test "$DUMPBIN" != ":"; then
5591 test -z "$NM" && NM=nm
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister
($NM) interface
" >&5
5599 $as_echo_n "checking the name lister
($NM) interface...
" >&6; }
5600 if test "${lt_cv_nm_interface+set}" = set; then :
5601 $as_echo_n "(cached
) " >&6
5603 lt_cv_nm_interface="BSD nm
"
5604 echo "int some_variable
= 0;" > conftest.$ac_ext
5605 (eval echo "\"\
$as_me:$LINENO: $ac_compile\"" >&5)
5606 (eval "$ac_compile" 2>conftest.err)
5607 cat conftest.err >&5
5608 (eval echo "\"\
$as_me:$LINENO: $NM \\\"conftest.
$ac_objext\\\"\"" >&5)
5609 (eval "$NM \"conftest.
$ac_objext\"" 2>conftest.err > conftest.out)
5610 cat conftest.err >&5
5611 (eval echo "\"\
$as_me:$LINENO: output
\"" >&5)
5612 cat conftest.out >&5
5613 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5614 lt_cv_nm_interface="MS dumpbin
"
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_nm_interface" >&5
5619 $as_echo "$lt_cv_nm_interface" >&6; }
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
5622 $as_echo_n "checking whether
ln -s works...
" >&6; }
5624 if test "$LN_S" = "ln -s"; then
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5626 $as_echo "yes" >&6; }
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
5629 $as_echo "no
, using
$LN_S" >&6; }
5632 # find the maximum length of command line arguments
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of
command line arguments
" >&5
5634 $as_echo_n "checking the maximum length of
command line arguments...
" >&6; }
5635 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5636 $as_echo_n "(cached
) " >&6
5643 # On DJGPP, this test can blow up pretty badly due to problems in libc
5644 # (any single argument exceeding 2000 bytes causes a buffer overrun
5645 # during glob expansion). Even if it were fixed, the result of this
5646 # check would be larger than it should be.
5647 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5651 # Under GNU Hurd, this test is not required because there is
5652 # no limit to the length of command line arguments.
5653 # Libtool will interpret -1 as no limit whatsoever
5654 lt_cv_sys_max_cmd_len=-1;
5657 cygwin* | mingw* | cegcc*)
5658 # On Win9x/ME, this test blows up -- it succeeds, but takes
5659 # about 5 minutes as the teststring grows exponentially.
5660 # Worse, since 9x/ME are not pre-emptively multitasking,
5661 # you end up with a "frozen
" computer, even though with patience
5662 # the test eventually succeeds (with a max line length of 256k).
5663 # Instead, let's just punt: use the minimum linelength reported by
5664 # all of the supported platforms: 8192 (on NT/2K/XP).
5665 lt_cv_sys_max_cmd_len=8192;
5669 # On MiNT this can take a long time and run out of memory.
5670 lt_cv_sys_max_cmd_len=8192;
5674 # On AmigaOS with pdksh, this test takes hours, literally.
5675 # So we just punt and use a minimum line length of 8192.
5676 lt_cv_sys_max_cmd_len=8192;
5679 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5680 # This has been around since 386BSD, at least. Likely further.
5681 if test -x /sbin/sysctl; then
5682 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5683 elif test -x /usr/sbin/sysctl; then
5684 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5686 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5688 # And add a safety zone
5689 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5690 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5694 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5695 lt_cv_sys_max_cmd_len=196608
5699 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5700 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5701 # nice to cause kernel panics so lets avoid the loop below.
5702 # First set a reasonable default.
5703 lt_cv_sys_max_cmd_len=16384
5705 if test -x /sbin/sysconfig; then
5706 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5707 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5712 lt_cv_sys_max_cmd_len=102400
5714 sysv5* | sco5v6* | sysv4.2uw2*)
5715 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5716 if test -n "$kargmax"; then
5717 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5719 lt_cv_sys_max_cmd_len=32768
5723 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5724 if test -n "$lt_cv_sys_max_cmd_len"; then
5725 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5726 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5728 # Make teststring a little bigger before we do anything with it.
5729 # a 1K string should be a reasonable start.
5730 for i in 1 2 3 4 5 6 7 8 ; do
5731 teststring=$teststring$teststring
5733 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5734 # If test is not a shell built-in, we'll probably end up computing a
5735 # maximum length that is only half of the actual maximum length, but
5737 while { test "X
"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5738 = "X
$teststring$teststring"; } >/dev/null 2>&1 &&
5739 test $i != 17 # 1/2 MB should be enough
5742 teststring=$teststring$teststring
5744 # Only check the string length outside the loop.
5745 lt_cv_sys_max_cmd_len=`expr "X
$teststring" : ".
*" 2>&1`
5747 # Add a significant safety factor because C++ compilers can tack on
5748 # massive amounts of additional arguments before passing them to the
5749 # linker. It appears as though 1/2 is a usable value.
5750 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5757 if test -n $lt_cv_sys_max_cmd_len ; then
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sys_max_cmd_len" >&5
5759 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none
" >&5
5762 $as_echo "none
" >&6; }
5764 max_cmd_len=$lt_cv_sys_max_cmd_len
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs
" >&5
5776 $as_echo_n "checking whether the shell understands some XSI constructs...
" >&6; }
5777 # Try some XSI features
5780 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5782 && eval 'test $(( 1 + 1 )) -eq 2 \
5783 && test "${#_lt_dummy}" -eq 5' ) >/dev
/null
2>&1 \
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5786 $as_echo "$xsi_shell" >&6; }
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5790 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5792 ( foo
=bar
; set foo baz
; eval "$1+=\$2" && test "$foo" = barbaz
) \
5794 && lt_shell_append
=yes
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5796 $as_echo "$lt_shell_append" >&6; }
5799 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
5809 # test EBCDIC or ASCII
5810 case `echo X|tr X '\101'` in
5811 A
) # ASCII based system
5812 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5813 lt_SP2NL
='tr \040 \012'
5814 lt_NL2SP
='tr \015\012 \040\040'
5816 *) # EBCDIC based system
5817 lt_SP2NL
='tr \100 \n'
5818 lt_NL2SP
='tr \r\n \100\100'
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5831 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5832 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5833 $as_echo_n "(cached) " >&6
5835 lt_cv_ld_reload_flag
='-r'
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5838 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5839 reload_flag
=$lt_cv_ld_reload_flag
5840 case $reload_flag in
5842 *) reload_flag
=" $reload_flag" ;;
5844 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5847 if test "$GCC" = yes; then
5848 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5850 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5863 if test -n "$ac_tool_prefix"; then
5864 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5865 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5867 $as_echo_n "checking for $ac_word... " >&6; }
5868 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5869 $as_echo_n "(cached) " >&6
5871 if test -n "$OBJDUMP"; then
5872 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
5874 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5878 test -z "$as_dir" && as_dir
=.
5879 for ac_exec_ext
in '' $ac_executable_extensions; do
5880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5881 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
5882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 OBJDUMP
=$ac_cv_prog_OBJDUMP
5892 if test -n "$OBJDUMP"; then
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5894 $as_echo "$OBJDUMP" >&6; }
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897 $as_echo "no" >&6; }
5902 if test -z "$ac_cv_prog_OBJDUMP"; then
5903 ac_ct_OBJDUMP
=$OBJDUMP
5904 # Extract the first word of "objdump", so it can be a program name with args.
5905 set dummy objdump
; ac_word
=$2
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907 $as_echo_n "checking for $ac_word... " >&6; }
5908 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5909 $as_echo_n "(cached) " >&6
5911 if test -n "$ac_ct_OBJDUMP"; then
5912 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
5914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5918 test -z "$as_dir" && as_dir
=.
5919 for ac_exec_ext
in '' $ac_executable_extensions; do
5920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5921 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
5922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
5932 if test -n "$ac_ct_OBJDUMP"; then
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5934 $as_echo "$ac_ct_OBJDUMP" >&6; }
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937 $as_echo "no" >&6; }
5940 if test "x$ac_ct_OBJDUMP" = x
; then
5943 case $cross_compiling:$ac_tool_warned in
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5947 ac_tool_warned
=yes ;;
5949 OBJDUMP
=$ac_ct_OBJDUMP
5952 OBJDUMP
="$ac_cv_prog_OBJDUMP"
5955 test -z "$OBJDUMP" && OBJDUMP
=objdump
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5966 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5967 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5968 $as_echo_n "(cached) " >&6
5970 lt_cv_file_magic_cmd
='$MAGIC_CMD'
5971 lt_cv_file_magic_test_file
=
5972 lt_cv_deplibs_check_method
='unknown'
5973 # Need to set the preceding variable on all platforms that support
5974 # interlibrary dependencies.
5975 # 'none' -- dependencies not supported.
5976 # `unknown' -- same as none, but documents that we really don't know.
5977 # 'pass_all' -- all dependencies passed with no checks.
5978 # 'test_compile' -- check by making test program.
5979 # 'file_magic [[regex]]' -- check by looking for files in library path
5980 # which responds to the $file_magic_cmd with a given extended regex.
5981 # If you have `file' or equivalent on your system and you're not sure
5982 # whether `pass_all' will *always* work, you probably want this one.
5986 lt_cv_deplibs_check_method
=pass_all
5990 lt_cv_deplibs_check_method
=pass_all
5994 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5995 lt_cv_file_magic_cmd
='/usr/bin/file -L'
5996 lt_cv_file_magic_test_file
=/shlib
/libc.so
6000 # func_win32_libid is a shell function defined in ltmain.sh
6001 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6002 lt_cv_file_magic_cmd
='func_win32_libid'
6006 # Base MSYS/MinGW do not provide the 'file' command needed by
6007 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6008 # unless we find 'file', for example because we are cross-compiling.
6009 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6010 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev
/null
2>&1; then
6011 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6012 lt_cv_file_magic_cmd
='func_win32_libid'
6014 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
6015 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6020 # use the weaker test based on 'objdump'. See mingw*.
6021 lt_cv_deplibs_check_method
='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6022 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6025 darwin
* | rhapsody
*)
6026 lt_cv_deplibs_check_method
=pass_all
6029 freebsd
* | dragonfly
*)
6030 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6033 # Not sure whether the presence of OpenBSD here was a mistake.
6034 # Let's accept both of them until this is cleared up.
6035 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6036 lt_cv_file_magic_cmd
=/usr
/bin
/file
6037 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
6041 lt_cv_deplibs_check_method
=pass_all
6046 lt_cv_deplibs_check_method
=pass_all
6050 lt_cv_deplibs_check_method
=pass_all
6053 hpux10.20
* | hpux11
*)
6054 lt_cv_file_magic_cmd
=/usr
/bin
/file
6057 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6058 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
6061 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6062 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
6065 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6066 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
6072 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6073 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
6076 irix5
* | irix6
* | nonstopux
*)
6078 *-32|
*"-32 ") libmagic
=32-bit;;
6079 *-n32|
*"-n32 ") libmagic
=N32
;;
6080 *-64|
*"-64 ") libmagic
=64-bit;;
6081 *) libmagic
=never-match
;;
6083 lt_cv_deplibs_check_method
=pass_all
6086 # This must be Linux ELF.
6087 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
6088 lt_cv_deplibs_check_method
=pass_all
6092 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6093 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6095 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6100 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6101 lt_cv_file_magic_cmd
=/usr
/bin
/file
6102 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
6106 lt_cv_deplibs_check_method
=pass_all
6110 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6111 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6113 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6117 osf3
* | osf4
* | osf5
*)
6118 lt_cv_deplibs_check_method
=pass_all
6122 lt_cv_deplibs_check_method
=pass_all
6126 lt_cv_deplibs_check_method
=pass_all
6129 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
6130 lt_cv_deplibs_check_method
=pass_all
6134 case $host_vendor in
6136 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]'
6137 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
6140 lt_cv_deplibs_check_method
=pass_all
6143 lt_cv_file_magic_cmd
='/bin/file'
6144 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6147 lt_cv_file_magic_cmd
='/bin/file'
6148 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6149 lt_cv_file_magic_test_file
=/lib
/libc.so
6152 lt_cv_deplibs_check_method
=pass_all
6155 lt_cv_deplibs_check_method
=pass_all
6161 lt_cv_deplibs_check_method
=pass_all
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6167 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6168 file_magic_cmd
=$lt_cv_file_magic_cmd
6169 deplibs_check_method
=$lt_cv_deplibs_check_method
6170 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
6183 if test -n "$ac_tool_prefix"; then
6184 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6185 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if test "${ac_cv_prog_AR+set}" = set; then :
6189 $as_echo_n "(cached) " >&6
6191 if test -n "$AR"; then
6192 ac_cv_prog_AR
="$AR" # Let the user override the test.
6194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6198 test -z "$as_dir" && as_dir
=.
6199 for ac_exec_ext
in '' $ac_executable_extensions; do
6200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6201 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 if test -n "$AR"; then
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6214 $as_echo "$AR" >&6; }
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217 $as_echo "no" >&6; }
6222 if test -z "$ac_cv_prog_AR"; then
6224 # Extract the first word of "ar", so it can be a program name with args.
6225 set dummy
ar; ac_word
=$2
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227 $as_echo_n "checking for $ac_word... " >&6; }
6228 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6229 $as_echo_n "(cached) " >&6
6231 if test -n "$ac_ct_AR"; then
6232 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6238 test -z "$as_dir" && as_dir
=.
6239 for ac_exec_ext
in '' $ac_executable_extensions; do
6240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6241 ac_cv_prog_ac_ct_AR
="ar"
6242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6252 if test -n "$ac_ct_AR"; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6254 $as_echo "$ac_ct_AR" >&6; }
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 $as_echo "no" >&6; }
6260 if test "x$ac_ct_AR" = x
; then
6263 case $cross_compiling:$ac_tool_warned in
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6267 ac_tool_warned
=yes ;;
6275 test -z "$AR" && AR
=ar
6276 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6288 if test -n "$ac_tool_prefix"; then
6289 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6290 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6292 $as_echo_n "checking for $ac_word... " >&6; }
6293 if test "${ac_cv_prog_STRIP+set}" = set; then :
6294 $as_echo_n "(cached) " >&6
6296 if test -n "$STRIP"; then
6297 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6299 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6303 test -z "$as_dir" && as_dir
=.
6304 for ac_exec_ext
in '' $ac_executable_extensions; do
6305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 STRIP
=$ac_cv_prog_STRIP
6317 if test -n "$STRIP"; then
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6319 $as_echo "$STRIP" >&6; }
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322 $as_echo "no" >&6; }
6327 if test -z "$ac_cv_prog_STRIP"; then
6329 # Extract the first word of "strip", so it can be a program name with args.
6330 set dummy strip
; ac_word
=$2
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332 $as_echo_n "checking for $ac_word... " >&6; }
6333 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6334 $as_echo_n "(cached) " >&6
6336 if test -n "$ac_ct_STRIP"; then
6337 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6343 test -z "$as_dir" && as_dir
=.
6344 for ac_exec_ext
in '' $ac_executable_extensions; do
6345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6346 ac_cv_prog_ac_ct_STRIP
="strip"
6347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6357 if test -n "$ac_ct_STRIP"; then
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6359 $as_echo "$ac_ct_STRIP" >&6; }
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362 $as_echo "no" >&6; }
6365 if test "x$ac_ct_STRIP" = x
; then
6368 case $cross_compiling:$ac_tool_warned in
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6372 ac_tool_warned
=yes ;;
6377 STRIP
="$ac_cv_prog_STRIP"
6380 test -z "$STRIP" && STRIP
=:
6387 if test -n "$ac_tool_prefix"; then
6388 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6389 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6393 $as_echo_n "(cached) " >&6
6395 if test -n "$RANLIB"; then
6396 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6402 test -z "$as_dir" && as_dir
=.
6403 for ac_exec_ext
in '' $ac_executable_extensions; do
6404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6405 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 RANLIB
=$ac_cv_prog_RANLIB
6416 if test -n "$RANLIB"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6418 $as_echo "$RANLIB" >&6; }
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6426 if test -z "$ac_cv_prog_RANLIB"; then
6427 ac_ct_RANLIB
=$RANLIB
6428 # Extract the first word of "ranlib", so it can be a program name with args.
6429 set dummy ranlib
; ac_word
=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6433 $as_echo_n "(cached) " >&6
6435 if test -n "$ac_ct_RANLIB"; then
6436 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6442 test -z "$as_dir" && as_dir
=.
6443 for ac_exec_ext
in '' $ac_executable_extensions; do
6444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6445 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6456 if test -n "$ac_ct_RANLIB"; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6458 $as_echo "$ac_ct_RANLIB" >&6; }
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6464 if test "x$ac_ct_RANLIB" = x
; then
6467 case $cross_compiling:$ac_tool_warned in
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6471 ac_tool_warned
=yes ;;
6473 RANLIB
=$ac_ct_RANLIB
6476 RANLIB
="$ac_cv_prog_RANLIB"
6479 test -z "$RANLIB" && RANLIB
=:
6486 # Determine commands to create old-style static archives.
6487 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
6488 old_postinstall_cmds
='chmod 644 $oldlib'
6489 old_postuninstall_cmds
=
6491 if test -n "$RANLIB"; then
6494 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6497 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6500 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6505 lock_old_archive_extraction
=yes ;;
6507 lock_old_archive_extraction
=no
;;
6548 # If no C compiler was specified, use CC.
6551 # If no C compiler flags were specified, use CFLAGS.
6552 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
6554 # Allow CC to be a program name with arguments.
6558 # Check for command to grab the raw symbol name followed by C symbol from nm.
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6560 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6561 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6562 $as_echo_n "(cached) " >&6
6565 # These are sane defaults that work on at least a few old systems.
6566 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6568 # Character class describing NM global symbol codes.
6569 symcode
='[BCDEGRST]'
6571 # Regexp to match symbols that can be accessed directly from C.
6572 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6574 # Define system-specific variables.
6579 cygwin
* | mingw
* | pw32
* | cegcc
*)
6580 symcode
='[ABCDGISTW]'
6583 if test "$host_cpu" = ia64
; then
6584 symcode
='[ABCDEGRST]'
6588 symcode
='[BCDEGRST]'
6591 symcode
='[BCDEGQRST]'
6602 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6610 # If we're using GNU nm, then use its standard symbol codes.
6611 case `$NM -V 2>&1` in
6612 *GNU
* |
*'with BFD'*)
6613 symcode
='[ABCDGIRSTW]' ;;
6616 # Transform an extracted symbol line into a proper C declaration.
6617 # Some systems (esp. on ia64) link data and code symbols differently,
6618 # so use this general approach.
6619 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6621 # Transform an extracted symbol line into symbol name and symbol address
6622 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6623 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6625 # Handle CRLF in mingw tool chain
6629 opt_cr
=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6633 # Try without a prefix underscore, then with it.
6634 for ac_symprfx
in "" "_"; do
6636 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6637 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6639 # Write the raw and C identifiers.
6640 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6641 # Fake it for dumpbin and say T for any non-static function
6642 # and D for any global variable.
6643 # Also find C++ and __fastcall symbols from MSVC++,
6644 # which start with @ or ?.
6645 lt_cv_sys_global_symbol_pipe
="$AWK '"\
6646 " {last_section=section; section=\$ 3};"\
6647 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6648 " \$ 0!~/External *\|/{next};"\
6649 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6650 " {if(hide[section]) next};"\
6651 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6652 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6653 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6654 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6655 " ' prfx=^$ac_symprfx"
6657 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6660 # Check to see that the pipe works correctly.
6664 cat > conftest.
$ac_ext <<_LT_EOF
6669 void nm_test_func(void);
6670 void nm_test_func(void){}
6674 int main(){nm_test_var='a';nm_test_func();return(0);}
6677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6678 (eval $ac_compile) 2>&5
6680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6681 test $ac_status = 0; }; then
6682 # Now try to grab the symbols.
6684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6685 (eval $NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist) 2>&5
6687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6688 test $ac_status = 0; } && test -s "$nlist"; then
6689 # Try sorting and uniquifying the output.
6690 if sort "$nlist" |
uniq > "$nlist"T
; then
6691 mv -f "$nlist"T
"$nlist"
6696 # Make sure that we snagged all the symbols we need.
6697 if $GREP ' nm_test_var$' "$nlist" >/dev
/null
; then
6698 if $GREP ' nm_test_func$' "$nlist" >/dev
/null
; then
6699 cat <<_LT_EOF > conftest.$ac_ext
6705 # Now generate the symbol file.
6706 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6708 cat <<_LT_EOF >> conftest.$ac_ext
6710 /* The mapping between symbol names and symbols. */
6715 lt__PROGRAM__LTX_preloaded_symbols[] =
6717 { "@PROGRAM@", (void *) 0 },
6719 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" |
$GREP -v main
>> conftest.
$ac_ext
6720 cat <<\_LT_EOF
>> conftest.
$ac_ext
6724 /* This works around a problem
in FreeBSD linker
*/
6725 #ifdef FREEBSD_WORKAROUND
6726 static const void
*lt_preloaded_setup
() {
6727 return lt__PROGRAM__LTX_preloaded_symbols
;
6735 # Now try linking the two files.
6736 mv conftest.
$ac_objext conftstm.
$ac_objext
6737 lt_save_LIBS
="$LIBS"
6738 lt_save_CFLAGS
="$CFLAGS"
6739 LIBS
="conftstm.$ac_objext"
6740 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6742 (eval $ac_link) 2>&5
6744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6745 test $ac_status = 0; } && test -s conftest
${ac_exeext}; then
6748 LIBS
="$lt_save_LIBS"
6749 CFLAGS
="$lt_save_CFLAGS"
6751 echo "cannot find nm_test_func in $nlist" >&5
6754 echo "cannot find nm_test_var in $nlist" >&5
6757 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6760 echo "$progname: failed program was:" >&5
6761 cat conftest.
$ac_ext >&5
6763 rm -rf conftest
* conftst
*
6765 # Do not use the global_symbol_pipe unless it works.
6766 if test "$pipe_works" = yes; then
6769 lt_cv_sys_global_symbol_pipe
=
6775 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6776 lt_cv_sys_global_symbol_to_cdecl
=
6778 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6780 $as_echo "failed" >&6; }
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6783 $as_echo "ok" >&6; }
6808 # Check whether --enable-libtool-lock was given.
6809 if test "${enable_libtool_lock+set}" = set; then :
6810 enableval
=$enable_libtool_lock;
6813 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6815 # Some flags need to be propagated to the compiler or linker for good
6819 # Find out which ABI we are using.
6820 echo 'int i;' > conftest.
$ac_ext
6821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6822 (eval $ac_compile) 2>&5
6824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6825 test $ac_status = 0; }; then
6826 case `/usr/bin/file conftest.$ac_objext` in
6838 # Find out which ABI we are using.
6839 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
6840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6841 (eval $ac_compile) 2>&5
6843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6844 test $ac_status = 0; }; then
6845 if test "$lt_cv_prog_gnu_ld" = yes; then
6846 case `/usr/bin/file conftest.$ac_objext` in
6848 LD
="${LD-ld} -melf32bsmip"
6851 LD
="${LD-ld} -melf32bmipn32"
6854 LD
="${LD-ld} -melf64bmip"
6858 case `/usr/bin/file conftest.$ac_objext` in
6874 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|powerpc
*-*linux
*| \
6875 s390
*-*linux
*|s390
*-*tpf
*|sparc
*-*linux
*)
6876 # Find out which ABI we are using.
6877 echo 'int i;' > conftest.
$ac_ext
6878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6879 (eval $ac_compile) 2>&5
6881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6882 test $ac_status = 0; }; then
6883 case `/usr/bin/file conftest.o` in
6886 x86_64-
*kfreebsd
*-gnu)
6887 LD
="${LD-ld} -m elf_i386_fbsd"
6890 case `/usr/bin/file conftest.o` in
6892 LD
="${LD-ld} -m elf32_x86_64"
6895 LD
="${LD-ld} -m elf_i386"
6899 powerpc64le-
*linux
*)
6900 LD
="${LD-ld} -m elf32lppclinux"
6903 LD
="${LD-ld} -m elf32ppclinux"
6906 LD
="${LD-ld} -m elf_s390"
6909 LD
="${LD-ld} -m elf32_sparc"
6915 x86_64-
*kfreebsd
*-gnu)
6916 LD
="${LD-ld} -m elf_x86_64_fbsd"
6919 LD
="${LD-ld} -m elf_x86_64"
6922 LD
="${LD-ld} -m elf64lppc"
6925 LD
="${LD-ld} -m elf64ppc"
6927 s390
*-*linux
*|s390
*-*tpf
*)
6928 LD
="${LD-ld} -m elf64_s390"
6931 LD
="${LD-ld} -m elf64_sparc"
6941 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6942 SAVE_CFLAGS
="$CFLAGS"
6943 CFLAGS
="$CFLAGS -belf"
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6945 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6946 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6947 $as_echo_n "(cached) " >&6
6950 ac_cpp
='$CPP $CPPFLAGS'
6951 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6952 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6953 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h. */
6966 if ac_fn_c_try_link
"$LINENO"; then :
6967 lt_cv_cc_needs_belf
=yes
6969 lt_cv_cc_needs_belf
=no
6971 rm -f core conftest.err conftest.
$ac_objext \
6972 conftest
$ac_exeext conftest.
$ac_ext
6974 ac_cpp
='$CPP $CPPFLAGS'
6975 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6976 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6977 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6981 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6982 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
6983 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6984 CFLAGS
="$SAVE_CFLAGS"
6988 # Find out which ABI we are using.
6989 echo 'int i;' > conftest.
$ac_ext
6990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6991 (eval $ac_compile) 2>&5
6993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6994 test $ac_status = 0; }; then
6995 case `/usr/bin/file conftest.o` in
6997 case $lt_cv_prog_gnu_ld in
6998 yes*) LD
="${LD-ld} -m elf64_sparc" ;;
7000 if ${LD-ld} -64 -r -o conftest2.o conftest.o
>/dev
/null
2>&1; then
7012 need_locks
="$enable_libtool_lock"
7016 rhapsody
* | darwin
*)
7017 if test -n "$ac_tool_prefix"; then
7018 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7019 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7021 $as_echo_n "checking for $ac_word... " >&6; }
7022 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7023 $as_echo_n "(cached) " >&6
7025 if test -n "$DSYMUTIL"; then
7026 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
7028 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7032 test -z "$as_dir" && as_dir
=.
7033 for ac_exec_ext
in '' $ac_executable_extensions; do
7034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7035 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
7036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
7046 if test -n "$DSYMUTIL"; then
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7048 $as_echo "$DSYMUTIL" >&6; }
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051 $as_echo "no" >&6; }
7056 if test -z "$ac_cv_prog_DSYMUTIL"; then
7057 ac_ct_DSYMUTIL
=$DSYMUTIL
7058 # Extract the first word of "dsymutil", so it can be a program name with args.
7059 set dummy dsymutil
; ac_word
=$2
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061 $as_echo_n "checking for $ac_word... " >&6; }
7062 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7063 $as_echo_n "(cached) " >&6
7065 if test -n "$ac_ct_DSYMUTIL"; then
7066 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
7068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7072 test -z "$as_dir" && as_dir
=.
7073 for ac_exec_ext
in '' $ac_executable_extensions; do
7074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7075 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
7076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
7086 if test -n "$ac_ct_DSYMUTIL"; then
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7088 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091 $as_echo "no" >&6; }
7094 if test "x$ac_ct_DSYMUTIL" = x
; then
7097 case $cross_compiling:$ac_tool_warned in
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7101 ac_tool_warned
=yes ;;
7103 DSYMUTIL
=$ac_ct_DSYMUTIL
7106 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
7109 if test -n "$ac_tool_prefix"; then
7110 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7111 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7113 $as_echo_n "checking for $ac_word... " >&6; }
7114 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7115 $as_echo_n "(cached) " >&6
7117 if test -n "$NMEDIT"; then
7118 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
7120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7124 test -z "$as_dir" && as_dir
=.
7125 for ac_exec_ext
in '' $ac_executable_extensions; do
7126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7127 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
7128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 NMEDIT
=$ac_cv_prog_NMEDIT
7138 if test -n "$NMEDIT"; then
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7140 $as_echo "$NMEDIT" >&6; }
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143 $as_echo "no" >&6; }
7148 if test -z "$ac_cv_prog_NMEDIT"; then
7149 ac_ct_NMEDIT
=$NMEDIT
7150 # Extract the first word of "nmedit", so it can be a program name with args.
7151 set dummy nmedit
; ac_word
=$2
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153 $as_echo_n "checking for $ac_word... " >&6; }
7154 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7155 $as_echo_n "(cached) " >&6
7157 if test -n "$ac_ct_NMEDIT"; then
7158 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
7160 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7164 test -z "$as_dir" && as_dir
=.
7165 for ac_exec_ext
in '' $ac_executable_extensions; do
7166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7167 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
7168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
7178 if test -n "$ac_ct_NMEDIT"; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7180 $as_echo "$ac_ct_NMEDIT" >&6; }
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183 $as_echo "no" >&6; }
7186 if test "x$ac_ct_NMEDIT" = x
; then
7189 case $cross_compiling:$ac_tool_warned in
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7193 ac_tool_warned
=yes ;;
7195 NMEDIT
=$ac_ct_NMEDIT
7198 NMEDIT
="$ac_cv_prog_NMEDIT"
7201 if test -n "$ac_tool_prefix"; then
7202 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7203 set dummy
${ac_tool_prefix}lipo
; ac_word
=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if test "${ac_cv_prog_LIPO+set}" = set; then :
7207 $as_echo_n "(cached) " >&6
7209 if test -n "$LIPO"; then
7210 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
7212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7216 test -z "$as_dir" && as_dir
=.
7217 for ac_exec_ext
in '' $ac_executable_extensions; do
7218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7219 ac_cv_prog_LIPO
="${ac_tool_prefix}lipo"
7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 LIPO
=$ac_cv_prog_LIPO
7230 if test -n "$LIPO"; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7232 $as_echo "$LIPO" >&6; }
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7240 if test -z "$ac_cv_prog_LIPO"; then
7242 # Extract the first word of "lipo", so it can be a program name with args.
7243 set dummy lipo
; ac_word
=$2
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7247 $as_echo_n "(cached) " >&6
7249 if test -n "$ac_ct_LIPO"; then
7250 ac_cv_prog_ac_ct_LIPO
="$ac_ct_LIPO" # Let the user override the test.
7252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7256 test -z "$as_dir" && as_dir
=.
7257 for ac_exec_ext
in '' $ac_executable_extensions; do
7258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7259 ac_cv_prog_ac_ct_LIPO
="lipo"
7260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7269 ac_ct_LIPO
=$ac_cv_prog_ac_ct_LIPO
7270 if test -n "$ac_ct_LIPO"; then
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7272 $as_echo "$ac_ct_LIPO" >&6; }
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7278 if test "x$ac_ct_LIPO" = x
; then
7281 case $cross_compiling:$ac_tool_warned in
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7285 ac_tool_warned
=yes ;;
7290 LIPO
="$ac_cv_prog_LIPO"
7293 if test -n "$ac_tool_prefix"; then
7294 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7295 set dummy
${ac_tool_prefix}otool
; ac_word
=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7299 $as_echo_n "(cached) " >&6
7301 if test -n "$OTOOL"; then
7302 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
7304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7308 test -z "$as_dir" && as_dir
=.
7309 for ac_exec_ext
in '' $ac_executable_extensions; do
7310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7311 ac_cv_prog_OTOOL
="${ac_tool_prefix}otool"
7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 OTOOL
=$ac_cv_prog_OTOOL
7322 if test -n "$OTOOL"; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7324 $as_echo "$OTOOL" >&6; }
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7332 if test -z "$ac_cv_prog_OTOOL"; then
7334 # Extract the first word of "otool", so it can be a program name with args.
7335 set dummy otool
; ac_word
=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7339 $as_echo_n "(cached) " >&6
7341 if test -n "$ac_ct_OTOOL"; then
7342 ac_cv_prog_ac_ct_OTOOL
="$ac_ct_OTOOL" # Let the user override the test.
7344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7348 test -z "$as_dir" && as_dir
=.
7349 for ac_exec_ext
in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_prog_ac_ct_OTOOL
="otool"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 ac_ct_OTOOL
=$ac_cv_prog_ac_ct_OTOOL
7362 if test -n "$ac_ct_OTOOL"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7364 $as_echo "$ac_ct_OTOOL" >&6; }
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7370 if test "x$ac_ct_OTOOL" = x
; then
7373 case $cross_compiling:$ac_tool_warned in
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7377 ac_tool_warned
=yes ;;
7382 OTOOL
="$ac_cv_prog_OTOOL"
7385 if test -n "$ac_tool_prefix"; then
7386 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7387 set dummy
${ac_tool_prefix}otool64
; ac_word
=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7391 $as_echo_n "(cached) " >&6
7393 if test -n "$OTOOL64"; then
7394 ac_cv_prog_OTOOL64
="$OTOOL64" # Let the user override the test.
7396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7400 test -z "$as_dir" && as_dir
=.
7401 for ac_exec_ext
in '' $ac_executable_extensions; do
7402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7403 ac_cv_prog_OTOOL64
="${ac_tool_prefix}otool64"
7404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 OTOOL64
=$ac_cv_prog_OTOOL64
7414 if test -n "$OTOOL64"; then
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7416 $as_echo "$OTOOL64" >&6; }
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7424 if test -z "$ac_cv_prog_OTOOL64"; then
7425 ac_ct_OTOOL64
=$OTOOL64
7426 # Extract the first word of "otool64", so it can be a program name with args.
7427 set dummy otool64
; ac_word
=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7431 $as_echo_n "(cached) " >&6
7433 if test -n "$ac_ct_OTOOL64"; then
7434 ac_cv_prog_ac_ct_OTOOL64
="$ac_ct_OTOOL64" # Let the user override the test.
7436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7440 test -z "$as_dir" && as_dir
=.
7441 for ac_exec_ext
in '' $ac_executable_extensions; do
7442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7443 ac_cv_prog_ac_ct_OTOOL64
="otool64"
7444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 ac_ct_OTOOL64
=$ac_cv_prog_ac_ct_OTOOL64
7454 if test -n "$ac_ct_OTOOL64"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7456 $as_echo "$ac_ct_OTOOL64" >&6; }
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7462 if test "x$ac_ct_OTOOL64" = x
; then
7465 case $cross_compiling:$ac_tool_warned in
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7469 ac_tool_warned
=yes ;;
7471 OTOOL64
=$ac_ct_OTOOL64
7474 OTOOL64
="$ac_cv_prog_OTOOL64"
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7504 $as_echo_n "checking for -single_module linker flag... " >&6; }
7505 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7506 $as_echo_n "(cached) " >&6
7508 lt_cv_apple_cc_single_mod
=no
7509 if test -z "${LT_MULTI_MODULE}"; then
7510 # By default we will add the -single_module flag. You can override
7511 # by either setting the environment variable LT_MULTI_MODULE
7512 # non-empty at configure time, or by adding -multi_module to the
7514 rm -rf libconftest.dylib
*
7515 echo "int foo(void){return 1;}" > conftest.c
7516 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7517 -dynamiclib -Wl,-single_module conftest.c" >&5
7518 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7519 -dynamiclib -Wl,-single_module conftest.c
2>conftest.err
7521 if test -f libconftest.dylib
&& test ! -s conftest.err
&& test $_lt_result = 0; then
7522 lt_cv_apple_cc_single_mod
=yes
7524 cat conftest.err
>&5
7526 rm -rf libconftest.dylib
*
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7531 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7533 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7534 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7535 $as_echo_n "(cached) " >&6
7537 lt_cv_ld_exported_symbols_list
=no
7538 save_LDFLAGS
=$LDFLAGS
7539 echo "_main" > conftest.sym
7540 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h. */
7552 if ac_fn_c_try_link
"$LINENO"; then :
7553 lt_cv_ld_exported_symbols_list
=yes
7555 lt_cv_ld_exported_symbols_list
=no
7557 rm -f core conftest.err conftest.
$ac_objext \
7558 conftest
$ac_exeext conftest.
$ac_ext
7559 LDFLAGS
="$save_LDFLAGS"
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7563 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7565 $as_echo_n "checking for -force_load linker flag... " >&6; }
7566 if test "${lt_cv_ld_force_load+set}" = set; then :
7567 $as_echo_n "(cached) " >&6
7569 lt_cv_ld_force_load
=no
7570 cat > conftest.c
<< _LT_EOF
7571 int forced_loaded() { return 2;}
7573 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7574 $LTCC $LTCFLAGS -c -o conftest.o conftest.c
2>&5
7575 echo "$AR cru libconftest.a conftest.o" >&5
7576 $AR cru libconftest.a conftest.o
2>&5
7577 cat > conftest.c
<< _LT_EOF
7578 int main() { return 0;}
7580 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7581 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
2>conftest.err
7583 if test -f conftest
&& test ! -s conftest.err
&& test $_lt_result = 0 && $GREP forced_load conftest
2>&1 >/dev
/null
; then
7584 lt_cv_ld_force_load
=yes
7586 cat conftest.err
>&5
7588 rm -f conftest.err libconftest.a conftest conftest.c
7589 rm -rf conftest.dSYM
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7593 $as_echo "$lt_cv_ld_force_load" >&6; }
7595 rhapsody
* | darwin1.
[012])
7596 _lt_dar_allow_undefined
='${wl}-undefined ${wl}suppress' ;;
7598 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7599 darwin
*) # darwin 5.x on
7600 # if running on 10.5 or later, the deployment target defaults
7601 # to the OS version, if on x86, and 10.4, the deployment
7602 # target defaults to 10.4. Don't you love it?
7603 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7604 10.0,*86*-darwin8*|
10.0,*-darwin[91]*)
7605 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
7607 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7609 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
7613 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7614 _lt_dar_single_mod
='$single_module'
7616 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7617 _lt_dar_export_syms
=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7619 _lt_dar_export_syms
='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7621 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7622 _lt_dsymutil
='~$DSYMUTIL $lib || :'
7630 ac_cpp
='$CPP $CPPFLAGS'
7631 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7632 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7633 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7635 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7636 # On Suns, sometimes $CPP names a directory.
7637 if test -n "$CPP" && test -d "$CPP"; then
7640 if test -z "$CPP"; then
7641 if test "${ac_cv_prog_CPP+set}" = set; then :
7642 $as_echo_n "(cached) " >&6
7644 # Double quotes because CPP needs to be expanded
7645 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7648 for ac_c_preproc_warn_flag
in '' yes
7650 # Use a header file that comes with gcc, so configuring glibc
7651 # with a fresh cross-compiler works.
7652 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7653 # <limits.h> exists even on freestanding compilers.
7654 # On the NeXT, cc -E runs the code through the compiler's parser,
7655 # not just through cpp. "Syntax error" is here to catch this case.
7656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h. */
7659 # include <limits.h>
7661 # include <assert.h>
7665 if ac_fn_c_try_cpp
"$LINENO"; then :
7668 # Broken: fails on valid input.
7671 rm -f conftest.err conftest.
$ac_ext
7673 # OK, works on sane cases. Now check whether nonexistent headers
7674 # can be detected and how.
7675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7676 /* end confdefs.h. */
7677 #include <ac_nonexistent.h>
7679 if ac_fn_c_try_cpp
"$LINENO"; then :
7680 # Broken: success on invalid input.
7683 # Passes both tests.
7687 rm -f conftest.err conftest.
$ac_ext
7690 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7691 rm -f conftest.err conftest.
$ac_ext
7692 if $ac_preproc_ok; then :
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7705 $as_echo "$CPP" >&6; }
7707 for ac_c_preproc_warn_flag
in '' yes
7709 # Use a header file that comes with gcc, so configuring glibc
7710 # with a fresh cross-compiler works.
7711 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7712 # <limits.h> exists even on freestanding compilers.
7713 # On the NeXT, cc -E runs the code through the compiler's parser,
7714 # not just through cpp. "Syntax error" is here to catch this case.
7715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7716 /* end confdefs.h. */
7718 # include <limits.h>
7720 # include <assert.h>
7724 if ac_fn_c_try_cpp
"$LINENO"; then :
7727 # Broken: fails on valid input.
7730 rm -f conftest.err conftest.
$ac_ext
7732 # OK, works on sane cases. Now check whether nonexistent headers
7733 # can be detected and how.
7734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7735 /* end confdefs.h. */
7736 #include <ac_nonexistent.h>
7738 if ac_fn_c_try_cpp
"$LINENO"; then :
7739 # Broken: success on invalid input.
7742 # Passes both tests.
7746 rm -f conftest.err conftest.
$ac_ext
7749 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7750 rm -f conftest.err conftest.
$ac_ext
7751 if $ac_preproc_ok; then :
7754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7756 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
7757 See \`config.log' for more details." "$LINENO" 5; }
7761 ac_cpp
='$CPP $CPPFLAGS'
7762 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7763 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7764 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7768 $as_echo_n "checking for ANSI C header files... " >&6; }
7769 if test "${ac_cv_header_stdc+set}" = set; then :
7770 $as_echo_n "(cached) " >&6
7772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7773 /* end confdefs.h. */
7787 if ac_fn_c_try_compile
"$LINENO"; then :
7788 ac_cv_header_stdc
=yes
7790 ac_cv_header_stdc
=no
7792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7794 if test $ac_cv_header_stdc = yes; then
7795 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h. */
7801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7802 $EGREP "memchr" >/dev
/null
2>&1; then :
7805 ac_cv_header_stdc
=no
7811 if test $ac_cv_header_stdc = yes; then
7812 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h. */
7818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7819 $EGREP "free" >/dev
/null
2>&1; then :
7822 ac_cv_header_stdc
=no
7828 if test $ac_cv_header_stdc = yes; then
7829 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7830 if test "$cross_compiling" = yes; then :
7833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h. */
7837 #if ((' ' & 0x0FF) == 0x020)
7838 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7839 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7841 # define ISLOWER(c) \
7842 (('a' <= (c) && (c) <= 'i') \
7843 || ('j' <= (c) && (c) <= 'r') \
7844 || ('s' <= (c) && (c) <= 'z'))
7845 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7848 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7853 for (i = 0; i < 256; i++)
7854 if (XOR (islower (i), ISLOWER (i))
7855 || toupper (i) != TOUPPER (i))
7860 if ac_fn_c_try_run
"$LINENO"; then :
7863 ac_cv_header_stdc
=no
7865 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7866 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7872 $as_echo "$ac_cv_header_stdc" >&6; }
7873 if test $ac_cv_header_stdc = yes; then
7875 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7879 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7880 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7881 inttypes.h stdint.h unistd.h
7883 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7884 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7886 eval as_val
=\$
$as_ac_Header
7887 if test "x$as_val" = x
""yes; then :
7888 cat >>confdefs.h
<<_ACEOF
7889 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7897 for ac_header
in dlfcn.h
7899 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7901 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
7902 cat >>confdefs.h
<<_ACEOF
7903 #define HAVE_DLFCN_H 1
7925 # Check whether --enable-shared was given.
7926 if test "${enable_shared+set}" = set; then :
7927 enableval
=$enable_shared; p
=${PACKAGE-default}
7929 yes) enable_shared
=yes ;;
7930 no
) enable_shared
=no
;;
7933 # Look at the argument we got. We use all the common list separators.
7934 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7935 for pkg
in $enableval; do
7937 if test "X$pkg" = "X$p"; then
7956 # Check whether --enable-static was given.
7957 if test "${enable_static+set}" = set; then :
7958 enableval
=$enable_static; p
=${PACKAGE-default}
7960 yes) enable_static
=yes ;;
7961 no
) enable_static
=no
;;
7964 # Look at the argument we got. We use all the common list separators.
7965 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7966 for pkg
in $enableval; do
7968 if test "X$pkg" = "X$p"; then
7988 # Check whether --with-pic was given.
7989 if test "${with_pic+set}" = set; then :
7990 withval
=$with_pic; pic_mode
="$withval"
7996 test -z "$pic_mode" && pic_mode
=default
8004 # Check whether --enable-fast-install was given.
8005 if test "${enable_fast_install+set}" = set; then :
8006 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8008 yes) enable_fast_install
=yes ;;
8009 no
) enable_fast_install
=no
;;
8011 enable_fast_install
=no
8012 # Look at the argument we got. We use all the common list separators.
8013 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8014 for pkg
in $enableval; do
8016 if test "X$pkg" = "X$p"; then
8017 enable_fast_install
=yes
8024 enable_fast_install
=yes
8037 # This can be used to rebuild libtool when needed
8038 LIBTOOL_DEPS
="$ltmain"
8040 # Always use our own libtool.
8041 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8068 test -z "$LN_S" && LN_S
="ln -s"
8083 if test -n "${ZSH_VERSION+set}" ; then
8084 setopt NO_GLOB_SUBST
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8088 $as_echo_n "checking for objdir... " >&6; }
8089 if test "${lt_cv_objdir+set}" = set; then :
8090 $as_echo_n "(cached) " >&6
8092 rm -f .libs
2>/dev
/null
8093 mkdir .libs
2>/dev
/null
8094 if test -d .libs
; then
8097 # MS-DOS does not allow filenames that begin with a dot.
8100 rmdir .libs
2>/dev
/null
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8103 $as_echo "$lt_cv_objdir" >&6; }
8104 objdir
=$lt_cv_objdir
8110 cat >>confdefs.h
<<_ACEOF
8111 #define LT_OBJDIR "$lt_cv_objdir/"
8119 # AIX sometimes has problems with the GCC collect2 program. For some
8120 # reason, if we set the COLLECT_NAMES environment variable, the problems
8121 # vanish in a puff of smoke.
8122 if test "X${COLLECT_NAMES+set}" != Xset
; then
8124 export COLLECT_NAMES
8131 can_build_shared
=yes
8133 # All known linkers require a `.a' archive for static linking (except MSVC,
8134 # which needs '.lib').
8137 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8140 old_CFLAGS
="$CFLAGS"
8142 # Set sane defaults for various variables
8143 test -z "$CC" && CC
=cc
8144 test -z "$LTCC" && LTCC
=$CC
8145 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8146 test -z "$LD" && LD
=ld
8147 test -z "$ac_objext" && ac_objext
=o
8149 for cc_temp
in $compiler""; do
8151 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8152 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8157 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8160 # Only perform the check for file, if the check method requires it
8161 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8162 case $deplibs_check_method in
8164 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8166 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8167 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8168 $as_echo_n "(cached) " >&6
8172 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8175 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8176 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8177 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8178 for ac_dir
in $ac_dummy; do
8180 test -z "$ac_dir" && ac_dir
=.
8181 if test -f $ac_dir/${ac_tool_prefix}file; then
8182 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8183 if test -n "$file_magic_test_file"; then
8184 case $deplibs_check_method in
8186 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8187 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8188 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8189 $EGREP "$file_magic_regex" > /dev
/null
; then
8194 *** Warning: the command libtool uses to detect shared libraries,
8195 *** $file_magic_cmd, produces output that libtool cannot recognize.
8196 *** The result is that libtool may fail to recognize shared libraries
8197 *** as such. This will affect the creation of libtool libraries that
8198 *** depend on shared libraries, but programs linked with such libtool
8199 *** libraries will work regardless of this problem. Nevertheless, you
8200 *** may want to report the problem to your system manager and/or to
8201 *** bug-libtool@gnu.org
8211 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8216 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8217 if test -n "$MAGIC_CMD"; then
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8219 $as_echo "$MAGIC_CMD" >&6; }
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8222 $as_echo "no" >&6; }
8229 if test -z "$lt_cv_path_MAGIC_CMD"; then
8230 if test -n "$ac_tool_prefix"; then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8232 $as_echo_n "checking for file... " >&6; }
8233 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8234 $as_echo_n "(cached) " >&6
8238 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8241 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8242 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8243 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8244 for ac_dir
in $ac_dummy; do
8246 test -z "$ac_dir" && ac_dir
=.
8247 if test -f $ac_dir/file; then
8248 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8249 if test -n "$file_magic_test_file"; then
8250 case $deplibs_check_method in
8252 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8253 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8254 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8255 $EGREP "$file_magic_regex" > /dev
/null
; then
8260 *** Warning: the command libtool uses to detect shared libraries,
8261 *** $file_magic_cmd, produces output that libtool cannot recognize.
8262 *** The result is that libtool may fail to recognize shared libraries
8263 *** as such. This will affect the creation of libtool libraries that
8264 *** depend on shared libraries, but programs linked with such libtool
8265 *** libraries will work regardless of this problem. Nevertheless, you
8266 *** may want to report the problem to your system manager and/or to
8267 *** bug-libtool@gnu.org
8277 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8282 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8283 if test -n "$MAGIC_CMD"; then
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8285 $as_echo "$MAGIC_CMD" >&6; }
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8288 $as_echo "no" >&6; }
8301 # Use C for the default configuration in the libtool script
8305 ac_cpp
='$CPP $CPPFLAGS'
8306 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8307 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8308 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8311 # Source file extension for C test sources.
8314 # Object file extension for compiled C test sources.
8318 # Code to be used in simple compile tests
8319 lt_simple_compile_test_code
="int some_variable = 0;"
8321 # Code to be used in simple link tests
8322 lt_simple_link_test_code
='int main(){return(0);}'
8330 # If no C compiler was specified, use CC.
8333 # If no C compiler flags were specified, use CFLAGS.
8334 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8336 # Allow CC to be a program name with arguments.
8339 # Save the default compiler, since it gets overwritten when the other
8340 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8341 compiler_DEFAULT
=$CC
8343 # save warnings/boilerplate of simple test code
8344 ac_outfile
=conftest.
$ac_objext
8345 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8346 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8347 _lt_compiler_boilerplate
=`cat conftest.err`
8350 ac_outfile
=conftest.
$ac_objext
8351 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8352 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8353 _lt_linker_boilerplate
=`cat conftest.err`
8358 ## There is no encapsulation within the following macros, do not change
8359 ## the running order or otherwise move them around unless you know exactly
8360 ## what you are doing...
8361 if test -n "$compiler"; then
8363 lt_prog_compiler_no_builtin_flag
=
8365 if test "$GCC" = yes; then
8366 case $cc_basename in
8368 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8370 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8374 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8375 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8376 $as_echo_n "(cached) " >&6
8378 lt_cv_prog_compiler_rtti_exceptions
=no
8379 ac_outfile
=conftest.
$ac_objext
8380 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8381 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8382 # Insert the option either (1) after the last *FLAGS variable, or
8383 # (2) before a word containing "conftest.", or (3) at the end.
8384 # Note that $ac_compile itself does not contain backslashes and begins
8385 # with a dollar sign (not a hyphen), so the echo should work correctly.
8386 # The option is referenced via a variable to avoid confusing sed.
8387 lt_compile
=`echo "$ac_compile" | $SED \
8388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8390 -e 's:$: $lt_compiler_flag:'`
8391 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8392 (eval "$lt_compile" 2>conftest.err
)
8394 cat conftest.err
>&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 if (exit $ac_status) && test -s "$ac_outfile"; then
8397 # The compiler can only warn and ignore the option if not recognized
8398 # So say no if there are warnings other than the usual output.
8399 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8400 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8401 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8402 lt_cv_prog_compiler_rtti_exceptions
=yes
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8409 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8411 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8412 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8424 lt_prog_compiler_wl
=
8425 lt_prog_compiler_pic
=
8426 lt_prog_compiler_static
=
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8429 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8431 if test "$GCC" = yes; then
8432 lt_prog_compiler_wl
='-Wl,'
8433 lt_prog_compiler_static
='-static'
8437 # All AIX code is PIC.
8438 if test "$host_cpu" = ia64
; then
8439 # AIX 5 now supports IA64 processor
8440 lt_prog_compiler_static
='-Bstatic'
8442 lt_prog_compiler_pic
='-fPIC'
8448 # see comment about AmigaOS4 .so support
8449 lt_prog_compiler_pic
='-fPIC'
8452 # FIXME: we need at least 68020 code to build shared libraries, but
8453 # adding the `-m68020' flag to GCC prevents building anything better,
8455 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8460 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8461 # PIC is the default for these OSes.
8464 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8465 # This hack is so that the source file can tell whether it is being
8466 # built for inclusion in a dll (and should export symbols for example).
8467 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8468 # (--disable-auto-import) libraries
8469 lt_prog_compiler_pic
='-DDLL_EXPORT'
8472 darwin
* | rhapsody
*)
8473 # PIC is the default on this platform
8474 # Common symbols not allowed in MH_DYLIB files
8475 lt_prog_compiler_pic
='-fno-common'
8479 # PIC is the default for Haiku.
8480 # The "-static" flag exists, but is broken.
8481 lt_prog_compiler_static
=
8485 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8486 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8487 # sets the default TLS model and affects inlining.
8493 lt_prog_compiler_pic
='-fPIC'
8499 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8500 # Instead, we relocate shared libraries at runtime.
8504 # Just because we use GCC doesn't mean we suddenly get shared libraries
8505 # on systems that don't support them.
8506 lt_prog_compiler_can_build_shared
=no
8511 # QNX uses GNU C++, but need to define -shared option too, otherwise
8513 lt_prog_compiler_pic
='-fPIC -shared'
8517 if test -d /usr
/nec
; then
8518 lt_prog_compiler_pic
=-Kconform_pic
8523 lt_prog_compiler_pic
='-fPIC'
8527 case $cc_basename in
8528 nvcc
*) # Cuda Compiler Driver 2.2
8529 lt_prog_compiler_wl
='-Xlinker '
8530 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8534 # PORTME Check for flag to pass linker flags through the system compiler.
8537 lt_prog_compiler_wl
='-Wl,'
8538 if test "$host_cpu" = ia64
; then
8539 # AIX 5 now supports IA64 processor
8540 lt_prog_compiler_static
='-Bstatic'
8542 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8546 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8547 # This hack is so that the source file can tell whether it is being
8548 # built for inclusion in a dll (and should export symbols for example).
8549 lt_prog_compiler_pic
='-DDLL_EXPORT'
8552 hpux9
* | hpux10
* | hpux11
*)
8553 lt_prog_compiler_wl
='-Wl,'
8554 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8561 lt_prog_compiler_pic
='+Z'
8564 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8565 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8568 irix5
* | irix6
* | nonstopux
*)
8569 lt_prog_compiler_wl
='-Wl,'
8570 # PIC (with -KPIC) is the default.
8571 lt_prog_compiler_static
='-non_shared'
8574 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8575 case $cc_basename in
8576 # old Intel for x86_64 which still supported -KPIC.
8578 lt_prog_compiler_wl
='-Wl,'
8579 lt_prog_compiler_pic
='-KPIC'
8580 lt_prog_compiler_static
='-static'
8582 # icc used to be incompatible with GCC.
8583 # ICC 10 doesn't accept -KPIC any more.
8585 lt_prog_compiler_wl
='-Wl,'
8586 lt_prog_compiler_pic
='-fPIC'
8587 lt_prog_compiler_static
='-static'
8589 # Lahey Fortran 8.1.
8591 lt_prog_compiler_wl
='-Wl,'
8592 lt_prog_compiler_pic
='--shared'
8593 lt_prog_compiler_static
='--static'
8595 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8596 # Portland Group compilers (*not* the Pentium gcc compiler,
8597 # which looks to be a dead project)
8598 lt_prog_compiler_wl
='-Wl,'
8599 lt_prog_compiler_pic
='-fpic'
8600 lt_prog_compiler_static
='-Bstatic'
8603 lt_prog_compiler_wl
='-Wl,'
8604 # All Alpha code is PIC.
8605 lt_prog_compiler_static
='-non_shared'
8607 xl
* | bgxl
* | bgf
* | mpixl
*)
8608 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8609 lt_prog_compiler_wl
='-Wl,'
8610 lt_prog_compiler_pic
='-qpic'
8611 lt_prog_compiler_static
='-qstaticlink'
8614 case `$CC -V 2>&1 | sed 5q` in
8615 *Sun\ F
* |
*Sun
*Fortran
*)
8616 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8617 lt_prog_compiler_pic
='-KPIC'
8618 lt_prog_compiler_static
='-Bstatic'
8619 lt_prog_compiler_wl
=''
8623 lt_prog_compiler_pic
='-KPIC'
8624 lt_prog_compiler_static
='-Bstatic'
8625 lt_prog_compiler_wl
='-Wl,'
8633 lt_prog_compiler_pic
='-KPIC'
8634 lt_prog_compiler_static
='-Bstatic'
8638 # QNX uses GNU C++, but need to define -shared option too, otherwise
8640 lt_prog_compiler_pic
='-fPIC -shared'
8643 osf3
* | osf4
* | osf5
*)
8644 lt_prog_compiler_wl
='-Wl,'
8645 # All OSF/1 code is PIC.
8646 lt_prog_compiler_static
='-non_shared'
8650 lt_prog_compiler_static
='-non_shared'
8654 lt_prog_compiler_pic
='-KPIC'
8655 lt_prog_compiler_static
='-Bstatic'
8656 case $cc_basename in
8658 lt_prog_compiler_wl
='-Qoption ld ';;
8660 lt_prog_compiler_wl
='-Wl,';;
8665 lt_prog_compiler_wl
='-Qoption ld '
8666 lt_prog_compiler_pic
='-PIC'
8667 lt_prog_compiler_static
='-Bstatic'
8670 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8671 lt_prog_compiler_wl
='-Wl,'
8672 lt_prog_compiler_pic
='-KPIC'
8673 lt_prog_compiler_static
='-Bstatic'
8677 if test -d /usr
/nec
;then
8678 lt_prog_compiler_pic
='-Kconform_pic'
8679 lt_prog_compiler_static
='-Bstatic'
8683 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8684 lt_prog_compiler_wl
='-Wl,'
8685 lt_prog_compiler_pic
='-KPIC'
8686 lt_prog_compiler_static
='-Bstatic'
8690 lt_prog_compiler_wl
='-Wl,'
8691 lt_prog_compiler_can_build_shared
=no
8695 lt_prog_compiler_pic
='-pic'
8696 lt_prog_compiler_static
='-Bstatic'
8700 lt_prog_compiler_can_build_shared
=no
8706 # For platforms which do not support PIC, -DPIC is meaningless:
8708 lt_prog_compiler_pic
=
8711 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8715 $as_echo "$lt_prog_compiler_pic" >&6; }
8723 # Check to make sure the PIC flag actually works.
8725 if test -n "$lt_prog_compiler_pic"; then
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8727 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8728 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8729 $as_echo_n "(cached) " >&6
8731 lt_cv_prog_compiler_pic_works
=no
8732 ac_outfile
=conftest.
$ac_objext
8733 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8734 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8735 # Insert the option either (1) after the last *FLAGS variable, or
8736 # (2) before a word containing "conftest.", or (3) at the end.
8737 # Note that $ac_compile itself does not contain backslashes and begins
8738 # with a dollar sign (not a hyphen), so the echo should work correctly.
8739 # The option is referenced via a variable to avoid confusing sed.
8740 lt_compile
=`echo "$ac_compile" | $SED \
8741 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8742 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8743 -e 's:$: $lt_compiler_flag:'`
8744 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8745 (eval "$lt_compile" 2>conftest.err
)
8747 cat conftest.err
>&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 if (exit $ac_status) && test -s "$ac_outfile"; then
8750 # The compiler can only warn and ignore the option if not recognized
8751 # So say no if there are warnings other than the usual output.
8752 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8753 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8754 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8755 lt_cv_prog_compiler_pic_works
=yes
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8762 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8764 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8765 case $lt_prog_compiler_pic in
8767 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8770 lt_prog_compiler_pic
=
8771 lt_prog_compiler_can_build_shared
=no
8782 # Check to make sure the static flag actually works.
8784 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8786 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8787 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8788 $as_echo_n "(cached) " >&6
8790 lt_cv_prog_compiler_static_works
=no
8791 save_LDFLAGS
="$LDFLAGS"
8792 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8793 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8794 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8795 # The linker can only warn and ignore the option if not recognized
8796 # So say no if there are warnings
8797 if test -s conftest.err
; then
8798 # Append any errors to the config.log.
8799 cat conftest.err
1>&5
8800 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8801 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8802 if diff conftest.exp conftest.er2
>/dev
/null
; then
8803 lt_cv_prog_compiler_static_works
=yes
8806 lt_cv_prog_compiler_static_works
=yes
8810 LDFLAGS
="$save_LDFLAGS"
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8814 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8816 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8819 lt_prog_compiler_static
=
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8829 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8830 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8831 $as_echo_n "(cached) " >&6
8833 lt_cv_prog_compiler_c_o
=no
8834 $RM -r conftest
2>/dev
/null
8838 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8840 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8841 # Insert the option either (1) after the last *FLAGS variable, or
8842 # (2) before a word containing "conftest.", or (3) at the end.
8843 # Note that $ac_compile itself does not contain backslashes and begins
8844 # with a dollar sign (not a hyphen), so the echo should work correctly.
8845 lt_compile
=`echo "$ac_compile" | $SED \
8846 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8847 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8848 -e 's:$: $lt_compiler_flag:'`
8849 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8850 (eval "$lt_compile" 2>out
/conftest.err
)
8852 cat out
/conftest.err
>&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8856 # The compiler can only warn and ignore the option if not recognized
8857 # So say no if there are warnings
8858 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8859 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8860 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8861 lt_cv_prog_compiler_c_o
=yes
8866 # SGI C++ compiler will create directory out/ii_files/ for
8867 # template instantiation
8868 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8869 $RM out
/* && rmdir out
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8876 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8884 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8885 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8886 $as_echo_n "(cached) " >&6
8888 lt_cv_prog_compiler_c_o
=no
8889 $RM -r conftest
2>/dev
/null
8893 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8895 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8896 # Insert the option either (1) after the last *FLAGS variable, or
8897 # (2) before a word containing "conftest.", or (3) at the end.
8898 # Note that $ac_compile itself does not contain backslashes and begins
8899 # with a dollar sign (not a hyphen), so the echo should work correctly.
8900 lt_compile
=`echo "$ac_compile" | $SED \
8901 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8902 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8903 -e 's:$: $lt_compiler_flag:'`
8904 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8905 (eval "$lt_compile" 2>out
/conftest.err
)
8907 cat out
/conftest.err
>&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8911 # The compiler can only warn and ignore the option if not recognized
8912 # So say no if there are warnings
8913 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8914 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8915 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8916 lt_cv_prog_compiler_c_o
=yes
8921 # SGI C++ compiler will create directory out/ii_files/ for
8922 # template instantiation
8923 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8924 $RM out
/* && rmdir out
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8931 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8936 hard_links
="nottested"
8937 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8938 # do not overwrite the value of need_locks provided by the user
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8940 $as_echo_n "checking if we can lock with hard links... " >&6; }
8943 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8945 ln conftest.a conftest.b
2>&5 || hard_links
=no
8946 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8948 $as_echo "$hard_links" >&6; }
8949 if test "$hard_links" = no
; then
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8951 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8964 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8967 allow_undefined_flag
=
8968 always_export_symbols
=no
8970 archive_expsym_cmds
=
8971 compiler_needs_object
=no
8972 enable_shared_with_static_runtimes
=no
8973 export_dynamic_flag_spec
=
8974 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8975 hardcode_automatic
=no
8977 hardcode_direct_absolute
=no
8978 hardcode_libdir_flag_spec
=
8979 hardcode_libdir_flag_spec_ld
=
8980 hardcode_libdir_separator
=
8982 hardcode_shlibpath_var
=unsupported
8984 link_all_deplibs
=unknown
8987 old_archive_from_new_cmds
=
8988 old_archive_from_expsyms_cmds
=
8989 thread_safe_flag_spec
=
8990 whole_archive_flag_spec
=
8991 # include_expsyms should be a list of space-separated symbols to be *always*
8992 # included in the symbol list
8994 # exclude_expsyms can be an extended regexp of symbols to exclude
8995 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8996 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8997 # as well as any symbol that contains `d'.
8998 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8999 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9000 # platforms (ab)use it in PIC code, but their linkers get confused if
9001 # the symbol is explicitly referenced. Since portable code cannot
9002 # rely on this symbol name, it's probably fine to never include it in
9003 # preloaded symbol tables.
9004 # Exclude shared library initialization/finalization symbols.
9005 extract_expsyms_cmds
=
9008 cygwin
* | mingw
* | pw32
* | cegcc
*)
9009 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9010 # When not using gcc, we currently assume that we are using
9011 # Microsoft Visual C++.
9012 if test "$GCC" != yes; then
9017 # we just hope/assume this is gcc and not c89 (= MSVC++)
9027 # On some targets, GNU ld is compatible enough with the native linker
9028 # that we're better off using the native interface for both.
9029 lt_use_gnu_ld_interface
=no
9030 if test "$with_gnu_ld" = yes; then
9033 # The AIX port of GNU ld has always aspired to compatibility
9034 # with the native linker. However, as the warning in the GNU ld
9035 # block says, versions before 2.19.5* couldn't really create working
9036 # shared libraries, regardless of the interface used.
9037 case `$LD -v 2>&1` in
9038 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9039 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9040 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9042 lt_use_gnu_ld_interface
=yes
9047 lt_use_gnu_ld_interface
=yes
9052 if test "$lt_use_gnu_ld_interface" = yes; then
9053 # If archive_cmds runs LD, not CC, wlarc should be empty
9056 # Set some defaults for GNU ld with shared library support. These
9057 # are reset later if shared libraries are not supported. Putting them
9058 # here allows them to be overridden if necessary.
9059 runpath_var
=LD_RUN_PATH
9060 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9061 export_dynamic_flag_spec
='${wl}--export-dynamic'
9062 # ancient GNU ld didn't support --whole-archive et. al.
9063 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9064 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9066 whole_archive_flag_spec
=
9068 supports_anon_versioning
=no
9069 case `$LD -v 2>&1` in
9070 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9071 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9072 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9073 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9074 *\
2.11.
*) ;; # other 2.11 versions
9075 *) supports_anon_versioning
=yes ;;
9078 # See if GNU ld supports shared libraries.
9081 # On AIX/PPC, the GNU linker is very broken
9082 if test "$host_cpu" != ia64
; then
9086 *** Warning: the GNU linker, at least up to release 2.19, is reported
9087 *** to be unable to reliably create shared libraries on AIX.
9088 *** Therefore, libtool is disabling shared libraries support. If you
9089 *** really care for shared libraries, you may want to install binutils
9090 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9091 *** You will then need to restart the configuration process.
9100 # see comment about AmigaOS4 .so support
9101 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9102 archive_expsym_cmds
=''
9105 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)'
9106 hardcode_libdir_flag_spec
='-L$libdir'
9107 hardcode_minus_L
=yes
9113 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9114 allow_undefined_flag
=unsupported
9115 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9116 # support --undefined. This deserves some investigation. FIXME
9117 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9123 cygwin
* | mingw
* | pw32
* | cegcc
*)
9124 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9125 # as there is no search path for DLLs.
9126 hardcode_libdir_flag_spec
='-L$libdir'
9127 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9128 allow_undefined_flag
=unsupported
9129 always_export_symbols
=no
9130 enable_shared_with_static_runtimes
=yes
9131 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9133 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9134 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9135 # If the export-symbols file already is a .def file (1st line
9136 # is EXPORTS), use it as is; otherwise, prepend...
9137 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9138 cp $export_symbols $output_objdir/$soname.def;
9140 echo EXPORTS > $output_objdir/$soname.def;
9141 cat $export_symbols >> $output_objdir/$soname.def;
9143 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9150 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9151 link_all_deplibs
=yes
9156 hardcode_shlibpath_var
=no
9157 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9158 export_dynamic_flag_spec
='${wl}-E'
9159 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9160 # Instead, shared libraries are loaded at an image base (0x10000000 by
9161 # default) and relocated if they conflict, which is a slow very memory
9162 # consuming and fragmenting process. To avoid this, we pick a random,
9163 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9164 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9165 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9166 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'
9169 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9171 if test "$host_os" = linux-dietlibc
; then
9172 case $cc_basename in
9173 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9176 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9177 && test "$tmp_diet" = no
9179 tmp_addflag
=' $pic_flag'
9180 tmp_sharedflag
='-shared'
9181 case $cc_basename,$host_cpu in
9182 pgcc
*) # Portland Group C compiler
9183 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9184 tmp_addflag
=' $pic_flag'
9186 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9187 # Portland Group f77 and f90 compilers
9188 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9189 tmp_addflag
=' $pic_flag -Mnomain' ;;
9190 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9191 tmp_addflag
=' -i_dynamic' ;;
9192 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9193 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9194 ifc
* | ifort
*) # Intel Fortran compiler
9195 tmp_addflag
=' -nofor_main' ;;
9196 lf95
*) # Lahey Fortran 8.1
9197 whole_archive_flag_spec
=
9198 tmp_sharedflag
='--shared' ;;
9199 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9200 tmp_sharedflag
='-qmkshrobj'
9202 nvcc
*) # Cuda Compiler Driver 2.2
9203 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9204 compiler_needs_object
=yes
9207 case `$CC -V 2>&1 | sed 5q` in
9208 *Sun\ C
*) # Sun C 5.9
9209 whole_archive_flag_spec
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9210 compiler_needs_object
=yes
9211 tmp_sharedflag
='-G' ;;
9212 *Sun\ F
*) # Sun Fortran 8.3
9213 tmp_sharedflag
='-G' ;;
9215 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9217 if test "x$supports_anon_versioning" = xyes
; then
9218 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9219 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9220 echo "local: *; };" >> $output_objdir/$libname.ver~
9221 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9224 case $cc_basename in
9225 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9226 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9227 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9228 hardcode_libdir_flag_spec
=
9229 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9230 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9231 if test "x$supports_anon_versioning" = xyes
; then
9232 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9233 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9234 echo "local: *; };" >> $output_objdir/$libname.ver~
9235 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9245 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9246 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9249 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9250 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9255 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9259 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9260 *** create shared libraries on Solaris systems. Therefore, libtool
9261 *** is disabling shared libraries support. We urge you to upgrade GNU
9262 *** binutils to release 2.9.1 or newer. Another option is to modify
9263 *** your PATH or compiler configuration so that the native linker is
9264 *** used, and then restart.
9267 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9268 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9269 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9275 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9276 case `$LD -v 2>&1` in
9277 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9281 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9282 *** reliably create shared libraries on SCO systems. Therefore, libtool
9283 *** is disabling shared libraries support. We urge you to upgrade GNU
9284 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9285 *** your PATH or compiler configuration so that the native linker is
9286 *** used, and then restart.
9291 # For security reasons, it is highly recommended that you always
9292 # use absolute paths for naming shared libraries, and exclude the
9293 # DT_RUNPATH tag from executables and libraries. But doing so
9294 # requires that you compile everything twice, which is a pain.
9295 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9296 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9297 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9298 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9307 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9310 hardcode_shlibpath_var
=no
9314 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9315 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9316 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9323 if test "$ld_shlibs" = no
; then
9325 hardcode_libdir_flag_spec
=
9326 export_dynamic_flag_spec
=
9327 whole_archive_flag_spec
=
9330 # PORTME fill in a description of your system's linker (not GNU ld)
9333 allow_undefined_flag
=unsupported
9334 always_export_symbols
=yes
9335 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'
9336 # Note: this linker hardcodes the directories in LIBPATH if there
9337 # are no directories specified by -L.
9338 hardcode_minus_L
=yes
9339 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9340 # Neither direct hardcoding nor static linking is supported with a
9342 hardcode_direct
=unsupported
9347 if test "$host_cpu" = ia64
; then
9348 # On IA64, the linker does run time linking by default, so we don't
9349 # have to do anything special.
9350 aix_use_runtimelinking
=no
9351 exp_sym_flag
='-Bexport'
9354 # If we're using GNU nm, then we don't want the "-C" option.
9355 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9356 # Also, AIX nm treats weak defined symbols like other global
9357 # defined symbols, whereas GNU nm marks them as "W".
9358 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9359 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9361 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9363 aix_use_runtimelinking
=no
9365 # Test if we are trying to use run time linking or normal
9366 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9367 # need to do runtime linking.
9368 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9369 for ld_flag
in $LDFLAGS; do
9370 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9371 aix_use_runtimelinking
=yes
9378 exp_sym_flag
='-bexport'
9379 no_entry_flag
='-bnoentry'
9382 # When large executables or shared objects are built, AIX ld can
9383 # have problems creating the table of contents. If linking a library
9384 # or program results in "error TOC overflow" add -mminimal-toc to
9385 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9386 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9390 hardcode_direct_absolute
=yes
9391 hardcode_libdir_separator
=':'
9392 link_all_deplibs
=yes
9393 file_list_spec
='${wl}-f,'
9395 if test "$GCC" = yes; then
9396 case $host_os in aix4.
[012]|aix4.
[012].
*)
9397 # We only want to do this on AIX 4.2 and lower, the check
9398 # below for broken collect2 doesn't work under 4.3+
9399 collect2name
=`${CC} -print-prog-name=collect2`
9400 if test -f "$collect2name" &&
9401 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9403 # We have reworked collect2
9406 # We have old collect2
9407 hardcode_direct
=unsupported
9408 # It fails to find uninstalled libraries when the uninstalled
9409 # path is not listed in the libpath. Setting hardcode_minus_L
9410 # to unsupported forces relinking
9411 hardcode_minus_L
=yes
9412 hardcode_libdir_flag_spec
='-L$libdir'
9413 hardcode_libdir_separator
=
9417 shared_flag
='-shared'
9418 if test "$aix_use_runtimelinking" = yes; then
9419 shared_flag
="$shared_flag "'${wl}-G'
9423 if test "$host_cpu" = ia64
; then
9424 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9425 # chokes on -Wl,-G. The following line is correct:
9428 if test "$aix_use_runtimelinking" = yes; then
9429 shared_flag
='${wl}-G'
9431 shared_flag
='${wl}-bM:SRE'
9436 export_dynamic_flag_spec
='${wl}-bexpall'
9437 # It seems that -bexpall does not export symbols beginning with
9438 # underscore (_), so it is better to generate a list of symbols to export.
9439 always_export_symbols
=yes
9440 if test "$aix_use_runtimelinking" = yes; then
9441 # Warning - without using the other runtime loading flags (-brtl),
9442 # -berok will link without error, but may produce a broken library.
9443 allow_undefined_flag
='-berok'
9444 # Determine the default libpath from the value encoded in an
9446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9447 /* end confdefs.h. */
9457 if ac_fn_c_try_link
"$LINENO"; then :
9459 lt_aix_libpath_sed
='
9460 /Import File Strings/,/^$/ {
9466 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9467 # Check for a 64-bit object if we didn't find anything.
9468 if test -z "$aix_libpath"; then
9469 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9472 rm -f core conftest.err conftest.
$ac_objext \
9473 conftest
$ac_exeext conftest.
$ac_ext
9474 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9476 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9477 archive_expsym_cmds
='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9479 if test "$host_cpu" = ia64
; then
9480 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9481 allow_undefined_flag
="-z nodefs"
9482 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"
9484 # Determine the default libpath from the value encoded in an
9486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9487 /* end confdefs.h. */
9497 if ac_fn_c_try_link
"$LINENO"; then :
9499 lt_aix_libpath_sed
='
9500 /Import File Strings/,/^$/ {
9506 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9507 # Check for a 64-bit object if we didn't find anything.
9508 if test -z "$aix_libpath"; then
9509 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9512 rm -f core conftest.err conftest.
$ac_objext \
9513 conftest
$ac_exeext conftest.
$ac_ext
9514 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9516 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9517 # Warning - without using the other run time loading flags,
9518 # -berok will link without error, but may produce a broken library.
9519 no_undefined_flag
=' ${wl}-bernotok'
9520 allow_undefined_flag
=' ${wl}-berok'
9521 if test "$with_gnu_ld" = yes; then
9522 # We only use this code for GNU lds that support --whole-archive.
9523 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9525 # Exported symbols can be pulled into shared objects from archives
9526 whole_archive_flag_spec
='$convenience'
9528 archive_cmds_need_lc
=yes
9529 # This is similar to how AIX traditionally builds its shared libraries.
9530 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'
9538 # see comment about AmigaOS4 .so support
9539 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9540 archive_expsym_cmds
=''
9543 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)'
9544 hardcode_libdir_flag_spec
='-L$libdir'
9545 hardcode_minus_L
=yes
9551 export_dynamic_flag_spec
=-rdynamic
9554 cygwin
* | mingw
* | pw32
* | cegcc
*)
9555 # When not using gcc, we currently assume that we are using
9556 # Microsoft Visual C++.
9557 # hardcode_libdir_flag_spec is actually meaningless, as there is
9558 # no search path for DLLs.
9559 hardcode_libdir_flag_spec
=' '
9560 allow_undefined_flag
=unsupported
9561 # Tell ltmain to make .lib files, not .a files.
9563 # Tell ltmain to make .dll files, not .so files.
9565 # FIXME: Setting linknames here is a bad hack.
9566 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9567 # The linker will automatically build a .lib file if we build a DLL.
9568 old_archive_from_new_cmds
='true'
9569 # FIXME: Should let the user specify the lib program.
9570 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9571 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9572 enable_shared_with_static_runtimes
=yes
9575 darwin
* | rhapsody
*)
9578 archive_cmds_need_lc
=no
9580 hardcode_automatic
=yes
9581 hardcode_shlibpath_var
=unsupported
9582 if test "$lt_cv_ld_force_load" = "yes"; then
9583 whole_archive_flag_spec
='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9585 whole_archive_flag_spec
=''
9587 link_all_deplibs
=yes
9588 allow_undefined_flag
="$_lt_dar_allow_undefined"
9589 case $cc_basename in
9590 ifort
*) _lt_dar_can_shared
=yes ;;
9591 *) _lt_dar_can_shared
=$GCC ;;
9593 if test "$_lt_dar_can_shared" = "yes"; then
9594 output_verbose_link_cmd
=func_echo_all
9595 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9596 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9597 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}"
9598 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}"
9607 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9608 hardcode_libdir_flag_spec
='-L$libdir'
9609 hardcode_shlibpath_var
=no
9612 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9613 # support. Future versions do this automatically, but an explicit c++rt0.o
9614 # does not break anything, and helps significantly (at the cost of a little
9617 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9618 hardcode_libdir_flag_spec
='-R$libdir'
9620 hardcode_shlibpath_var
=no
9623 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9625 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9627 hardcode_minus_L
=yes
9628 hardcode_shlibpath_var
=no
9631 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9632 freebsd
* | dragonfly
*)
9633 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9634 hardcode_libdir_flag_spec
='-R$libdir'
9636 hardcode_shlibpath_var
=no
9640 if test "$GCC" = yes; then
9641 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'
9643 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'
9645 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9646 hardcode_libdir_separator
=:
9649 # hardcode_minus_L: Not really in the search PATH,
9650 # but as the default location of the library.
9651 hardcode_minus_L
=yes
9652 export_dynamic_flag_spec
='${wl}-E'
9656 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9657 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9659 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9661 if test "$with_gnu_ld" = no
; then
9662 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9663 hardcode_libdir_flag_spec_ld
='+b $libdir'
9664 hardcode_libdir_separator
=:
9666 hardcode_direct_absolute
=yes
9667 export_dynamic_flag_spec
='${wl}-E'
9668 # hardcode_minus_L: Not really in the search PATH,
9669 # but as the default location of the library.
9670 hardcode_minus_L
=yes
9675 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9678 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9681 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9684 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9690 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9693 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9697 # Older versions of the 11.00 compiler do not understand -b yet
9698 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9700 $as_echo_n "checking if $CC understands -b... " >&6; }
9701 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9702 $as_echo_n "(cached) " >&6
9704 lt_cv_prog_compiler__b
=no
9705 save_LDFLAGS
="$LDFLAGS"
9706 LDFLAGS
="$LDFLAGS -b"
9707 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9708 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9709 # The linker can only warn and ignore the option if not recognized
9710 # So say no if there are warnings
9711 if test -s conftest.err
; then
9712 # Append any errors to the config.log.
9713 cat conftest.err
1>&5
9714 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9715 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9716 if diff conftest.exp conftest.er2
>/dev
/null
; then
9717 lt_cv_prog_compiler__b
=yes
9720 lt_cv_prog_compiler__b
=yes
9724 LDFLAGS
="$save_LDFLAGS"
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9728 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9730 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9731 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9733 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9739 if test "$with_gnu_ld" = no
; then
9740 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9741 hardcode_libdir_separator
=:
9746 hardcode_shlibpath_var
=no
9750 hardcode_direct_absolute
=yes
9751 export_dynamic_flag_spec
='${wl}-E'
9753 # hardcode_minus_L: Not really in the search PATH,
9754 # but as the default location of the library.
9755 hardcode_minus_L
=yes
9761 irix5
* | irix6
* | nonstopux
*)
9762 if test "$GCC" = yes; then
9763 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9764 # Try to use the -exported_symbol ld option, if it does not
9765 # work, assume that -exports_file does not work either and
9766 # implicitly export all symbols.
9767 save_LDFLAGS
="$LDFLAGS"
9768 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9770 /* end confdefs.h. */
9773 if ac_fn_c_try_link
"$LINENO"; then :
9774 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9777 rm -f core conftest.err conftest.
$ac_objext \
9778 conftest
$ac_exeext conftest.
$ac_ext
9779 LDFLAGS
="$save_LDFLAGS"
9781 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9782 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9784 archive_cmds_need_lc
='no'
9785 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9786 hardcode_libdir_separator
=:
9788 link_all_deplibs
=yes
9792 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9793 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9795 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9797 hardcode_libdir_flag_spec
='-R$libdir'
9799 hardcode_shlibpath_var
=no
9803 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9805 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9806 hardcode_libdir_separator
=:
9807 hardcode_shlibpath_var
=no
9814 if test -f /usr
/libexec
/ld.so
; then
9816 hardcode_shlibpath_var
=no
9817 hardcode_direct_absolute
=yes
9818 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9819 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9820 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9821 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9822 export_dynamic_flag_spec
='${wl}-E'
9825 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9826 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9827 hardcode_libdir_flag_spec
='-R$libdir'
9830 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9831 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9841 hardcode_libdir_flag_spec
='-L$libdir'
9842 hardcode_minus_L
=yes
9843 allow_undefined_flag
=unsupported
9844 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'
9845 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9849 if test "$GCC" = yes; then
9850 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9851 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9853 allow_undefined_flag
=' -expect_unresolved \*'
9854 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9856 archive_cmds_need_lc
='no'
9857 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9858 hardcode_libdir_separator
=:
9861 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9862 if test "$GCC" = yes; then
9863 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9864 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9865 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9867 allow_undefined_flag
=' -expect_unresolved \*'
9868 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9869 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9870 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9872 # Both c and cxx compiler support -rpath directly
9873 hardcode_libdir_flag_spec
='-rpath $libdir'
9875 archive_cmds_need_lc
='no'
9876 hardcode_libdir_separator
=:
9880 no_undefined_flag
=' -z defs'
9881 if test "$GCC" = yes; then
9883 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9884 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9885 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9887 case `$CC -V 2>&1` in
9890 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9891 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9892 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9896 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9897 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9898 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9902 hardcode_libdir_flag_spec
='-R$libdir'
9903 hardcode_shlibpath_var
=no
9905 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9907 # The compiler driver will combine and reorder linker options,
9908 # but understands `-z linker_flag'. GCC discards it without `$wl',
9909 # but is careful enough not to reorder.
9910 # Supported since Solaris 2.6 (maybe 2.5.1?)
9911 if test "$GCC" = yes; then
9912 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9914 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9918 link_all_deplibs
=yes
9922 if test "x$host_vendor" = xsequent
; then
9923 # Use $CC to link under sequent, because it throws in some extra .o
9924 # files that make .init and .fini sections work.
9925 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9927 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9929 hardcode_libdir_flag_spec
='-L$libdir'
9931 hardcode_minus_L
=yes
9932 hardcode_shlibpath_var
=no
9936 case $host_vendor in
9938 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9939 hardcode_direct
=yes # is this really true???
9942 ## LD is ld it makes a PLAMLIB
9943 ## CC just makes a GrossModule.
9944 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9945 reload_cmds
='$CC -r -o $output$reload_objs'
9949 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9950 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9953 runpath_var
='LD_RUN_PATH'
9954 hardcode_shlibpath_var
=no
9958 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9959 hardcode_shlibpath_var
=no
9960 export_dynamic_flag_spec
='-Bexport'
9964 if test -d /usr
/nec
; then
9965 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9966 hardcode_shlibpath_var
=no
9967 runpath_var
=LD_RUN_PATH
9968 hardcode_runpath_var
=yes
9973 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9974 no_undefined_flag
='${wl}-z,text'
9975 archive_cmds_need_lc
=no
9976 hardcode_shlibpath_var
=no
9977 runpath_var
='LD_RUN_PATH'
9979 if test "$GCC" = yes; then
9980 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9981 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9983 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9984 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9988 sysv5
* | sco3.2v5
* | sco5v6
*)
9989 # Note: We can NOT use -z defs as we might desire, because we do not
9990 # link with -lc, and that would cause any symbols used from libc to
9991 # always be unresolved, which means just about no library would
9992 # ever link correctly. If we're not using GNU ld we use -z text
9993 # though, which does catch some bad symbols but isn't as heavy-handed
9995 no_undefined_flag
='${wl}-z,text'
9996 allow_undefined_flag
='${wl}-z,nodefs'
9997 archive_cmds_need_lc
=no
9998 hardcode_shlibpath_var
=no
9999 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10000 hardcode_libdir_separator
=':'
10001 link_all_deplibs
=yes
10002 export_dynamic_flag_spec
='${wl}-Bexport'
10003 runpath_var
='LD_RUN_PATH'
10005 if test "$GCC" = yes; then
10006 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10007 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10009 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10010 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10015 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10016 hardcode_libdir_flag_spec
='-L$libdir'
10017 hardcode_shlibpath_var
=no
10025 if test x
$host_vendor = xsni
; then
10027 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10028 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10035 $as_echo "$ld_shlibs" >&6; }
10036 test "$ld_shlibs" = no
&& can_build_shared
=no
10038 with_gnu_ld
=$with_gnu_ld
10055 # Do we need to explicitly link libc?
10057 case "x$archive_cmds_need_lc" in
10059 # Assume -lc should be added
10060 archive_cmds_need_lc
=yes
10062 if test "$enable_shared" = yes && test "$GCC" = yes; then
10063 case $archive_cmds in
10065 # FIXME: we may have to deal with multi-command sequences.
10068 # Test whether the compiler implicitly links with -lc since on some
10069 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10070 # to ld, don't add -lc before -lgcc.
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10072 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10073 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10074 $as_echo_n "(cached) " >&6
10077 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10080 (eval $ac_compile) 2>&5
10082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10083 test $ac_status = 0; } 2>conftest.err
; then
10086 libobjs
=conftest.
$ac_objext
10088 wl
=$lt_prog_compiler_wl
10089 pic_flag
=$lt_prog_compiler_pic
10095 lt_save_allow_undefined_flag
=$allow_undefined_flag
10096 allow_undefined_flag
=
10097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10098 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10101 test $ac_status = 0; }
10103 lt_cv_archive_cmds_need_lc
=no
10105 lt_cv_archive_cmds_need_lc
=yes
10107 allow_undefined_flag
=$lt_save_allow_undefined_flag
10109 cat conftest.err
1>&5
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10115 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10116 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10280 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10282 if test "$GCC" = yes; then
10284 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10285 *) lt_awk_arg
="/^libraries:/" ;;
10288 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10289 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10291 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10292 case $lt_search_path_spec in
10294 # if the path contains ";" then we assume it to be the separator
10295 # otherwise default to the standard path separator (i.e. ":") - it is
10296 # assumed that no part of a normal pathname contains ";" but that should
10297 # okay in the real world where ";" in dirpaths is itself problematic.
10298 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10301 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10304 # Ok, now we have the path, separated by spaces, we can step through it
10305 # and add multilib dir if necessary.
10306 lt_tmp_lt_search_path_spec
=
10307 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10308 for lt_sys_path
in $lt_search_path_spec; do
10309 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10310 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10312 test -d "$lt_sys_path" && \
10313 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10316 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10317 BEGIN {RS=" "; FS="/|\n";} {
10320 for (lt_i = NF; lt_i > 0; lt_i--) {
10321 if ($lt_i != "" && $lt_i != ".") {
10322 if ($lt_i == "..") {
10325 if (lt_count == 0) {
10326 lt_foo="/" $lt_i lt_foo;
10333 if (lt_foo != "") { lt_freq[lt_foo]++; }
10334 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10336 # AWK program above erroneously prepends '/' to C:/dos/paths
10339 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10340 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10342 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10344 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10346 library_names_spec
=
10347 libname_spec
='lib$name'
10351 postuninstall_cmds
=
10355 shlibpath_overrides_runpath
=unknown
10357 dynamic_linker
="$host_os ld.so"
10358 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10359 need_lib_prefix
=unknown
10360 hardcode_into_libs
=no
10362 # when you set need_version to no, make sure it does not cause -set_version
10363 # flags to be left without arguments
10364 need_version
=unknown
10369 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10370 shlibpath_var
=LIBPATH
10372 # AIX 3 has no versioning support, so we append a major version to the name.
10373 soname_spec
='${libname}${release}${shared_ext}$major'
10380 hardcode_into_libs
=yes
10381 if test "$host_cpu" = ia64
; then
10382 # AIX 5 supports IA64
10383 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10384 shlibpath_var
=LD_LIBRARY_PATH
10386 # With GCC up to 2.95.x, collect2 would create an import file
10387 # for dependence libraries. The import file would start with
10388 # the line `#! .'. This would cause the generated library to
10389 # depend on `.', always an invalid library. This was fixed in
10390 # development snapshots of GCC prior to 3.0.
10392 aix4 | aix4.
[01] | aix4.
[01].
*)
10393 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10395 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10398 can_build_shared
=no
10402 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10403 # soname into executable. Probably we can add versioning support to
10404 # collect2, so additional links can be useful in future.
10405 if test "$aix_use_runtimelinking" = yes; then
10406 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10407 # instead of lib<name>.a to let people know that these are not
10408 # typical AIX shared libraries.
10409 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10411 # We preserve .a as extension for shared libraries through AIX4.2
10412 # and later when we are not doing run time linking.
10413 library_names_spec
='${libname}${release}.a $libname.a'
10414 soname_spec
='${libname}${release}${shared_ext}$major'
10416 shlibpath_var
=LIBPATH
10423 # Since July 2007 AmigaOS4 officially supports .so libraries.
10424 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10425 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10428 library_names_spec
='$libname.ixlibrary $libname.a'
10429 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10430 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10436 library_names_spec
='${libname}${shared_ext}'
10437 dynamic_linker
="$host_os ld.so"
10438 shlibpath_var
=LIBRARY_PATH
10444 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10445 soname_spec
='${libname}${release}${shared_ext}$major'
10446 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10447 shlibpath_var
=LD_LIBRARY_PATH
10448 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10449 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10450 # the default ld.so.conf also contains /usr/contrib/lib and
10451 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10452 # libtool to hard-code these into programs
10455 cygwin
* | mingw
* | pw32
* | cegcc
*)
10456 version_type
=windows
10461 case $GCC,$host_os in
10462 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10463 library_names_spec
='$libname.dll.a'
10464 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10465 postinstall_cmds
='base_file=`basename \${file}`~
10466 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10467 dldir=$destdir/`dirname \$dlpath`~
10468 test -d \$dldir || mkdir -p \$dldir~
10469 $install_prog $dir/$dlname \$dldir/$dlname~
10470 chmod a+x \$dldir/$dlname~
10471 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10472 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10474 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10475 dlpath=$dir/\$dldll~
10477 shlibpath_overrides_runpath
=yes
10481 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10482 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10484 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10487 # MinGW DLLs use traditional 'lib' prefix
10488 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10491 # pw32 DLLs use 'pw' prefix rather than 'lib'
10492 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10498 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10501 dynamic_linker
='Win32 ld.exe'
10502 # FIXME: first we should search . and the directory the executable is in
10506 darwin
* | rhapsody
*)
10507 dynamic_linker
="$host_os dyld"
10508 version_type
=darwin
10511 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10512 soname_spec
='${libname}${release}${major}$shared_ext'
10513 shlibpath_overrides_runpath
=yes
10514 shlibpath_var
=DYLD_LIBRARY_PATH
10515 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10517 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10518 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10525 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10526 soname_spec
='${libname}${release}${shared_ext}$major'
10527 shlibpath_var
=LD_LIBRARY_PATH
10530 freebsd
* | dragonfly
*)
10531 # DragonFly does not have aout. When/if they implement a new
10532 # versioning mechanism, adjust this.
10533 if test -x /usr
/bin
/objformat
; then
10534 objformat
=`/usr/bin/objformat`
10537 freebsd
[23].
*) objformat
=aout
;;
10538 *) objformat
=elf
;;
10541 version_type
=freebsd-
$objformat
10542 case $version_type in
10544 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10549 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10553 shlibpath_var
=LD_LIBRARY_PATH
10556 shlibpath_overrides_runpath
=yes
10558 freebsd3.
[01]* | freebsdelf3.
[01]*)
10559 shlibpath_overrides_runpath
=yes
10560 hardcode_into_libs
=yes
10562 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10563 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10564 shlibpath_overrides_runpath
=no
10565 hardcode_into_libs
=yes
10567 *) # from 4.6 on, and DragonFly
10568 shlibpath_overrides_runpath
=yes
10569 hardcode_into_libs
=yes
10578 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10579 soname_spec
='${libname}${release}${shared_ext}$major'
10580 shlibpath_var
=LD_LIBRARY_PATH
10581 hardcode_into_libs
=yes
10588 dynamic_linker
="$host_os runtime_loader"
10589 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10590 soname_spec
='${libname}${release}${shared_ext}$major'
10591 shlibpath_var
=LIBRARY_PATH
10592 shlibpath_overrides_runpath
=yes
10593 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10594 hardcode_into_libs
=yes
10597 hpux9
* | hpux10
* | hpux11
*)
10598 # Give a soname corresponding to the major version so that dld.sl refuses to
10599 # link against other versions.
10606 hardcode_into_libs
=yes
10607 dynamic_linker
="$host_os dld.so"
10608 shlibpath_var
=LD_LIBRARY_PATH
10609 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10610 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10611 soname_spec
='${libname}${release}${shared_ext}$major'
10612 if test "X$HPUX_IA64_MODE" = X32
; then
10613 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10615 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10617 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10621 hardcode_into_libs
=yes
10622 dynamic_linker
="$host_os dld.sl"
10623 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10624 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10625 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10626 soname_spec
='${libname}${release}${shared_ext}$major'
10627 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10628 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10632 dynamic_linker
="$host_os dld.sl"
10633 shlibpath_var
=SHLIB_PATH
10634 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10635 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10636 soname_spec
='${libname}${release}${shared_ext}$major'
10639 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10640 postinstall_cmds
='chmod 555 $lib'
10641 # or fails outright, so override atomically:
10642 install_override_mode
=555
10649 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10650 soname_spec
='${libname}${release}${shared_ext}$major'
10651 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10652 shlibpath_var
=LD_LIBRARY_PATH
10653 shlibpath_overrides_runpath
=no
10654 hardcode_into_libs
=yes
10657 irix5
* | irix6
* | nonstopux
*)
10659 nonstopux
*) version_type
=nonstopux
;;
10661 if test "$lt_cv_prog_gnu_ld" = yes; then
10669 soname_spec
='${libname}${release}${shared_ext}$major'
10670 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10672 irix5
* | nonstopux
*)
10673 libsuff
= shlibsuff
=
10676 case $LD in # libtool.m4 will add one of these switches to LD
10677 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10678 libsuff
= shlibsuff
= libmagic
=32-bit;;
10679 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10680 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10681 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10682 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10683 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10687 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10688 shlibpath_overrides_runpath
=no
10689 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10690 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10691 hardcode_into_libs
=yes
10694 # No shared lib support for Linux oldld, aout, or coff.
10695 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10699 # This must be Linux ELF.
10700 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10704 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10705 soname_spec
='${libname}${release}${shared_ext}$major'
10706 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10707 shlibpath_var
=LD_LIBRARY_PATH
10708 shlibpath_overrides_runpath
=no
10710 # Some binutils ld are patched to set DT_RUNPATH
10711 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10712 $as_echo_n "(cached) " >&6
10714 lt_cv_shlibpath_overrides_runpath
=no
10715 save_LDFLAGS
=$LDFLAGS
10716 save_libdir
=$libdir
10717 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10718 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10720 /* end confdefs.h. */
10730 if ac_fn_c_try_link
"$LINENO"; then :
10731 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10732 lt_cv_shlibpath_overrides_runpath
=yes
10735 rm -f core conftest.err conftest.
$ac_objext \
10736 conftest
$ac_exeext conftest.
$ac_ext
10737 LDFLAGS
=$save_LDFLAGS
10738 libdir
=$save_libdir
10742 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10744 # This implies no fast_install, which is unacceptable.
10745 # Some rework will be needed to allow for fast_install
10746 # before this can be enabled.
10747 hardcode_into_libs
=yes
10749 # Append ld.so.conf contents to the search path
10750 if test -f /etc
/ld.so.conf
; then
10751 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;s/"//g;/^$/d' | tr '\n' ' '`
10752 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10755 # We used to test for /lib/ld.so.1 and disable shared libraries on
10756 # powerpc, because MkLinux only supported shared libraries with the
10757 # GNU dynamic linker. Since this was broken with cross compilers,
10758 # most powerpc-linux boxes support dynamic linking these days and
10759 # people can always --disable-shared, the test was removed, and we
10760 # assume the GNU/Linux dynamic linker is in use.
10761 dynamic_linker
='GNU/Linux ld.so'
10768 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10769 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10770 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10771 dynamic_linker
='NetBSD (a.out) ld.so'
10773 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10774 soname_spec
='${libname}${release}${shared_ext}$major'
10775 dynamic_linker
='NetBSD ld.elf_so'
10777 shlibpath_var
=LD_LIBRARY_PATH
10778 shlibpath_overrides_runpath
=yes
10779 hardcode_into_libs
=yes
10784 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10785 shlibpath_var
=LD_LIBRARY_PATH
10786 shlibpath_overrides_runpath
=yes
10793 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10794 soname_spec
='${libname}${release}${shared_ext}$major'
10795 shlibpath_var
=LD_LIBRARY_PATH
10796 shlibpath_overrides_runpath
=no
10797 hardcode_into_libs
=yes
10798 dynamic_linker
='ldqnx.so'
10803 sys_lib_dlsearch_path_spec
="/usr/lib"
10805 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10807 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10808 *) need_version
=no
;;
10810 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10811 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10812 shlibpath_var
=LD_LIBRARY_PATH
10813 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10815 openbsd2.
[89] | openbsd2.
[89].
*)
10816 shlibpath_overrides_runpath
=no
10819 shlibpath_overrides_runpath
=yes
10823 shlibpath_overrides_runpath
=yes
10828 libname_spec
='$name'
10831 library_names_spec
='$libname${shared_ext} $libname.a'
10832 dynamic_linker
='OS/2 ld.exe'
10833 shlibpath_var
=LIBPATH
10836 osf3
* | osf4
* | osf5
*)
10840 soname_spec
='${libname}${release}${shared_ext}$major'
10841 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10842 shlibpath_var
=LD_LIBRARY_PATH
10843 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10844 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10855 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10856 soname_spec
='${libname}${release}${shared_ext}$major'
10857 shlibpath_var
=LD_LIBRARY_PATH
10858 shlibpath_overrides_runpath
=yes
10859 hardcode_into_libs
=yes
10860 # ldd complains unless libraries are executable
10861 postinstall_cmds
='chmod +x $lib'
10866 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10867 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10868 shlibpath_var
=LD_LIBRARY_PATH
10869 shlibpath_overrides_runpath
=yes
10870 if test "$with_gnu_ld" = yes; then
10878 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10879 soname_spec
='${libname}${release}${shared_ext}$major'
10880 shlibpath_var
=LD_LIBRARY_PATH
10881 case $host_vendor in
10883 shlibpath_overrides_runpath
=no
10885 runpath_var
=LD_RUN_PATH
10893 shlibpath_overrides_runpath
=no
10894 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10900 if test -d /usr
/nec
;then
10902 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10903 soname_spec
='$libname${shared_ext}.$major'
10904 shlibpath_var
=LD_LIBRARY_PATH
10908 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10909 version_type
=freebsd-elf
10912 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10913 soname_spec
='${libname}${release}${shared_ext}$major'
10914 shlibpath_var
=LD_LIBRARY_PATH
10915 shlibpath_overrides_runpath
=yes
10916 hardcode_into_libs
=yes
10917 if test "$with_gnu_ld" = yes; then
10918 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10920 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10923 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10927 sys_lib_dlsearch_path_spec
='/usr/lib'
10931 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10935 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10936 shlibpath_var
=LD_LIBRARY_PATH
10937 shlibpath_overrides_runpath
=no
10938 hardcode_into_libs
=yes
10943 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10944 soname_spec
='${libname}${release}${shared_ext}$major'
10945 shlibpath_var
=LD_LIBRARY_PATH
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10953 $as_echo "$dynamic_linker" >&6; }
10954 test "$dynamic_linker" = no
&& can_build_shared
=no
10956 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10957 if test "$GCC" = yes; then
10958 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10961 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10962 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10964 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10965 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11060 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11062 if test -n "$hardcode_libdir_flag_spec" ||
11063 test -n "$runpath_var" ||
11064 test "X$hardcode_automatic" = "Xyes" ; then
11066 # We can hardcode non-existent directories.
11067 if test "$hardcode_direct" != no
&&
11068 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11069 # have to relink, otherwise we might link with an installed library
11070 # when we should be linking with a yet-to-be-installed one
11071 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11072 test "$hardcode_minus_L" != no
; then
11073 # Linking always hardcodes the temporary library directory.
11074 hardcode_action
=relink
11076 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11077 hardcode_action
=immediate
11080 # We cannot hardcode anything, or else we can only hardcode existing
11082 hardcode_action
=unsupported
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11085 $as_echo "$hardcode_action" >&6; }
11087 if test "$hardcode_action" = relink ||
11088 test "$inherit_rpath" = yes; then
11089 # Fast installation is not supported
11090 enable_fast_install
=no
11091 elif test "$shlibpath_overrides_runpath" = yes ||
11092 test "$enable_shared" = no
; then
11093 # Fast installation is not necessary
11094 enable_fast_install
=needless
11102 if test "x$enable_dlopen" != xyes
; then
11103 enable_dlopen
=unknown
11104 enable_dlopen_self
=unknown
11105 enable_dlopen_self_static
=unknown
11112 lt_cv_dlopen
="load_add_on"
11114 lt_cv_dlopen_self
=yes
11117 mingw
* | pw32
* | cegcc
*)
11118 lt_cv_dlopen
="LoadLibrary"
11123 lt_cv_dlopen
="dlopen"
11128 # if libdl is installed we need to link against it
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11130 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11131 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11132 $as_echo_n "(cached) " >&6
11134 ac_check_lib_save_LIBS
=$LIBS
11136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11137 /* end confdefs.h. */
11139 /* Override any GCC internal prototype to avoid an error.
11140 Use char because int might match the return type of a GCC
11141 builtin and then its argument prototype would still apply. */
11154 if ac_fn_c_try_link
"$LINENO"; then :
11155 ac_cv_lib_dl_dlopen
=yes
11157 ac_cv_lib_dl_dlopen
=no
11159 rm -f core conftest.err conftest.
$ac_objext \
11160 conftest
$ac_exeext conftest.
$ac_ext
11161 LIBS
=$ac_check_lib_save_LIBS
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11164 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11165 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
11166 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11169 lt_cv_dlopen
="dyld"
11171 lt_cv_dlopen_self
=yes
11178 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11179 if test "x$ac_cv_func_shl_load" = x
""yes; then :
11180 lt_cv_dlopen
="shl_load"
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11183 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11184 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11185 $as_echo_n "(cached) " >&6
11187 ac_check_lib_save_LIBS
=$LIBS
11189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11190 /* end confdefs.h. */
11192 /* Override any GCC internal prototype to avoid an error.
11193 Use char because int might match the return type of a GCC
11194 builtin and then its argument prototype would still apply. */
11202 return shl_load ();
11207 if ac_fn_c_try_link
"$LINENO"; then :
11208 ac_cv_lib_dld_shl_load
=yes
11210 ac_cv_lib_dld_shl_load
=no
11212 rm -f core conftest.err conftest.
$ac_objext \
11213 conftest
$ac_exeext conftest.
$ac_ext
11214 LIBS
=$ac_check_lib_save_LIBS
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11217 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11218 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
11219 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11221 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11222 if test "x$ac_cv_func_dlopen" = x
""yes; then :
11223 lt_cv_dlopen
="dlopen"
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11226 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11227 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11228 $as_echo_n "(cached) " >&6
11230 ac_check_lib_save_LIBS
=$LIBS
11232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11233 /* end confdefs.h. */
11235 /* Override any GCC internal prototype to avoid an error.
11236 Use char because int might match the return type of a GCC
11237 builtin and then its argument prototype would still apply. */
11250 if ac_fn_c_try_link
"$LINENO"; then :
11251 ac_cv_lib_dl_dlopen
=yes
11253 ac_cv_lib_dl_dlopen
=no
11255 rm -f core conftest.err conftest.
$ac_objext \
11256 conftest
$ac_exeext conftest.
$ac_ext
11257 LIBS
=$ac_check_lib_save_LIBS
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11260 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11261 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
11262 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11265 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11266 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11267 $as_echo_n "(cached) " >&6
11269 ac_check_lib_save_LIBS
=$LIBS
11270 LIBS
="-lsvld $LIBS"
11271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11272 /* end confdefs.h. */
11274 /* Override any GCC internal prototype to avoid an error.
11275 Use char because int might match the return type of a GCC
11276 builtin and then its argument prototype would still apply. */
11289 if ac_fn_c_try_link
"$LINENO"; then :
11290 ac_cv_lib_svld_dlopen
=yes
11292 ac_cv_lib_svld_dlopen
=no
11294 rm -f core conftest.err conftest.
$ac_objext \
11295 conftest
$ac_exeext conftest.
$ac_ext
11296 LIBS
=$ac_check_lib_save_LIBS
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11299 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11300 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
11301 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11304 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11305 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11306 $as_echo_n "(cached) " >&6
11308 ac_check_lib_save_LIBS
=$LIBS
11310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h. */
11313 /* Override any GCC internal prototype to avoid an error.
11314 Use char because int might match the return type of a GCC
11315 builtin and then its argument prototype would still apply. */
11323 return dld_link ();
11328 if ac_fn_c_try_link
"$LINENO"; then :
11329 ac_cv_lib_dld_dld_link
=yes
11331 ac_cv_lib_dld_dld_link
=no
11333 rm -f core conftest.err conftest.
$ac_objext \
11334 conftest
$ac_exeext conftest.
$ac_ext
11335 LIBS
=$ac_check_lib_save_LIBS
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11338 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11339 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
11340 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11361 if test "x$lt_cv_dlopen" != xno
; then
11367 case $lt_cv_dlopen in
11369 save_CPPFLAGS
="$CPPFLAGS"
11370 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11372 save_LDFLAGS
="$LDFLAGS"
11373 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11376 LIBS
="$lt_cv_dlopen_libs $LIBS"
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11379 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11380 if test "${lt_cv_dlopen_self+set}" = set; then :
11381 $as_echo_n "(cached) " >&6
11383 if test "$cross_compiling" = yes; then :
11384 lt_cv_dlopen_self
=cross
11386 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11387 lt_status
=$lt_dlunknown
11388 cat > conftest.
$ac_ext <<_LT_EOF
11389 #line 11389 "configure"
11390 #include "confdefs.h"
11399 # define LT_DLGLOBAL RTLD_GLOBAL
11402 # define LT_DLGLOBAL DL_GLOBAL
11404 # define LT_DLGLOBAL 0
11408 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11409 find out it does not work in some platform. */
11410 #ifndef LT_DLLAZY_OR_NOW
11412 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11415 # define LT_DLLAZY_OR_NOW DL_LAZY
11418 # define LT_DLLAZY_OR_NOW RTLD_NOW
11421 # define LT_DLLAZY_OR_NOW DL_NOW
11423 # define LT_DLLAZY_OR_NOW 0
11430 /* When -fvisbility=hidden is used, assume the code has been annotated
11431 correspondingly for the symbols needed. */
11432 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11433 void fnord () __attribute__((visibility("default")));
11436 void fnord () { int i=42; }
11439 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11440 int status = $lt_dlunknown;
11444 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11447 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11448 else puts (dlerror ());
11450 /* dlclose (self); */
11458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11459 (eval $ac_link) 2>&5
11461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11462 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11463 (.
/conftest
; exit; ) >&5 2>/dev
/null
11465 case x
$lt_status in
11466 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11467 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11468 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11471 # compilation failed
11472 lt_cv_dlopen_self
=no
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11480 $as_echo "$lt_cv_dlopen_self" >&6; }
11482 if test "x$lt_cv_dlopen_self" = xyes
; then
11483 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11485 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11486 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11487 $as_echo_n "(cached) " >&6
11489 if test "$cross_compiling" = yes; then :
11490 lt_cv_dlopen_self_static
=cross
11492 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11493 lt_status
=$lt_dlunknown
11494 cat > conftest.
$ac_ext <<_LT_EOF
11495 #line 11495 "configure"
11496 #include "confdefs.h"
11505 # define LT_DLGLOBAL RTLD_GLOBAL
11508 # define LT_DLGLOBAL DL_GLOBAL
11510 # define LT_DLGLOBAL 0
11514 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11515 find out it does not work in some platform. */
11516 #ifndef LT_DLLAZY_OR_NOW
11518 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11521 # define LT_DLLAZY_OR_NOW DL_LAZY
11524 # define LT_DLLAZY_OR_NOW RTLD_NOW
11527 # define LT_DLLAZY_OR_NOW DL_NOW
11529 # define LT_DLLAZY_OR_NOW 0
11536 /* When -fvisbility=hidden is used, assume the code has been annotated
11537 correspondingly for the symbols needed. */
11538 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11539 void fnord () __attribute__((visibility("default")));
11542 void fnord () { int i=42; }
11545 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11546 int status = $lt_dlunknown;
11550 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11553 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11554 else puts (dlerror ());
11556 /* dlclose (self); */
11564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11565 (eval $ac_link) 2>&5
11567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11568 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11569 (.
/conftest
; exit; ) >&5 2>/dev
/null
11571 case x
$lt_status in
11572 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11573 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11574 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11577 # compilation failed
11578 lt_cv_dlopen_self_static
=no
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11586 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11589 CPPFLAGS
="$save_CPPFLAGS"
11590 LDFLAGS
="$save_LDFLAGS"
11595 case $lt_cv_dlopen_self in
11596 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11597 *) enable_dlopen_self
=unknown
;;
11600 case $lt_cv_dlopen_self_static in
11601 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11602 *) enable_dlopen_self_static
=unknown
;;
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11625 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11626 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11627 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11628 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11630 $as_echo "yes" >&6; }
11632 # FIXME - insert some real tests, host_os isn't really good enough
11635 if test -n "$STRIP" ; then
11636 striplib
="$STRIP -x"
11637 old_striplib
="$STRIP -S"
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11639 $as_echo "yes" >&6; }
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11642 $as_echo "no" >&6; }
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11647 $as_echo "no" >&6; }
11663 # Report which library types will actually be built
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11665 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11667 $as_echo "$can_build_shared" >&6; }
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11670 $as_echo_n "checking whether to build shared libraries... " >&6; }
11671 test "$can_build_shared" = "no" && enable_shared
=no
11673 # On AIX, shared libraries and static libraries use the same namespace, and
11674 # are all built from PIC.
11677 test "$enable_shared" = yes && enable_static
=no
11678 if test -n "$RANLIB"; then
11679 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11680 postinstall_cmds
='$RANLIB $lib'
11685 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11686 test "$enable_shared" = yes && enable_static
=no
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11691 $as_echo "$enable_shared" >&6; }
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11694 $as_echo_n "checking whether to build static libraries... " >&6; }
11695 # Make sure either enable_shared or enable_static is yes.
11696 test "$enable_shared" = yes || enable_static
=yes
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11698 $as_echo "$enable_static" >&6; }
11705 ac_cpp
='$CPP $CPPFLAGS'
11706 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11707 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11708 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11712 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11713 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11714 (test "X$CXX" != "Xg++"))) ; then
11716 ac_cpp
='$CXXCPP $CPPFLAGS'
11717 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11718 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11719 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11721 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11722 if test -z "$CXXCPP"; then
11723 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11724 $as_echo_n "(cached) " >&6
11726 # Double quotes because CXXCPP needs to be expanded
11727 for CXXCPP
in "$CXX -E" "/lib/cpp"
11729 ac_preproc_ok
=false
11730 for ac_cxx_preproc_warn_flag
in '' yes
11732 # Use a header file that comes with gcc, so configuring glibc
11733 # with a fresh cross-compiler works.
11734 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11735 # <limits.h> exists even on freestanding compilers.
11736 # On the NeXT, cc -E runs the code through the compiler's parser,
11737 # not just through cpp. "Syntax error" is here to catch this case.
11738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11739 /* end confdefs.h. */
11741 # include <limits.h>
11743 # include <assert.h>
11747 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11750 # Broken: fails on valid input.
11753 rm -f conftest.err conftest.
$ac_ext
11755 # OK, works on sane cases. Now check whether nonexistent headers
11756 # can be detected and how.
11757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11758 /* end confdefs.h. */
11759 #include <ac_nonexistent.h>
11761 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11762 # Broken: success on invalid input.
11765 # Passes both tests.
11769 rm -f conftest.err conftest.
$ac_ext
11772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11773 rm -f conftest.err conftest.
$ac_ext
11774 if $ac_preproc_ok; then :
11779 ac_cv_prog_CXXCPP
=$CXXCPP
11782 CXXCPP
=$ac_cv_prog_CXXCPP
11784 ac_cv_prog_CXXCPP
=$CXXCPP
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11787 $as_echo "$CXXCPP" >&6; }
11788 ac_preproc_ok
=false
11789 for ac_cxx_preproc_warn_flag
in '' yes
11791 # Use a header file that comes with gcc, so configuring glibc
11792 # with a fresh cross-compiler works.
11793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11794 # <limits.h> exists even on freestanding compilers.
11795 # On the NeXT, cc -E runs the code through the compiler's parser,
11796 # not just through cpp. "Syntax error" is here to catch this case.
11797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11798 /* end confdefs.h. */
11800 # include <limits.h>
11802 # include <assert.h>
11806 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11809 # Broken: fails on valid input.
11812 rm -f conftest.err conftest.
$ac_ext
11814 # OK, works on sane cases. Now check whether nonexistent headers
11815 # can be detected and how.
11816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11817 /* end confdefs.h. */
11818 #include <ac_nonexistent.h>
11820 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11821 # Broken: success on invalid input.
11824 # Passes both tests.
11828 rm -f conftest.err conftest.
$ac_ext
11831 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11832 rm -f conftest.err conftest.
$ac_ext
11833 if $ac_preproc_ok; then :
11836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11838 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
11839 See \`config.log' for more details." "$LINENO" 5; }
11843 ac_cpp
='$CPP $CPPFLAGS'
11844 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11845 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11846 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11849 _lt_caught_CXX_error
=yes
11853 ac_cpp
='$CXXCPP $CPPFLAGS'
11854 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11855 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11856 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11858 archive_cmds_need_lc_CXX
=no
11859 allow_undefined_flag_CXX
=
11860 always_export_symbols_CXX
=no
11861 archive_expsym_cmds_CXX
=
11862 compiler_needs_object_CXX
=no
11863 export_dynamic_flag_spec_CXX
=
11864 hardcode_direct_CXX
=no
11865 hardcode_direct_absolute_CXX
=no
11866 hardcode_libdir_flag_spec_CXX
=
11867 hardcode_libdir_flag_spec_ld_CXX
=
11868 hardcode_libdir_separator_CXX
=
11869 hardcode_minus_L_CXX
=no
11870 hardcode_shlibpath_var_CXX
=unsupported
11871 hardcode_automatic_CXX
=no
11872 inherit_rpath_CXX
=no
11874 module_expsym_cmds_CXX
=
11875 link_all_deplibs_CXX
=unknown
11876 old_archive_cmds_CXX
=$old_archive_cmds
11877 reload_flag_CXX
=$reload_flag
11878 reload_cmds_CXX
=$reload_cmds
11879 no_undefined_flag_CXX
=
11880 whole_archive_flag_spec_CXX
=
11881 enable_shared_with_static_runtimes_CXX
=no
11883 # Source file extension for C++ test sources.
11886 # Object file extension for compiled C++ test sources.
11890 # No sense in running all these tests if we already determined that
11891 # the CXX compiler isn't working. Some variables (like enable_shared)
11892 # are currently assumed to apply to all compilers on this platform,
11893 # and will be corrupted by setting them based on a non-working compiler.
11894 if test "$_lt_caught_CXX_error" != yes; then
11895 # Code to be used in simple compile tests
11896 lt_simple_compile_test_code
="int some_variable = 0;"
11898 # Code to be used in simple link tests
11899 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
11901 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11908 # If no C compiler was specified, use CC.
11911 # If no C compiler flags were specified, use CFLAGS.
11912 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
11914 # Allow CC to be a program name with arguments.
11918 # save warnings/boilerplate of simple test code
11919 ac_outfile
=conftest.
$ac_objext
11920 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
11921 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11922 _lt_compiler_boilerplate
=`cat conftest.err`
11925 ac_outfile
=conftest.
$ac_objext
11926 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
11927 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11928 _lt_linker_boilerplate
=`cat conftest.err`
11932 # Allow CC to be a program name with arguments.
11937 lt_save_with_gnu_ld
=$with_gnu_ld
11938 lt_save_path_LD
=$lt_cv_path_LD
11939 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11940 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
11942 $as_unset lt_cv_prog_gnu_ld
11944 if test -n "${lt_cv_path_LDCXX+set}"; then
11945 lt_cv_path_LD
=$lt_cv_path_LDCXX
11947 $as_unset lt_cv_path_LD
11949 test -z "${LDCXX+set}" || LD
=$LDCXX
11953 for cc_temp
in $compiler""; do
11955 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
11956 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
11961 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11964 if test -n "$compiler"; then
11965 # We don't want -fno-exception when compiling C++ code, so set the
11966 # no_builtin_flag separately
11967 if test "$GXX" = yes; then
11968 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
11970 lt_prog_compiler_no_builtin_flag_CXX
=
11973 if test "$GXX" = yes; then
11974 # Set up default GNU C++ configuration
11978 # Check whether --with-gnu-ld was given.
11979 if test "${with_gnu_ld+set}" = set; then :
11980 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11986 if test "$GCC" = yes; then
11987 # Check if gcc -print-prog-name=ld gives a path.
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11989 $as_echo_n "checking for ld used by $CC... " >&6; }
11992 # gcc leaves a trailing carriage return which upsets mingw
11993 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11995 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11998 # Accept absolute paths.
12000 re_direlt
='/[^/][^/]*/\.\./'
12001 # Canonicalize the pathname of ld
12002 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12003 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12004 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12006 test -z "$LD" && LD
="$ac_prog"
12009 # If it fails, then pretend we aren't using GCC.
12013 # If it is relative, then search for the first ld in PATH.
12014 with_gnu_ld
=unknown
12017 elif test "$with_gnu_ld" = yes; then
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12019 $as_echo_n "checking for GNU ld... " >&6; }
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12022 $as_echo_n "checking for non-GNU ld... " >&6; }
12024 if test "${lt_cv_path_LD+set}" = set; then :
12025 $as_echo_n "(cached) " >&6
12027 if test -z "$LD"; then
12028 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12029 for ac_dir
in $PATH; do
12031 test -z "$ac_dir" && ac_dir
=.
12032 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12033 lt_cv_path_LD
="$ac_dir/$ac_prog"
12034 # Check to see if the program is GNU ld. I'd rather use --version,
12035 # but apparently some variants of GNU ld only accept -v.
12036 # Break only if it was the GNU/non-GNU ld that we prefer.
12037 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12038 *GNU
* |
*'with BFD'*)
12039 test "$with_gnu_ld" != no
&& break
12042 test "$with_gnu_ld" != yes && break
12049 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12053 LD
="$lt_cv_path_LD"
12054 if test -n "$LD"; then
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12056 $as_echo "$LD" >&6; }
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059 $as_echo "no" >&6; }
12061 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12063 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12064 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12065 $as_echo_n "(cached) " >&6
12067 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12068 case `$LD -v 2>&1 </dev/null` in
12069 *GNU
* |
*'with BFD'*)
12070 lt_cv_prog_gnu_ld
=yes
12073 lt_cv_prog_gnu_ld
=no
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12078 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12079 with_gnu_ld
=$lt_cv_prog_gnu_ld
12087 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12088 # archiving commands below assume that GNU ld is being used.
12089 if test "$with_gnu_ld" = yes; then
12090 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12091 archive_expsym_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12093 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12094 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12096 # If archive_cmds runs LD, not CC, wlarc should be empty
12097 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12098 # investigate it a little bit more. (MM)
12101 # ancient GNU ld didn't support --whole-archive et. al.
12102 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12103 $GREP 'no-whole-archive' > /dev
/null
; then
12104 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12106 whole_archive_flag_spec_CXX
=
12112 # A generic and very simple default shared library creation
12113 # command for GNU C++ for the case where it uses the native
12114 # linker, instead of GNU ld. If possible, this setting should
12115 # overridden to take advantage of the native linker features on
12116 # the platform it is being used on.
12117 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12120 # Commands to make compiler produce verbose output that lists
12121 # what "hidden" libraries, object files and flags are used when
12122 # linking a shared library.
12123 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12131 # PORTME: fill in a description of your system's C++ link characteristics
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12133 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12137 # FIXME: insert proper C++ library support
12141 if test "$host_cpu" = ia64
; then
12142 # On IA64, the linker does run time linking by default, so we don't
12143 # have to do anything special.
12144 aix_use_runtimelinking
=no
12145 exp_sym_flag
='-Bexport'
12148 aix_use_runtimelinking
=no
12150 # Test if we are trying to use run time linking or normal
12151 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12152 # need to do runtime linking.
12153 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12154 for ld_flag
in $LDFLAGS; do
12157 aix_use_runtimelinking
=yes
12165 exp_sym_flag
='-bexport'
12166 no_entry_flag
='-bnoentry'
12169 # When large executables or shared objects are built, AIX ld can
12170 # have problems creating the table of contents. If linking a library
12171 # or program results in "error TOC overflow" add -mminimal-toc to
12172 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12173 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12175 archive_cmds_CXX
=''
12176 hardcode_direct_CXX
=yes
12177 hardcode_direct_absolute_CXX
=yes
12178 hardcode_libdir_separator_CXX
=':'
12179 link_all_deplibs_CXX
=yes
12180 file_list_spec_CXX
='${wl}-f,'
12182 if test "$GXX" = yes; then
12183 case $host_os in aix4.
[012]|aix4.
[012].
*)
12184 # We only want to do this on AIX 4.2 and lower, the check
12185 # below for broken collect2 doesn't work under 4.3+
12186 collect2name
=`${CC} -print-prog-name=collect2`
12187 if test -f "$collect2name" &&
12188 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
12190 # We have reworked collect2
12193 # We have old collect2
12194 hardcode_direct_CXX
=unsupported
12195 # It fails to find uninstalled libraries when the uninstalled
12196 # path is not listed in the libpath. Setting hardcode_minus_L
12197 # to unsupported forces relinking
12198 hardcode_minus_L_CXX
=yes
12199 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12200 hardcode_libdir_separator_CXX
=
12203 shared_flag
='-shared'
12204 if test "$aix_use_runtimelinking" = yes; then
12205 shared_flag
="$shared_flag "'${wl}-G'
12209 if test "$host_cpu" = ia64
; then
12210 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12211 # chokes on -Wl,-G. The following line is correct:
12214 if test "$aix_use_runtimelinking" = yes; then
12215 shared_flag
='${wl}-G'
12217 shared_flag
='${wl}-bM:SRE'
12222 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
12223 # It seems that -bexpall does not export symbols beginning with
12224 # underscore (_), so it is better to generate a list of symbols to
12226 always_export_symbols_CXX
=yes
12227 if test "$aix_use_runtimelinking" = yes; then
12228 # Warning - without using the other runtime loading flags (-brtl),
12229 # -berok will link without error, but may produce a broken library.
12230 allow_undefined_flag_CXX
='-berok'
12231 # Determine the default libpath from the value encoded in an empty
12233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12234 /* end confdefs.h. */
12244 if ac_fn_cxx_try_link
"$LINENO"; then :
12246 lt_aix_libpath_sed
='
12247 /Import File Strings/,/^$/ {
12253 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12254 # Check for a 64-bit object if we didn't find anything.
12255 if test -z "$aix_libpath"; then
12256 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12259 rm -f core conftest.err conftest.
$ac_objext \
12260 conftest
$ac_exeext conftest.
$ac_ext
12261 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12263 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12265 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12267 if test "$host_cpu" = ia64
; then
12268 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
12269 allow_undefined_flag_CXX
="-z nodefs"
12270 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"
12272 # Determine the default libpath from the value encoded in an
12273 # empty executable.
12274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12275 /* end confdefs.h. */
12285 if ac_fn_cxx_try_link
"$LINENO"; then :
12287 lt_aix_libpath_sed
='
12288 /Import File Strings/,/^$/ {
12294 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12295 # Check for a 64-bit object if we didn't find anything.
12296 if test -z "$aix_libpath"; then
12297 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12300 rm -f core conftest.err conftest.
$ac_objext \
12301 conftest
$ac_exeext conftest.
$ac_ext
12302 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12304 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12305 # Warning - without using the other run time loading flags,
12306 # -berok will link without error, but may produce a broken library.
12307 no_undefined_flag_CXX
=' ${wl}-bernotok'
12308 allow_undefined_flag_CXX
=' ${wl}-berok'
12309 if test "$with_gnu_ld" = yes; then
12310 # We only use this code for GNU lds that support --whole-archive.
12311 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12313 # Exported symbols can be pulled into shared objects from archives
12314 whole_archive_flag_spec_CXX
='$convenience'
12316 archive_cmds_need_lc_CXX
=yes
12317 # This is similar to how AIX traditionally builds its shared
12319 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'
12325 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12326 allow_undefined_flag_CXX
=unsupported
12327 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12328 # support --undefined. This deserves some investigation. FIXME
12329 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12336 case $cc_basename in
12338 # FIXME: insert proper C++ library support
12344 cygwin
* | mingw
* | pw32
* | cegcc
*)
12345 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12346 # as there is no search path for DLLs.
12347 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12348 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
12349 allow_undefined_flag_CXX
=unsupported
12350 always_export_symbols_CXX
=no
12351 enable_shared_with_static_runtimes_CXX
=yes
12353 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12354 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'
12355 # If the export-symbols file already is a .def file (1st line
12356 # is EXPORTS), use it as is; otherwise, prepend...
12357 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12358 cp $export_symbols $output_objdir/$soname.def;
12360 echo EXPORTS > $output_objdir/$soname.def;
12361 cat $export_symbols >> $output_objdir/$soname.def;
12363 $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'
12368 darwin
* | rhapsody
*)
12371 archive_cmds_need_lc_CXX
=no
12372 hardcode_direct_CXX
=no
12373 hardcode_automatic_CXX
=yes
12374 hardcode_shlibpath_var_CXX
=unsupported
12375 if test "$lt_cv_ld_force_load" = "yes"; then
12376 whole_archive_flag_spec_CXX
='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12378 whole_archive_flag_spec_CXX
=''
12380 link_all_deplibs_CXX
=yes
12381 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
12382 case $cc_basename in
12383 ifort
*) _lt_dar_can_shared
=yes ;;
12384 *) _lt_dar_can_shared
=$GCC ;;
12386 if test "$_lt_dar_can_shared" = "yes"; then
12387 output_verbose_link_cmd
=func_echo_all
12388 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}"
12389 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12390 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}"
12391 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}"
12392 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12393 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}"
12394 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}"
12404 case $cc_basename in
12406 # FIXME: insert proper C++ library support
12410 # Green Hills C++ Compiler
12411 # FIXME: insert proper C++ library support
12415 # FIXME: insert proper C++ library support
12422 # C++ shared libraries reported to be fairly broken before
12428 archive_cmds_need_lc_CXX
=no
12431 freebsd
* | dragonfly
*)
12432 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12441 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12442 link_all_deplibs_CXX
=yes
12446 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
12447 hardcode_libdir_separator_CXX
=:
12448 export_dynamic_flag_spec_CXX
='${wl}-E'
12449 hardcode_direct_CXX
=yes
12450 hardcode_minus_L_CXX
=yes # Not in the search PATH,
12451 # but as the default
12452 # location of the library.
12454 case $cc_basename in
12456 # FIXME: insert proper C++ library support
12460 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'
12461 # Commands to make compiler produce verbose output that lists
12462 # what "hidden" libraries, object files and flags are used when
12463 # linking a shared library.
12465 # There doesn't appear to be a way to prevent this compiler from
12466 # explicitly linking system object files so we need to strip them
12467 # from the output so that they don't get included in the library
12469 output_verbose_link_cmd
='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12472 if test "$GXX" = yes; then
12473 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'
12475 # FIXME: insert proper C++ library support
12483 if test $with_gnu_ld = no
; then
12484 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
12485 hardcode_libdir_separator_CXX
=:
12491 export_dynamic_flag_spec_CXX
='${wl}-E'
12497 hardcode_direct_CXX
=no
12498 hardcode_shlibpath_var_CXX
=no
12501 hardcode_direct_CXX
=yes
12502 hardcode_direct_absolute_CXX
=yes
12503 hardcode_minus_L_CXX
=yes # Not in the search PATH,
12504 # but as the default
12505 # location of the library.
12509 case $cc_basename in
12511 # FIXME: insert proper C++ library support
12517 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12520 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12523 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12526 # Commands to make compiler produce verbose output that lists
12527 # what "hidden" libraries, object files and flags are used when
12528 # linking a shared library.
12530 # There doesn't appear to be a way to prevent this compiler from
12531 # explicitly linking system object files so we need to strip them
12532 # from the output so that they don't get included in the library
12534 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; func_echo_all "$list"'
12537 if test "$GXX" = yes; then
12538 if test $with_gnu_ld = no
; then
12541 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12544 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12547 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'
12552 # FIXME: insert proper C++ library support
12560 hardcode_direct_CXX
=no
12561 hardcode_shlibpath_var_CXX
=no
12562 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12563 export_dynamic_flag_spec_CXX
='${wl}-E'
12564 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12565 # Instead, shared libraries are loaded at an image base (0x10000000 by
12566 # default) and relocated if they conflict, which is a slow very memory
12567 # consuming and fragmenting process. To avoid this, we pick a random,
12568 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12569 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12570 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'
12571 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'
12574 case $cc_basename in
12577 archive_cmds_CXX
='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12579 # Archives containing C++ object files must be created using
12580 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12581 # necessary to make sure instantiated templates are included
12583 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
12586 if test "$GXX" = yes; then
12587 if test "$with_gnu_ld" = no
; then
12588 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12590 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12593 link_all_deplibs_CXX
=yes
12596 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12597 hardcode_libdir_separator_CXX
=:
12598 inherit_rpath_CXX
=yes
12601 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12602 case $cc_basename in
12604 # Kuck and Associates, Inc. (KAI) C++ Compiler
12606 # KCC will only create a shared library if the output file
12607 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12608 # to its proper name (with version) after linking.
12609 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'
12610 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'
12611 # Commands to make compiler produce verbose output that lists
12612 # what "hidden" libraries, object files and flags are used when
12613 # linking a shared library.
12615 # There doesn't appear to be a way to prevent this compiler from
12616 # explicitly linking system object files so we need to strip them
12617 # from the output so that they don't get included in the library
12619 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; func_echo_all "$list"'
12621 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12622 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12624 # Archives containing C++ object files must be created using
12625 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12626 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
12631 # version 8.0 and above of icpc choke on multiply defined symbols
12632 # if we add $predep_objects and $postdep_objects, however 7.1 and
12633 # earlier do not add the objects themselves.
12634 case `$CC -V 2>&1` in
12636 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12637 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'
12639 *) # Version 8.0 or newer
12642 ia64
*) tmp_idyn
=' -i_dynamic';;
12644 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12645 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'
12648 archive_cmds_need_lc_CXX
=no
12649 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12650 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12651 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12654 # Portland Group C++ compiler
12656 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
12657 prelink_cmds_CXX
='tpldir=Template.dir~
12659 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12660 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12661 old_archive_cmds_CXX
='tpldir=Template.dir~
12663 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12664 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12666 archive_cmds_CXX
='tpldir=Template.dir~
12668 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12669 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12670 archive_expsym_cmds_CXX
='tpldir=Template.dir~
12672 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12673 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12675 *) # Version 6 and above use weak symbols
12676 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12677 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'
12681 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
12682 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12683 whole_archive_flag_spec_CXX
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12687 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12688 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'
12690 runpath_var
=LD_RUN_PATH
12691 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
12692 hardcode_libdir_separator_CXX
=:
12694 # Commands to make compiler produce verbose output that lists
12695 # what "hidden" libraries, object files and flags are used when
12696 # linking a shared library.
12698 # There doesn't appear to be a way to prevent this compiler from
12699 # explicitly linking system object files so we need to strip them
12700 # from the output so that they don't get included in the library
12702 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
12704 xl
* | mpixl
* | bgxl
*)
12705 # IBM XL 8.0 on PPC, with GNU ld
12706 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12707 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12708 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12709 if test "x$supports_anon_versioning" = xyes
; then
12710 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
12711 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12712 echo "local: *; };" >> $output_objdir/$libname.ver~
12713 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12717 case `$CC -V 2>&1 | sed 5q` in
12720 no_undefined_flag_CXX
=' -zdefs'
12721 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12722 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'
12723 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12724 whole_archive_flag_spec_CXX
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12725 compiler_needs_object_CXX
=yes
12727 # Not sure whether something based on
12728 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12730 output_verbose_link_cmd
='func_echo_all'
12732 # Archives containing C++ object files must be created using
12733 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12734 # necessary to make sure instantiated templates are included
12736 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
12744 # FIXME: insert proper C++ library support
12749 # FIXME: insert proper C++ library support
12754 case $cc_basename in
12756 # FIXME: insert proper C++ library support
12760 # FIXME: insert proper C++ library support
12767 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12768 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12770 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12771 hardcode_direct_CXX
=yes
12772 hardcode_shlibpath_var_CXX
=no
12774 # Workaround some broken pre-1.5 toolchains
12775 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12783 # C++ shared libraries are fairly broken
12788 if test -f /usr
/libexec
/ld.so
; then
12789 hardcode_direct_CXX
=yes
12790 hardcode_shlibpath_var_CXX
=no
12791 hardcode_direct_absolute_CXX
=yes
12792 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12793 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12794 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12795 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12796 export_dynamic_flag_spec_CXX
='${wl}-E'
12797 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12799 output_verbose_link_cmd
=func_echo_all
12805 osf3
* | osf4
* | osf5
*)
12806 case $cc_basename in
12808 # Kuck and Associates, Inc. (KAI) C++ Compiler
12810 # KCC will only create a shared library if the output file
12811 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12812 # to its proper name (with version) after linking.
12813 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'
12815 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12816 hardcode_libdir_separator_CXX
=:
12818 # Archives containing C++ object files must be created using
12819 # the KAI C++ compiler.
12821 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
12822 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
12826 # Rational C++ 2.4.1
12827 # FIXME: insert proper C++ library support
12833 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12834 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12835 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12838 allow_undefined_flag_CXX
=' -expect_unresolved \*'
12839 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12840 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12841 echo "-hidden">> $lib.exp~
12842 $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~
12844 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
12848 hardcode_libdir_separator_CXX
=:
12850 # Commands to make compiler produce verbose output that lists
12851 # what "hidden" libraries, object files and flags are used when
12852 # linking a shared library.
12854 # There doesn't appear to be a way to prevent this compiler from
12855 # explicitly linking system object files so we need to strip them
12856 # from the output so that they don't get included in the library
12858 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
12861 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12862 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12865 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12868 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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12872 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12873 hardcode_libdir_separator_CXX
=:
12875 # Commands to make compiler produce verbose output that lists
12876 # what "hidden" libraries, object files and flags are used when
12877 # linking a shared library.
12878 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12881 # FIXME: insert proper C++ library support
12889 # FIXME: insert proper C++ library support
12894 case $cc_basename in
12897 # FIXME: insert proper C++ library support
12902 # FIXME: insert proper C++ library support
12906 # FIXME: insert proper C++ library support
12913 case $cc_basename in
12915 # Sun C++ 4.2, 5.x and Centerline C++
12916 archive_cmds_need_lc_CXX
=yes
12917 no_undefined_flag_CXX
=' -zdefs'
12918 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12919 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12920 $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'
12922 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12923 hardcode_shlibpath_var_CXX
=no
12925 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
12927 # The compiler driver will combine and reorder linker options,
12928 # but understands `-z linker_flag'.
12929 # Supported since Solaris 2.6 (maybe 2.5.1?)
12930 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
12933 link_all_deplibs_CXX
=yes
12935 output_verbose_link_cmd
='func_echo_all'
12937 # Archives containing C++ object files must be created using
12938 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12939 # necessary to make sure instantiated templates are included
12941 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
12944 # Green Hills C++ Compiler
12945 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12947 # The C++ compiler must be used to create the archive.
12948 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12951 # GNU C++ compiler with Solaris linker
12952 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12953 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
12954 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
12955 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12956 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12957 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12959 # Commands to make compiler produce verbose output that lists
12960 # what "hidden" libraries, object files and flags are used when
12961 # linking a shared library.
12962 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12964 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12966 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12967 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12968 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12970 # Commands to make compiler produce verbose output that lists
12971 # what "hidden" libraries, object files and flags are used when
12972 # linking a shared library.
12973 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12976 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
12978 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
12980 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12988 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
12989 no_undefined_flag_CXX
='${wl}-z,text'
12990 archive_cmds_need_lc_CXX
=no
12991 hardcode_shlibpath_var_CXX
=no
12992 runpath_var
='LD_RUN_PATH'
12994 case $cc_basename in
12996 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12997 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13000 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13001 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13006 sysv5
* | sco3.2v5
* | sco5v6
*)
13007 # Note: We can NOT use -z defs as we might desire, because we do not
13008 # link with -lc, and that would cause any symbols used from libc to
13009 # always be unresolved, which means just about no library would
13010 # ever link correctly. If we're not using GNU ld we use -z text
13011 # though, which does catch some bad symbols but isn't as heavy-handed
13013 no_undefined_flag_CXX
='${wl}-z,text'
13014 allow_undefined_flag_CXX
='${wl}-z,nodefs'
13015 archive_cmds_need_lc_CXX
=no
13016 hardcode_shlibpath_var_CXX
=no
13017 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
13018 hardcode_libdir_separator_CXX
=':'
13019 link_all_deplibs_CXX
=yes
13020 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
13021 runpath_var
='LD_RUN_PATH'
13023 case $cc_basename in
13025 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13026 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13027 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
13028 '"$old_archive_cmds_CXX"
13029 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
13030 '"$reload_cmds_CXX"
13033 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13034 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13040 case $cc_basename in
13042 # NonStop-UX NCC 3.20
13043 # FIXME: insert proper C++ library support
13047 # FIXME: insert proper C++ library support
13054 # FIXME: insert proper C++ library support
13059 # FIXME: insert proper C++ library support
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13065 $as_echo "$ld_shlibs_CXX" >&6; }
13066 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13072 ## There is no encapsulation within the following macros, do not change
13073 ## the running order or otherwise move them around unless you know exactly
13074 ## what you are doing...
13075 # Dependencies to place before and after the object being linked:
13076 predep_objects_CXX
=
13077 postdep_objects_CXX
=
13080 compiler_lib_search_path_CXX
=
13082 cat > conftest.
$ac_ext <<_LT_EOF
13086 Foo (void) { a = 0; }
13092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13093 (eval $ac_compile) 2>&5
13095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13096 test $ac_status = 0; }; then
13097 # Parse the compiler output and extract the necessary
13098 # objects, libraries and library flags.
13100 # Sentinel used to keep track of whether or not we are before
13101 # the conftest object file.
13102 pre_test_object_deps_done
=no
13104 for p
in `eval "$output_verbose_link_cmd"`; do
13108 # Some compilers place space between "-{L,R}" and the path.
13109 # Remove the space.
13110 if test $p = "-L" ||
13111 test $p = "-R"; then
13118 if test "$pre_test_object_deps_done" = no
; then
13121 # Internal compiler library paths should come after those
13122 # provided the user. The postdeps already come after the
13123 # user supplied libs so there is no need to process them.
13124 if test -z "$compiler_lib_search_path_CXX"; then
13125 compiler_lib_search_path_CXX
="${prev}${p}"
13127 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
13130 # The "-l" case would never come before the object being
13131 # linked, so don't bother handling this case.
13134 if test -z "$postdeps_CXX"; then
13135 postdeps_CXX
="${prev}${p}"
13137 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
13143 # This assumes that the test object file only shows up
13144 # once in the compiler output.
13145 if test "$p" = "conftest.$objext"; then
13146 pre_test_object_deps_done
=yes
13150 if test "$pre_test_object_deps_done" = no
; then
13151 if test -z "$predep_objects_CXX"; then
13152 predep_objects_CXX
="$p"
13154 predep_objects_CXX
="$predep_objects_CXX $p"
13157 if test -z "$postdep_objects_CXX"; then
13158 postdep_objects_CXX
="$p"
13160 postdep_objects_CXX
="$postdep_objects_CXX $p"
13165 *) ;; # Ignore the rest.
13173 echo "libtool.m4: error: problem compiling CXX test program"
13176 $RM -f confest.
$objext
13178 # PORTME: override above test on systems where it is broken
13181 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13182 # hack all around it, let's just trust "g++" to DTRT.
13183 predep_objects_CXX
=
13184 postdep_objects_CXX
=
13189 case `$CC -V 2>&1 | sed 5q` in
13193 # The more standards-conforming stlport4 library is
13194 # incompatible with the Cstd library. Avoid specifying
13195 # it if it's in CXXFLAGS. Ignore libCrun as
13196 # -library=stlport4 depends on it.
13197 case " $CXX $CXXFLAGS " in
13198 *" -library=stlport4 "*)
13199 solaris_use_stlport4
=yes
13203 if test "$solaris_use_stlport4" != yes; then
13204 postdeps_CXX
='-library=Cstd -library=Crun'
13211 case $cc_basename in
13213 # The more standards-conforming stlport4 library is
13214 # incompatible with the Cstd library. Avoid specifying
13215 # it if it's in CXXFLAGS. Ignore libCrun as
13216 # -library=stlport4 depends on it.
13217 case " $CXX $CXXFLAGS " in
13218 *" -library=stlport4 "*)
13219 solaris_use_stlport4
=yes
13223 # Adding this requires a known-good setup of shared libraries for
13224 # Sun compiler versions before 5.6, else PIC objects from an old
13225 # archive will be linked into the output, leading to subtle bugs.
13226 if test "$solaris_use_stlport4" != yes; then
13227 postdeps_CXX
='-library=Cstd -library=Crun'
13235 case " $postdeps_CXX " in
13236 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
13238 compiler_lib_search_dirs_CXX
=
13239 if test -n "${compiler_lib_search_path_CXX}"; then
13240 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13273 lt_prog_compiler_wl_CXX
=
13274 lt_prog_compiler_pic_CXX
=
13275 lt_prog_compiler_static_CXX
=
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13278 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13280 # C++ specific cases for pic, static, wl, etc.
13281 if test "$GXX" = yes; then
13282 lt_prog_compiler_wl_CXX
='-Wl,'
13283 lt_prog_compiler_static_CXX
='-static'
13287 # All AIX code is PIC.
13288 if test "$host_cpu" = ia64
; then
13289 # AIX 5 now supports IA64 processor
13290 lt_prog_compiler_static_CXX
='-Bstatic'
13292 lt_prog_compiler_pic_CXX
='-fPIC'
13298 # see comment about AmigaOS4 .so support
13299 lt_prog_compiler_pic_CXX
='-fPIC'
13302 # FIXME: we need at least 68020 code to build shared libraries, but
13303 # adding the `-m68020' flag to GCC prevents building anything better,
13305 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
13310 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13311 # PIC is the default for these OSes.
13313 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
13314 # This hack is so that the source file can tell whether it is being
13315 # built for inclusion in a dll (and should export symbols for example).
13316 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13317 # (--disable-auto-import) libraries
13318 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
13320 darwin
* | rhapsody
*)
13321 # PIC is the default on this platform
13322 # Common symbols not allowed in MH_DYLIB files
13323 lt_prog_compiler_pic_CXX
='-fno-common'
13326 # DJGPP does not support shared libraries at all
13327 lt_prog_compiler_pic_CXX
=
13330 # PIC is the default for Haiku.
13331 # The "-static" flag exists, but is broken.
13332 lt_prog_compiler_static_CXX
=
13335 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13336 # Instead, we relocate shared libraries at runtime.
13339 if test -d /usr
/nec
; then
13340 lt_prog_compiler_pic_CXX
=-Kconform_pic
13344 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13345 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13346 # sets the default TLS model and affects inlining.
13351 lt_prog_compiler_pic_CXX
='-fPIC'
13356 # QNX uses GNU C++, but need to define -shared option too, otherwise
13357 # it will coredump.
13358 lt_prog_compiler_pic_CXX
='-fPIC -shared'
13361 lt_prog_compiler_pic_CXX
='-fPIC'
13367 # All AIX code is PIC.
13368 if test "$host_cpu" = ia64
; then
13369 # AIX 5 now supports IA64 processor
13370 lt_prog_compiler_static_CXX
='-Bstatic'
13372 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
13376 case $cc_basename in
13378 # Green Hills C++ Compiler
13379 # _LT_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"
13384 case $cc_basename in
13386 lt_prog_compiler_pic_CXX
='-KPIC'
13389 # Green Hills C++ Compiler
13390 lt_prog_compiler_pic_CXX
='-pic'
13396 freebsd
* | dragonfly
*)
13397 # FreeBSD uses GNU C++
13399 hpux9
* | hpux10
* | hpux11
*)
13400 case $cc_basename in
13402 lt_prog_compiler_wl_CXX
='-Wl,'
13403 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13404 if test "$host_cpu" != ia64
; then
13405 lt_prog_compiler_pic_CXX
='+Z'
13409 lt_prog_compiler_wl_CXX
='-Wl,'
13410 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13416 lt_prog_compiler_pic_CXX
='+Z'
13425 # This is c89, which is MS Visual C++ (no shared libs)
13426 # Anyone wants to do a port?
13428 irix5
* | irix6
* | nonstopux
*)
13429 case $cc_basename in
13431 lt_prog_compiler_wl_CXX
='-Wl,'
13432 lt_prog_compiler_static_CXX
='-non_shared'
13433 # CC pic flag -KPIC is the default.
13439 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
13440 case $cc_basename in
13443 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13444 lt_prog_compiler_pic_CXX
='-fPIC'
13447 # old Intel C++ for x86_64 which still supported -KPIC.
13448 lt_prog_compiler_wl_CXX
='-Wl,'
13449 lt_prog_compiler_pic_CXX
='-KPIC'
13450 lt_prog_compiler_static_CXX
='-static'
13453 # Intel C++, used to be incompatible with GCC.
13454 # ICC 10 doesn't accept -KPIC any more.
13455 lt_prog_compiler_wl_CXX
='-Wl,'
13456 lt_prog_compiler_pic_CXX
='-fPIC'
13457 lt_prog_compiler_static_CXX
='-static'
13460 # Portland Group C++ compiler
13461 lt_prog_compiler_wl_CXX
='-Wl,'
13462 lt_prog_compiler_pic_CXX
='-fpic'
13463 lt_prog_compiler_static_CXX
='-Bstatic'
13467 # Make sure the PIC flag is empty. It appears that all Alpha
13468 # Linux and Compaq Tru64 Unix objects are PIC.
13469 lt_prog_compiler_pic_CXX
=
13470 lt_prog_compiler_static_CXX
='-non_shared'
13472 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
13473 # IBM XL 8.0, 9.0 on PPC and BlueGene
13474 lt_prog_compiler_wl_CXX
='-Wl,'
13475 lt_prog_compiler_pic_CXX
='-qpic'
13476 lt_prog_compiler_static_CXX
='-qstaticlink'
13479 case `$CC -V 2>&1 | sed 5q` in
13482 lt_prog_compiler_pic_CXX
='-KPIC'
13483 lt_prog_compiler_static_CXX
='-Bstatic'
13484 lt_prog_compiler_wl_CXX
='-Qoption ld '
13495 case $cc_basename in
13497 lt_prog_compiler_pic_CXX
='-W c,exportall'
13506 # QNX uses GNU C++, but need to define -shared option too, otherwise
13507 # it will coredump.
13508 lt_prog_compiler_pic_CXX
='-fPIC -shared'
13510 osf3
* | osf4
* | osf5
*)
13511 case $cc_basename in
13513 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13516 # Rational C++ 2.4.1
13517 lt_prog_compiler_pic_CXX
='-pic'
13520 # Digital/Compaq C++
13521 lt_prog_compiler_wl_CXX
='-Wl,'
13522 # Make sure the PIC flag is empty. It appears that all Alpha
13523 # Linux and Compaq Tru64 Unix objects are PIC.
13524 lt_prog_compiler_pic_CXX
=
13525 lt_prog_compiler_static_CXX
='-non_shared'
13534 case $cc_basename in
13536 # Sun C++ 4.2, 5.x and Centerline C++
13537 lt_prog_compiler_pic_CXX
='-KPIC'
13538 lt_prog_compiler_static_CXX
='-Bstatic'
13539 lt_prog_compiler_wl_CXX
='-Qoption ld '
13542 # Green Hills C++ Compiler
13543 lt_prog_compiler_pic_CXX
='-PIC'
13550 case $cc_basename in
13553 lt_prog_compiler_pic_CXX
='-pic'
13554 lt_prog_compiler_static_CXX
='-Bstatic'
13558 lt_prog_compiler_pic_CXX
='-pic'
13564 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
13565 case $cc_basename in
13567 lt_prog_compiler_wl_CXX
='-Wl,'
13568 lt_prog_compiler_pic_CXX
='-KPIC'
13569 lt_prog_compiler_static_CXX
='-Bstatic'
13574 case $cc_basename in
13576 # NonStop-UX NCC 3.20
13577 lt_prog_compiler_pic_CXX
='-KPIC'
13586 lt_prog_compiler_can_build_shared_CXX
=no
13592 # For platforms which do not support PIC, -DPIC is meaningless:
13594 lt_prog_compiler_pic_CXX
=
13597 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13601 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13606 # Check to make sure the PIC flag actually works.
13608 if test -n "$lt_prog_compiler_pic_CXX"; then
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13610 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13611 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13612 $as_echo_n "(cached) " >&6
13614 lt_cv_prog_compiler_pic_works_CXX
=no
13615 ac_outfile
=conftest.
$ac_objext
13616 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13617 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
13618 # Insert the option either (1) after the last *FLAGS variable, or
13619 # (2) before a word containing "conftest.", or (3) at the end.
13620 # Note that $ac_compile itself does not contain backslashes and begins
13621 # with a dollar sign (not a hyphen), so the echo should work correctly.
13622 # The option is referenced via a variable to avoid confusing sed.
13623 lt_compile
=`echo "$ac_compile" | $SED \
13624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13626 -e 's:$: $lt_compiler_flag:'`
13627 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13628 (eval "$lt_compile" 2>conftest.err
)
13630 cat conftest.err
>&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 if (exit $ac_status) && test -s "$ac_outfile"; then
13633 # The compiler can only warn and ignore the option if not recognized
13634 # So say no if there are warnings other than the usual output.
13635 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
13636 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13637 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
13638 lt_cv_prog_compiler_pic_works_CXX
=yes
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13645 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13647 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
13648 case $lt_prog_compiler_pic_CXX in
13650 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
13653 lt_prog_compiler_pic_CXX
=
13654 lt_prog_compiler_can_build_shared_CXX
=no
13662 # Check to make sure the static flag actually works.
13664 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13666 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13667 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13668 $as_echo_n "(cached) " >&6
13670 lt_cv_prog_compiler_static_works_CXX
=no
13671 save_LDFLAGS
="$LDFLAGS"
13672 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
13673 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
13674 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
13675 # The linker can only warn and ignore the option if not recognized
13676 # So say no if there are warnings
13677 if test -s conftest.err
; then
13678 # Append any errors to the config.log.
13679 cat conftest.err
1>&5
13680 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
13681 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13682 if diff conftest.exp conftest.er2
>/dev
/null
; then
13683 lt_cv_prog_compiler_static_works_CXX
=yes
13686 lt_cv_prog_compiler_static_works_CXX
=yes
13690 LDFLAGS
="$save_LDFLAGS"
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13694 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13696 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
13699 lt_prog_compiler_static_CXX
=
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13706 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13707 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13708 $as_echo_n "(cached) " >&6
13710 lt_cv_prog_compiler_c_o_CXX
=no
13711 $RM -r conftest
2>/dev
/null
13715 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13717 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13718 # Insert the option either (1) after the last *FLAGS variable, or
13719 # (2) before a word containing "conftest.", or (3) at the end.
13720 # Note that $ac_compile itself does not contain backslashes and begins
13721 # with a dollar sign (not a hyphen), so the echo should work correctly.
13722 lt_compile
=`echo "$ac_compile" | $SED \
13723 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13725 -e 's:$: $lt_compiler_flag:'`
13726 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13727 (eval "$lt_compile" 2>out
/conftest.err
)
13729 cat out
/conftest.err
>&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13733 # The compiler can only warn and ignore the option if not recognized
13734 # So say no if there are warnings
13735 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
13736 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13737 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13738 lt_cv_prog_compiler_c_o_CXX
=yes
13743 # SGI C++ compiler will create directory out/ii_files/ for
13744 # template instantiation
13745 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
13746 $RM out
/* && rmdir out
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13753 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13758 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13759 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13760 $as_echo_n "(cached) " >&6
13762 lt_cv_prog_compiler_c_o_CXX
=no
13763 $RM -r conftest
2>/dev
/null
13767 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13769 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13770 # Insert the option either (1) after the last *FLAGS variable, or
13771 # (2) before a word containing "conftest.", or (3) at the end.
13772 # Note that $ac_compile itself does not contain backslashes and begins
13773 # with a dollar sign (not a hyphen), so the echo should work correctly.
13774 lt_compile
=`echo "$ac_compile" | $SED \
13775 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13777 -e 's:$: $lt_compiler_flag:'`
13778 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13779 (eval "$lt_compile" 2>out
/conftest.err
)
13781 cat out
/conftest.err
>&5
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13785 # The compiler can only warn and ignore the option if not recognized
13786 # So say no if there are warnings
13787 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
13788 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13789 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13790 lt_cv_prog_compiler_c_o_CXX
=yes
13795 # SGI C++ compiler will create directory out/ii_files/ for
13796 # template instantiation
13797 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
13798 $RM out
/* && rmdir out
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13805 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13810 hard_links
="nottested"
13811 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
13812 # do not overwrite the value of need_locks provided by the user
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13814 $as_echo_n "checking if we can lock with hard links... " >&6; }
13817 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13819 ln conftest.a conftest.b
2>&5 || hard_links
=no
13820 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13822 $as_echo "$hard_links" >&6; }
13823 if test "$hard_links" = no
; then
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13825 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13835 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13837 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13840 # If we're using GNU nm, then we don't want the "-C" option.
13841 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13842 # Also, AIX nm treats weak defined symbols like other global defined
13843 # symbols, whereas GNU nm marks them as "W".
13844 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
13845 export_symbols_cmds_CXX
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13847 export_symbols_cmds_CXX
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13851 export_symbols_cmds_CXX
="$ltdll_cmds"
13853 cygwin
* | mingw
* | cegcc
*)
13854 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'
13857 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13860 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13863 $as_echo "$ld_shlibs_CXX" >&6; }
13864 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13866 with_gnu_ld_CXX
=$with_gnu_ld
13874 # Do we need to explicitly link libc?
13876 case "x$archive_cmds_need_lc_CXX" in
13878 # Assume -lc should be added
13879 archive_cmds_need_lc_CXX
=yes
13881 if test "$enable_shared" = yes && test "$GCC" = yes; then
13882 case $archive_cmds_CXX in
13884 # FIXME: we may have to deal with multi-command sequences.
13887 # Test whether the compiler implicitly links with -lc since on some
13888 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13889 # to ld, don't add -lc before -lgcc.
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13891 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13892 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13893 $as_echo_n "(cached) " >&6
13896 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13899 (eval $ac_compile) 2>&5
13901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13902 test $ac_status = 0; } 2>conftest.err
; then
13905 libobjs
=conftest.
$ac_objext
13907 wl
=$lt_prog_compiler_wl_CXX
13908 pic_flag
=$lt_prog_compiler_pic_CXX
13914 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
13915 allow_undefined_flag_CXX
=
13916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13917 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13920 test $ac_status = 0; }
13922 lt_cv_archive_cmds_need_lc_CXX
=no
13924 lt_cv_archive_cmds_need_lc_CXX
=yes
13926 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
13928 cat conftest.err
1>&5
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13934 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13935 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14006 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14008 library_names_spec
=
14009 libname_spec
='lib$name'
14013 postuninstall_cmds
=
14017 shlibpath_overrides_runpath
=unknown
14019 dynamic_linker
="$host_os ld.so"
14020 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14021 need_lib_prefix
=unknown
14022 hardcode_into_libs
=no
14024 # when you set need_version to no, make sure it does not cause -set_version
14025 # flags to be left without arguments
14026 need_version
=unknown
14031 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14032 shlibpath_var
=LIBPATH
14034 # AIX 3 has no versioning support, so we append a major version to the name.
14035 soname_spec
='${libname}${release}${shared_ext}$major'
14042 hardcode_into_libs
=yes
14043 if test "$host_cpu" = ia64
; then
14044 # AIX 5 supports IA64
14045 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14046 shlibpath_var
=LD_LIBRARY_PATH
14048 # With GCC up to 2.95.x, collect2 would create an import file
14049 # for dependence libraries. The import file would start with
14050 # the line `#! .'. This would cause the generated library to
14051 # depend on `.', always an invalid library. This was fixed in
14052 # development snapshots of GCC prior to 3.0.
14054 aix4 | aix4.
[01] | aix4.
[01].
*)
14055 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14057 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
14060 can_build_shared
=no
14064 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14065 # soname into executable. Probably we can add versioning support to
14066 # collect2, so additional links can be useful in future.
14067 if test "$aix_use_runtimelinking" = yes; then
14068 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14069 # instead of lib<name>.a to let people know that these are not
14070 # typical AIX shared libraries.
14071 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14073 # We preserve .a as extension for shared libraries through AIX4.2
14074 # and later when we are not doing run time linking.
14075 library_names_spec
='${libname}${release}.a $libname.a'
14076 soname_spec
='${libname}${release}${shared_ext}$major'
14078 shlibpath_var
=LIBPATH
14085 # Since July 2007 AmigaOS4 officially supports .so libraries.
14086 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14087 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14090 library_names_spec
='$libname.ixlibrary $libname.a'
14091 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14092 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14098 library_names_spec
='${libname}${shared_ext}'
14099 dynamic_linker
="$host_os ld.so"
14100 shlibpath_var
=LIBRARY_PATH
14106 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14107 soname_spec
='${libname}${release}${shared_ext}$major'
14108 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14109 shlibpath_var
=LD_LIBRARY_PATH
14110 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14111 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14112 # the default ld.so.conf also contains /usr/contrib/lib and
14113 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14114 # libtool to hard-code these into programs
14117 cygwin
* | mingw
* | pw32
* | cegcc
*)
14118 version_type
=windows
14123 case $GCC,$host_os in
14124 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
14125 library_names_spec
='$libname.dll.a'
14126 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14127 postinstall_cmds
='base_file=`basename \${file}`~
14128 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14129 dldir=$destdir/`dirname \$dlpath`~
14130 test -d \$dldir || mkdir -p \$dldir~
14131 $install_prog $dir/$dlname \$dldir/$dlname~
14132 chmod a+x \$dldir/$dlname~
14133 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14134 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14136 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14137 dlpath=$dir/\$dldll~
14139 shlibpath_overrides_runpath
=yes
14143 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14144 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14148 # MinGW DLLs use traditional 'lib' prefix
14149 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14152 # pw32 DLLs use 'pw' prefix rather than 'lib'
14153 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14159 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14162 dynamic_linker
='Win32 ld.exe'
14163 # FIXME: first we should search . and the directory the executable is in
14167 darwin
* | rhapsody
*)
14168 dynamic_linker
="$host_os dyld"
14169 version_type
=darwin
14172 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14173 soname_spec
='${libname}${release}${major}$shared_ext'
14174 shlibpath_overrides_runpath
=yes
14175 shlibpath_var
=DYLD_LIBRARY_PATH
14176 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14178 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14185 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14186 soname_spec
='${libname}${release}${shared_ext}$major'
14187 shlibpath_var
=LD_LIBRARY_PATH
14190 freebsd
* | dragonfly
*)
14191 # DragonFly does not have aout. When/if they implement a new
14192 # versioning mechanism, adjust this.
14193 if test -x /usr
/bin
/objformat
; then
14194 objformat
=`/usr/bin/objformat`
14197 freebsd
[23].
*) objformat
=aout
;;
14198 *) objformat
=elf
;;
14201 version_type
=freebsd-
$objformat
14202 case $version_type in
14204 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14209 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14213 shlibpath_var
=LD_LIBRARY_PATH
14216 shlibpath_overrides_runpath
=yes
14218 freebsd3.
[01]* | freebsdelf3.
[01]*)
14219 shlibpath_overrides_runpath
=yes
14220 hardcode_into_libs
=yes
14222 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14223 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14224 shlibpath_overrides_runpath
=no
14225 hardcode_into_libs
=yes
14227 *) # from 4.6 on, and DragonFly
14228 shlibpath_overrides_runpath
=yes
14229 hardcode_into_libs
=yes
14238 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14239 soname_spec
='${libname}${release}${shared_ext}$major'
14240 shlibpath_var
=LD_LIBRARY_PATH
14241 hardcode_into_libs
=yes
14248 dynamic_linker
="$host_os runtime_loader"
14249 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14250 soname_spec
='${libname}${release}${shared_ext}$major'
14251 shlibpath_var
=LIBRARY_PATH
14252 shlibpath_overrides_runpath
=yes
14253 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14254 hardcode_into_libs
=yes
14257 hpux9
* | hpux10
* | hpux11
*)
14258 # Give a soname corresponding to the major version so that dld.sl refuses to
14259 # link against other versions.
14266 hardcode_into_libs
=yes
14267 dynamic_linker
="$host_os dld.so"
14268 shlibpath_var
=LD_LIBRARY_PATH
14269 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14270 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14271 soname_spec
='${libname}${release}${shared_ext}$major'
14272 if test "X$HPUX_IA64_MODE" = X32
; then
14273 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14275 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14277 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14281 hardcode_into_libs
=yes
14282 dynamic_linker
="$host_os dld.sl"
14283 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14284 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14285 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14286 soname_spec
='${libname}${release}${shared_ext}$major'
14287 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14288 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14292 dynamic_linker
="$host_os dld.sl"
14293 shlibpath_var
=SHLIB_PATH
14294 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14295 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14296 soname_spec
='${libname}${release}${shared_ext}$major'
14299 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14300 postinstall_cmds
='chmod 555 $lib'
14301 # or fails outright, so override atomically:
14302 install_override_mode
=555
14309 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14310 soname_spec
='${libname}${release}${shared_ext}$major'
14311 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14312 shlibpath_var
=LD_LIBRARY_PATH
14313 shlibpath_overrides_runpath
=no
14314 hardcode_into_libs
=yes
14317 irix5
* | irix6
* | nonstopux
*)
14319 nonstopux
*) version_type
=nonstopux
;;
14321 if test "$lt_cv_prog_gnu_ld" = yes; then
14329 soname_spec
='${libname}${release}${shared_ext}$major'
14330 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14332 irix5
* | nonstopux
*)
14333 libsuff
= shlibsuff
=
14336 case $LD in # libtool.m4 will add one of these switches to LD
14337 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14338 libsuff
= shlibsuff
= libmagic
=32-bit;;
14339 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14340 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14341 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14342 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14343 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14347 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14348 shlibpath_overrides_runpath
=no
14349 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14350 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14351 hardcode_into_libs
=yes
14354 # No shared lib support for Linux oldld, aout, or coff.
14355 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14359 # This must be Linux ELF.
14360 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
14364 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14365 soname_spec
='${libname}${release}${shared_ext}$major'
14366 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14367 shlibpath_var
=LD_LIBRARY_PATH
14368 shlibpath_overrides_runpath
=no
14370 # Some binutils ld are patched to set DT_RUNPATH
14371 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14372 $as_echo_n "(cached) " >&6
14374 lt_cv_shlibpath_overrides_runpath
=no
14375 save_LDFLAGS
=$LDFLAGS
14376 save_libdir
=$libdir
14377 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14378 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14380 /* end confdefs.h. */
14390 if ac_fn_cxx_try_link
"$LINENO"; then :
14391 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
14392 lt_cv_shlibpath_overrides_runpath
=yes
14395 rm -f core conftest.err conftest.
$ac_objext \
14396 conftest
$ac_exeext conftest.
$ac_ext
14397 LDFLAGS
=$save_LDFLAGS
14398 libdir
=$save_libdir
14402 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
14404 # This implies no fast_install, which is unacceptable.
14405 # Some rework will be needed to allow for fast_install
14406 # before this can be enabled.
14407 hardcode_into_libs
=yes
14409 # Append ld.so.conf contents to the search path
14410 if test -f /etc
/ld.so.conf
; then
14411 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;s/"//g;/^$/d' | tr '\n' ' '`
14412 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14415 # We used to test for /lib/ld.so.1 and disable shared libraries on
14416 # powerpc, because MkLinux only supported shared libraries with the
14417 # GNU dynamic linker. Since this was broken with cross compilers,
14418 # most powerpc-linux boxes support dynamic linking these days and
14419 # people can always --disable-shared, the test was removed, and we
14420 # assume the GNU/Linux dynamic linker is in use.
14421 dynamic_linker
='GNU/Linux ld.so'
14428 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14429 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14430 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14431 dynamic_linker
='NetBSD (a.out) ld.so'
14433 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14434 soname_spec
='${libname}${release}${shared_ext}$major'
14435 dynamic_linker
='NetBSD ld.elf_so'
14437 shlibpath_var
=LD_LIBRARY_PATH
14438 shlibpath_overrides_runpath
=yes
14439 hardcode_into_libs
=yes
14444 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14445 shlibpath_var
=LD_LIBRARY_PATH
14446 shlibpath_overrides_runpath
=yes
14453 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14454 soname_spec
='${libname}${release}${shared_ext}$major'
14455 shlibpath_var
=LD_LIBRARY_PATH
14456 shlibpath_overrides_runpath
=no
14457 hardcode_into_libs
=yes
14458 dynamic_linker
='ldqnx.so'
14463 sys_lib_dlsearch_path_spec
="/usr/lib"
14465 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14467 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14468 *) need_version
=no
;;
14470 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14471 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14472 shlibpath_var
=LD_LIBRARY_PATH
14473 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14475 openbsd2.
[89] | openbsd2.
[89].
*)
14476 shlibpath_overrides_runpath
=no
14479 shlibpath_overrides_runpath
=yes
14483 shlibpath_overrides_runpath
=yes
14488 libname_spec
='$name'
14491 library_names_spec
='$libname${shared_ext} $libname.a'
14492 dynamic_linker
='OS/2 ld.exe'
14493 shlibpath_var
=LIBPATH
14496 osf3
* | osf4
* | osf5
*)
14500 soname_spec
='${libname}${release}${shared_ext}$major'
14501 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14502 shlibpath_var
=LD_LIBRARY_PATH
14503 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14504 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14515 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14516 soname_spec
='${libname}${release}${shared_ext}$major'
14517 shlibpath_var
=LD_LIBRARY_PATH
14518 shlibpath_overrides_runpath
=yes
14519 hardcode_into_libs
=yes
14520 # ldd complains unless libraries are executable
14521 postinstall_cmds
='chmod +x $lib'
14526 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14527 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14528 shlibpath_var
=LD_LIBRARY_PATH
14529 shlibpath_overrides_runpath
=yes
14530 if test "$with_gnu_ld" = yes; then
14538 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14539 soname_spec
='${libname}${release}${shared_ext}$major'
14540 shlibpath_var
=LD_LIBRARY_PATH
14541 case $host_vendor in
14543 shlibpath_overrides_runpath
=no
14545 runpath_var
=LD_RUN_PATH
14553 shlibpath_overrides_runpath
=no
14554 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14560 if test -d /usr
/nec
;then
14562 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14563 soname_spec
='$libname${shared_ext}.$major'
14564 shlibpath_var
=LD_LIBRARY_PATH
14568 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14569 version_type
=freebsd-elf
14572 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14573 soname_spec
='${libname}${release}${shared_ext}$major'
14574 shlibpath_var
=LD_LIBRARY_PATH
14575 shlibpath_overrides_runpath
=yes
14576 hardcode_into_libs
=yes
14577 if test "$with_gnu_ld" = yes; then
14578 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14580 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14583 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14587 sys_lib_dlsearch_path_spec
='/usr/lib'
14591 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14595 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14596 shlibpath_var
=LD_LIBRARY_PATH
14597 shlibpath_overrides_runpath
=no
14598 hardcode_into_libs
=yes
14603 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14604 soname_spec
='${libname}${release}${shared_ext}$major'
14605 shlibpath_var
=LD_LIBRARY_PATH
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14613 $as_echo "$dynamic_linker" >&6; }
14614 test "$dynamic_linker" = no
&& can_build_shared
=no
14616 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14617 if test "$GCC" = yes; then
14618 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14621 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14622 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
14624 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14625 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14666 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14667 hardcode_action_CXX
=
14668 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14669 test -n "$runpath_var_CXX" ||
14670 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14672 # We can hardcode non-existent directories.
14673 if test "$hardcode_direct_CXX" != no
&&
14674 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14675 # have to relink, otherwise we might link with an installed library
14676 # when we should be linking with a yet-to-be-installed one
14677 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14678 test "$hardcode_minus_L_CXX" != no
; then
14679 # Linking always hardcodes the temporary library directory.
14680 hardcode_action_CXX
=relink
14682 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14683 hardcode_action_CXX
=immediate
14686 # We cannot hardcode anything, or else we can only hardcode existing
14688 hardcode_action_CXX
=unsupported
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14691 $as_echo "$hardcode_action_CXX" >&6; }
14693 if test "$hardcode_action_CXX" = relink ||
14694 test "$inherit_rpath_CXX" = yes; then
14695 # Fast installation is not supported
14696 enable_fast_install
=no
14697 elif test "$shlibpath_overrides_runpath" = yes ||
14698 test "$enable_shared" = no
; then
14699 # Fast installation is not necessary
14700 enable_fast_install
=needless
14709 fi # test -n "$compiler"
14715 with_gnu_ld
=$lt_save_with_gnu_ld
14716 lt_cv_path_LDCXX
=$lt_cv_path_LD
14717 lt_cv_path_LD
=$lt_save_path_LD
14718 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
14719 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
14720 fi # test "$_lt_caught_CXX_error" != yes
14723 ac_cpp
='$CPP $CPPFLAGS'
14724 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14725 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14726 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14740 ac_config_commands
="$ac_config_commands libtool"
14745 # Only expand once:
14749 # Test for 64-bit build.
14750 # The cast to long int works around a bug in the HP C Compiler
14751 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14752 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14753 # This bug is HP SR number 8606223364.
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14755 $as_echo_n "checking size of size_t... " >&6; }
14756 if test "${ac_cv_sizeof_size_t+set}" = set; then :
14757 $as_echo_n "(cached) " >&6
14759 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14762 if test "$ac_cv_type_size_t" = yes; then
14763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14765 { as_fn_set_status
77
14766 as_fn_error
"cannot compute sizeof (size_t)
14767 See \`config.log' for more details." "$LINENO" 5; }; }
14769 ac_cv_sizeof_size_t
=0
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14775 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14779 cat >>confdefs.h
<<_ACEOF
14780 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14787 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14788 # Check whether --enable-maintainer-mode was given.
14789 if test "${enable_maintainer_mode+set}" = set; then :
14790 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
14792 USE_MAINTAINER_MODE
=no
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14796 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14797 if test $USE_MAINTAINER_MODE = yes; then
14798 MAINTAINER_MODE_TRUE
=
14799 MAINTAINER_MODE_FALSE
='#'
14801 MAINTAINER_MODE_TRUE
='#'
14802 MAINTAINER_MODE_FALSE
=
14805 MAINT
=$MAINTAINER_MODE_TRUE
14809 for ac_header
in sys
/mman.h
14811 ac_fn_c_check_header_mongrel
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14812 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
14813 cat >>confdefs.h
<<_ACEOF
14814 #define HAVE_SYS_MMAN_H 1
14821 for ac_func
in mmap mkostemp
14823 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14824 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14825 eval as_val
=\$
$as_ac_var
14826 if test "x$as_val" = x
""yes; then :
14827 cat >>confdefs.h
<<_ACEOF
14828 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14835 ac_fn_c_check_header_mongrel
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14836 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
14837 libffi_header_sys_mman_h
=yes
14839 libffi_header_sys_mman_h
=no
14843 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
14844 if test "x$ac_cv_func_mmap" = x
""yes; then :
14845 libffi_func_mmap
=yes
14847 libffi_func_mmap
=no
14850 if test "$libffi_header_sys_mman_h" != yes \
14851 ||
test "$libffi_func_mmap" != yes; then
14852 ac_cv_func_mmap_file
=no
14853 ac_cv_func_mmap_dev_zero
=no
14854 ac_cv_func_mmap_anon
=no
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
14857 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
14858 if test "${ac_cv_func_mmap_file+set}" = set; then :
14859 $as_echo_n "(cached) " >&6
14861 # Add a system to this blacklist if
14862 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
14863 # memory area containing the same data that you'd get if you applied
14864 # read() to the same fd. The only system known to have a problem here
14865 # is VMS, where text files have record structure.
14868 ac_cv_func_mmap_file
=no
;;
14870 ac_cv_func_mmap_file
=yes;;
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
14874 $as_echo "$ac_cv_func_mmap_file" >&6; }
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
14876 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
14877 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then :
14878 $as_echo_n "(cached) " >&6
14880 # Add a system to this blacklist if it has mmap() but /dev/zero
14881 # does not exist, or if mmapping /dev/zero does not give anonymous
14882 # zeroed pages with both the following properties:
14883 # 1. If you map N consecutive pages in with one call, and then
14884 # unmap any subset of those pages, the pages that were not
14885 # explicitly unmapped remain accessible.
14886 # 2. If you map two adjacent blocks of memory and then unmap them
14887 # both at once, they must both go away.
14888 # Systems known to be in this category are Windows (all variants),
14891 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
14892 ac_cv_func_mmap_dev_zero
=no
;;
14894 ac_cv_func_mmap_dev_zero
=yes;;
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
14898 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
14900 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
14902 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
14903 if test "${ac_cv_decl_map_anon+set}" = set; then :
14904 $as_echo_n "(cached) " >&6
14906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h. */
14908 #include <sys/types.h>
14909 #include <sys/mman.h>
14910 #include <unistd.h>
14912 #ifndef MAP_ANONYMOUS
14913 #define MAP_ANONYMOUS MAP_ANON
14919 int n = MAP_ANONYMOUS;
14924 if ac_fn_c_try_compile
"$LINENO"; then :
14925 ac_cv_decl_map_anon
=yes
14927 ac_cv_decl_map_anon
=no
14929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
14932 $as_echo "$ac_cv_decl_map_anon" >&6; }
14934 if test $ac_cv_decl_map_anon = no
; then
14935 ac_cv_func_mmap_anon
=no
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
14938 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
14939 if test "${ac_cv_func_mmap_anon+set}" = set; then :
14940 $as_echo_n "(cached) " >&6
14942 # Add a system to this blacklist if it has mmap() and MAP_ANON or
14943 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
14944 # doesn't give anonymous zeroed pages with the same properties listed
14945 # above for use of /dev/zero.
14946 # Systems known to be in this category are Windows, VMS, and SCO Unix.
14948 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
14949 ac_cv_func_mmap_anon
=no
;;
14951 ac_cv_func_mmap_anon
=yes;;
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
14955 $as_echo "$ac_cv_func_mmap_anon" >&6; }
14959 if test $ac_cv_func_mmap_file = yes; then
14961 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
14964 if test $ac_cv_func_mmap_dev_zero = yes; then
14966 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
14969 if test $ac_cv_func_mmap_anon = yes; then
14971 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
14976 if test -d $srcdir/testsuite
; then
14978 TESTSUBDIR_FALSE
='#'
14980 TESTSUBDIR_TRUE
='#'
14985 TARGETDIR
="unknown"
14986 HAVE_LONG_DOUBLE_VARIANT
=0
14988 .
${srcdir}/configure.
host
14990 if test -n "${UNSUPPORTED}"; then
14991 as_fn_error
"\"libffi has not been ported to $host.\"" "$LINENO" 5
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14998 $as_echo_n "checking for ANSI C header files... " >&6; }
14999 if test "${ac_cv_header_stdc+set}" = set; then :
15000 $as_echo_n "(cached) " >&6
15002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15003 /* end confdefs.h. */
15004 #include <stdlib.h>
15005 #include <stdarg.h>
15006 #include <string.h>
15017 if ac_fn_c_try_compile
"$LINENO"; then :
15018 ac_cv_header_stdc
=yes
15020 ac_cv_header_stdc
=no
15022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15024 if test $ac_cv_header_stdc = yes; then
15025 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15027 /* end confdefs.h. */
15028 #include <string.h>
15031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15032 $EGREP "memchr" >/dev
/null
2>&1; then :
15035 ac_cv_header_stdc
=no
15041 if test $ac_cv_header_stdc = yes; then
15042 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15044 /* end confdefs.h. */
15045 #include <stdlib.h>
15048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15049 $EGREP "free" >/dev
/null
2>&1; then :
15052 ac_cv_header_stdc
=no
15058 if test $ac_cv_header_stdc = yes; then
15059 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15060 if test "$cross_compiling" = yes; then :
15063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15064 /* end confdefs.h. */
15066 #include <stdlib.h>
15067 #if ((' ' & 0x0FF) == 0x020)
15068 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15069 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15071 # define ISLOWER(c) \
15072 (('a' <= (c) && (c) <= 'i') \
15073 || ('j' <= (c) && (c) <= 'r') \
15074 || ('s' <= (c) && (c) <= 'z'))
15075 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15078 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15083 for (i = 0; i < 256; i++)
15084 if (XOR (islower (i), ISLOWER (i))
15085 || toupper (i) != TOUPPER (i))
15090 if ac_fn_c_try_run
"$LINENO"; then :
15093 ac_cv_header_stdc
=no
15095 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15096 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15102 $as_echo "$ac_cv_header_stdc" >&6; }
15103 if test $ac_cv_header_stdc = yes; then
15105 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15109 for ac_func
in memcpy
15111 ac_fn_c_check_func
"$LINENO" "memcpy" "ac_cv_func_memcpy"
15112 if test "x$ac_cv_func_memcpy" = x
""yes; then :
15113 cat >>confdefs.h
<<_ACEOF
15114 #define HAVE_MEMCPY 1
15120 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15121 # for constant arguments. Useless!
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15123 $as_echo_n "checking for working alloca.h... " >&6; }
15124 if test "${ac_cv_working_alloca_h+set}" = set; then :
15125 $as_echo_n "(cached) " >&6
15127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15128 /* end confdefs.h. */
15129 #include <alloca.h>
15133 char *p = (char *) alloca (2 * sizeof (int));
15139 if ac_fn_c_try_link
"$LINENO"; then :
15140 ac_cv_working_alloca_h
=yes
15142 ac_cv_working_alloca_h
=no
15144 rm -f core conftest.err conftest.
$ac_objext \
15145 conftest
$ac_exeext conftest.
$ac_ext
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15148 $as_echo "$ac_cv_working_alloca_h" >&6; }
15149 if test $ac_cv_working_alloca_h = yes; then
15151 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15156 $as_echo_n "checking for alloca... " >&6; }
15157 if test "${ac_cv_func_alloca_works+set}" = set; then :
15158 $as_echo_n "(cached) " >&6
15160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15161 /* end confdefs.h. */
15163 # define alloca __builtin_alloca
15166 # include <malloc.h>
15167 # define alloca _alloca
15169 # ifdef HAVE_ALLOCA_H
15170 # include <alloca.h>
15175 # ifndef alloca /* predefined by HP cc +Olibcalls */
15186 char *p = (char *) alloca (1);
15192 if ac_fn_c_try_link
"$LINENO"; then :
15193 ac_cv_func_alloca_works
=yes
15195 ac_cv_func_alloca_works
=no
15197 rm -f core conftest.err conftest.
$ac_objext \
15198 conftest
$ac_exeext conftest.
$ac_ext
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15201 $as_echo "$ac_cv_func_alloca_works" >&6; }
15203 if test $ac_cv_func_alloca_works = yes; then
15205 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15208 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15209 # that cause trouble. Some versions do not even contain alloca or
15210 # contain a buggy version. If you still want to use their alloca,
15211 # use ar to extract alloca.o from them instead of compiling alloca.c.
15213 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
15215 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15219 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15220 if test "${ac_cv_os_cray+set}" = set; then :
15221 $as_echo_n "(cached) " >&6
15223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15224 /* end confdefs.h. */
15225 #if defined CRAY && ! defined CRAY2
15232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15233 $EGREP "webecray" >/dev
/null
2>&1; then :
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15242 $as_echo "$ac_cv_os_cray" >&6; }
15243 if test $ac_cv_os_cray = yes; then
15244 for ac_func
in _getb67 GETB67 getb67
; do
15245 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15246 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15247 eval as_val
=\$
$as_ac_var
15248 if test "x$as_val" = x
""yes; then :
15250 cat >>confdefs.h
<<_ACEOF
15251 #define CRAY_STACKSEG_END $ac_func
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15261 $as_echo_n "checking stack direction for C alloca... " >&6; }
15262 if test "${ac_cv_c_stack_direction+set}" = set; then :
15263 $as_echo_n "(cached) " >&6
15265 if test "$cross_compiling" = yes; then :
15266 ac_cv_c_stack_direction
=0
15268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15269 /* end confdefs.h. */
15270 $ac_includes_default
15272 find_stack_direction ()
15274 static char *addr = 0;
15279 return find_stack_direction ();
15282 return (&dummy > addr) ? 1 : -1;
15288 return find_stack_direction () < 0;
15291 if ac_fn_c_try_run
"$LINENO"; then :
15292 ac_cv_c_stack_direction
=1
15294 ac_cv_c_stack_direction
=-1
15296 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15297 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15302 $as_echo "$ac_cv_c_stack_direction" >&6; }
15303 cat >>confdefs.h
<<_ACEOF
15304 #define STACK_DIRECTION $ac_cv_c_stack_direction
15311 # The cast to long int works around a bug in the HP C Compiler
15312 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15313 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15314 # This bug is HP SR number 8606223364.
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15316 $as_echo_n "checking size of double... " >&6; }
15317 if test "${ac_cv_sizeof_double+set}" = set; then :
15318 $as_echo_n "(cached) " >&6
15320 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
15323 if test "$ac_cv_type_double" = yes; then
15324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15326 { as_fn_set_status
77
15327 as_fn_error
"cannot compute sizeof (double)
15328 See \`config.log' for more details." "$LINENO" 5; }; }
15330 ac_cv_sizeof_double
=0
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15336 $as_echo "$ac_cv_sizeof_double" >&6; }
15340 cat >>confdefs.h
<<_ACEOF
15341 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
15345 # The cast to long int works around a bug in the HP C Compiler
15346 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15347 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15348 # This bug is HP SR number 8606223364.
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
15350 $as_echo_n "checking size of long double... " >&6; }
15351 if test "${ac_cv_sizeof_long_double+set}" = set; then :
15352 $as_echo_n "(cached) " >&6
15354 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
15357 if test "$ac_cv_type_long_double" = yes; then
15358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15360 { as_fn_set_status
77
15361 as_fn_error
"cannot compute sizeof (long double)
15362 See \`config.log' for more details." "$LINENO" 5; }; }
15364 ac_cv_sizeof_long_double
=0
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
15370 $as_echo "$ac_cv_sizeof_long_double" >&6; }
15374 cat >>confdefs.h
<<_ACEOF
15375 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
15380 # Also AC_SUBST this variable for ffi.h.
15381 if test -z "$HAVE_LONG_DOUBLE"; then
15383 if test $ac_cv_sizeof_long_double != 0; then
15384 if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
15386 $as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
15390 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
15393 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15403 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15404 if test "${ac_cv_c_bigendian+set}" = set; then :
15405 $as_echo_n "(cached) " >&6
15407 ac_cv_c_bigendian
=unknown
15408 # See if we're dealing with a universal compiler.
15409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15410 /* end confdefs.h. */
15411 #ifndef __APPLE_CC__
15412 not a universal capable compiler
15417 if ac_fn_c_try_compile
"$LINENO"; then :
15419 # Check for potential -arch flags. It is not universal unless
15420 # there are at least two -arch flags with different values.
15423 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15424 if test -n "$ac_prev"; then
15426 i?
86 | x86_64 | ppc | ppc64
)
15427 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
15430 ac_cv_c_bigendian
=universal
15436 elif test "x$ac_word" = "x-arch"; then
15441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15442 if test $ac_cv_c_bigendian = unknown
; then
15443 # See if sys/param.h defines the BYTE_ORDER macro.
15444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15445 /* end confdefs.h. */
15446 #include <sys/types.h>
15447 #include <sys/param.h>
15452 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15453 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15455 bogus endian macros
15462 if ac_fn_c_try_compile
"$LINENO"; then :
15463 # It does; now see whether it defined to BIG_ENDIAN or not.
15464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15465 /* end confdefs.h. */
15466 #include <sys/types.h>
15467 #include <sys/param.h>
15472 #if BYTE_ORDER != BIG_ENDIAN
15480 if ac_fn_c_try_compile
"$LINENO"; then :
15481 ac_cv_c_bigendian
=yes
15483 ac_cv_c_bigendian
=no
15485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15487 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15489 if test $ac_cv_c_bigendian = unknown
; then
15490 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15492 /* end confdefs.h. */
15493 #include <limits.h>
15498 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15499 bogus endian macros
15506 if ac_fn_c_try_compile
"$LINENO"; then :
15507 # It does; now see whether it defined to _BIG_ENDIAN or not.
15508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15509 /* end confdefs.h. */
15510 #include <limits.h>
15515 #ifndef _BIG_ENDIAN
15523 if ac_fn_c_try_compile
"$LINENO"; then :
15524 ac_cv_c_bigendian
=yes
15526 ac_cv_c_bigendian
=no
15528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15532 if test $ac_cv_c_bigendian = unknown
; then
15533 # Compile a test program.
15534 if test "$cross_compiling" = yes; then :
15535 # Try to guess by grepping values from an object file.
15536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15537 /* end confdefs.h. */
15538 short int ascii_mm[] =
15539 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15540 short int ascii_ii[] =
15541 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15542 int use_ascii (int i) {
15543 return ascii_mm[i] + ascii_ii[i];
15545 short int ebcdic_ii[] =
15546 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15547 short int ebcdic_mm[] =
15548 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15549 int use_ebcdic (int i) {
15550 return ebcdic_mm[i] + ebcdic_ii[i];
15557 return use_ascii (foo) == use_ebcdic (foo);
15562 if ac_fn_c_try_compile
"$LINENO"; then :
15563 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
15564 ac_cv_c_bigendian
=yes
15566 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
15567 if test "$ac_cv_c_bigendian" = unknown
; then
15568 ac_cv_c_bigendian
=no
15570 # finding both strings is unlikely to happen, but who knows?
15571 ac_cv_c_bigendian
=unknown
15575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15578 /* end confdefs.h. */
15579 $ac_includes_default
15584 /* Are we little or big endian? From Harbison&Steele. */
15588 char c[sizeof (long int)];
15591 return u.c[sizeof (long int) - 1] == 1;
15597 if ac_fn_c_try_run
"$LINENO"; then :
15598 ac_cv_c_bigendian
=no
15600 ac_cv_c_bigendian
=yes
15602 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15603 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15609 $as_echo "$ac_cv_c_bigendian" >&6; }
15610 case $ac_cv_c_bigendian in #(
15612 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15618 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15622 as_fn_error
"unknown endianness
15623 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
15628 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
15629 if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
15630 $as_echo_n "(cached) " >&6
15633 gcc_cv_as_cfi_pseudo_op
=unknown
15634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15635 /* end confdefs.h. */
15636 asm (".cfi_startproc\n\t.cfi_endproc");
15645 if ac_fn_c_try_compile
"$LINENO"; then :
15646 gcc_cv_as_cfi_pseudo_op
=yes
15648 gcc_cv_as_cfi_pseudo_op
=no
15650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
15654 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
15655 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes
; then
15657 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
15665 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
15666 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then :
15667 $as_echo_n "(cached) " >&6
15670 save_CFLAGS
="$CFLAGS"
15671 save_LDFLAGS
="$LDFLAGS"
15672 CFLAGS
="$CFLAGS -fpic"
15673 LDFLAGS
="$LDFLAGS -shared"
15674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15675 /* end confdefs.h. */
15676 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
15685 if ac_fn_c_try_link
"$LINENO"; then :
15686 libffi_cv_as_sparc_ua_pcrel
=yes
15688 libffi_cv_as_sparc_ua_pcrel
=no
15690 rm -f core conftest.err conftest.
$ac_objext \
15691 conftest
$ac_exeext conftest.
$ac_ext
15692 CFLAGS
="$save_CFLAGS"
15693 LDFLAGS
="$save_LDFLAGS"
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
15696 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
15697 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes
; then
15699 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
15704 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
15705 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then :
15706 $as_echo_n "(cached) " >&6
15709 libffi_cv_as_register_pseudo_op
=unknown
15710 # Check if we have .register
15711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15712 /* end confdefs.h. */
15717 asm (".register %g2, #scratch");
15722 if ac_fn_c_try_compile
"$LINENO"; then :
15723 libffi_cv_as_register_pseudo_op
=yes
15725 libffi_cv_as_register_pseudo_op
=no
15727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
15731 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
15732 if test "x$libffi_cv_as_register_pseudo_op" = xyes
; then
15734 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15741 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15742 if test "${libffi_cv_as_x86_pcrel+set}" = set; then :
15743 $as_echo_n "(cached) " >&6
15746 libffi_cv_as_x86_pcrel
=no
15747 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15748 if $CC $CFLAGS -c conftest.s
> /dev
/null
2>&1; then
15749 libffi_cv_as_x86_pcrel
=yes
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
15754 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
15755 if test "x$libffi_cv_as_x86_pcrel" = xyes
; then
15757 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler uses zarch features" >&5
15764 $as_echo_n "checking compiler uses zarch features... " >&6; }
15765 if test "${libffi_cv_as_s390_zarch+set}" = set; then :
15766 $as_echo_n "(cached) " >&6
15769 libffi_cv_as_s390_zarch
=no
15770 echo 'void foo(void) { bar(); bar(); }' > conftest.c
15771 if $CC $CFLAGS -S conftest.c
> /dev
/null
2>&1; then
15772 if grep -q brasl conftest.s
; then
15773 libffi_cv_as_s390_zarch
=yes
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_s390_zarch" >&5
15779 $as_echo "$libffi_cv_as_s390_zarch" >&6; }
15780 if test "x$libffi_cv_as_s390_zarch" = xyes
; then
15782 $as_echo "#define HAVE_AS_S390_ZARCH 1" >>confdefs.h
15788 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
15789 # Check whether --enable-pax_emutramp was given.
15790 if test "${enable_pax_emutramp+set}" = set; then :
15791 enableval
=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
15793 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
15799 FFI_EXEC_TRAMPOLINE_TABLE
=0
15801 *arm
*-apple-darwin* | aarch64-apple-darwin
*)
15802 FFI_EXEC_TRAMPOLINE_TABLE
=1
15804 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
15807 *-apple-darwin1* |
*-*-freebsd* |
*-*-kfreebsd* |
*-*-openbsd* |
*-pc-solaris*)
15809 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
15813 if test x
$FFI_EXEC_TRAMPOLINE_TABLE = x1
; then
15814 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
=
15815 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
='#'
15817 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
='#'
15818 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
=
15823 if test x
$TARGET = xX86_64
; then
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking toolchain supports unwind section type" >&5
15825 $as_echo_n "checking toolchain supports unwind section type... " >&6; }
15826 if test "${libffi_cv_as_x86_64_unwind_section_type+set}" = set; then :
15827 $as_echo_n "(cached) " >&6
15830 cat > conftest1.s
<< EOF
15835 .section .eh_frame,"a",@unwind
15839 cat > conftest2.c
<< EOF
15844 libffi_cv_as_x86_64_unwind_section_type
=no
15845 # we ensure that we can compile _and_ link an assembly file containing an @unwind section
15846 # since the compiler can support it and not the linker (ie old binutils)
15847 if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s
> /dev
/null
2>&1 && \
15848 $CC conftest2.c conftest1.o
> /dev
/null
2>&1 ; then
15849 libffi_cv_as_x86_64_unwind_section_type
=yes
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
15854 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
15855 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes
; then
15857 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15862 if test "x$GCC" = "xyes"; then
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15864 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15865 if test "${libffi_cv_ro_eh_frame+set}" = set; then :
15866 $as_echo_n "(cached) " >&6
15869 libffi_cv_ro_eh_frame
=no
15870 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15871 if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c
> /dev
/null
2>&1; then
15872 objdump
-h conftest.o
> conftest.dump
2>&1
15873 libffi_eh_frame_line
=`grep -n eh_frame conftest.dump | cut -d: -f 1`
15874 if test "x$libffi_eh_frame_line" != "x"; then
15875 libffi_test_line
=`expr $libffi_eh_frame_line + 1`p
15876 sed -n $libffi_test_line conftest.dump
> conftest.line
15877 if grep READONLY conftest.line
> /dev
/null
; then
15878 libffi_cv_ro_eh_frame
=yes
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
15886 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
15887 if test "x$libffi_cv_ro_eh_frame" = xyes
; then
15889 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
15892 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15896 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
15901 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
15902 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then :
15903 $as_echo_n "(cached) " >&6
15906 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
15907 libffi_cv_hidden_visibility_attribute
=no
15908 if { ac_try
='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
15909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15910 (eval $ac_try) 2>&5
15912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15913 test $ac_status = 0; }; }; then
15914 if grep '\.hidden.*foo' conftest.s
>/dev
/null
; then
15915 libffi_cv_hidden_visibility_attribute
=yes
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
15922 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
15923 if test $libffi_cv_hidden_visibility_attribute = yes; then
15925 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
15937 for i
in $SOURCES; do
15938 TARGET_OBJ
="${TARGET_OBJ} src/${TARGETDIR}/"`echo $i | sed 's/[cS]$/lo/'`
15945 # Check whether --enable-debug was given.
15946 if test "${enable_debug+set}" = set; then :
15947 enableval
=$enable_debug; if test "$enable_debug" = "yes"; then
15949 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
15954 if test "$enable_debug" = "yes"; then
15956 FFI_DEBUG_FALSE
='#'
15963 # Check whether --enable-structs was given.
15964 if test "${enable_structs+set}" = set; then :
15965 enableval
=$enable_structs; if test "$enable_structs" = "no"; then
15967 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
15972 if test "$enable_debug" = "yes"; then
15974 FFI_DEBUG_FALSE
='#'
15981 # Check whether --enable-raw-api was given.
15982 if test "${enable_raw_api+set}" = set; then :
15983 enableval
=$enable_raw_api; if test "$enable_raw_api" = "no"; then
15985 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
15991 # Check whether --enable-purify-safety was given.
15992 if test "${enable_purify_safety+set}" = set; then :
15993 enableval
=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
15995 $as_echo "#define USING_PURIFY 1" >>confdefs.h
16001 if test -n "$with_cross_host" &&
16002 test x
"$with_cross_host" != x
"no"; then
16003 toolexecdir
='$(exec_prefix)/$(target_alias)'
16004 toolexeclibdir
='$(toolexecdir)/lib'
16006 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
16007 toolexeclibdir
='$(libdir)'
16009 multi_os_directory
=`$CC -print-multi-os-directory`
16010 case $multi_os_directory in
16011 .
) ;; # Avoid trailing /.
16012 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
16017 if test "${multilib}" = "yes"; then
16018 multilib_arg
="--enable-multilib"
16023 # Check linker support.
16026 # Check whether --with-gnu-ld was given.
16027 if test "${with_gnu_ld+set}" = set; then :
16028 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
16034 if test "$GCC" = yes; then
16035 # Check if gcc -print-prog-name=ld gives a path.
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16037 $as_echo_n "checking for ld used by $CC... " >&6; }
16040 # gcc leaves a trailing carriage return which upsets mingw
16041 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16043 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
16046 # Accept absolute paths.
16048 re_direlt
='/[^/][^/]*/\.\./'
16049 # Canonicalize the pathname of ld
16050 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16051 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
16052 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16054 test -z "$LD" && LD
="$ac_prog"
16057 # If it fails, then pretend we aren't using GCC.
16061 # If it is relative, then search for the first ld in PATH.
16062 with_gnu_ld
=unknown
16065 elif test "$with_gnu_ld" = yes; then
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16067 $as_echo_n "checking for GNU ld... " >&6; }
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16070 $as_echo_n "checking for non-GNU ld... " >&6; }
16072 if test "${lt_cv_path_LD+set}" = set; then :
16073 $as_echo_n "(cached) " >&6
16075 if test -z "$LD"; then
16076 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
16077 for ac_dir
in $PATH; do
16079 test -z "$ac_dir" && ac_dir
=.
16080 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
16081 lt_cv_path_LD
="$ac_dir/$ac_prog"
16082 # Check to see if the program is GNU ld. I'd rather use --version,
16083 # but apparently some variants of GNU ld only accept -v.
16084 # Break only if it was the GNU/non-GNU ld that we prefer.
16085 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16086 *GNU
* |
*'with BFD'*)
16087 test "$with_gnu_ld" != no
&& break
16090 test "$with_gnu_ld" != yes && break
16097 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
16101 LD
="$lt_cv_path_LD"
16102 if test -n "$LD"; then
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16104 $as_echo "$LD" >&6; }
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16107 $as_echo "no" >&6; }
16109 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16111 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16112 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16113 $as_echo_n "(cached) " >&6
16115 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16116 case `$LD -v 2>&1 </dev/null` in
16117 *GNU
* |
*'with BFD'*)
16118 lt_cv_prog_gnu_ld
=yes
16121 lt_cv_prog_gnu_ld
=no
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16126 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16127 with_gnu_ld
=$lt_cv_prog_gnu_ld
16135 # If we're not using GNU ld, then there's no point in even trying these
16136 # tests. Check for that first. We should have already tested for gld
16137 # by now (in libtool), but require it now just to be safe...
16138 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS
=''
16139 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS
=''
16143 # The name set by libtool depends on the version of libtool. Shame on us
16144 # for depending on an impl detail, but c'est la vie. Older versions used
16145 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16146 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16147 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16148 # set (hence we're using an older libtool), then set it.
16149 if test x
${with_gnu_ld+set} != xset
; then
16150 if test x
${ac_cv_prog_gnu_ld+set} != xset
; then
16151 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16154 with_gnu_ld
=$ac_cv_prog_gnu_ld
16158 # Start by getting the version number. I think the libtool test already
16159 # does some of this, but throws away the result.
16160 libat_ld_is_gold
=no
16161 if $LD --version 2>/dev
/null |
grep 'GNU gold'> /dev
/null
2>&1; then
16162 libat_ld_is_gold
=yes
16165 ldver
=`$LD --version 2>/dev/null |
16166 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
16168 libat_gnu_ld_version
=`echo $ldver | \
16169 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16171 # Set --gc-sections.
16172 if test "$with_gnu_ld" = "notbroken"; then
16173 # GNU ld it is! Joy and bunny rabbits!
16175 # All these tests are for C++; save the language and the compiler flags.
16176 # Need to do this so that g++ won't try to link in libstdc++
16177 ac_test_CFLAGS
="${CFLAGS+set}"
16178 ac_save_CFLAGS
="$CFLAGS"
16179 CFLAGS
='-x c++ -Wl,--gc-sections'
16181 # Check for -Wl,--gc-sections
16182 # XXX This test is broken at the moment, as symbols required for linking
16183 # are now in libsupc++ (not built yet). In addition, this test has
16184 # cored on solaris in the past. In addition, --gc-sections doesn't
16185 # really work at the moment (keeps on discarding used sections, first
16186 # .eh_frame and now some of the glibc sections for iconv).
16187 # Bzzzzt. Thanks for playing, maybe next time.
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16189 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16190 if test "$cross_compiling" = yes; then :
16191 ac_sectionLDflags
=yes
16193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16194 /* end confdefs.h. */
16204 if ac_fn_c_try_run
"$LINENO"; then :
16205 ac_sectionLDflags
=yes
16207 ac_sectionLDflags
=no
16209 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16210 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16213 if test "$ac_test_CFLAGS" = set; then
16214 CFLAGS
="$ac_save_CFLAGS"
16216 # this is the suspicious part
16219 if test "$ac_sectionLDflags" = "yes"; then
16220 SECTION_LDFLAGS
="-Wl,--gc-sections $SECTION_LDFLAGS"
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16223 $as_echo "$ac_sectionLDflags" >&6; }
16226 # Set linker optimization flags.
16227 if test x
"$with_gnu_ld" = x
"yes"; then
16228 OPT_LDFLAGS
="-Wl,-O1 $OPT_LDFLAGS"
16236 # Check whether --enable-symvers was given.
16237 if test "${enable_symvers+set}" = set; then :
16238 enableval
=$enable_symvers;
16239 case "$enableval" in
16240 yes|no|gnu
*|sun
) ;;
16241 *) as_fn_error
"Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16250 # If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we
16251 # don't know enough about $LD to do tricks...
16254 # Turn a 'yes' into a suitable default.
16255 if test x
$enable_symvers = xyes
; then
16256 # FIXME The following test is too strict, in theory.
16257 if test $enable_shared = no ||
test "x$LD" = x
; then
16260 if test $with_gnu_ld = yes ; then
16263 case ${target_os} in
16264 # Sun symbol versioning exists since Solaris 2.5.
16265 solaris2.
[5-9]* | solaris2.1
[0-9]*)
16266 enable_symvers
=sun
;;
16268 enable_symvers
=no
;;
16274 # Check if 'sun' was requested on non-Solaris 2 platforms.
16275 if test x
$enable_symvers = xsun
; then
16276 case ${target_os} in
16281 # Unlikely to work.
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16283 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16285 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16287 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16293 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16294 if test $enable_symvers != no
; then
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16296 $as_echo_n "checking for shared libgcc... " >&6; }
16297 ac_save_CFLAGS
="$CFLAGS"
16299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16300 /* end confdefs.h. */
16310 if ac_fn_c_try_link
"$LINENO"; then :
16311 libat_shared_libgcc
=yes
16313 libat_shared_libgcc
=no
16315 rm -f core conftest.err conftest.
$ac_objext \
16316 conftest
$ac_exeext conftest.
$ac_ext
16317 CFLAGS
="$ac_save_CFLAGS"
16318 if test $libat_shared_libgcc = no
; then
16319 cat > conftest.c
<<EOF
16320 int main (void) { return 0; }
16322 libat_libgcc_s_suffix
=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16323 -shared -shared-libgcc -o conftest.so \
16324 conftest.c -v 2>&1 >/dev/null \
16325 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16326 rm -f conftest.c conftest.so
16327 if test x
${libat_libgcc_s_suffix+set} = xset
; then
16328 CFLAGS
=" -lgcc_s$libat_libgcc_s_suffix"
16329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16330 /* end confdefs.h. */
16340 if ac_fn_c_try_link
"$LINENO"; then :
16341 libat_shared_libgcc
=yes
16343 rm -f core conftest.err conftest.
$ac_objext \
16344 conftest
$ac_exeext conftest.
$ac_ext
16345 CFLAGS
="$ac_save_CFLAGS"
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
16349 $as_echo "$libat_shared_libgcc" >&6; }
16352 # For GNU ld, we need at least this version. The format is described in
16353 # LIBAT_CHECK_LINKER_FEATURES above.
16354 libat_min_gnu_ld_version
=21400
16355 # XXXXXXXXXXX libat_gnu_ld_version=21390
16357 # Check to see if unspecified "yes" value can win, given results above.
16358 # Change "yes" into either "no" or a style name.
16359 if test $enable_symvers != no
&& test $libat_shared_libgcc = yes; then
16360 if test $with_gnu_ld = yes; then
16361 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
16363 elif test $libat_ld_is_gold = yes ; then
16366 # The right tools, the right setup, but too old. Fallbacks?
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
16368 $as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16370 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16372 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
16374 $as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
16375 if test $libat_gnu_ld_version -ge 21200 ; then
16376 # Globbing fix is present, proper block support is not.
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16378 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16383 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16387 elif test $enable_symvers = sun
; then
16388 : All interesting versions of Sun ld support sun style symbol versioning.
16390 # just fail for now
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16392 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16394 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16396 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16398 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16402 if test $enable_symvers = gnu
; then
16404 $as_echo "#define LIBAT_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16408 if test $enable_symvers != no
; then
16409 LIBAT_BUILD_VERSIONED_SHLIB_TRUE
=
16410 LIBAT_BUILD_VERSIONED_SHLIB_FALSE
='#'
16412 LIBAT_BUILD_VERSIONED_SHLIB_TRUE
='#'
16413 LIBAT_BUILD_VERSIONED_SHLIB_FALSE
=
16416 if test $enable_symvers = gnu
; then
16417 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE
=
16418 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE
='#'
16420 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE
='#'
16421 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE
=
16424 if test $enable_symvers = sun
; then
16425 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE
=
16426 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE
='#'
16428 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE
='#'
16429 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE
=
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16433 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16436 ac_config_commands
="$ac_config_commands include"
16438 ac_config_commands
="$ac_config_commands src"
16441 ac_config_links
="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
16444 ac_config_files
="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
16447 cat >confcache
<<\_ACEOF
16448 # This file is a shell script that caches the results of configure
16449 # tests run on this system so they can be shared between configure
16450 # scripts and configure runs, see configure's option --config-cache.
16451 # It is not useful on other systems. If it contains results you don't
16452 # want to keep, you may remove or edit it.
16454 # config.status only pays attention to the cache file if you give it
16455 # the --recheck option to rerun configure.
16457 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16458 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16459 # following values.
16463 # The following way of writing the cache mishandles newlines in values,
16464 # but we know of no workaround that is simple, portable, and efficient.
16465 # So, we kill variables containing newlines.
16466 # Ultrix sh set writes to stderr and can't be redirected directly,
16467 # and sets the high bit in the cache file unless we assign to the vars.
16469 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16470 eval ac_val
=\$
$ac_var
16474 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16475 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16478 _ | IFS | as_nl
) ;; #(
16479 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16480 *) { eval $ac_var=; unset $ac_var;} ;;
16486 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16487 *${as_nl}ac_space
=\
*)
16488 # `set' does not quote correctly, so add quotes: double-quote
16489 # substitution turns \\\\ into \\, and sed turns \\ into \.
16492 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16495 # `set' quotes correctly as required by POSIX, so do not add quotes.
16496 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16505 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16507 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16509 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16510 if test -w "$cache_file"; then
16511 test "x$cache_file" != "x/dev/null" &&
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16513 $as_echo "$as_me: updating cache $cache_file" >&6;}
16514 cat confcache
>$cache_file
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16517 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16522 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16523 # Let make expand exec_prefix.
16524 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16526 DEFS
=-DHAVE_CONFIG_H
16530 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16531 # 1. Remove the extension, and $U if already installed.
16532 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16533 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16534 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16535 # will be set to the directory where LIBOBJS objects are built.
16536 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16537 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16539 LIBOBJS
=$ac_libobjs
16541 LTLIBOBJS
=$ac_ltlibobjs
16544 if test -n "$EXEEXT"; then
16546 am__EXEEXT_FALSE
='#'
16548 am__EXEEXT_TRUE
='#'
16552 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16553 as_fn_error
"conditional \"BUILD_INFO\" was never defined.
16554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16556 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16557 as_fn_error
"conditional \"GENINSRC\" was never defined.
16558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16560 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16561 as_fn_error
"conditional \"AMDEP\" was never defined.
16562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16564 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16565 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
16566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16568 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16569 as_fn_error
"conditional \"am__fastdepCXX\" was never defined.
16570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16572 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16573 as_fn_error
"conditional \"am__fastdepCCAS\" was never defined.
16574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16576 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16577 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
16578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16580 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16581 as_fn_error
"conditional \"TESTSUBDIR\" was never defined.
16582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16585 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
16586 as_fn_error
"conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
16587 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16589 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
16590 as_fn_error
"conditional \"FFI_DEBUG\" was never defined.
16591 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16593 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
16594 as_fn_error
"conditional \"FFI_DEBUG\" was never defined.
16595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16597 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_FALSE}"; then
16598 as_fn_error
"conditional \"LIBAT_BUILD_VERSIONED_SHLIB\" was never defined.
16599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16601 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16602 as_fn_error
"conditional \"LIBAT_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16603 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16605 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16606 as_fn_error
"conditional \"LIBAT_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16610 : ${CONFIG_STATUS=./config.status}
16612 ac_clean_files_save
=$ac_clean_files
16613 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16615 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16617 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16619 # Generated by $as_me.
16620 # Run this file to recreate the current configuration.
16621 # Compiler output produced by configure, useful for debugging
16622 # configure, is in config.log if it exists.
16625 ac_cs_recheck=false
16628 SHELL=\${CONFIG_SHELL-$SHELL}
16631 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16632 ## -------------------- ##
16633 ## M4sh Initialization. ##
16634 ## -------------------- ##
16636 # Be more Bourne compatible
16637 DUALCASE
=1; export DUALCASE
# for MKS sh
16638 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16641 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16642 # is contrary to our usage. Disable this feature.
16643 alias -g '${1+"$@"}'='"$@"'
16644 setopt NO_GLOB_SUBST
16646 case `(set -o) 2>/dev/null` in #(
16658 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16659 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16660 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16661 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16662 # Prefer a ksh shell builtin over an external printf program on Solaris,
16663 # but without wasting forks for bash or zsh.
16664 if test -z "$BASH_VERSION$ZSH_VERSION" \
16665 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16666 as_echo='print
-r --'
16667 as_echo_n='print
-rn --'
16668 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16669 as_echo='printf %s
\n'
16670 as_echo_n='printf %s
'
16672 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16673 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16674 as_echo_n='/usr
/ucb
/echo -n'
16676 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16677 as_echo_n_body='eval
16681 expr "X$arg" : "X\\(.*\\)$as_nl";
16682 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16684 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16686 export as_echo_n_body
16687 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16689 export as_echo_body
16690 as_echo='sh
-c $as_echo_body as_echo
'
16693 # The user is always right.
16694 if test "${PATH_SEPARATOR+set}" != set; then
16696 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16697 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16704 # We need space, tab and new line, in precisely that order. Quoting is
16705 # there to prevent editors from complaining about space-tab.
16706 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16707 # splitting by setting IFS to empty value.)
16710 # Find who we are. Look in the path if we contain no directory separator.
16712 *[\\/]* ) as_myself=$0 ;;
16713 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16714 for as_dir in $PATH
16717 test -z "$as_dir" && as_dir=.
16718 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16724 # We did not find ourselves, most probably we were run as `sh COMMAND'
16725 # in which case we are not to be found in the path.
16726 if test "x$as_myself" = x
; then
16729 if test ! -f "$as_myself"; then
16730 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16734 # Unset variables that we do not need and which cause bugs (e.g. in
16735 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16736 # suppresses any "Segmentation fault" message there. '((' could
16737 # trigger a bug in pdksh 5.2.14.
16738 for as_var
in BASH_ENV ENV MAIL MAILPATH
16739 do eval test x\
${$as_var+set} = xset \
16740 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16753 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16756 # as_fn_error ERROR [LINENO LOG_FD]
16757 # ---------------------------------
16758 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16759 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16760 # script with status $?, using 1 if that was 0.
16763 as_status
=$?
; test $as_status -eq 0 && as_status
=1
16765 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16766 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16768 $as_echo "$as_me: error: $1" >&2
16769 as_fn_exit
$as_status
16773 # as_fn_set_status STATUS
16774 # -----------------------
16775 # Set $? to STATUS, without forking.
16776 as_fn_set_status
()
16779 } # as_fn_set_status
16781 # as_fn_exit STATUS
16782 # -----------------
16783 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16787 as_fn_set_status
$1
16793 # Portably unset VAR.
16796 { eval $1=; unset $1;}
16798 as_unset
=as_fn_unset
16799 # as_fn_append VAR VALUE
16800 # ----------------------
16801 # Append the text in VALUE to the end of the definition contained in VAR. Take
16802 # advantage of any shell optimizations that allow amortized linear growth over
16803 # repeated appends, instead of the typical quadratic growth present in naive
16805 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16806 eval 'as_fn_append ()
16817 # as_fn_arith ARG...
16818 # ------------------
16819 # Perform arithmetic evaluation on the ARGs, and store the result in the
16820 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16821 # must be portable across $(()) and expr.
16822 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16823 eval 'as_fn_arith ()
16830 as_val
=`expr "$@" || test $? -eq 1`
16835 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16836 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16842 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16843 as_basename
=basename
16848 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16854 as_me
=`$as_basename -- "$0" ||
16855 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16856 X"$0" : 'X\(//\)$' \| \
16857 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16859 sed '/^.*\/\([^/][^/]*\)\/*$/{
16873 # Avoid depending upon Character Ranges.
16874 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16875 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16876 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16877 as_cr_digits
='0123456789'
16878 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16880 ECHO_C
= ECHO_N
= ECHO_T
=
16881 case `echo -n x` in #(((((
16883 case `echo 'xy\c'` in
16884 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16886 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16893 rm -f conf$$ conf$$.exe conf$$.
file
16894 if test -d conf$$.dir
; then
16895 rm -f conf$$.dir
/conf$$.
file
16898 mkdir conf$$.dir
2>/dev
/null
16900 if (echo >conf$$.
file) 2>/dev
/null
; then
16901 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16903 # ... but there are two gotchas:
16904 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16905 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16906 # In both cases, we have to default to `cp -p'.
16907 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16909 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16917 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16918 rmdir conf$$.dir
2>/dev
/null
16923 # Create "$as_dir" as a directory, including parents if necessary.
16928 -*) as_dir
=.
/$as_dir;;
16930 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16934 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16935 *) as_qdir
=$as_dir;;
16937 as_dirs
="'$as_qdir' $as_dirs"
16938 as_dir
=`$as_dirname -- "$as_dir" ||
16939 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16940 X"$as_dir" : 'X\(//\)[^/]' \| \
16941 X"$as_dir" : 'X\(//\)$' \| \
16942 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16943 $as_echo X"$as_dir" |
16944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16948 /^X\(\/\/\)[^/].*/{
16961 test -d "$as_dir" && break
16963 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16964 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
16968 if mkdir
-p .
2>/dev
/null
; then
16969 as_mkdir_p
='mkdir -p "$as_dir"'
16971 test -d .
/-p && rmdir .
/-p
16975 if test -x / >/dev
/null
2>&1; then
16976 as_test_x
='test -x'
16978 if ls -dL / >/dev
/null
2>&1; then
16985 if test -d "$1"; then
16991 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16992 ???[sx]*):;;*)false;;esac;fi
16996 as_executable_p
=$as_test_x
16998 # Sed expression to map a string onto a valid CPP name.
16999 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17001 # Sed expression to map a string onto a valid variable name.
17002 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17006 ## ----------------------------------- ##
17007 ## Main body of $CONFIG_STATUS script. ##
17008 ## ----------------------------------- ##
17010 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17013 # Save the log message, to keep $0 and so on meaningful, and to
17014 # report actual input values of CONFIG_FILES etc. instead of their
17015 # values after options handling.
17017 This file was extended by libffi $as_me 3.99999, which was
17018 generated by GNU Autoconf 2.64. Invocation command line was
17020 CONFIG_FILES = $CONFIG_FILES
17021 CONFIG_HEADERS = $CONFIG_HEADERS
17022 CONFIG_LINKS = $CONFIG_LINKS
17023 CONFIG_COMMANDS = $CONFIG_COMMANDS
17026 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17031 case $ac_config_files in *"
17032 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17035 case $ac_config_headers in *"
17036 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17041 # Files that config.status was made for.
17042 config_files="$ac_config_files"
17043 config_headers="$ac_config_headers"
17044 config_links="$ac_config_links"
17045 config_commands="$ac_config_commands"
17049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17051 \`$as_me' instantiates files and other configuration actions
17052 from templates according to the current configuration. Unless the files
17053 and actions are specified as TAGs, all are instantiated by default.
17055 Usage: $0 [OPTION]... [TAG]...
17057 -h, --help print this help, then exit
17058 -V, --version print version number and configuration settings, then exit
17059 -q, --quiet, --silent
17060 do not print progress messages
17061 -d, --debug don't remove temporary files
17062 --recheck update $as_me by reconfiguring in the same conditions
17063 --file=FILE[:TEMPLATE]
17064 instantiate the configuration file FILE
17065 --header=FILE[:TEMPLATE]
17066 instantiate the configuration header FILE
17068 Configuration files:
17071 Configuration headers:
17074 Configuration links:
17077 Configuration commands:
17080 Report bugs to <http://github.com/atgreen/libffi/issues>."
17083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17085 libffi config.status 3.99999
17086 configured by $0, generated by GNU Autoconf 2.64,
17087 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17089 Copyright (C) 2009 Free Software Foundation, Inc.
17090 This config.status script is free software; the Free Software Foundation
17091 gives unlimited permission to copy, distribute and modify it."
17098 test -n "\$AWK" || AWK=awk
17101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17102 # The default lists apply if the user does not specify any file.
17108 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17109 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17120 # Handling of the options.
17121 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17123 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17124 $as_echo "$ac_cs_version"; exit ;;
17125 --debug |
--debu |
--deb |
--de |
--d |
-d )
17127 --file |
--fil |
--fi |
--f )
17130 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17132 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17133 ac_need_defaults
=false
;;
17134 --header |
--heade |
--head |
--hea )
17137 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17139 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17140 ac_need_defaults
=false
;;
17142 # Conflict between --help and --header
17143 as_fn_error
"ambiguous option: \`$1'
17144 Try \`$0 --help' for more information.";;
17145 --help |
--hel |
-h )
17146 $as_echo "$ac_cs_usage"; exit ;;
17147 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17148 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17151 # This is an error.
17152 -*) as_fn_error
"unrecognized option: \`$1'
17153 Try \`$0 --help' for more information." ;;
17155 *) as_fn_append ac_config_targets
" $1"
17156 ac_need_defaults
=false
;;
17162 ac_configure_extra_args
=
17164 if $ac_cs_silent; then
17166 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17171 if \$ac_cs_recheck; then
17172 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17174 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17175 CONFIG_SHELL='$SHELL'
17176 export CONFIG_SHELL
17181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17185 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17186 ## Running $as_me. ##
17192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17200 with_multisubdir="$with_multisubdir"
17201 with_multisrctop="$with_multisrctop"
17202 with_target_subdir="$with_target_subdir"
17203 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17204 multi_basedir="$multi_basedir"
17205 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17208 GFORTRAN="$GFORTRAN"
17210 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17213 # The HP-UX ksh and POSIX shell print the target directory to stdout
17214 # if CDPATH is set.
17215 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17217 sed_quote_subst='$sed_quote_subst'
17218 double_quote_subst='$double_quote_subst'
17219 delay_variable_subst='$delay_variable_subst'
17220 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17221 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17222 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17223 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17224 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17225 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17226 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17227 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17228 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17229 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17230 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17231 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17232 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17233 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17234 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17235 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17236 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17237 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17238 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17239 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17240 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17241 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17242 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17243 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17244 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17245 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17246 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17247 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17248 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17249 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17250 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17251 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17252 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17253 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17254 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17255 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17256 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17257 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17258 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17259 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17260 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17261 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17262 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17263 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17264 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17265 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17266 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17267 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17268 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17269 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17270 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17271 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17272 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17273 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17274 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17275 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17276 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17277 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17278 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17279 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17280 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17281 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17282 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17283 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17284 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17285 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17286 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17287 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17288 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17289 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17290 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17291 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17292 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17293 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17294 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17295 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17296 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17297 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17298 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17299 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17300 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17301 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17302 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17303 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17304 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17305 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17306 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17307 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17308 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17309 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17310 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17311 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17312 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17313 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17314 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17315 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17316 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17317 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17318 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17319 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17320 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17321 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17322 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17323 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17324 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17325 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17326 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17327 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17328 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17329 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17330 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17331 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17332 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17333 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17334 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17335 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17336 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17337 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17338 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17339 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17340 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17341 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17342 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17343 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17344 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17345 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17346 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17347 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17348 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17349 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17350 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17351 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17352 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17353 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17354 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17355 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17356 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17357 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17358 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17359 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17360 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17361 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17362 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17363 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17364 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17365 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17366 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17367 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17368 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17369 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17370 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17371 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17372 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17373 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17374 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17375 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17376 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17377 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17378 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17379 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17380 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17381 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17382 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17383 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17384 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17385 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17386 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17387 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17388 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17389 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17390 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17391 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17392 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17393 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17394 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17397 LTCFLAGS='$LTCFLAGS'
17398 compiler='$compiler_DEFAULT'
17400 # A function that is used when there is no print builtin or printf.
17401 func_fallback_echo ()
17403 eval 'cat <<_LTECHO_EOF
17408 # Quote evaled strings.
17422 deplibs_check_method \
17431 lt_cv_sys_global_symbol_pipe \
17432 lt_cv_sys_global_symbol_to_cdecl \
17433 lt_cv_sys_global_symbol_to_c_name_address \
17434 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17435 lt_prog_compiler_no_builtin_flag \
17436 lt_prog_compiler_wl \
17437 lt_prog_compiler_pic \
17438 lt_prog_compiler_static \
17439 lt_cv_prog_compiler_c_o \
17447 export_dynamic_flag_spec \
17448 whole_archive_flag_spec \
17449 compiler_needs_object \
17451 allow_undefined_flag \
17452 no_undefined_flag \
17453 hardcode_libdir_flag_spec \
17454 hardcode_libdir_flag_spec_ld \
17455 hardcode_libdir_separator \
17460 variables_saved_for_relink \
17462 library_names_spec \
17464 install_override_mode \
17468 compiler_lib_search_dirs \
17473 compiler_lib_search_path \
17477 lt_prog_compiler_no_builtin_flag_CXX \
17478 lt_prog_compiler_wl_CXX \
17479 lt_prog_compiler_pic_CXX \
17480 lt_prog_compiler_static_CXX \
17481 lt_cv_prog_compiler_c_o_CXX \
17482 export_dynamic_flag_spec_CXX \
17483 whole_archive_flag_spec_CXX \
17484 compiler_needs_object_CXX \
17486 allow_undefined_flag_CXX \
17487 no_undefined_flag_CXX \
17488 hardcode_libdir_flag_spec_CXX \
17489 hardcode_libdir_flag_spec_ld_CXX \
17490 hardcode_libdir_separator_CXX \
17491 fix_srcfile_path_CXX \
17492 exclude_expsyms_CXX \
17493 include_expsyms_CXX \
17494 file_list_spec_CXX \
17495 compiler_lib_search_dirs_CXX \
17496 predep_objects_CXX \
17497 postdep_objects_CXX \
17500 compiler_lib_search_path_CXX; do
17501 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17502 *[\\\\\\\`\\"\\\$]*)
17503 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17506 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17511 # Double-quote double-evaled strings.
17512 for var in reload_cmds \
17513 old_postinstall_cmds \
17514 old_postuninstall_cmds \
17516 extract_expsyms_cmds \
17517 old_archive_from_new_cmds \
17518 old_archive_from_expsyms_cmds \
17520 archive_expsym_cmds \
17522 module_expsym_cmds \
17523 export_symbols_cmds \
17526 postuninstall_cmds \
17528 sys_lib_search_path_spec \
17529 sys_lib_dlsearch_path_spec \
17531 old_archive_cmds_CXX \
17532 old_archive_from_new_cmds_CXX \
17533 old_archive_from_expsyms_cmds_CXX \
17535 archive_expsym_cmds_CXX \
17537 module_expsym_cmds_CXX \
17538 export_symbols_cmds_CXX \
17539 prelink_cmds_CXX; do
17540 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17541 *[\\\\\\\`\\"\\\$]*)
17542 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17545 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17550 ac_aux_dir='$ac_aux_dir'
17551 xsi_shell='$xsi_shell'
17552 lt_shell_append='$lt_shell_append'
17554 # See if we are running on zsh, and set the options which allow our
17555 # commands through without removal of \ escapes INIT.
17556 if test -n "\${ZSH_VERSION+set}" ; then
17557 setopt NO_GLOB_SUBST
17563 TIMESTAMP='$TIMESTAMP'
17571 TARGETDIR="$TARGETDIR"
17575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17577 # Handling of arguments.
17578 for ac_config_target
in $ac_config_targets
17580 case $ac_config_target in
17581 "fficonfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS fficonfig.h" ;;
17582 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
17583 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17584 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
17585 "include") CONFIG_COMMANDS
="$CONFIG_COMMANDS include" ;;
17586 "src") CONFIG_COMMANDS
="$CONFIG_COMMANDS src" ;;
17587 "include/ffitarget.h") CONFIG_LINKS
="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
17588 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
17589 "include/ffi.h") CONFIG_FILES
="$CONFIG_FILES include/ffi.h" ;;
17590 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17591 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
17592 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
17593 "libffi.pc") CONFIG_FILES
="$CONFIG_FILES libffi.pc" ;;
17595 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17600 # If the user did not use the arguments to specify the items to instantiate,
17601 # then the envvar interface is used. Set only those that are not.
17602 # We use the long form for the default assignment because of an extremely
17603 # bizarre bug on SunOS 4.1.3.
17604 if $ac_need_defaults; then
17605 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17606 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17607 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
17608 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17611 # Have a temporary directory for convenience. Make it in the build tree
17612 # simply because there is no reason against having it here, and in addition,
17613 # creating and moving files from /tmp can sometimes cause problems.
17614 # Hook for its removal unless debugging.
17615 # Note that there is a small window in which the directory will not be cleaned:
17616 # after its creation but before its name has been assigned to `$tmp'.
17620 trap 'exit_status=$?
17621 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17623 trap 'as_fn_exit 1' 1 2 13 15
17625 # Create a (secure) tmp directory for tmp files.
17628 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17629 test -n "$tmp" && test -d "$tmp"
17632 tmp
=.
/conf$$
-$RANDOM
17633 (umask 077 && mkdir
"$tmp")
17634 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
17636 # Set up the scripts for CONFIG_FILES section.
17637 # No need to generate them if there are no CONFIG_FILES.
17638 # This happens for instance with `./config.status config.h'.
17639 if test -n "$CONFIG_FILES"; then
17642 ac_cr
=`echo X | tr X '\015'`
17643 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17644 # But we know of no other shell where ac_cr would be empty at this
17645 # point, so we can use a bashism as a fallback.
17646 if test "x$ac_cr" = x
; then
17647 eval ac_cr
=\$
\'\\r
\'
17649 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17650 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17653 ac_cs_awk_cr
=$ac_cr
17656 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17661 echo "cat >conf$$subs.awk <<_ACEOF" &&
17662 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17664 } >conf$$subs.sh ||
17665 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17666 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17668 for ac_last_try in false false false false false :; do
17669 . ./conf$$subs.sh ||
17670 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17672 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17673 if test $ac_delim_n = $ac_delim_num; then
17675 elif $ac_last_try; then
17676 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17678 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17681 rm -f conf$$subs.sh
17683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17684 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
17688 s/^/S["/; s
/!.
*/"]=/
17698 s/\(.\{148\}\).*/\1/
17700 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17705 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17712 s/\(.\{148\}\).*/\1/
17714 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17718 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17723 ' <conf$$subs.awk | sed '
17728 ' >>$CONFIG_STATUS || ac_write_fail=1
17729 rm -f conf$$subs.awk
17730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17732 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
17733 for (key in S) S_is_set[key] = 1
17739 nfields = split(line, field, "@
")
17741 len = length(field[1])
17742 for (i = 2; i < nfields; i++) {
17744 keylen = length(key)
17745 if (S_is_set[key]) {
17747 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17748 len += length(value) + length(field[++i])
17759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17760 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17761 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17764 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
17765 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
17768 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17769 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
17770 # trailing colons and then remove the whole line if VPATH becomes empty
17771 # (actually we leave an empty line to preserve line numbers).
17772 if test "x
$srcdir" = x.; then
17773 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17774 s/:*\$(srcdir):*/:/
17775 s/:*\${srcdir}:*/:/
17777 s/^\([^=]*=[ ]*\):*/\1/
17783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17784 fi # test -n "$CONFIG_FILES"
17786 # Set up the scripts for CONFIG_HEADERS section.
17787 # No need to generate them if there are no CONFIG_HEADERS.
17788 # This happens for instance with `./config.status Makefile'.
17789 if test -n "$CONFIG_HEADERS"; then
17790 cat >"$tmp/defines.
awk" <<\_ACAWK ||
17794 # Transform confdefs.h into an awk script `defines.awk', embedded as
17795 # here-document in config.status, that substitutes the proper values into
17796 # config.h.in to produce config.h.
17798 # Create a delimiter string that does not exist in confdefs.h, to ease
17799 # handling of long lines.
17801 for ac_last_try in false false :; do
17802 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
17803 if test -z "$ac_t"; then
17805 elif $ac_last_try; then
17806 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
17808 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17812 # For the awk script, D is an array of macro values keyed by name,
17813 # likewise P contains macro parameters if any. Preserve backslash
17814 # newline sequences.
17816 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17818 s/.\{148\}/&'"$ac_delim"'/g
17821 s/^[ ]*#[ ]*define[ ][ ]*/ /
17828 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17830 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17834 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17835 D["\
1"]=" \
3\\\\\\n
"\\/p
17837 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17842 s/.\{148\}/&'"$ac_delim"'/g
17847 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17850 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17852 ' <confdefs.h | sed '
17853 s/'"$ac_delim"'/"\\\
17854 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17857 for (key in D) D_is_set[key] = 1
17860 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17862 split(line, arg, " ")
17863 if (arg[1] == "#") {
17867 defundef
= substr
(arg
[1], 2)
17870 split(mac1
, mac2
, "(") #)
17872 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17873 if (D_is_set
[macro
]) {
17874 # Preserve the white space surrounding the "#".
17875 print prefix
"define", macro P
[macro
] D
[macro
]
17878 # Replace #undef with comments. This is necessary, for example,
17879 # in the case of _POSIX_SOURCE, which is predefined and required
17880 # on some systems where configure will not decide to define it.
17881 if (defundef
== "undef") {
17882 print
"/*", prefix defundef
, macro
, "*/"
17890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17891 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
17892 fi # test -n "$CONFIG_HEADERS"
17895 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17900 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17902 case $ac_mode$ac_tag in
17904 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17905 :[FH
]-) ac_tag
=-:-;;
17906 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17923 -) ac_f
="$tmp/stdin";;
17924 *) # Look for the file first in the build tree, then in the source tree
17925 # (if the path is not absolute). The absolute path cannot be DOS-style,
17926 # because $ac_f cannot contain `:'.
17930 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17932 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
17934 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17935 as_fn_append ac_file_inputs
" '$ac_f'"
17938 # Let's still pretend it is `configure' which instantiates (i.e., don't
17939 # use $as_me), people would be surprised to read:
17940 # /* config.h. Generated by config.status. */
17941 configure_input
='Generated from '`
17942 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17944 if test x
"$ac_file" != x-
; then
17945 configure_input
="$ac_file. $configure_input"
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17947 $as_echo "$as_me: creating $ac_file" >&6;}
17949 # Neutralize special characters interpreted by sed in replacement strings.
17950 case $configure_input in #(
17951 *\
&* |
*\|
* |
*\\* )
17952 ac_sed_conf_input
=`$as_echo "$configure_input" |
17953 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17954 *) ac_sed_conf_input
=$configure_input;;
17958 *:-:* |
*:-) cat >"$tmp/stdin" \
17959 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
17964 ac_dir
=`$as_dirname -- "$ac_file" ||
17965 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17966 X"$ac_file" : 'X\(//\)[^/]' \| \
17967 X"$ac_file" : 'X\(//\)$' \| \
17968 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17969 $as_echo X"$ac_file" |
17970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17974 /^X\(\/\/\)[^/].*/{
17987 as_dir
="$ac_dir"; as_fn_mkdir_p
17991 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17993 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17994 # A ".." for each directory in $ac_dir_suffix.
17995 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17996 case $ac_top_builddir_sub in
17997 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17998 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18001 ac_abs_top_builddir
=$ac_pwd
18002 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18003 # for backward compatibility:
18004 ac_top_builddir
=$ac_top_build_prefix
18007 .
) # We are building in place.
18009 ac_top_srcdir
=$ac_top_builddir_sub
18010 ac_abs_top_srcdir
=$ac_pwd ;;
18011 [\\/]* | ?
:[\\/]* ) # Absolute name.
18012 ac_srcdir
=$srcdir$ac_dir_suffix;
18013 ac_top_srcdir
=$srcdir
18014 ac_abs_top_srcdir
=$srcdir ;;
18015 *) # Relative name.
18016 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18017 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18018 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18020 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18030 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18031 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18033 ac_MKDIR_P
=$MKDIR_P
18035 [\\/$
]* | ?
:[\\/]* ) ;;
18036 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18041 # If the template does not know about datarootdir, expand it.
18042 # FIXME: This hack should be removed a few years after 2.60.
18043 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18054 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18055 *datarootdir
*) ac_datarootdir_seen
=yes;;
18056 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18058 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18061 ac_datarootdir_hack='
18062 s&@datadir@&$datadir&g
18063 s&@docdir@&$docdir&g
18064 s&@infodir@&$infodir&g
18065 s&@localedir@&$localedir&g
18066 s&@mandir@&$mandir&g
18067 s&\\\${datarootdir}&$datarootdir&g' ;;
18071 # Neutralize VPATH when `$srcdir' = `.'.
18072 # Shell code in configure.ac might set extrasub.
18073 # FIXME: do we really want to maintain this feature?
18074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18075 ac_sed_extra="$ac_vpsub
18078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18080 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18081 s|@configure_input@|
$ac_sed_conf_input|
;t t
18082 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18083 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18084 s
&@srcdir@
&$ac_srcdir&;t t
18085 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18086 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18087 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18088 s
&@builddir@
&$ac_builddir&;t t
18089 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18090 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18091 s
&@INSTALL@
&$ac_INSTALL&;t t
18092 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18093 $ac_datarootdir_hack
18095 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
18096 || as_fn_error "could not create
$ac_file" "$LINENO" 5
18098 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18099 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
18100 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18102 which seems to be undefined. Please make sure it is defined." >&5
18103 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18104 which seems to be undefined. Please make sure it is defined." >&2;}
18108 -) cat "$tmp/out" && rm -f "$tmp/out";;
18109 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18111 || as_fn_error "could not create $ac_file" "$LINENO" 5
18117 if test x"$ac_file" != x-; then
18119 $as_echo "/* $configure_input */" \
18120 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18121 } >"$tmp/config.h" \
18122 || as_fn_error "could not create $ac_file" "$LINENO" 5
18123 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18125 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18128 mv "$tmp/config.h" "$ac_file" \
18129 || as_fn_error "could not create $ac_file" "$LINENO" 5
18132 $as_echo "/* $configure_input */" \
18133 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18134 || as_fn_error "could not create -" "$LINENO" 5
18136 # Compute "$ac_file"'s index
in $config_headers.
18139 for _am_header
in $config_headers :; do
18140 case $_am_header in
18141 $_am_arg |
$_am_arg:* )
18144 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18147 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18148 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18149 X"$_am_arg" : 'X\(//\)[^/]' \| \
18150 X"$_am_arg" : 'X\(//\)$' \| \
18151 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18152 $as_echo X"$_am_arg" |
18153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18157 /^X\(\/\/\)[^/].*/{
18169 s/.*/./; q'`/stamp-h
$_am_stamp_count
18176 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18179 # Prefer the file from the source tree if names are identical.
18180 if test "$ac_source" = "$ac_file" ||
test ! -r "$ac_source"; then
18181 ac_source
=$srcdir/$ac_source
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18185 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18187 if test ! -r "$ac_source"; then
18188 as_fn_error
"$ac_source: file not found" "$LINENO" 5
18192 # Try a relative symlink, then a hard link, then a copy.
18194 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$ac_source ;;
18195 *) ac_rel_source
=$ac_top_build_prefix$ac_source ;;
18197 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
18198 ln "$ac_source" "$ac_file" 2>/dev
/null ||
18199 cp -p "$ac_source" "$ac_file" ||
18200 as_fn_error
"cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18203 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18204 $as_echo "$as_me: executing $ac_file commands" >&6;}
18209 case $ac_file$ac_mode in
18211 # Only add multilib support code if we just rebuilt the top-level
18213 case " $CONFIG_FILES " in
18215 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
18218 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18219 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18220 # are listed without --file. Let's play safe and only enable the eval
18221 # if we detect the quoting.
18222 case $CONFIG_FILES in
18223 *\'*) eval set x
"$CONFIG_FILES" ;;
18224 *) set x
$CONFIG_FILES ;;
18229 # Strip MF so we end up with the name of the file.
18230 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18231 # Check whether this is an Automake generated Makefile or not.
18232 # We used to match only the files named `Makefile.in', but
18233 # some people rename them; so instead we look at the file content.
18234 # Grep'ing the first line is not enough: some people post-process
18235 # each Makefile.in and add a new line on top of each file to say so.
18236 # Grep'ing the whole file is not good either: AIX grep has a line
18237 # limit of 2048, but all sed's we know have understand at least 4000.
18238 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18239 dirpart
=`$as_dirname -- "$mf" ||
18240 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18241 X"$mf" : 'X\(//\)[^/]' \| \
18242 X"$mf" : 'X\(//\)$' \| \
18243 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18249 /^X\(\/\/\)[^/].*/{
18265 # Extract the definition of DEPDIR, am__include, and am__quote
18266 # from the Makefile without running `make'.
18267 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18268 test -z "$DEPDIR" && continue
18269 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18270 test -z "am__include" && continue
18271 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18272 # When using ansi2knr, U may be empty or an underscore; expand it
18273 U
=`sed -n 's/^U = //p' < "$mf"`
18274 # Find all dependency output files, they are included files with
18275 # $(DEPDIR) in their names. We invoke sed twice because it is the
18276 # simplest approach to changing $(DEPDIR) to its actual value in the
18278 for file in `sed -n "
18279 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18280 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18281 # Make sure the directory exists.
18282 test -f "$dirpart/$file" && continue
18283 fdir
=`$as_dirname -- "$file" ||
18284 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18285 X"$file" : 'X\(//\)[^/]' \| \
18286 X"$file" : 'X\(//\)$' \| \
18287 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18288 $as_echo X"$file" |
18289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18293 /^X\(\/\/\)[^/].*/{
18306 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18307 # echo "creating $dirpart/$file"
18308 echo '# dummy' > "$dirpart/$file"
18315 # See if we are running on zsh, and set the options which allow our
18316 # commands through without removal of \ escapes.
18317 if test -n "${ZSH_VERSION+set}" ; then
18318 setopt NO_GLOB_SUBST
18321 cfgfile
="${ofile}T"
18322 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18325 cat <<_LT_EOF >> "$cfgfile"
18328 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18329 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18330 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18331 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18333 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18334 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18335 # Written by Gordon Matzigkeit, 1996
18337 # This file is part of GNU Libtool.
18339 # GNU Libtool is free software; you can redistribute it and/or
18340 # modify it under the terms of the GNU General Public License as
18341 # published by the Free Software Foundation; either version 2 of
18342 # the License, or (at your option) any later version.
18344 # As a special exception to the GNU General Public License,
18345 # if you distribute this file as part of a program or library that
18346 # is built using GNU Libtool, you may include this file under the
18347 # same distribution terms that you use for the rest of that program.
18349 # GNU Libtool is distributed in the hope that it will be useful,
18350 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18351 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18352 # GNU General Public License for more details.
18354 # You should have received a copy of the GNU General Public License
18355 # along with GNU Libtool; see the file COPYING. If not, a copy
18356 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18357 # obtained by writing to the Free Software Foundation, Inc.,
18358 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18361 # The names of the tagged configurations supported by this script.
18362 available_tags="CXX "
18364 # ### BEGIN LIBTOOL CONFIG
18366 # Which release of libtool.m4 was used?
18367 macro_version=$macro_version
18368 macro_revision=$macro_revision
18370 # Whether or not to build shared libraries.
18371 build_libtool_libs=$enable_shared
18373 # Whether or not to build static libraries.
18374 build_old_libs=$enable_static
18376 # What type of objects to build.
18379 # Whether or not to optimize for fast installation.
18380 fast_install=$enable_fast_install
18382 # Shell to use when invoking shell scripts.
18385 # An echo program that protects backslashes.
18389 host_alias=$host_alias
18393 # The build system.
18394 build_alias=$build_alias
18398 # A sed program that does not truncate output.
18401 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18402 Xsed="\$SED -e 1s/^X//"
18404 # A grep program that handles long lines.
18410 # A literal string matcher.
18413 # A BSD- or MS-compatible name lister.
18416 # Whether we need soft or hard links.
18419 # What is the maximum length of a command?
18420 max_cmd_len=$max_cmd_len
18422 # Object file suffix (normally "o").
18425 # Executable file suffix (normally "").
18428 # whether the shell understands "unset".
18431 # turn spaces into newlines.
18434 # turn newlines into spaces.
18437 # An object symbol dumper.
18438 OBJDUMP=$lt_OBJDUMP
18440 # Method to check whether dependent libraries are shared objects.
18441 deplibs_check_method=$lt_deplibs_check_method
18443 # Command to use when deplibs_check_method == "file_magic".
18444 file_magic_cmd=$lt_file_magic_cmd
18448 AR_FLAGS=$lt_AR_FLAGS
18450 # A symbol stripping program.
18453 # Commands used to install an old-style archive.
18455 old_postinstall_cmds=$lt_old_postinstall_cmds
18456 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18458 # Whether to use a lock for old archive extraction.
18459 lock_old_archive_extraction=$lock_old_archive_extraction
18464 # LTCC compiler flags.
18465 LTCFLAGS=$lt_CFLAGS
18467 # Take the output of nm and produce a listing of raw symbols and C names.
18468 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18470 # Transform the output of nm in a proper C declaration.
18471 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18473 # Transform the output of nm in a C name address pair.
18474 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18476 # Transform the output of nm in a C name address pair when lib prefix is needed.
18477 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18479 # The name of the directory that contains temporary libtool files.
18482 # Used to examine libraries when file_magic_cmd begins with "file".
18483 MAGIC_CMD=$MAGIC_CMD
18485 # Must we lock files when doing compilation?
18486 need_locks=$lt_need_locks
18488 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18489 DSYMUTIL=$lt_DSYMUTIL
18491 # Tool to change global to local symbols on Mac OS X.
18494 # Tool to manipulate fat objects and archives on Mac OS X.
18497 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18500 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18501 OTOOL64=$lt_OTOOL64
18503 # Old archive suffix (normally "a").
18506 # Shared library suffix (normally ".so").
18507 shrext_cmds=$lt_shrext_cmds
18509 # The commands to extract the exported symbol list from a shared archive.
18510 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18512 # Variables whose values should be saved in libtool wrapper scripts and
18513 # restored at link time.
18514 variables_saved_for_relink=$lt_variables_saved_for_relink
18516 # Do we need the "lib" prefix for modules?
18517 need_lib_prefix=$need_lib_prefix
18519 # Do we need a version for libraries?
18520 need_version=$need_version
18522 # Library versioning type.
18523 version_type=$version_type
18525 # Shared library runtime path variable.
18526 runpath_var=$runpath_var
18528 # Shared library path variable.
18529 shlibpath_var=$shlibpath_var
18531 # Is shlibpath searched before the hard-coded library search path?
18532 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18534 # Format of library name prefix.
18535 libname_spec=$lt_libname_spec
18537 # List of archive names. First name is the real one, the rest are links.
18538 # The last name is the one that the linker finds with -lNAME
18539 library_names_spec=$lt_library_names_spec
18541 # The coded name of the library, if different from the real name.
18542 soname_spec=$lt_soname_spec
18544 # Permission mode override for installation of shared libraries.
18545 install_override_mode=$lt_install_override_mode
18547 # Command to use after installation of a shared archive.
18548 postinstall_cmds=$lt_postinstall_cmds
18550 # Command to use after uninstallation of a shared archive.
18551 postuninstall_cmds=$lt_postuninstall_cmds
18553 # Commands used to finish a libtool library installation in a directory.
18554 finish_cmds=$lt_finish_cmds
18556 # As "finish_cmds", except a single script fragment to be evaled but
18558 finish_eval=$lt_finish_eval
18560 # Whether we should hardcode library paths into libraries.
18561 hardcode_into_libs=$hardcode_into_libs
18563 # Compile-time system search path for libraries.
18564 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18566 # Run-time system search path for libraries.
18567 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18569 # Whether dlopen is supported.
18570 dlopen_support=$enable_dlopen
18572 # Whether dlopen of programs is supported.
18573 dlopen_self=$enable_dlopen_self
18575 # Whether dlopen of statically linked programs is supported.
18576 dlopen_self_static=$enable_dlopen_self_static
18578 # Commands to strip libraries.
18579 old_striplib=$lt_old_striplib
18580 striplib=$lt_striplib
18583 # The linker used to build libraries.
18586 # How to create reloadable object files.
18587 reload_flag=$lt_reload_flag
18588 reload_cmds=$lt_reload_cmds
18590 # Commands used to build an old-style archive.
18591 old_archive_cmds=$lt_old_archive_cmds
18593 # A language specific compiler.
18596 # Is the compiler the GNU compiler?
18599 # Compiler flag to turn off builtin functions.
18600 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18602 # How to pass a linker flag through the compiler.
18603 wl=$lt_lt_prog_compiler_wl
18605 # Additional compiler flags for building library objects.
18606 pic_flag=$lt_lt_prog_compiler_pic
18608 # Compiler flag to prevent dynamic linking.
18609 link_static_flag=$lt_lt_prog_compiler_static
18611 # Does compiler simultaneously support -c and -o options?
18612 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18614 # Whether or not to add -lc for building shared libraries.
18615 build_libtool_need_lc=$archive_cmds_need_lc
18617 # Whether or not to disallow shared libs when runtime libs are static.
18618 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18620 # Compiler flag to allow reflexive dlopens.
18621 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18623 # Compiler flag to generate shared objects directly from archives.
18624 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18626 # Whether the compiler copes with passing no objects directly.
18627 compiler_needs_object=$lt_compiler_needs_object
18629 # Create an old-style archive from a shared archive.
18630 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18632 # Create a temporary old-style archive to link instead of a shared archive.
18633 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18635 # Commands used to build a shared archive.
18636 archive_cmds=$lt_archive_cmds
18637 archive_expsym_cmds=$lt_archive_expsym_cmds
18639 # Commands used to build a loadable module if different from building
18640 # a shared archive.
18641 module_cmds=$lt_module_cmds
18642 module_expsym_cmds=$lt_module_expsym_cmds
18644 # Whether we are building with GNU ld or not.
18645 with_gnu_ld=$lt_with_gnu_ld
18647 # Flag that allows shared libraries with undefined symbols to be built.
18648 allow_undefined_flag=$lt_allow_undefined_flag
18650 # Flag that enforces no undefined symbols.
18651 no_undefined_flag=$lt_no_undefined_flag
18653 # Flag to hardcode \$libdir into a binary during linking.
18654 # This must work even if \$libdir does not exist
18655 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18657 # If ld is used when linking, flag to hardcode \$libdir into a binary
18658 # during linking. This must work even if \$libdir does not exist.
18659 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18661 # Whether we need a single "-rpath" flag with a separated argument.
18662 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18664 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18665 # DIR into the resulting binary.
18666 hardcode_direct=$hardcode_direct
18668 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18669 # DIR into the resulting binary and the resulting library dependency is
18670 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18671 # library is relocated.
18672 hardcode_direct_absolute=$hardcode_direct_absolute
18674 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18675 # into the resulting binary.
18676 hardcode_minus_L=$hardcode_minus_L
18678 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18679 # into the resulting binary.
18680 hardcode_shlibpath_var=$hardcode_shlibpath_var
18682 # Set to "yes" if building a shared library automatically hardcodes DIR
18683 # into the library and all subsequent libraries and executables linked
18685 hardcode_automatic=$hardcode_automatic
18687 # Set to yes if linker adds runtime paths of dependent libraries
18688 # to runtime path list.
18689 inherit_rpath=$inherit_rpath
18691 # Whether libtool must link a program against all its dependency libraries.
18692 link_all_deplibs=$link_all_deplibs
18694 # Fix the shell variable \$srcfile for the compiler.
18695 fix_srcfile_path=$lt_fix_srcfile_path
18697 # Set to "yes" if exported symbols are required.
18698 always_export_symbols=$always_export_symbols
18700 # The commands to list exported symbols.
18701 export_symbols_cmds=$lt_export_symbols_cmds
18703 # Symbols that should not be listed in the preloaded symbols.
18704 exclude_expsyms=$lt_exclude_expsyms
18706 # Symbols that must always be exported.
18707 include_expsyms=$lt_include_expsyms
18709 # Commands necessary for linking programs (against libraries) with templates.
18710 prelink_cmds=$lt_prelink_cmds
18712 # Specify filename containing input files.
18713 file_list_spec=$lt_file_list_spec
18715 # How to hardcode a shared library path into an executable.
18716 hardcode_action=$hardcode_action
18718 # The directories searched by this compiler when creating a shared library.
18719 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18721 # Dependencies to place before and after the objects being linked to
18722 # create a shared library.
18723 predep_objects=$lt_predep_objects
18724 postdep_objects=$lt_postdep_objects
18725 predeps=$lt_predeps
18726 postdeps=$lt_postdeps
18728 # The library search path used internally by the compiler when linking
18729 # a shared library.
18730 compiler_lib_search_path=$lt_compiler_lib_search_path
18732 # ### END LIBTOOL CONFIG
18738 cat <<\_LT_EOF
>> "$cfgfile"
18739 # AIX sometimes has problems with the GCC collect2 program. For some
18740 # reason, if we set the COLLECT_NAMES environment variable, the problems
18741 # vanish in a puff of smoke.
18742 if test "X${COLLECT_NAMES+set}" != Xset
; then
18744 export COLLECT_NAMES
18751 ltmain
="$ac_aux_dir/ltmain.sh"
18754 # We use sed instead of cat because bash on DJGPP gets confused if
18755 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18756 # text mode, it properly converts lines to CR/LF. This bash problem
18757 # is reportedly fixed, but why not run on old versions too?
18758 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18759 ||
(rm -f "$cfgfile"; exit 1)
18763 cat << \_LT_EOF
>> "$cfgfile"
18765 # func_dirname file append nondir_replacement
18766 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18767 # otherwise set result to NONDIR_REPLACEMENT.
18771 */*) func_dirname_result
="${1%/*}${2}" ;;
18772 * ) func_dirname_result
="${3}" ;;
18776 # func_basename file
18779 func_basename_result
="${1##*/}"
18782 # func_dirname_and_basename file append nondir_replacement
18783 # perform func_basename and func_dirname in a single function
18785 # dirname: Compute the dirname of FILE. If nonempty,
18786 # add APPEND to the result, otherwise set result
18787 # to NONDIR_REPLACEMENT.
18788 # value returned in "$func_dirname_result"
18789 # basename: Compute filename of FILE.
18790 # value retuned in "$func_basename_result"
18791 # Implementation must be kept synchronized with func_dirname
18792 # and func_basename. For efficiency, we do not delegate to
18793 # those functions but instead duplicate the functionality here.
18794 func_dirname_and_basename
()
18797 */*) func_dirname_result
="${1%/*}${2}" ;;
18798 * ) func_dirname_result
="${3}" ;;
18800 func_basename_result
="${1##*/}"
18803 # func_stripname prefix suffix name
18804 # strip PREFIX and SUFFIX off of NAME.
18805 # PREFIX and SUFFIX must not contain globbing or regex special
18806 # characters, hashes, percent signs, but SUFFIX may contain a leading
18807 # dot (in which case that matches only a dot).
18810 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18811 # positional parameters, so assign one to ordinary parameter first.
18812 func_stripname_result
=${3}
18813 func_stripname_result
=${func_stripname_result#"${1}"}
18814 func_stripname_result
=${func_stripname_result%"${2}"}
18820 func_opt_split_opt
=${1%%=*}
18821 func_opt_split_arg
=${1#*=}
18828 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
18829 *) func_lo2o_result
=${1} ;;
18833 # func_xform libobj-or-source
18836 func_xform_result
=${1%.*}.lo
18839 # func_arith arithmetic-term...
18842 func_arith_result
=$
(( $
* ))
18846 # STRING may not start with a hyphen.
18849 func_len_result
=${#1}
18854 *) # Bourne compatible functions.
18855 cat << \_LT_EOF
>> "$cfgfile"
18857 # func_dirname file append nondir_replacement
18858 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18859 # otherwise set result to NONDIR_REPLACEMENT.
18862 # Extract subdirectory from the argument.
18863 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
18864 if test "X$func_dirname_result" = "X${1}"; then
18865 func_dirname_result
="${3}"
18867 func_dirname_result
="$func_dirname_result${2}"
18871 # func_basename file
18874 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
18878 # func_stripname prefix suffix name
18879 # strip PREFIX and SUFFIX off of NAME.
18880 # PREFIX and SUFFIX must not contain globbing or regex special
18881 # characters, hashes, percent signs, but SUFFIX may contain a leading
18882 # dot (in which case that matches only a dot).
18883 # func_strip_suffix prefix name
18887 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18888 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18893 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
18894 my_sed_long_arg
='1s/^-[^=]*=//'
18899 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18900 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18906 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
18909 # func_xform libobj-or-source
18912 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18915 # func_arith arithmetic-term...
18918 func_arith_result
=`expr "$@"`
18922 # STRING may not start with a hyphen.
18925 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18931 case $lt_shell_append in
18933 cat << \_LT_EOF
>> "$cfgfile"
18935 # func_append var value
18936 # Append VALUE to the end of shell variable VAR.
18944 cat << \_LT_EOF
>> "$cfgfile"
18946 # func_append var value
18947 # Append VALUE to the end of shell variable VAR.
18958 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18959 ||
(rm -f "$cfgfile"; exit 1)
18961 mv -f "$cfgfile" "$ofile" ||
18962 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18966 cat <<_LT_EOF >> "$ofile"
18968 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18970 # The linker used to build libraries.
18973 # How to create reloadable object files.
18974 reload_flag=$lt_reload_flag_CXX
18975 reload_cmds=$lt_reload_cmds_CXX
18977 # Commands used to build an old-style archive.
18978 old_archive_cmds=$lt_old_archive_cmds_CXX
18980 # A language specific compiler.
18981 CC=$lt_compiler_CXX
18983 # Is the compiler the GNU compiler?
18986 # Compiler flag to turn off builtin functions.
18987 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18989 # How to pass a linker flag through the compiler.
18990 wl=$lt_lt_prog_compiler_wl_CXX
18992 # Additional compiler flags for building library objects.
18993 pic_flag=$lt_lt_prog_compiler_pic_CXX
18995 # Compiler flag to prevent dynamic linking.
18996 link_static_flag=$lt_lt_prog_compiler_static_CXX
18998 # Does compiler simultaneously support -c and -o options?
18999 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19001 # Whether or not to add -lc for building shared libraries.
19002 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19004 # Whether or not to disallow shared libs when runtime libs are static.
19005 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19007 # Compiler flag to allow reflexive dlopens.
19008 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19010 # Compiler flag to generate shared objects directly from archives.
19011 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19013 # Whether the compiler copes with passing no objects directly.
19014 compiler_needs_object=$lt_compiler_needs_object_CXX
19016 # Create an old-style archive from a shared archive.
19017 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19019 # Create a temporary old-style archive to link instead of a shared archive.
19020 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19022 # Commands used to build a shared archive.
19023 archive_cmds=$lt_archive_cmds_CXX
19024 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19026 # Commands used to build a loadable module if different from building
19027 # a shared archive.
19028 module_cmds=$lt_module_cmds_CXX
19029 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19031 # Whether we are building with GNU ld or not.
19032 with_gnu_ld=$lt_with_gnu_ld_CXX
19034 # Flag that allows shared libraries with undefined symbols to be built.
19035 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19037 # Flag that enforces no undefined symbols.
19038 no_undefined_flag=$lt_no_undefined_flag_CXX
19040 # Flag to hardcode \$libdir into a binary during linking.
19041 # This must work even if \$libdir does not exist
19042 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19044 # If ld is used when linking, flag to hardcode \$libdir into a binary
19045 # during linking. This must work even if \$libdir does not exist.
19046 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19048 # Whether we need a single "-rpath" flag with a separated argument.
19049 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19051 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19052 # DIR into the resulting binary.
19053 hardcode_direct=$hardcode_direct_CXX
19055 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19056 # DIR into the resulting binary and the resulting library dependency is
19057 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19058 # library is relocated.
19059 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19061 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19062 # into the resulting binary.
19063 hardcode_minus_L=$hardcode_minus_L_CXX
19065 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19066 # into the resulting binary.
19067 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19069 # Set to "yes" if building a shared library automatically hardcodes DIR
19070 # into the library and all subsequent libraries and executables linked
19072 hardcode_automatic=$hardcode_automatic_CXX
19074 # Set to yes if linker adds runtime paths of dependent libraries
19075 # to runtime path list.
19076 inherit_rpath=$inherit_rpath_CXX
19078 # Whether libtool must link a program against all its dependency libraries.
19079 link_all_deplibs=$link_all_deplibs_CXX
19081 # Fix the shell variable \$srcfile for the compiler.
19082 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19084 # Set to "yes" if exported symbols are required.
19085 always_export_symbols=$always_export_symbols_CXX
19087 # The commands to list exported symbols.
19088 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19090 # Symbols that should not be listed in the preloaded symbols.
19091 exclude_expsyms=$lt_exclude_expsyms_CXX
19093 # Symbols that must always be exported.
19094 include_expsyms=$lt_include_expsyms_CXX
19096 # Commands necessary for linking programs (against libraries) with templates.
19097 prelink_cmds=$lt_prelink_cmds_CXX
19099 # Specify filename containing input files.
19100 file_list_spec=$lt_file_list_spec_CXX
19102 # How to hardcode a shared library path into an executable.
19103 hardcode_action=$hardcode_action_CXX
19105 # The directories searched by this compiler when creating a shared library.
19106 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19108 # Dependencies to place before and after the objects being linked to
19109 # create a shared library.
19110 predep_objects=$lt_predep_objects_CXX
19111 postdep_objects=$lt_postdep_objects_CXX
19112 predeps=$lt_predeps_CXX
19113 postdeps=$lt_postdeps_CXX
19115 # The library search path used internally by the compiler when linking
19116 # a shared library.
19117 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19119 # ### END LIBTOOL TAG CONFIG: CXX
19123 "include":C
) test -d include || mkdir include
;;
19125 test -d src || mkdir src
19126 test -d src
/$TARGETDIR || mkdir src
/$TARGETDIR
19135 ac_clean_files
=$ac_clean_files_save
19137 test $ac_write_fail = 0 ||
19138 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19141 # configure is writing to config.log, and then calls config.status.
19142 # config.status does its own redirection, appending to config.log.
19143 # Unfortunately, on DOS this fails, as config.log is still kept open
19144 # by configure, so config.status won't be able to write to it; its
19145 # output is simply discarded. So we exec the FD to /dev/null,
19146 # effectively closing config.log, so it can be properly (re)opened and
19147 # appended to by config.status. When coming back to configure, we
19148 # need to make the FD available again.
19149 if test "$no_create" != yes; then
19151 ac_config_status_args
=
19152 test "$silent" = yes &&
19153 ac_config_status_args
="$ac_config_status_args --quiet"
19155 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19157 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19158 # would make configure fail if this is the last instruction.
19159 $ac_cs_success || as_fn_exit $?
19161 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19163 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}